diff --git a/.gitignore b/.gitignore index 9f3989b2..f4ac65e0 100644 --- a/.gitignore +++ b/.gitignore @@ -18,7 +18,6 @@ $RECYCLE.BIN/ # IDE & Editors .idea/ -.vscode/ *.iml *.iws *.swp diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..437dd654 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,41 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Client (Dev) - Android", + "request": "launch", + "type": "dart", + "program": "apps/mobile/apps/client/lib/main.dart", + "args": [ + "--dart-define-from-file=${workspaceFolder}/apps/mobile/config.dev.json" + ] + }, + { + "name": "Client (Dev) - iOS", + "request": "launch", + "type": "dart", + "program": "apps/mobile/apps/client/lib/main.dart", + "args": [ + "--dart-define-from-file=${workspaceFolder}/apps/mobile/config.dev.json" + ] + }, + { + "name": "Staff (Dev) - Android", + "request": "launch", + "type": "dart", + "program": "apps/mobile/apps/staff/lib/main.dart", + "args": [ + "--dart-define-from-file=${workspaceFolder}/apps/mobile/config.dev.json" + ] + }, + { + "name": "Staff (Dev) - iOS", + "request": "launch", + "type": "dart", + "program": "apps/mobile/apps/staff/lib/main.dart", + "args": [ + "--dart-define-from-file=${workspaceFolder}/apps/mobile/config.dev.json" + ] + } + ] +} \ No newline at end of file diff --git a/apps/mobile/apps/client/lib/main.dart b/apps/mobile/apps/client/lib/main.dart index ba82fce4..27f4d77d 100644 --- a/apps/mobile/apps/client/lib/main.dart +++ b/apps/mobile/apps/client/lib/main.dart @@ -56,8 +56,7 @@ class AppWidget extends StatelessWidget { Widget build(BuildContext context) { return BlocProvider( create: (BuildContext context) => - Modular.get() - ..add(const core_localization.LoadLocale()), + Modular.get(), child: BlocBuilder< core_localization.LocaleBloc, diff --git a/apps/mobile/apps/client/pubspec.yaml b/apps/mobile/apps/client/pubspec.yaml index c2fa3bd1..c5aa9f76 100644 --- a/apps/mobile/apps/client/pubspec.yaml +++ b/apps/mobile/apps/client/pubspec.yaml @@ -1,7 +1,7 @@ name: krowwithus_client description: "Krow Client Application" publish_to: "none" -version: 0.0.1-M+301 +version: 0.0.1-M3+2 resolution: workspace environment: diff --git a/apps/mobile/apps/design_system_viewer/pubspec.yaml b/apps/mobile/apps/design_system_viewer/pubspec.yaml index c96bbd77..12a4a9d9 100644 --- a/apps/mobile/apps/design_system_viewer/pubspec.yaml +++ b/apps/mobile/apps/design_system_viewer/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.0+1 +version: 0.0.1 resolution: workspace environment: diff --git a/apps/mobile/apps/staff/lib/main.dart b/apps/mobile/apps/staff/lib/main.dart index 92770719..4852b03d 100644 --- a/apps/mobile/apps/staff/lib/main.dart +++ b/apps/mobile/apps/staff/lib/main.dart @@ -1,5 +1,6 @@ import 'package:core_localization/core_localization.dart' as core_localization; import 'package:design_system/design_system.dart'; +import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; @@ -7,7 +8,6 @@ import 'package:flutter_modular/flutter_modular.dart'; import 'package:staff_authentication/staff_authentication.dart' as staff_authentication; import 'package:staff_main/staff_main.dart' as staff_main; -import 'package:firebase_core/firebase_core.dart'; void main() async { WidgetsFlutterBinding.ensureInitialized(); @@ -36,28 +36,30 @@ class AppWidget extends StatelessWidget { Widget build(BuildContext context) { return BlocProvider( create: (BuildContext context) => - Modular.get() - ..add(const core_localization.LoadLocale()), + Modular.get(), child: BlocBuilder< core_localization.LocaleBloc, core_localization.LocaleState >( - builder: (BuildContext context, core_localization.LocaleState state) { - return core_localization.TranslationProvider( - child: MaterialApp.router( - title: "KROW Staff", - theme: UiTheme.light, - routerConfig: Modular.routerConfig, - locale: state.locale, - supportedLocales: state.supportedLocales, - localizationsDelegates: const >[ - GlobalMaterialLocalizations.delegate, - GlobalWidgetsLocalizations.delegate, - GlobalCupertinoLocalizations.delegate, - ], - )); - }, + builder: + (BuildContext context, core_localization.LocaleState state) { + return core_localization.TranslationProvider( + child: MaterialApp.router( + title: "KROW Staff", + theme: UiTheme.light, + routerConfig: Modular.routerConfig, + locale: state.locale, + supportedLocales: state.supportedLocales, + localizationsDelegates: + const >[ + GlobalMaterialLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + ], + ), + ); + }, ), ); } diff --git a/apps/mobile/apps/staff/pubspec.yaml b/apps/mobile/apps/staff/pubspec.yaml index 6a498886..7b479547 100644 --- a/apps/mobile/apps/staff/pubspec.yaml +++ b/apps/mobile/apps/staff/pubspec.yaml @@ -1,7 +1,7 @@ name: krowwithus_staff description: "Krow Staff Application" publish_to: 'none' -version: 0.0.1+M301 +version: 0.0.1-M3+1 resolution: workspace environment: diff --git a/apps/mobile/config.dev.json b/apps/mobile/config.dev.json new file mode 100644 index 00000000..d2d5fa4c --- /dev/null +++ b/apps/mobile/config.dev.json @@ -0,0 +1,3 @@ +{ + "GOOGLE_PLACES_API_KEY": "AIzaSyAS9yTf4q51_CNSZ7mbmeS9V3l_LZR80lU" +} diff --git a/apps/mobile/packages/core_localization/lib/src/bloc/locale_bloc.dart b/apps/mobile/packages/core_localization/lib/src/bloc/locale_bloc.dart index 137e2498..59065746 100644 --- a/apps/mobile/packages/core_localization/lib/src/bloc/locale_bloc.dart +++ b/apps/mobile/packages/core_localization/lib/src/bloc/locale_bloc.dart @@ -1,6 +1,8 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; +import '../domain/usecases/get_default_locale_use_case.dart'; import '../domain/usecases/get_locale_use_case.dart'; +import '../domain/usecases/get_supported_locales_use_case.dart'; import '../domain/usecases/set_locale_use_case.dart'; import '../l10n/strings.g.dart'; import 'locale_event.dart'; @@ -11,23 +13,39 @@ import 'locale_state.dart'; /// It coordinates the flow between user language requests and persistent storage /// using [SetLocaleUseCase] and [GetLocaleUseCase]. class LocaleBloc extends Bloc { - final GetLocaleUseCase getLocaleUseCase; - final SetLocaleUseCase setLocaleUseCase; - /// Creates a [LocaleBloc] with the required use cases. - LocaleBloc({required this.getLocaleUseCase, required this.setLocaleUseCase}) - : super(LocaleState.initial()) { + LocaleBloc({ + required this.getLocaleUseCase, + required this.setLocaleUseCase, + required this.getSupportedLocalesUseCase, + required this.getDefaultLocaleUseCase, + }) : super(LocaleState.initial()) { on(_onChangeLocale); on(_onLoadLocale); + + /// Initial event + add(const LoadLocale()); } + /// Use case for retrieving the saved locale. + final GetLocaleUseCase getLocaleUseCase; + + /// Use case for saving the selected locale. + final SetLocaleUseCase setLocaleUseCase; + + /// Use case for retrieving supported locales. + final GetSupportedLocalesUseCase getSupportedLocalesUseCase; + + /// Use case for retrieving the default locale. + final GetDefaultLocaleUseCase getDefaultLocaleUseCase; + /// Handles the [ChangeLocale] event by saving it via the use case and emitting new state. Future _onChangeLocale( ChangeLocale event, Emitter emit, ) async { // 1. Update slang settings - LocaleSettings.setLocaleRaw(event.locale.languageCode); + await LocaleSettings.setLocaleRaw(event.locale.languageCode); // 2. Persist using Use Case await setLocaleUseCase(event.locale); @@ -46,11 +64,14 @@ class LocaleBloc extends Bloc { LoadLocale event, Emitter emit, ) async { - final Locale? savedLocale = await getLocaleUseCase(); - final Locale locale = savedLocale ?? const Locale('en'); + final Locale savedLocale = await getLocaleUseCase(); + final List supportedLocales = getSupportedLocalesUseCase(); - LocaleSettings.setLocaleRaw(locale.languageCode); + await LocaleSettings.setLocaleRaw(savedLocale.languageCode); - emit(LocaleState(locale: locale, supportedLocales: state.supportedLocales)); + emit(LocaleState( + locale: savedLocale, + supportedLocales: supportedLocales, + )); } } diff --git a/apps/mobile/packages/core_localization/lib/src/bloc/locale_state.dart b/apps/mobile/packages/core_localization/lib/src/bloc/locale_state.dart index 33219cd1..a37288ed 100644 --- a/apps/mobile/packages/core_localization/lib/src/bloc/locale_state.dart +++ b/apps/mobile/packages/core_localization/lib/src/bloc/locale_state.dart @@ -1,20 +1,21 @@ import 'package:flutter/material.dart'; + import '../l10n/strings.g.dart'; /// Represents the current state of the application's localization. class LocaleState { + /// Creates a [LocaleState] with the specified [locale]. + const LocaleState({required this.locale, required this.supportedLocales}); + + /// The initial state of the application, defaulting to English. + factory LocaleState.initial() => LocaleState( + locale: AppLocaleUtils.findDeviceLocale().flutterLocale, + supportedLocales: AppLocaleUtils.supportedLocales, + ); + /// The current active locale. final Locale locale; /// The list of supported locales for the application. final List supportedLocales; - - /// Creates a [LocaleState] with the specified [locale]. - const LocaleState({required this.locale, required this.supportedLocales}); - - /// The initial state of the application, defaulting to English. - factory LocaleState.initial() => LocaleState( - locale: const Locale('es'), - supportedLocales: AppLocaleUtils.supportedLocales, - ); } diff --git a/apps/mobile/packages/core_localization/lib/src/data/repositories_impl/locale_repository_impl.dart b/apps/mobile/packages/core_localization/lib/src/data/repositories_impl/locale_repository_impl.dart index ddda18cb..f3bd8d69 100644 --- a/apps/mobile/packages/core_localization/lib/src/data/repositories_impl/locale_repository_impl.dart +++ b/apps/mobile/packages/core_localization/lib/src/data/repositories_impl/locale_repository_impl.dart @@ -1,4 +1,6 @@ import 'dart:ui'; +import 'package:core_localization/src/l10n/strings.g.dart'; + import '../../domain/repositories/locale_repository_interface.dart'; import '../datasources/locale_local_data_source.dart'; @@ -7,22 +9,36 @@ import '../datasources/locale_local_data_source.dart'; /// This class handles the mapping between domain [Locale] objects and the raw /// strings handled by the [LocaleLocalDataSource]. class LocaleRepositoryImpl implements LocaleRepositoryInterface { - final LocaleLocalDataSource _localDataSource; + /// Creates a [LocaleRepositoryImpl] with the provided [localDataSource]. + LocaleRepositoryImpl({required this.localDataSource}); - /// Creates a [LocaleRepositoryImpl] with the provided [_localDataSource]. - LocaleRepositoryImpl(this._localDataSource); + final LocaleLocalDataSource localDataSource; @override Future saveLocale(Locale locale) { - return _localDataSource.saveLanguageCode(locale.languageCode); + return localDataSource.saveLanguageCode(locale.languageCode); } @override - Future getSavedLocale() async { - final String? languageCode = await _localDataSource.getLanguageCode(); + Future getSavedLocale() async { + return getDefaultLocale(); + + /// TODO: FEATURE_NOT_IMPLEMENTED: Implement saved locale retrieval later + final String? languageCode = await localDataSource.getLanguageCode(); if (languageCode != null) { return Locale(languageCode); } - return null; } + + @override + Locale getDefaultLocale() { + final Locale deviceLocale = AppLocaleUtils.findDeviceLocale().flutterLocale; + if (getSupportedLocales().contains(deviceLocale)) { + return deviceLocale; + } + return const Locale('en'); + } + + @override + List getSupportedLocales() => AppLocaleUtils.supportedLocales; } diff --git a/apps/mobile/packages/core_localization/lib/src/domain/repositories/locale_repository_interface.dart b/apps/mobile/packages/core_localization/lib/src/domain/repositories/locale_repository_interface.dart index 604c2d41..912d8248 100644 --- a/apps/mobile/packages/core_localization/lib/src/domain/repositories/locale_repository_interface.dart +++ b/apps/mobile/packages/core_localization/lib/src/domain/repositories/locale_repository_interface.dart @@ -13,5 +13,11 @@ abstract interface class LocaleRepositoryInterface { /// Retrieves the saved [locale] from persistent storage. /// /// Returns `null` if no locale has been previously saved. - Future getSavedLocale(); + Future getSavedLocale(); + + /// Retrieves the default [Locale] for the application. + Locale getDefaultLocale(); + + /// Retrieves the list of supported [Locale]s. + List getSupportedLocales(); } diff --git a/apps/mobile/packages/core_localization/lib/src/domain/usecases/get_default_locale_use_case.dart b/apps/mobile/packages/core_localization/lib/src/domain/usecases/get_default_locale_use_case.dart new file mode 100644 index 00000000..e416d1cd --- /dev/null +++ b/apps/mobile/packages/core_localization/lib/src/domain/usecases/get_default_locale_use_case.dart @@ -0,0 +1,15 @@ +import 'dart:ui'; +import '../repositories/locale_repository_interface.dart'; + +/// Use case to retrieve the default locale. +class GetDefaultLocaleUseCase { + final LocaleRepositoryInterface _repository; + + /// Creates a [GetDefaultLocaleUseCase] with the required [LocaleRepositoryInterface]. + GetDefaultLocaleUseCase(this._repository); + + /// Retrieves the default locale. + Locale call() { + return _repository.getDefaultLocale(); + } +} diff --git a/apps/mobile/packages/core_localization/lib/src/domain/usecases/get_locale_use_case.dart b/apps/mobile/packages/core_localization/lib/src/domain/usecases/get_locale_use_case.dart index 8d29876e..02256a69 100644 --- a/apps/mobile/packages/core_localization/lib/src/domain/usecases/get_locale_use_case.dart +++ b/apps/mobile/packages/core_localization/lib/src/domain/usecases/get_locale_use_case.dart @@ -13,7 +13,7 @@ class GetLocaleUseCase extends NoInputUseCase { GetLocaleUseCase(this._repository); @override - Future call() { + Future call() { return _repository.getSavedLocale(); } } diff --git a/apps/mobile/packages/core_localization/lib/src/domain/usecases/get_supported_locales_use_case.dart b/apps/mobile/packages/core_localization/lib/src/domain/usecases/get_supported_locales_use_case.dart new file mode 100644 index 00000000..8840b196 --- /dev/null +++ b/apps/mobile/packages/core_localization/lib/src/domain/usecases/get_supported_locales_use_case.dart @@ -0,0 +1,15 @@ +import 'dart:ui'; +import '../repositories/locale_repository_interface.dart'; + +/// Use case to retrieve the list of supported locales. +class GetSupportedLocalesUseCase { + final LocaleRepositoryInterface _repository; + + /// Creates a [GetSupportedLocalesUseCase] with the required [LocaleRepositoryInterface]. + GetSupportedLocalesUseCase(this._repository); + + /// Retrieves the supported locales. + List call() { + return _repository.getSupportedLocales(); + } +} diff --git a/apps/mobile/packages/core_localization/lib/src/l10n/strings.g.dart b/apps/mobile/packages/core_localization/lib/src/l10n/strings.g.dart index c7ae241b..af448a4c 100644 --- a/apps/mobile/packages/core_localization/lib/src/l10n/strings.g.dart +++ b/apps/mobile/packages/core_localization/lib/src/l10n/strings.g.dart @@ -6,7 +6,7 @@ /// Locales: 2 /// Strings: 1038 (519 per locale) /// -/// Built on 2026-01-28 at 09:41 UTC +/// Built on 2026-01-29 at 15:50 UTC // coverage:ignore-file // ignore_for_file: type=lint, unused_import diff --git a/apps/mobile/packages/core_localization/lib/src/localization_module.dart b/apps/mobile/packages/core_localization/lib/src/localization_module.dart index bbc87c6d..42dd5b71 100644 --- a/apps/mobile/packages/core_localization/lib/src/localization_module.dart +++ b/apps/mobile/packages/core_localization/lib/src/localization_module.dart @@ -3,7 +3,9 @@ import 'package:shared_preferences/shared_preferences.dart'; import 'data/datasources/locale_local_data_source.dart'; import 'data/repositories_impl/locale_repository_impl.dart'; import 'domain/repositories/locale_repository_interface.dart'; +import 'domain/usecases/get_default_locale_use_case.dart'; import 'domain/usecases/get_locale_use_case.dart'; +import 'domain/usecases/get_supported_locales_use_case.dart'; import 'domain/usecases/set_locale_use_case.dart'; import 'bloc/locale_bloc.dart'; @@ -18,28 +20,36 @@ class LocalizationModule extends Module { i.addInstance(SharedPreferencesAsync()); // Data Sources - i.addSingleton( + i.addLazySingleton( () => LocaleLocalDataSourceImpl(i.get()), ); // Repositories - i.addSingleton( - () => LocaleRepositoryImpl(i.get()), + i.addLazySingleton( + () => LocaleRepositoryImpl(localDataSource: i.get()), ); // Use Cases - i.addSingleton( + i.addLazySingleton( () => GetLocaleUseCase(i.get()), ); - i.addSingleton( + i.addLazySingleton( () => SetLocaleUseCase(i.get()), ); + i.addLazySingleton( + () => GetSupportedLocalesUseCase(i.get()), + ); + i.addLazySingleton( + () => GetDefaultLocaleUseCase(i.get()), + ); // BLoCs - i.addSingleton( + i.add( () => LocaleBloc( getLocaleUseCase: i.get(), setLocaleUseCase: i.get(), + getSupportedLocalesUseCase: i.get(), + getDefaultLocaleUseCase: i.get(), ), ); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/.guides/usage.md b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/.guides/usage.md index 64d5474f..41d7aeb0 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/.guides/usage.md +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/.guides/usage.md @@ -1,16 +1,16 @@ # Basic Usage ```dart -ExampleConnector.instance.createFaqData(createFaqDataVariables).execute(); -ExampleConnector.instance.updateFaqData(updateFaqDataVariables).execute(); -ExampleConnector.instance.deleteFaqData(deleteFaqDataVariables).execute(); -ExampleConnector.instance.createStaffAvailability(createStaffAvailabilityVariables).execute(); -ExampleConnector.instance.updateStaffAvailability(updateStaffAvailabilityVariables).execute(); -ExampleConnector.instance.deleteStaffAvailability(deleteStaffAvailabilityVariables).execute(); -ExampleConnector.instance.listStaffAvailabilityStats(listStaffAvailabilityStatsVariables).execute(); -ExampleConnector.instance.getStaffAvailabilityStatsByStaffId(getStaffAvailabilityStatsByStaffIdVariables).execute(); -ExampleConnector.instance.filterStaffAvailabilityStats(filterStaffAvailabilityStatsVariables).execute(); -ExampleConnector.instance.createTaxForm(createTaxFormVariables).execute(); +ExampleConnector.instance.createRecentPayment(createRecentPaymentVariables).execute(); +ExampleConnector.instance.updateRecentPayment(updateRecentPaymentVariables).execute(); +ExampleConnector.instance.deleteRecentPayment(deleteRecentPaymentVariables).execute(); +ExampleConnector.instance.CreateStaff(createStaffVariables).execute(); +ExampleConnector.instance.UpdateStaff(updateStaffVariables).execute(); +ExampleConnector.instance.DeleteStaff(deleteStaffVariables).execute(); +ExampleConnector.instance.getStaffDocumentByKey(getStaffDocumentByKeyVariables).execute(); +ExampleConnector.instance.listStaffDocumentsByStaffId(listStaffDocumentsByStaffIdVariables).execute(); +ExampleConnector.instance.listStaffDocumentsByDocumentType(listStaffDocumentsByDocumentTypeVariables).execute(); +ExampleConnector.instance.listStaffDocumentsByStatus(listStaffDocumentsByStatusVariables).execute(); ``` @@ -23,8 +23,8 @@ Optional fields can be discovered based on classes that have `Optional` object t This is an example of a mutation with an optional field: ```dart -await ExampleConnector.instance.updateWorkforce({ ... }) -.workforceNumber(...) +await ExampleConnector.instance.updateAttireOption({ ... }) +.itemId(...) .execute(); ``` diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/README.md b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/README.md index b8677cb9..c5777e09 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/README.md +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/README.md @@ -21,39 +21,21 @@ ExampleConnector.instance.dataConnect.useDataConnectEmulator(host, port); You can also call queries and mutations by using the connector class. ## Queries -### listStaffAvailabilityStats +### getStaffDocumentByKey #### Required Arguments ```dart -// No required arguments -ExampleConnector.instance.listStaffAvailabilityStats().execute(); +String staffId = ...; +String documentId = ...; +ExampleConnector.instance.getStaffDocumentByKey( + staffId: staffId, + documentId: documentId, +).execute(); ``` -#### Optional Arguments -We return a builder for each query. For listStaffAvailabilityStats, we created `listStaffAvailabilityStatsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffAvailabilityStatsVariablesBuilder { - ... - - ListStaffAvailabilityStatsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffAvailabilityStatsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - ... -} -ExampleConnector.instance.listStaffAvailabilityStats() -.offset(offset) -.limit(limit) -.execute(); -``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -68,8 +50,11 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listStaffAvailabilityStats(); -listStaffAvailabilityStatsData data = result.data; +final result = await ExampleConnector.instance.getStaffDocumentByKey( + staffId: staffId, + documentId: documentId, +); +getStaffDocumentByKeyData data = result.data; final ref = result.ref; ``` @@ -77,26 +62,55 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.listStaffAvailabilityStats().ref(); +String staffId = ...; +String documentId = ...; + +final ref = ExampleConnector.instance.getStaffDocumentByKey( + staffId: staffId, + documentId: documentId, +).ref(); ref.execute(); ref.subscribe(...); ``` -### getStaffAvailabilityStatsByStaffId +### listStaffDocumentsByStaffId #### Required Arguments ```dart String staffId = ...; -ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( +ExampleConnector.instance.listStaffDocumentsByStaffId( staffId: staffId, ).execute(); ``` +#### Optional Arguments +We return a builder for each query. For listStaffDocumentsByStaffId, we created `listStaffDocumentsByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffDocumentsByStaffIdVariablesBuilder { + ... + ListStaffDocumentsByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffDocumentsByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + ... +} +ExampleConnector.instance.listStaffDocumentsByStaffId( + staffId: staffId, +) +.offset(offset) +.limit(limit) +.execute(); +``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -111,10 +125,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( +final result = await ExampleConnector.instance.listStaffDocumentsByStaffId( staffId: staffId, ); -getStaffAvailabilityStatsByStaffIdData data = result.data; +listStaffDocumentsByStaffIdData data = result.data; final ref = result.ref; ``` @@ -124,7 +138,7 @@ An example of how to use the `Ref` object is shown below: ```dart String staffId = ...; -final ref = ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( +final ref = ExampleConnector.instance.listStaffDocumentsByStaffId( staffId: staffId, ).ref(); ref.execute(); @@ -133,456 +147,34 @@ ref.subscribe(...); ``` -### filterStaffAvailabilityStats +### listStaffDocumentsByDocumentType #### Required Arguments ```dart -// No required arguments -ExampleConnector.instance.filterStaffAvailabilityStats().execute(); +DocumentType documentType = ...; +ExampleConnector.instance.listStaffDocumentsByDocumentType( + documentType: documentType, +).execute(); ``` #### Optional Arguments -We return a builder for each query. For filterStaffAvailabilityStats, we created `filterStaffAvailabilityStatsBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listStaffDocumentsByDocumentType, we created `listStaffDocumentsByDocumentTypeBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class FilterStaffAvailabilityStatsVariablesBuilder { +class ListStaffDocumentsByDocumentTypeVariablesBuilder { ... - - FilterStaffAvailabilityStatsVariablesBuilder needWorkIndexMin(int? t) { - _needWorkIndexMin.value = t; - return this; - } - FilterStaffAvailabilityStatsVariablesBuilder needWorkIndexMax(int? t) { - _needWorkIndexMax.value = t; - return this; - } - FilterStaffAvailabilityStatsVariablesBuilder utilizationMin(int? t) { - _utilizationMin.value = t; - return this; - } - FilterStaffAvailabilityStatsVariablesBuilder utilizationMax(int? t) { - _utilizationMax.value = t; - return this; - } - FilterStaffAvailabilityStatsVariablesBuilder acceptanceRateMin(int? t) { - _acceptanceRateMin.value = t; - return this; - } - FilterStaffAvailabilityStatsVariablesBuilder acceptanceRateMax(int? t) { - _acceptanceRateMax.value = t; - return this; - } - FilterStaffAvailabilityStatsVariablesBuilder lastShiftAfter(Timestamp? t) { - _lastShiftAfter.value = t; - return this; - } - FilterStaffAvailabilityStatsVariablesBuilder lastShiftBefore(Timestamp? t) { - _lastShiftBefore.value = t; - return this; - } - FilterStaffAvailabilityStatsVariablesBuilder offset(int? t) { + ListStaffDocumentsByDocumentTypeVariablesBuilder offset(int? t) { _offset.value = t; return this; } - FilterStaffAvailabilityStatsVariablesBuilder limit(int? t) { + ListStaffDocumentsByDocumentTypeVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.filterStaffAvailabilityStats() -.needWorkIndexMin(needWorkIndexMin) -.needWorkIndexMax(needWorkIndexMax) -.utilizationMin(utilizationMin) -.utilizationMax(utilizationMax) -.acceptanceRateMin(acceptanceRateMin) -.acceptanceRateMax(acceptanceRateMax) -.lastShiftAfter(lastShiftAfter) -.lastShiftBefore(lastShiftBefore) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterStaffAvailabilityStats(); -filterStaffAvailabilityStatsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterStaffAvailabilityStats().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listHubs -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listHubs().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listHubs(); -listHubsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listHubs().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getHubById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getHubById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getHubById( - id: id, -); -getHubByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getHubById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getHubsByOwnerId -#### Required Arguments -```dart -String ownerId = ...; -ExampleConnector.instance.getHubsByOwnerId( - ownerId: ownerId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getHubsByOwnerId( - ownerId: ownerId, -); -getHubsByOwnerIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String ownerId = ...; - -final ref = ExampleConnector.instance.getHubsByOwnerId( - ownerId: ownerId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterHubs -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterHubs().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterHubs, we created `filterHubsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterHubsVariablesBuilder { - ... - - FilterHubsVariablesBuilder ownerId(String? t) { - _ownerId.value = t; - return this; - } - FilterHubsVariablesBuilder name(String? t) { - _name.value = t; - return this; - } - FilterHubsVariablesBuilder nfcTagId(String? t) { - _nfcTagId.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterHubs() -.ownerId(ownerId) -.name(name) -.nfcTagId(nfcTagId) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterHubs(); -filterHubsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterHubs().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listAssignments -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listAssignments().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listAssignments, we created `listAssignmentsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListAssignmentsVariablesBuilder { - ... - - ListAssignmentsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListAssignmentsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listAssignments() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listAssignments(); -listAssignmentsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listAssignments().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getAssignmentById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getAssignmentById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getAssignmentById( - id: id, -); -getAssignmentByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getAssignmentById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listAssignmentsByWorkforceId -#### Required Arguments -```dart -String workforceId = ...; -ExampleConnector.instance.listAssignmentsByWorkforceId( - workforceId: workforceId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listAssignmentsByWorkforceId, we created `listAssignmentsByWorkforceIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListAssignmentsByWorkforceIdVariablesBuilder { - ... - ListAssignmentsByWorkforceIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListAssignmentsByWorkforceIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listAssignmentsByWorkforceId( - workforceId: workforceId, +ExampleConnector.instance.listStaffDocumentsByDocumentType( + documentType: documentType, ) .offset(offset) .limit(limit) @@ -590,7 +182,7 @@ ExampleConnector.instance.listAssignmentsByWorkforceId( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -605,10 +197,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listAssignmentsByWorkforceId( - workforceId: workforceId, +final result = await ExampleConnector.instance.listStaffDocumentsByDocumentType( + documentType: documentType, ); -listAssignmentsByWorkforceIdData data = result.data; +listStaffDocumentsByDocumentTypeData data = result.data; final ref = result.ref; ``` @@ -616,10 +208,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String workforceId = ...; +DocumentType documentType = ...; -final ref = ExampleConnector.instance.listAssignmentsByWorkforceId( - workforceId: workforceId, +final ref = ExampleConnector.instance.listStaffDocumentsByDocumentType( + documentType: documentType, ).ref(); ref.execute(); @@ -627,34 +219,34 @@ ref.subscribe(...); ``` -### listAssignmentsByWorkforceIds +### listStaffDocumentsByStatus #### Required Arguments ```dart -String workforceIds = ...; -ExampleConnector.instance.listAssignmentsByWorkforceIds( - workforceIds: workforceIds, +DocumentStatus status = ...; +ExampleConnector.instance.listStaffDocumentsByStatus( + status: status, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For listAssignmentsByWorkforceIds, we created `listAssignmentsByWorkforceIdsBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listStaffDocumentsByStatus, we created `listStaffDocumentsByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListAssignmentsByWorkforceIdsVariablesBuilder { +class ListStaffDocumentsByStatusVariablesBuilder { ... - ListAssignmentsByWorkforceIdsVariablesBuilder offset(int? t) { + ListStaffDocumentsByStatusVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListAssignmentsByWorkforceIdsVariablesBuilder limit(int? t) { + ListStaffDocumentsByStatusVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listAssignmentsByWorkforceIds( - workforceIds: workforceIds, +ExampleConnector.instance.listStaffDocumentsByStatus( + status: status, ) .offset(offset) .limit(limit) @@ -662,7 +254,7 @@ ExampleConnector.instance.listAssignmentsByWorkforceIds( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -677,10 +269,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listAssignmentsByWorkforceIds( - workforceIds: workforceIds, +final result = await ExampleConnector.instance.listStaffDocumentsByStatus( + status: status, ); -listAssignmentsByWorkforceIdsData data = result.data; +listStaffDocumentsByStatusData data = result.data; final ref = result.ref; ``` @@ -688,10 +280,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String workforceIds = ...; +DocumentStatus status = ...; -final ref = ExampleConnector.instance.listAssignmentsByWorkforceIds( - workforceIds: workforceIds, +final ref = ExampleConnector.instance.listStaffDocumentsByStatus( + status: status, ).ref(); ref.execute(); @@ -699,37 +291,146 @@ ref.subscribe(...); ``` -### listAssignmentsByShiftRole +### listTaxForms #### Required Arguments ```dart -String shiftId = ...; -String roleId = ...; -ExampleConnector.instance.listAssignmentsByShiftRole( - shiftId: shiftId, - roleId: roleId, -).execute(); +// No required arguments +ExampleConnector.instance.listTaxForms().execute(); ``` #### Optional Arguments -We return a builder for each query. For listAssignmentsByShiftRole, we created `listAssignmentsByShiftRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listTaxForms, we created `listTaxFormsBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListAssignmentsByShiftRoleVariablesBuilder { +class ListTaxFormsVariablesBuilder { ... - ListAssignmentsByShiftRoleVariablesBuilder offset(int? t) { + + ListTaxFormsVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListAssignmentsByShiftRoleVariablesBuilder limit(int? t) { + ListTaxFormsVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listAssignmentsByShiftRole( - shiftId: shiftId, - roleId: roleId, +ExampleConnector.instance.listTaxForms() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listTaxForms(); +listTaxFormsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listTaxForms().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTaxFormById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getTaxFormById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getTaxFormById( + id: id, +); +getTaxFormByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getTaxFormById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTaxFormsByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.getTaxFormsByStaffId( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getTaxFormsByStaffId, we created `getTaxFormsByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetTaxFormsByStaffIdVariablesBuilder { + ... + GetTaxFormsByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetTaxFormsByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getTaxFormsByStaffId( + staffId: staffId, ) .offset(offset) .limit(limit) @@ -737,7 +438,7 @@ ExampleConnector.instance.listAssignmentsByShiftRole( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -752,11 +453,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listAssignmentsByShiftRole( - shiftId: shiftId, - roleId: roleId, +final result = await ExampleConnector.instance.getTaxFormsByStaffId( + staffId: staffId, ); -listAssignmentsByShiftRoleData data = result.data; +getTaxFormsByStaffIdData data = result.data; final ref = result.ref; ``` @@ -764,12 +464,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String shiftId = ...; -String roleId = ...; +String staffId = ...; -final ref = ExampleConnector.instance.listAssignmentsByShiftRole( - shiftId: shiftId, - roleId: roleId, +final ref = ExampleConnector.instance.getTaxFormsByStaffId( + staffId: staffId, ).ref(); ref.execute(); @@ -777,50 +475,54 @@ ref.subscribe(...); ``` -### filterAssignments +### listTaxFormsWhere #### Required Arguments ```dart -String shiftIds = ...; -String roleIds = ...; -ExampleConnector.instance.filterAssignments( - shiftIds: shiftIds, - roleIds: roleIds, -).execute(); +// No required arguments +ExampleConnector.instance.listTaxFormsWhere().execute(); ``` #### Optional Arguments -We return a builder for each query. For filterAssignments, we created `filterAssignmentsBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listTaxFormsWhere, we created `listTaxFormsWhereBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class FilterAssignmentsVariablesBuilder { +class ListTaxFormsWhereVariablesBuilder { ... - FilterAssignmentsVariablesBuilder status(AssignmentStatus? t) { + + ListTaxFormsWhereVariablesBuilder formType(TaxFormType? t) { + _formType.value = t; + return this; + } + ListTaxFormsWhereVariablesBuilder status(TaxFormStatus? t) { _status.value = t; return this; } - FilterAssignmentsVariablesBuilder offset(int? t) { + ListTaxFormsWhereVariablesBuilder staffId(String? t) { + _staffId.value = t; + return this; + } + ListTaxFormsWhereVariablesBuilder offset(int? t) { _offset.value = t; return this; } - FilterAssignmentsVariablesBuilder limit(int? t) { + ListTaxFormsWhereVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.filterAssignments( - shiftIds: shiftIds, - roleIds: roleIds, -) +ExampleConnector.instance.listTaxFormsWhere() +.formType(formType) .status(status) +.staffId(staffId) .offset(offset) .limit(limit) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -835,11 +537,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.filterAssignments( - shiftIds: shiftIds, - roleIds: roleIds, -); -filterAssignmentsData data = result.data; +final result = await ExampleConnector.instance.listTaxFormsWhere(); +listTaxFormsWhereData data = result.data; final ref = result.ref; ``` @@ -847,30 +546,46 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String shiftIds = ...; -String roleIds = ...; - -final ref = ExampleConnector.instance.filterAssignments( - shiftIds: shiftIds, - roleIds: roleIds, -).ref(); +final ref = ExampleConnector.instance.listTaxFormsWhere().ref(); ref.execute(); ref.subscribe(...); ``` -### listDocuments +### listTeamHubs #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listDocuments().execute(); +ExampleConnector.instance.listTeamHubs().execute(); ``` +#### Optional Arguments +We return a builder for each query. For listTeamHubs, we created `listTeamHubsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListTeamHubsVariablesBuilder { + ... + + ListTeamHubsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListTeamHubsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + ... +} +ExampleConnector.instance.listTeamHubs() +.offset(offset) +.limit(limit) +.execute(); +``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -885,8 +600,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listDocuments(); -listDocumentsData data = result.data; +final result = await ExampleConnector.instance.listTeamHubs(); +listTeamHubsData data = result.data; final ref = result.ref; ``` @@ -894,18 +609,18 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.listDocuments().ref(); +final ref = ExampleConnector.instance.listTeamHubs().ref(); ref.execute(); ref.subscribe(...); ``` -### getDocumentById +### getTeamHubById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getDocumentById( +ExampleConnector.instance.getTeamHubById( id: id, ).execute(); ``` @@ -913,7 +628,7 @@ ExampleConnector.instance.getDocumentById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -928,10 +643,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getDocumentById( +final result = await ExampleConnector.instance.getTeamHubById( id: id, ); -getDocumentByIdData data = result.data; +getTeamHubByIdData data = result.data; final ref = result.ref; ``` @@ -941,7 +656,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getDocumentById( +final ref = ExampleConnector.instance.getTeamHubById( id: id, ).ref(); ref.execute(); @@ -950,34 +665,42 @@ ref.subscribe(...); ``` -### filterDocuments +### getTeamHubsByTeamId #### Required Arguments ```dart -// No required arguments -ExampleConnector.instance.filterDocuments().execute(); +String teamId = ...; +ExampleConnector.instance.getTeamHubsByTeamId( + teamId: teamId, +).execute(); ``` #### Optional Arguments -We return a builder for each query. For filterDocuments, we created `filterDocumentsBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For getTeamHubsByTeamId, we created `getTeamHubsByTeamIdBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class FilterDocumentsVariablesBuilder { +class GetTeamHubsByTeamIdVariablesBuilder { ... - - FilterDocumentsVariablesBuilder documentType(DocumentType? t) { - _documentType.value = t; + GetTeamHubsByTeamIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetTeamHubsByTeamIdVariablesBuilder limit(int? t) { + _limit.value = t; return this; } ... } -ExampleConnector.instance.filterDocuments() -.documentType(documentType) +ExampleConnector.instance.getTeamHubsByTeamId( + teamId: teamId, +) +.offset(offset) +.limit(limit) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -992,8 +715,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.filterDocuments(); -filterDocumentsData data = result.data; +final result = await ExampleConnector.instance.getTeamHubsByTeamId( + teamId: teamId, +); +getTeamHubsByTeamIdData data = result.data; final ref = result.ref; ``` @@ -1001,7 +726,945 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.filterDocuments().ref(); +String teamId = ...; + +final ref = ExampleConnector.instance.getTeamHubsByTeamId( + teamId: teamId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listTeamHubsByOwnerId +#### Required Arguments +```dart +String ownerId = ...; +ExampleConnector.instance.listTeamHubsByOwnerId( + ownerId: ownerId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listTeamHubsByOwnerId, we created `listTeamHubsByOwnerIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListTeamHubsByOwnerIdVariablesBuilder { + ... + ListTeamHubsByOwnerIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListTeamHubsByOwnerIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listTeamHubsByOwnerId( + ownerId: ownerId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listTeamHubsByOwnerId( + ownerId: ownerId, +); +listTeamHubsByOwnerIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String ownerId = ...; + +final ref = ExampleConnector.instance.listTeamHubsByOwnerId( + ownerId: ownerId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listShifts +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listShifts().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listShifts, we created `listShiftsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListShiftsVariablesBuilder { + ... + + ListShiftsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListShiftsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listShifts() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listShifts(); +listShiftsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listShifts().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getShiftById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getShiftById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getShiftById( + id: id, +); +getShiftByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getShiftById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterShifts +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterShifts().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterShifts, we created `filterShiftsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterShiftsVariablesBuilder { + ... + + FilterShiftsVariablesBuilder status(ShiftStatus? t) { + _status.value = t; + return this; + } + FilterShiftsVariablesBuilder orderId(String? t) { + _orderId.value = t; + return this; + } + FilterShiftsVariablesBuilder dateFrom(Timestamp? t) { + _dateFrom.value = t; + return this; + } + FilterShiftsVariablesBuilder dateTo(Timestamp? t) { + _dateTo.value = t; + return this; + } + FilterShiftsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + FilterShiftsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterShifts() +.status(status) +.orderId(orderId) +.dateFrom(dateFrom) +.dateTo(dateTo) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterShifts(); +filterShiftsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterShifts().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getShiftsByBusinessId +#### Required Arguments +```dart +String businessId = ...; +ExampleConnector.instance.getShiftsByBusinessId( + businessId: businessId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getShiftsByBusinessId, we created `getShiftsByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetShiftsByBusinessIdVariablesBuilder { + ... + GetShiftsByBusinessIdVariablesBuilder dateFrom(Timestamp? t) { + _dateFrom.value = t; + return this; + } + GetShiftsByBusinessIdVariablesBuilder dateTo(Timestamp? t) { + _dateTo.value = t; + return this; + } + GetShiftsByBusinessIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetShiftsByBusinessIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getShiftsByBusinessId( + businessId: businessId, +) +.dateFrom(dateFrom) +.dateTo(dateTo) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getShiftsByBusinessId( + businessId: businessId, +); +getShiftsByBusinessIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessId = ...; + +final ref = ExampleConnector.instance.getShiftsByBusinessId( + businessId: businessId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getShiftsByVendorId +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.getShiftsByVendorId( + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getShiftsByVendorId, we created `getShiftsByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetShiftsByVendorIdVariablesBuilder { + ... + GetShiftsByVendorIdVariablesBuilder dateFrom(Timestamp? t) { + _dateFrom.value = t; + return this; + } + GetShiftsByVendorIdVariablesBuilder dateTo(Timestamp? t) { + _dateTo.value = t; + return this; + } + GetShiftsByVendorIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetShiftsByVendorIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getShiftsByVendorId( + vendorId: vendorId, +) +.dateFrom(dateFrom) +.dateTo(dateTo) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getShiftsByVendorId( + vendorId: vendorId, +); +getShiftsByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; + +final ref = ExampleConnector.instance.getShiftsByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaff +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listStaff().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaff(); +listStaffData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listStaff().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getStaffById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getStaffById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getStaffById( + id: id, +); +getStaffByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getStaffById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getStaffByUserId +#### Required Arguments +```dart +String userId = ...; +ExampleConnector.instance.getStaffByUserId( + userId: userId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getStaffByUserId( + userId: userId, +); +getStaffByUserIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String userId = ...; + +final ref = ExampleConnector.instance.getStaffByUserId( + userId: userId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterStaff +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterStaff().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterStaff, we created `filterStaffBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterStaffVariablesBuilder { + ... + + FilterStaffVariablesBuilder ownerId(String? t) { + _ownerId.value = t; + return this; + } + FilterStaffVariablesBuilder fullName(String? t) { + _fullName.value = t; + return this; + } + FilterStaffVariablesBuilder level(String? t) { + _level.value = t; + return this; + } + FilterStaffVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterStaff() +.ownerId(ownerId) +.fullName(fullName) +.level(level) +.email(email) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterStaff(); +filterStaffData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterStaff().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listTeams +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listTeams().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listTeams(); +listTeamsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listTeams().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTeamById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getTeamById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getTeamById( + id: id, +); +getTeamByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getTeamById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTeamsByOwnerId +#### Required Arguments +```dart +String ownerId = ...; +ExampleConnector.instance.getTeamsByOwnerId( + ownerId: ownerId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getTeamsByOwnerId( + ownerId: ownerId, +); +getTeamsByOwnerIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String ownerId = ...; + +final ref = ExampleConnector.instance.getTeamsByOwnerId( + ownerId: ownerId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getMyTasks +#### Required Arguments +```dart +String teamMemberId = ...; +ExampleConnector.instance.getMyTasks( + teamMemberId: teamMemberId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getMyTasks( + teamMemberId: teamMemberId, +); +getMyTasksData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String teamMemberId = ...; + +final ref = ExampleConnector.instance.getMyTasks( + teamMemberId: teamMemberId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getMemberTaskByIdKey +#### Required Arguments +```dart +String teamMemberId = ...; +String taskId = ...; +ExampleConnector.instance.getMemberTaskByIdKey( + teamMemberId: teamMemberId, + taskId: taskId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getMemberTaskByIdKey( + teamMemberId: teamMemberId, + taskId: taskId, +); +getMemberTaskByIdKeyData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String teamMemberId = ...; +String taskId = ...; + +final ref = ExampleConnector.instance.getMemberTaskByIdKey( + teamMemberId: teamMemberId, + taskId: taskId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getMemberTasksByTaskId +#### Required Arguments +```dart +String taskId = ...; +ExampleConnector.instance.getMemberTasksByTaskId( + taskId: taskId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getMemberTasksByTaskId( + taskId: taskId, +); +getMemberTasksByTaskIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String taskId = ...; + +final ref = ExampleConnector.instance.getMemberTasksByTaskId( + taskId: taskId, +).ref(); ref.execute(); ref.subscribe(...); @@ -1781,585 +2444,6 @@ ref.subscribe(...); ``` -### listRoleCategories -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listRoleCategories().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listRoleCategories(); -listRoleCategoriesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listRoleCategories().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getRoleCategoryById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getRoleCategoryById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getRoleCategoryById( - id: id, -); -getRoleCategoryByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getRoleCategoryById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getRoleCategoriesByCategory -#### Required Arguments -```dart -RoleCategoryType category = ...; -ExampleConnector.instance.getRoleCategoriesByCategory( - category: category, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getRoleCategoriesByCategory( - category: category, -); -getRoleCategoriesByCategoryData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -RoleCategoryType category = ...; - -final ref = ExampleConnector.instance.getRoleCategoriesByCategory( - category: category, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getVendorById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getVendorById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getVendorById( - id: id, -); -getVendorByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getVendorById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getVendorByUserId -#### Required Arguments -```dart -String userId = ...; -ExampleConnector.instance.getVendorByUserId( - userId: userId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getVendorByUserId( - userId: userId, -); -getVendorByUserIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String userId = ...; - -final ref = ExampleConnector.instance.getVendorByUserId( - userId: userId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listVendors -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listVendors().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listVendors(); -listVendorsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listVendors().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getWorkforceById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getWorkforceById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getWorkforceById( - id: id, -); -getWorkforceByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getWorkforceById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getWorkforceByVendorAndStaff -#### Required Arguments -```dart -String vendorId = ...; -String staffId = ...; -ExampleConnector.instance.getWorkforceByVendorAndStaff( - vendorId: vendorId, - staffId: staffId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getWorkforceByVendorAndStaff( - vendorId: vendorId, - staffId: staffId, -); -getWorkforceByVendorAndStaffData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; -String staffId = ...; - -final ref = ExampleConnector.instance.getWorkforceByVendorAndStaff( - vendorId: vendorId, - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listWorkforceByVendorId -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.listWorkforceByVendorId( - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listWorkforceByVendorId, we created `listWorkforceByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListWorkforceByVendorIdVariablesBuilder { - ... - ListWorkforceByVendorIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListWorkforceByVendorIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listWorkforceByVendorId( - vendorId: vendorId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listWorkforceByVendorId( - vendorId: vendorId, -); -listWorkforceByVendorIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; - -final ref = ExampleConnector.instance.listWorkforceByVendorId( - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listWorkforceByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.listWorkforceByStaffId( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listWorkforceByStaffId, we created `listWorkforceByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListWorkforceByStaffIdVariablesBuilder { - ... - ListWorkforceByStaffIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListWorkforceByStaffIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listWorkforceByStaffId( - staffId: staffId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listWorkforceByStaffId( - staffId: staffId, -); -listWorkforceByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.listWorkforceByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getWorkforceByVendorAndNumber -#### Required Arguments -```dart -String vendorId = ...; -String workforceNumber = ...; -ExampleConnector.instance.getWorkforceByVendorAndNumber( - vendorId: vendorId, - workforceNumber: workforceNumber, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getWorkforceByVendorAndNumber( - vendorId: vendorId, - workforceNumber: workforceNumber, -); -getWorkforceByVendorAndNumberData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; -String workforceNumber = ...; - -final ref = ExampleConnector.instance.getWorkforceByVendorAndNumber( - vendorId: vendorId, - workforceNumber: workforceNumber, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - ### listTasks #### Required Arguments ```dart @@ -2562,4269 +2646,6 @@ ref.subscribe(...); ``` -### listUsers -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listUsers().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listUsers(); -listUsersData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listUsers().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getUserById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getUserById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getUserById( - id: id, -); -getUserByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getUserById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterUsers -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterUsers().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterUsers, we created `filterUsersBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterUsersVariablesBuilder { - ... - - FilterUsersVariablesBuilder id(String? t) { - _id.value = t; - return this; - } - FilterUsersVariablesBuilder email(String? t) { - _email.value = t; - return this; - } - FilterUsersVariablesBuilder role(UserBaseRole? t) { - _role.value = t; - return this; - } - FilterUsersVariablesBuilder userRole(String? t) { - _userRole.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterUsers() -.id(id) -.email(email) -.role(role) -.userRole(userRole) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterUsers(); -filterUsersData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterUsers().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listClientFeedbacks -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listClientFeedbacks().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listClientFeedbacks, we created `listClientFeedbacksBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListClientFeedbacksVariablesBuilder { - ... - - ListClientFeedbacksVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListClientFeedbacksVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listClientFeedbacks() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listClientFeedbacks(); -listClientFeedbacksData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listClientFeedbacks().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getClientFeedbackById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getClientFeedbackById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getClientFeedbackById( - id: id, -); -getClientFeedbackByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getClientFeedbackById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listClientFeedbacksByBusinessId -#### Required Arguments -```dart -String businessId = ...; -ExampleConnector.instance.listClientFeedbacksByBusinessId( - businessId: businessId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listClientFeedbacksByBusinessId, we created `listClientFeedbacksByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListClientFeedbacksByBusinessIdVariablesBuilder { - ... - ListClientFeedbacksByBusinessIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListClientFeedbacksByBusinessIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listClientFeedbacksByBusinessId( - businessId: businessId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listClientFeedbacksByBusinessId( - businessId: businessId, -); -listClientFeedbacksByBusinessIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String businessId = ...; - -final ref = ExampleConnector.instance.listClientFeedbacksByBusinessId( - businessId: businessId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listClientFeedbacksByVendorId -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.listClientFeedbacksByVendorId( - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listClientFeedbacksByVendorId, we created `listClientFeedbacksByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListClientFeedbacksByVendorIdVariablesBuilder { - ... - ListClientFeedbacksByVendorIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListClientFeedbacksByVendorIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listClientFeedbacksByVendorId( - vendorId: vendorId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listClientFeedbacksByVendorId( - vendorId: vendorId, -); -listClientFeedbacksByVendorIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; - -final ref = ExampleConnector.instance.listClientFeedbacksByVendorId( - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listClientFeedbacksByBusinessAndVendor -#### Required Arguments -```dart -String businessId = ...; -String vendorId = ...; -ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor( - businessId: businessId, - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listClientFeedbacksByBusinessAndVendor, we created `listClientFeedbacksByBusinessAndVendorBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListClientFeedbacksByBusinessAndVendorVariablesBuilder { - ... - ListClientFeedbacksByBusinessAndVendorVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListClientFeedbacksByBusinessAndVendorVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor( - businessId: businessId, - vendorId: vendorId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor( - businessId: businessId, - vendorId: vendorId, -); -listClientFeedbacksByBusinessAndVendorData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String businessId = ...; -String vendorId = ...; - -final ref = ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor( - businessId: businessId, - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterClientFeedbacks -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterClientFeedbacks().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterClientFeedbacks, we created `filterClientFeedbacksBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterClientFeedbacksVariablesBuilder { - ... - - FilterClientFeedbacksVariablesBuilder businessId(String? t) { - _businessId.value = t; - return this; - } - FilterClientFeedbacksVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } - FilterClientFeedbacksVariablesBuilder ratingMin(int? t) { - _ratingMin.value = t; - return this; - } - FilterClientFeedbacksVariablesBuilder ratingMax(int? t) { - _ratingMax.value = t; - return this; - } - FilterClientFeedbacksVariablesBuilder dateFrom(Timestamp? t) { - _dateFrom.value = t; - return this; - } - FilterClientFeedbacksVariablesBuilder dateTo(Timestamp? t) { - _dateTo.value = t; - return this; - } - FilterClientFeedbacksVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - FilterClientFeedbacksVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterClientFeedbacks() -.businessId(businessId) -.vendorId(vendorId) -.ratingMin(ratingMin) -.ratingMax(ratingMax) -.dateFrom(dateFrom) -.dateTo(dateTo) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterClientFeedbacks(); -filterClientFeedbacksData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterClientFeedbacks().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listClientFeedbackRatingsByVendorId -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.listClientFeedbackRatingsByVendorId( - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listClientFeedbackRatingsByVendorId, we created `listClientFeedbackRatingsByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListClientFeedbackRatingsByVendorIdVariablesBuilder { - ... - ListClientFeedbackRatingsByVendorIdVariablesBuilder dateFrom(Timestamp? t) { - _dateFrom.value = t; - return this; - } - ListClientFeedbackRatingsByVendorIdVariablesBuilder dateTo(Timestamp? t) { - _dateTo.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listClientFeedbackRatingsByVendorId( - vendorId: vendorId, -) -.dateFrom(dateFrom) -.dateTo(dateTo) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listClientFeedbackRatingsByVendorId( - vendorId: vendorId, -); -listClientFeedbackRatingsByVendorIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; - -final ref = ExampleConnector.instance.listClientFeedbackRatingsByVendorId( - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listCustomRateCards -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listCustomRateCards().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listCustomRateCards(); -listCustomRateCardsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listCustomRateCards().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getCustomRateCardById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getCustomRateCardById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getCustomRateCardById( - id: id, -); -getCustomRateCardByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getCustomRateCardById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaff -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listStaff().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaff(); -listStaffData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listStaff().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getStaffById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getStaffById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getStaffById( - id: id, -); -getStaffByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getStaffById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getStaffByUserId -#### Required Arguments -```dart -String userId = ...; -ExampleConnector.instance.getStaffByUserId( - userId: userId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getStaffByUserId( - userId: userId, -); -getStaffByUserIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String userId = ...; - -final ref = ExampleConnector.instance.getStaffByUserId( - userId: userId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterStaff -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterStaff().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterStaff, we created `filterStaffBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterStaffVariablesBuilder { - ... - - FilterStaffVariablesBuilder ownerId(String? t) { - _ownerId.value = t; - return this; - } - FilterStaffVariablesBuilder fullName(String? t) { - _fullName.value = t; - return this; - } - FilterStaffVariablesBuilder level(String? t) { - _level.value = t; - return this; - } - FilterStaffVariablesBuilder email(String? t) { - _email.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterStaff() -.ownerId(ownerId) -.fullName(fullName) -.level(level) -.email(email) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterStaff(); -filterStaffData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterStaff().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listCategories -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listCategories().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listCategories(); -listCategoriesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listCategories().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getCategoryById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getCategoryById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getCategoryById( - id: id, -); -getCategoryByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getCategoryById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterCategories -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterCategories().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterCategories, we created `filterCategoriesBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterCategoriesVariablesBuilder { - ... - - FilterCategoriesVariablesBuilder categoryId(String? t) { - _categoryId.value = t; - return this; - } - FilterCategoriesVariablesBuilder label(String? t) { - _label.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterCategories() -.categoryId(categoryId) -.label(label) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterCategories(); -filterCategoriesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterCategories().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listMessages -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listMessages().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listMessages(); -listMessagesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listMessages().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getMessageById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getMessageById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getMessageById( - id: id, -); -getMessageByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getMessageById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getMessagesByConversationId -#### Required Arguments -```dart -String conversationId = ...; -ExampleConnector.instance.getMessagesByConversationId( - conversationId: conversationId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getMessagesByConversationId( - conversationId: conversationId, -); -getMessagesByConversationIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String conversationId = ...; - -final ref = ExampleConnector.instance.getMessagesByConversationId( - conversationId: conversationId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listOrders -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listOrders().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listOrders, we created `listOrdersBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListOrdersVariablesBuilder { - ... - - ListOrdersVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListOrdersVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listOrders() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listOrders(); -listOrdersData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listOrders().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getOrderById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getOrderById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getOrderById( - id: id, -); -getOrderByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getOrderById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getOrdersByBusinessId -#### Required Arguments -```dart -String businessId = ...; -ExampleConnector.instance.getOrdersByBusinessId( - businessId: businessId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getOrdersByBusinessId, we created `getOrdersByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetOrdersByBusinessIdVariablesBuilder { - ... - GetOrdersByBusinessIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetOrdersByBusinessIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getOrdersByBusinessId( - businessId: businessId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getOrdersByBusinessId( - businessId: businessId, -); -getOrdersByBusinessIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String businessId = ...; - -final ref = ExampleConnector.instance.getOrdersByBusinessId( - businessId: businessId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getOrdersByVendorId -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.getOrdersByVendorId( - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getOrdersByVendorId, we created `getOrdersByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetOrdersByVendorIdVariablesBuilder { - ... - GetOrdersByVendorIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetOrdersByVendorIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getOrdersByVendorId( - vendorId: vendorId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getOrdersByVendorId( - vendorId: vendorId, -); -getOrdersByVendorIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; - -final ref = ExampleConnector.instance.getOrdersByVendorId( - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getOrdersByStatus -#### Required Arguments -```dart -OrderStatus status = ...; -ExampleConnector.instance.getOrdersByStatus( - status: status, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getOrdersByStatus, we created `getOrdersByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetOrdersByStatusVariablesBuilder { - ... - GetOrdersByStatusVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetOrdersByStatusVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getOrdersByStatus( - status: status, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getOrdersByStatus( - status: status, -); -getOrdersByStatusData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -OrderStatus status = ...; - -final ref = ExampleConnector.instance.getOrdersByStatus( - status: status, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getOrdersByDateRange -#### Required Arguments -```dart -Timestamp start = ...; -Timestamp end = ...; -ExampleConnector.instance.getOrdersByDateRange( - start: start, - end: end, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getOrdersByDateRange, we created `getOrdersByDateRangeBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetOrdersByDateRangeVariablesBuilder { - ... - GetOrdersByDateRangeVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetOrdersByDateRangeVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getOrdersByDateRange( - start: start, - end: end, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getOrdersByDateRange( - start: start, - end: end, -); -getOrdersByDateRangeData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -Timestamp start = ...; -Timestamp end = ...; - -final ref = ExampleConnector.instance.getOrdersByDateRange( - start: start, - end: end, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getRapidOrders -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.getRapidOrders().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getRapidOrders, we created `getRapidOrdersBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetRapidOrdersVariablesBuilder { - ... - - GetRapidOrdersVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetRapidOrdersVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getRapidOrders() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getRapidOrders(); -getRapidOrdersData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.getRapidOrders().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getStaffCourseById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getStaffCourseById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getStaffCourseById( - id: id, -); -getStaffCourseByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getStaffCourseById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffCoursesByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.listStaffCoursesByStaffId( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffCoursesByStaffId, we created `listStaffCoursesByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffCoursesByStaffIdVariablesBuilder { - ... - ListStaffCoursesByStaffIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffCoursesByStaffIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffCoursesByStaffId( - staffId: staffId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffCoursesByStaffId( - staffId: staffId, -); -listStaffCoursesByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.listStaffCoursesByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffCoursesByCourseId -#### Required Arguments -```dart -String courseId = ...; -ExampleConnector.instance.listStaffCoursesByCourseId( - courseId: courseId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffCoursesByCourseId, we created `listStaffCoursesByCourseIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffCoursesByCourseIdVariablesBuilder { - ... - ListStaffCoursesByCourseIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffCoursesByCourseIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffCoursesByCourseId( - courseId: courseId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffCoursesByCourseId( - courseId: courseId, -); -listStaffCoursesByCourseIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String courseId = ...; - -final ref = ExampleConnector.instance.listStaffCoursesByCourseId( - courseId: courseId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getStaffCourseByStaffAndCourse -#### Required Arguments -```dart -String staffId = ...; -String courseId = ...; -ExampleConnector.instance.getStaffCourseByStaffAndCourse( - staffId: staffId, - courseId: courseId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getStaffCourseByStaffAndCourse( - staffId: staffId, - courseId: courseId, -); -getStaffCourseByStaffAndCourseData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String courseId = ...; - -final ref = ExampleConnector.instance.getStaffCourseByStaffAndCourse( - staffId: staffId, - courseId: courseId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listTaxForms -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listTaxForms().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listTaxForms(); -listTaxFormsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listTaxForms().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTaxFormById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getTaxFormById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getTaxFormById( - id: id, -); -getTaxFormByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getTaxFormById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTaxFormsBystaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.getTaxFormsBystaffId( - staffId: staffId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getTaxFormsBystaffId( - staffId: staffId, -); -getTaxFormsBystaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.getTaxFormsBystaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterTaxForms -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterTaxForms().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterTaxForms, we created `filterTaxFormsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterTaxFormsVariablesBuilder { - ... - - FilterTaxFormsVariablesBuilder formType(TaxFormType? t) { - _formType.value = t; - return this; - } - FilterTaxFormsVariablesBuilder status(TaxFormStatus? t) { - _status.value = t; - return this; - } - FilterTaxFormsVariablesBuilder staffId(String? t) { - _staffId.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterTaxForms() -.formType(formType) -.status(status) -.staffId(staffId) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterTaxForms(); -filterTaxFormsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterTaxForms().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listTeamMembers -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listTeamMembers().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listTeamMembers(); -listTeamMembersData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listTeamMembers().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTeamMemberById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getTeamMemberById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getTeamMemberById( - id: id, -); -getTeamMemberByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getTeamMemberById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTeamMembersByTeamId -#### Required Arguments -```dart -String teamId = ...; -ExampleConnector.instance.getTeamMembersByTeamId( - teamId: teamId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getTeamMembersByTeamId( - teamId: teamId, -); -getTeamMembersByTeamIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String teamId = ...; - -final ref = ExampleConnector.instance.getTeamMembersByTeamId( - teamId: teamId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listCertificates -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listCertificates().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listCertificates(); -listCertificatesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listCertificates().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getCertificateById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getCertificateById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getCertificateById( - id: id, -); -getCertificateByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getCertificateById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listCertificatesByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.listCertificatesByStaffId( - staffId: staffId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listCertificatesByStaffId( - staffId: staffId, -); -listCertificatesByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.listCertificatesByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRoles -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listRoles().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listRoles(); -listRolesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listRoles().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getRoleById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getRoleById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getRoleById( - id: id, -); -getRoleByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getRoleById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRolesByVendorId -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.listRolesByVendorId( - vendorId: vendorId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listRolesByVendorId( - vendorId: vendorId, -); -listRolesByVendorIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; - -final ref = ExampleConnector.instance.listRolesByVendorId( - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRolesByroleCategoryId -#### Required Arguments -```dart -String roleCategoryId = ...; -ExampleConnector.instance.listRolesByroleCategoryId( - roleCategoryId: roleCategoryId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listRolesByroleCategoryId( - roleCategoryId: roleCategoryId, -); -listRolesByroleCategoryIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String roleCategoryId = ...; - -final ref = ExampleConnector.instance.listRolesByroleCategoryId( - roleCategoryId: roleCategoryId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffAvailabilities -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listStaffAvailabilities().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffAvailabilities, we created `listStaffAvailabilitiesBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffAvailabilitiesVariablesBuilder { - ... - - ListStaffAvailabilitiesVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffAvailabilitiesVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffAvailabilities() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffAvailabilities(); -listStaffAvailabilitiesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listStaffAvailabilities().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffAvailabilitiesByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.listStaffAvailabilitiesByStaffId( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffAvailabilitiesByStaffId, we created `listStaffAvailabilitiesByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffAvailabilitiesByStaffIdVariablesBuilder { - ... - ListStaffAvailabilitiesByStaffIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffAvailabilitiesByStaffIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffAvailabilitiesByStaffId( - staffId: staffId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffAvailabilitiesByStaffId( - staffId: staffId, -); -listStaffAvailabilitiesByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.listStaffAvailabilitiesByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getStaffAvailabilityByKey -#### Required Arguments -```dart -String staffId = ...; -DayOfWeek day = ...; -AvailabilitySlot slot = ...; -ExampleConnector.instance.getStaffAvailabilityByKey( - staffId: staffId, - day: day, - slot: slot, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getStaffAvailabilityByKey( - staffId: staffId, - day: day, - slot: slot, -); -getStaffAvailabilityByKeyData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -DayOfWeek day = ...; -AvailabilitySlot slot = ...; - -final ref = ExampleConnector.instance.getStaffAvailabilityByKey( - staffId: staffId, - day: day, - slot: slot, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffAvailabilitiesByDay -#### Required Arguments -```dart -DayOfWeek day = ...; -ExampleConnector.instance.listStaffAvailabilitiesByDay( - day: day, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffAvailabilitiesByDay, we created `listStaffAvailabilitiesByDayBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffAvailabilitiesByDayVariablesBuilder { - ... - ListStaffAvailabilitiesByDayVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffAvailabilitiesByDayVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffAvailabilitiesByDay( - day: day, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffAvailabilitiesByDay( - day: day, -); -listStaffAvailabilitiesByDayData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -DayOfWeek day = ...; - -final ref = ExampleConnector.instance.listStaffAvailabilitiesByDay( - day: day, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listConversations -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listConversations().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listConversations, we created `listConversationsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListConversationsVariablesBuilder { - ... - - ListConversationsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListConversationsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listConversations() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listConversations(); -listConversationsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listConversations().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getConversationById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getConversationById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getConversationById( - id: id, -); -getConversationByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getConversationById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listConversationsByType -#### Required Arguments -```dart -ConversationType conversationType = ...; -ExampleConnector.instance.listConversationsByType( - conversationType: conversationType, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listConversationsByType, we created `listConversationsByTypeBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListConversationsByTypeVariablesBuilder { - ... - ListConversationsByTypeVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListConversationsByTypeVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listConversationsByType( - conversationType: conversationType, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listConversationsByType( - conversationType: conversationType, -); -listConversationsByTypeData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -ConversationType conversationType = ...; - -final ref = ExampleConnector.instance.listConversationsByType( - conversationType: conversationType, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listConversationsByStatus -#### Required Arguments -```dart -ConversationStatus status = ...; -ExampleConnector.instance.listConversationsByStatus( - status: status, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listConversationsByStatus, we created `listConversationsByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListConversationsByStatusVariablesBuilder { - ... - ListConversationsByStatusVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListConversationsByStatusVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listConversationsByStatus( - status: status, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listConversationsByStatus( - status: status, -); -listConversationsByStatusData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -ConversationStatus status = ...; - -final ref = ExampleConnector.instance.listConversationsByStatus( - status: status, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterConversations -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterConversations().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterConversations, we created `filterConversationsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterConversationsVariablesBuilder { - ... - - FilterConversationsVariablesBuilder status(ConversationStatus? t) { - _status.value = t; - return this; - } - FilterConversationsVariablesBuilder conversationType(ConversationType? t) { - _conversationType.value = t; - return this; - } - FilterConversationsVariablesBuilder isGroup(bool? t) { - _isGroup.value = t; - return this; - } - FilterConversationsVariablesBuilder lastMessageAfter(Timestamp? t) { - _lastMessageAfter.value = t; - return this; - } - FilterConversationsVariablesBuilder lastMessageBefore(Timestamp? t) { - _lastMessageBefore.value = t; - return this; - } - FilterConversationsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - FilterConversationsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterConversations() -.status(status) -.conversationType(conversationType) -.isGroup(isGroup) -.lastMessageAfter(lastMessageAfter) -.lastMessageBefore(lastMessageBefore) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterConversations(); -filterConversationsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterConversations().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listCourses -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listCourses().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listCourses(); -listCoursesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listCourses().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getCourseById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getCourseById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getCourseById( - id: id, -); -getCourseByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getCourseById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterCourses -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterCourses().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterCourses, we created `filterCoursesBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterCoursesVariablesBuilder { - ... - - FilterCoursesVariablesBuilder categoryId(String? t) { - _categoryId.value = t; - return this; - } - FilterCoursesVariablesBuilder isCertification(bool? t) { - _isCertification.value = t; - return this; - } - FilterCoursesVariablesBuilder levelRequired(String? t) { - _levelRequired.value = t; - return this; - } - FilterCoursesVariablesBuilder completed(bool? t) { - _completed.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterCourses() -.categoryId(categoryId) -.isCertification(isCertification) -.levelRequired(levelRequired) -.completed(completed) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterCourses(); -filterCoursesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterCourses().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getMyTasks -#### Required Arguments -```dart -String teamMemberId = ...; -ExampleConnector.instance.getMyTasks( - teamMemberId: teamMemberId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getMyTasks( - teamMemberId: teamMemberId, -); -getMyTasksData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String teamMemberId = ...; - -final ref = ExampleConnector.instance.getMyTasks( - teamMemberId: teamMemberId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getMemberTaskByIdKey -#### Required Arguments -```dart -String teamMemberId = ...; -String taskId = ...; -ExampleConnector.instance.getMemberTaskByIdKey( - teamMemberId: teamMemberId, - taskId: taskId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getMemberTaskByIdKey( - teamMemberId: teamMemberId, - taskId: taskId, -); -getMemberTaskByIdKeyData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String teamMemberId = ...; -String taskId = ...; - -final ref = ExampleConnector.instance.getMemberTaskByIdKey( - teamMemberId: teamMemberId, - taskId: taskId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getMemberTasksByTaskId -#### Required Arguments -```dart -String taskId = ...; -ExampleConnector.instance.getMemberTasksByTaskId( - taskId: taskId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getMemberTasksByTaskId( - taskId: taskId, -); -getMemberTasksByTaskIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String taskId = ...; - -final ref = ExampleConnector.instance.getMemberTasksByTaskId( - taskId: taskId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listShifts -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listShifts().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listShifts, we created `listShiftsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListShiftsVariablesBuilder { - ... - - ListShiftsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListShiftsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listShifts() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listShifts(); -listShiftsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listShifts().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getShiftById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getShiftById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getShiftById( - id: id, -); -getShiftByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getShiftById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterShifts -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterShifts().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterShifts, we created `filterShiftsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterShiftsVariablesBuilder { - ... - - FilterShiftsVariablesBuilder status(ShiftStatus? t) { - _status.value = t; - return this; - } - FilterShiftsVariablesBuilder orderId(String? t) { - _orderId.value = t; - return this; - } - FilterShiftsVariablesBuilder dateFrom(Timestamp? t) { - _dateFrom.value = t; - return this; - } - FilterShiftsVariablesBuilder dateTo(Timestamp? t) { - _dateTo.value = t; - return this; - } - FilterShiftsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - FilterShiftsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterShifts() -.status(status) -.orderId(orderId) -.dateFrom(dateFrom) -.dateTo(dateTo) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterShifts(); -filterShiftsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterShifts().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getShiftsByBusinessId -#### Required Arguments -```dart -String businessId = ...; -ExampleConnector.instance.getShiftsByBusinessId( - businessId: businessId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getShiftsByBusinessId, we created `getShiftsByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetShiftsByBusinessIdVariablesBuilder { - ... - GetShiftsByBusinessIdVariablesBuilder dateFrom(Timestamp? t) { - _dateFrom.value = t; - return this; - } - GetShiftsByBusinessIdVariablesBuilder dateTo(Timestamp? t) { - _dateTo.value = t; - return this; - } - GetShiftsByBusinessIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetShiftsByBusinessIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getShiftsByBusinessId( - businessId: businessId, -) -.dateFrom(dateFrom) -.dateTo(dateTo) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getShiftsByBusinessId( - businessId: businessId, -); -getShiftsByBusinessIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String businessId = ...; - -final ref = ExampleConnector.instance.getShiftsByBusinessId( - businessId: businessId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getShiftsByVendorId -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.getShiftsByVendorId( - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getShiftsByVendorId, we created `getShiftsByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetShiftsByVendorIdVariablesBuilder { - ... - GetShiftsByVendorIdVariablesBuilder dateFrom(Timestamp? t) { - _dateFrom.value = t; - return this; - } - GetShiftsByVendorIdVariablesBuilder dateTo(Timestamp? t) { - _dateTo.value = t; - return this; - } - GetShiftsByVendorIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetShiftsByVendorIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getShiftsByVendorId( - vendorId: vendorId, -) -.dateFrom(dateFrom) -.dateTo(dateTo) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getShiftsByVendorId( - vendorId: vendorId, -); -getShiftsByVendorIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; - -final ref = ExampleConnector.instance.getShiftsByVendorId( - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffRoles -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listStaffRoles().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffRoles, we created `listStaffRolesBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffRolesVariablesBuilder { - ... - - ListStaffRolesVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffRolesVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffRoles() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffRoles(); -listStaffRolesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listStaffRoles().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getStaffRoleByKey -#### Required Arguments -```dart -String staffId = ...; -String roleId = ...; -ExampleConnector.instance.getStaffRoleByKey( - staffId: staffId, - roleId: roleId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getStaffRoleByKey( - staffId: staffId, - roleId: roleId, -); -getStaffRoleByKeyData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String roleId = ...; - -final ref = ExampleConnector.instance.getStaffRoleByKey( - staffId: staffId, - roleId: roleId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffRolesByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.listStaffRolesByStaffId( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffRolesByStaffId, we created `listStaffRolesByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffRolesByStaffIdVariablesBuilder { - ... - ListStaffRolesByStaffIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffRolesByStaffIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffRolesByStaffId( - staffId: staffId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffRolesByStaffId( - staffId: staffId, -); -listStaffRolesByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.listStaffRolesByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffRolesByRoleId -#### Required Arguments -```dart -String roleId = ...; -ExampleConnector.instance.listStaffRolesByRoleId( - roleId: roleId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffRolesByRoleId, we created `listStaffRolesByRoleIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffRolesByRoleIdVariablesBuilder { - ... - ListStaffRolesByRoleIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffRolesByRoleIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffRolesByRoleId( - roleId: roleId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffRolesByRoleId( - roleId: roleId, -); -listStaffRolesByRoleIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String roleId = ...; - -final ref = ExampleConnector.instance.listStaffRolesByRoleId( - roleId: roleId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterStaffRoles -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterStaffRoles().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterStaffRoles, we created `filterStaffRolesBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterStaffRolesVariablesBuilder { - ... - - FilterStaffRolesVariablesBuilder staffId(String? t) { - _staffId.value = t; - return this; - } - FilterStaffRolesVariablesBuilder roleId(String? t) { - _roleId.value = t; - return this; - } - FilterStaffRolesVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - FilterStaffRolesVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterStaffRoles() -.staffId(staffId) -.roleId(roleId) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterStaffRoles(); -filterStaffRolesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterStaffRoles().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - ### listApplications #### Required Arguments ```dart @@ -7360,178 +3181,39 @@ ref.subscribe(...); ``` -### listBusinesses +### listBenefitsData #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listBusinesses().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listBusinesses(); -listBusinessesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listBusinesses().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getBusinessesByUserId -#### Required Arguments -```dart -String userId = ...; -ExampleConnector.instance.getBusinessesByUserId( - userId: userId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getBusinessesByUserId( - userId: userId, -); -getBusinessesByUserIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String userId = ...; - -final ref = ExampleConnector.instance.getBusinessesByUserId( - userId: userId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getBusinessById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getBusinessById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getBusinessById( - id: id, -); -getBusinessByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getBusinessById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listInvoiceTemplates -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listInvoiceTemplates().execute(); +ExampleConnector.instance.listBenefitsData().execute(); ``` #### Optional Arguments -We return a builder for each query. For listInvoiceTemplates, we created `listInvoiceTemplatesBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listBenefitsData, we created `listBenefitsDataBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListInvoiceTemplatesVariablesBuilder { +class ListBenefitsDataVariablesBuilder { ... - ListInvoiceTemplatesVariablesBuilder offset(int? t) { + ListBenefitsDataVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListInvoiceTemplatesVariablesBuilder limit(int? t) { + ListBenefitsDataVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listInvoiceTemplates() +ExampleConnector.instance.listBenefitsData() .offset(offset) .limit(limit) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -7546,8 +3228,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listInvoiceTemplates(); -listInvoiceTemplatesData data = result.data; +final result = await ExampleConnector.instance.listBenefitsData(); +listBenefitsDataData data = result.data; final ref = result.ref; ``` @@ -7555,26 +3237,28 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.listInvoiceTemplates().ref(); +final ref = ExampleConnector.instance.listBenefitsData().ref(); ref.execute(); ref.subscribe(...); ``` -### getInvoiceTemplateById +### getBenefitsDataByKey #### Required Arguments ```dart -String id = ...; -ExampleConnector.instance.getInvoiceTemplateById( - id: id, +String staffId = ...; +String vendorBenefitPlanId = ...; +ExampleConnector.instance.getBenefitsDataByKey( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, ).execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -7589,10 +3273,11 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getInvoiceTemplateById( - id: id, +final result = await ExampleConnector.instance.getBenefitsDataByKey( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, ); -getInvoiceTemplateByIdData data = result.data; +getBenefitsDataByKeyData data = result.data; final ref = result.ref; ``` @@ -7600,10 +3285,12 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String id = ...; +String staffId = ...; +String vendorBenefitPlanId = ...; -final ref = ExampleConnector.instance.getInvoiceTemplateById( - id: id, +final ref = ExampleConnector.instance.getBenefitsDataByKey( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, ).ref(); ref.execute(); @@ -7611,34 +3298,34 @@ ref.subscribe(...); ``` -### listInvoiceTemplatesByOwnerId +### listBenefitsDataByStaffId #### Required Arguments ```dart -String ownerId = ...; -ExampleConnector.instance.listInvoiceTemplatesByOwnerId( - ownerId: ownerId, +String staffId = ...; +ExampleConnector.instance.listBenefitsDataByStaffId( + staffId: staffId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For listInvoiceTemplatesByOwnerId, we created `listInvoiceTemplatesByOwnerIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listBenefitsDataByStaffId, we created `listBenefitsDataByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListInvoiceTemplatesByOwnerIdVariablesBuilder { +class ListBenefitsDataByStaffIdVariablesBuilder { ... - ListInvoiceTemplatesByOwnerIdVariablesBuilder offset(int? t) { + ListBenefitsDataByStaffIdVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListInvoiceTemplatesByOwnerIdVariablesBuilder limit(int? t) { + ListBenefitsDataByStaffIdVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listInvoiceTemplatesByOwnerId( - ownerId: ownerId, +ExampleConnector.instance.listBenefitsDataByStaffId( + staffId: staffId, ) .offset(offset) .limit(limit) @@ -7646,7 +3333,7 @@ ExampleConnector.instance.listInvoiceTemplatesByOwnerId( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -7661,10 +3348,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listInvoiceTemplatesByOwnerId( - ownerId: ownerId, +final result = await ExampleConnector.instance.listBenefitsDataByStaffId( + staffId: staffId, ); -listInvoiceTemplatesByOwnerIdData data = result.data; +listBenefitsDataByStaffIdData data = result.data; final ref = result.ref; ``` @@ -7672,10 +3359,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String ownerId = ...; +String staffId = ...; -final ref = ExampleConnector.instance.listInvoiceTemplatesByOwnerId( - ownerId: ownerId, +final ref = ExampleConnector.instance.listBenefitsDataByStaffId( + staffId: staffId, ).ref(); ref.execute(); @@ -7683,34 +3370,34 @@ ref.subscribe(...); ``` -### listInvoiceTemplatesByVendorId +### listBenefitsDataByVendorBenefitPlanId #### Required Arguments ```dart -String vendorId = ...; -ExampleConnector.instance.listInvoiceTemplatesByVendorId( - vendorId: vendorId, +String vendorBenefitPlanId = ...; +ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( + vendorBenefitPlanId: vendorBenefitPlanId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For listInvoiceTemplatesByVendorId, we created `listInvoiceTemplatesByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listBenefitsDataByVendorBenefitPlanId, we created `listBenefitsDataByVendorBenefitPlanIdBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListInvoiceTemplatesByVendorIdVariablesBuilder { +class ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder { ... - ListInvoiceTemplatesByVendorIdVariablesBuilder offset(int? t) { + ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListInvoiceTemplatesByVendorIdVariablesBuilder limit(int? t) { + ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listInvoiceTemplatesByVendorId( - vendorId: vendorId, +ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( + vendorBenefitPlanId: vendorBenefitPlanId, ) .offset(offset) .limit(limit) @@ -7718,7 +3405,7 @@ ExampleConnector.instance.listInvoiceTemplatesByVendorId( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -7733,10 +3420,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listInvoiceTemplatesByVendorId( - vendorId: vendorId, +final result = await ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( + vendorBenefitPlanId: vendorBenefitPlanId, ); -listInvoiceTemplatesByVendorIdData data = result.data; +listBenefitsDataByVendorBenefitPlanIdData data = result.data; final ref = result.ref; ``` @@ -7744,10 +3431,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String vendorId = ...; +String vendorBenefitPlanId = ...; -final ref = ExampleConnector.instance.listInvoiceTemplatesByVendorId( - vendorId: vendorId, +final ref = ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( + vendorBenefitPlanId: vendorBenefitPlanId, ).ref(); ref.execute(); @@ -7755,34 +3442,34 @@ ref.subscribe(...); ``` -### listInvoiceTemplatesByBusinessId +### listBenefitsDataByVendorBenefitPlanIds #### Required Arguments ```dart -String businessId = ...; -ExampleConnector.instance.listInvoiceTemplatesByBusinessId( - businessId: businessId, +String vendorBenefitPlanIds = ...; +ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( + vendorBenefitPlanIds: vendorBenefitPlanIds, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For listInvoiceTemplatesByBusinessId, we created `listInvoiceTemplatesByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listBenefitsDataByVendorBenefitPlanIds, we created `listBenefitsDataByVendorBenefitPlanIdsBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListInvoiceTemplatesByBusinessIdVariablesBuilder { +class ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder { ... - ListInvoiceTemplatesByBusinessIdVariablesBuilder offset(int? t) { + ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListInvoiceTemplatesByBusinessIdVariablesBuilder limit(int? t) { + ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listInvoiceTemplatesByBusinessId( - businessId: businessId, +ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( + vendorBenefitPlanIds: vendorBenefitPlanIds, ) .offset(offset) .limit(limit) @@ -7790,7 +3477,7 @@ ExampleConnector.instance.listInvoiceTemplatesByBusinessId( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -7805,10 +3492,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listInvoiceTemplatesByBusinessId( - businessId: businessId, +final result = await ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( + vendorBenefitPlanIds: vendorBenefitPlanIds, ); -listInvoiceTemplatesByBusinessIdData data = result.data; +listBenefitsDataByVendorBenefitPlanIdsData data = result.data; final ref = result.ref; ``` @@ -7816,10 +3503,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String businessId = ...; +String vendorBenefitPlanIds = ...; -final ref = ExampleConnector.instance.listInvoiceTemplatesByBusinessId( - businessId: businessId, +final ref = ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( + vendorBenefitPlanIds: vendorBenefitPlanIds, ).ref(); ref.execute(); @@ -7827,167 +3514,17 @@ ref.subscribe(...); ``` -### listInvoiceTemplatesByOrderId -#### Required Arguments -```dart -String orderId = ...; -ExampleConnector.instance.listInvoiceTemplatesByOrderId( - orderId: orderId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listInvoiceTemplatesByOrderId, we created `listInvoiceTemplatesByOrderIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListInvoiceTemplatesByOrderIdVariablesBuilder { - ... - ListInvoiceTemplatesByOrderIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListInvoiceTemplatesByOrderIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listInvoiceTemplatesByOrderId( - orderId: orderId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listInvoiceTemplatesByOrderId( - orderId: orderId, -); -listInvoiceTemplatesByOrderIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String orderId = ...; - -final ref = ExampleConnector.instance.listInvoiceTemplatesByOrderId( - orderId: orderId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### searchInvoiceTemplatesByOwnerAndName -#### Required Arguments -```dart -String ownerId = ...; -String name = ...; -ExampleConnector.instance.searchInvoiceTemplatesByOwnerAndName( - ownerId: ownerId, - name: name, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For searchInvoiceTemplatesByOwnerAndName, we created `searchInvoiceTemplatesByOwnerAndNameBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder { - ... - SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.searchInvoiceTemplatesByOwnerAndName( - ownerId: ownerId, - name: name, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.searchInvoiceTemplatesByOwnerAndName( - ownerId: ownerId, - name: name, -); -searchInvoiceTemplatesByOwnerAndNameData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String ownerId = ...; -String name = ...; - -final ref = ExampleConnector.instance.searchInvoiceTemplatesByOwnerAndName( - ownerId: ownerId, - name: name, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listLevels +### listCertificates #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listLevels().execute(); +ExampleConnector.instance.listCertificates().execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8002,8 +3539,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listLevels(); -listLevelsData data = result.data; +final result = await ExampleConnector.instance.listCertificates(); +listCertificatesData data = result.data; final ref = result.ref; ``` @@ -8011,18 +3548,18 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.listLevels().ref(); +final ref = ExampleConnector.instance.listCertificates().ref(); ref.execute(); ref.subscribe(...); ``` -### getLevelById +### getCertificateById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getLevelById( +ExampleConnector.instance.getCertificateById( id: id, ).execute(); ``` @@ -8030,7 +3567,7 @@ ExampleConnector.instance.getLevelById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8045,10 +3582,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getLevelById( +final result = await ExampleConnector.instance.getCertificateById( id: id, ); -getLevelByIdData data = result.data; +getCertificateByIdData data = result.data; final ref = result.ref; ``` @@ -8058,7 +3595,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getLevelById( +final ref = ExampleConnector.instance.getCertificateById( id: id, ).ref(); ref.execute(); @@ -8067,102 +3604,88 @@ ref.subscribe(...); ``` -### filterLevels +### listCertificatesByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.listCertificatesByStaffId( + staffId: staffId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listCertificatesByStaffId( + staffId: staffId, +); +listCertificatesByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.listCertificatesByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listConversations #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.filterLevels().execute(); +ExampleConnector.instance.listConversations().execute(); ``` #### Optional Arguments -We return a builder for each query. For filterLevels, we created `filterLevelsBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listConversations, we created `listConversationsBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class FilterLevelsVariablesBuilder { +class ListConversationsVariablesBuilder { ... - FilterLevelsVariablesBuilder name(String? t) { - _name.value = t; - return this; - } - FilterLevelsVariablesBuilder xpRequired(int? t) { - _xpRequired.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterLevels() -.name(name) -.xpRequired(xpRequired) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterLevels(); -filterLevelsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterLevels().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listTeamHudDepartments -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listTeamHudDepartments().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listTeamHudDepartments, we created `listTeamHudDepartmentsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListTeamHudDepartmentsVariablesBuilder { - ... - - ListTeamHudDepartmentsVariablesBuilder offset(int? t) { + ListConversationsVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListTeamHudDepartmentsVariablesBuilder limit(int? t) { + ListConversationsVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listTeamHudDepartments() +ExampleConnector.instance.listConversations() .offset(offset) .limit(limit) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8177,8 +3700,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listTeamHudDepartments(); -listTeamHudDepartmentsData data = result.data; +final result = await ExampleConnector.instance.listConversations(); +listConversationsData data = result.data; final ref = result.ref; ``` @@ -8186,18 +3709,18 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.listTeamHudDepartments().ref(); +final ref = ExampleConnector.instance.listConversations().ref(); ref.execute(); ref.subscribe(...); ``` -### getTeamHudDepartmentById +### getConversationById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getTeamHudDepartmentById( +ExampleConnector.instance.getConversationById( id: id, ).execute(); ``` @@ -8205,7 +3728,7 @@ ExampleConnector.instance.getTeamHudDepartmentById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8220,10 +3743,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getTeamHudDepartmentById( +final result = await ExampleConnector.instance.getConversationById( id: id, ); -getTeamHudDepartmentByIdData data = result.data; +getConversationByIdData data = result.data; final ref = result.ref; ``` @@ -8233,7 +3756,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getTeamHudDepartmentById( +final ref = ExampleConnector.instance.getConversationById( id: id, ).ref(); ref.execute(); @@ -8242,34 +3765,34 @@ ref.subscribe(...); ``` -### listTeamHudDepartmentsByTeamHubId +### listConversationsByType #### Required Arguments ```dart -String teamHubId = ...; -ExampleConnector.instance.listTeamHudDepartmentsByTeamHubId( - teamHubId: teamHubId, +ConversationType conversationType = ...; +ExampleConnector.instance.listConversationsByType( + conversationType: conversationType, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For listTeamHudDepartmentsByTeamHubId, we created `listTeamHudDepartmentsByTeamHubIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listConversationsByType, we created `listConversationsByTypeBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListTeamHudDepartmentsByTeamHubIdVariablesBuilder { +class ListConversationsByTypeVariablesBuilder { ... - ListTeamHudDepartmentsByTeamHubIdVariablesBuilder offset(int? t) { + ListConversationsByTypeVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListTeamHudDepartmentsByTeamHubIdVariablesBuilder limit(int? t) { + ListConversationsByTypeVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listTeamHudDepartmentsByTeamHubId( - teamHubId: teamHubId, +ExampleConnector.instance.listConversationsByType( + conversationType: conversationType, ) .offset(offset) .limit(limit) @@ -8277,7 +3800,7 @@ ExampleConnector.instance.listTeamHudDepartmentsByTeamHubId( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8292,10 +3815,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listTeamHudDepartmentsByTeamHubId( - teamHubId: teamHubId, +final result = await ExampleConnector.instance.listConversationsByType( + conversationType: conversationType, ); -listTeamHudDepartmentsByTeamHubIdData data = result.data; +listConversationsByTypeData data = result.data; final ref = result.ref; ``` @@ -8303,10 +3826,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String teamHubId = ...; +ConversationType conversationType = ...; -final ref = ExampleConnector.instance.listTeamHudDepartmentsByTeamHubId( - teamHubId: teamHubId, +final ref = ExampleConnector.instance.listConversationsByType( + conversationType: conversationType, ).ref(); ref.execute(); @@ -8314,6 +3837,166 @@ ref.subscribe(...); ``` +### listConversationsByStatus +#### Required Arguments +```dart +ConversationStatus status = ...; +ExampleConnector.instance.listConversationsByStatus( + status: status, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listConversationsByStatus, we created `listConversationsByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListConversationsByStatusVariablesBuilder { + ... + ListConversationsByStatusVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListConversationsByStatusVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listConversationsByStatus( + status: status, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listConversationsByStatus( + status: status, +); +listConversationsByStatusData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +ConversationStatus status = ...; + +final ref = ExampleConnector.instance.listConversationsByStatus( + status: status, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterConversations +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterConversations().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterConversations, we created `filterConversationsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterConversationsVariablesBuilder { + ... + + FilterConversationsVariablesBuilder status(ConversationStatus? t) { + _status.value = t; + return this; + } + FilterConversationsVariablesBuilder conversationType(ConversationType? t) { + _conversationType.value = t; + return this; + } + FilterConversationsVariablesBuilder isGroup(bool? t) { + _isGroup.value = t; + return this; + } + FilterConversationsVariablesBuilder lastMessageAfter(Timestamp? t) { + _lastMessageAfter.value = t; + return this; + } + FilterConversationsVariablesBuilder lastMessageBefore(Timestamp? t) { + _lastMessageBefore.value = t; + return this; + } + FilterConversationsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + FilterConversationsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterConversations() +.status(status) +.conversationType(conversationType) +.isGroup(isGroup) +.lastMessageAfter(lastMessageAfter) +.lastMessageBefore(lastMessageBefore) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterConversations(); +filterConversationsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterConversations().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + ### listVendorBenefitPlans #### Required Arguments ```dart @@ -8648,17 +4331,17 @@ ref.subscribe(...); ``` -### listAttireOptions +### listVendorRates #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listAttireOptions().execute(); +ExampleConnector.instance.listVendorRates().execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8673,8 +4356,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listAttireOptions(); -listAttireOptionsData data = result.data; +final result = await ExampleConnector.instance.listVendorRates(); +listVendorRatesData data = result.data; final ref = result.ref; ``` @@ -8682,18 +4365,18 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.listAttireOptions().ref(); +final ref = ExampleConnector.instance.listVendorRates().ref(); ref.execute(); ref.subscribe(...); ``` -### getAttireOptionById +### getVendorRateById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getAttireOptionById( +ExampleConnector.instance.getVendorRateById( id: id, ).execute(); ``` @@ -8701,7 +4384,7 @@ ExampleConnector.instance.getAttireOptionById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8716,10 +4399,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getAttireOptionById( +final result = await ExampleConnector.instance.getVendorRateById( id: id, ); -getAttireOptionByIdData data = result.data; +getVendorRateByIdData data = result.data; final ref = result.ref; ``` @@ -8729,7 +4412,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getAttireOptionById( +final ref = ExampleConnector.instance.getVendorRateById( id: id, ).ref(); ref.execute(); @@ -8738,44 +4421,340 @@ ref.subscribe(...); ``` -### filterAttireOptions +### getWorkforceById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getWorkforceById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getWorkforceById( + id: id, +); +getWorkforceByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getWorkforceById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getWorkforceByVendorAndStaff +#### Required Arguments +```dart +String vendorId = ...; +String staffId = ...; +ExampleConnector.instance.getWorkforceByVendorAndStaff( + vendorId: vendorId, + staffId: staffId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getWorkforceByVendorAndStaff( + vendorId: vendorId, + staffId: staffId, +); +getWorkforceByVendorAndStaffData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; +String staffId = ...; + +final ref = ExampleConnector.instance.getWorkforceByVendorAndStaff( + vendorId: vendorId, + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listWorkforceByVendorId +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.listWorkforceByVendorId( + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listWorkforceByVendorId, we created `listWorkforceByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListWorkforceByVendorIdVariablesBuilder { + ... + ListWorkforceByVendorIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListWorkforceByVendorIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listWorkforceByVendorId( + vendorId: vendorId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listWorkforceByVendorId( + vendorId: vendorId, +); +listWorkforceByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; + +final ref = ExampleConnector.instance.listWorkforceByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listWorkforceByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.listWorkforceByStaffId( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listWorkforceByStaffId, we created `listWorkforceByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListWorkforceByStaffIdVariablesBuilder { + ... + ListWorkforceByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListWorkforceByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listWorkforceByStaffId( + staffId: staffId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listWorkforceByStaffId( + staffId: staffId, +); +listWorkforceByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.listWorkforceByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getWorkforceByVendorAndNumber +#### Required Arguments +```dart +String vendorId = ...; +String workforceNumber = ...; +ExampleConnector.instance.getWorkforceByVendorAndNumber( + vendorId: vendorId, + workforceNumber: workforceNumber, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getWorkforceByVendorAndNumber( + vendorId: vendorId, + workforceNumber: workforceNumber, +); +getWorkforceByVendorAndNumberData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; +String workforceNumber = ...; + +final ref = ExampleConnector.instance.getWorkforceByVendorAndNumber( + vendorId: vendorId, + workforceNumber: workforceNumber, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listActivityLogs #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.filterAttireOptions().execute(); +ExampleConnector.instance.listActivityLogs().execute(); ``` #### Optional Arguments -We return a builder for each query. For filterAttireOptions, we created `filterAttireOptionsBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listActivityLogs, we created `listActivityLogsBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class FilterAttireOptionsVariablesBuilder { +class ListActivityLogsVariablesBuilder { ... - FilterAttireOptionsVariablesBuilder itemId(String? t) { - _itemId.value = t; + ListActivityLogsVariablesBuilder offset(int? t) { + _offset.value = t; return this; } - FilterAttireOptionsVariablesBuilder isMandatory(bool? t) { - _isMandatory.value = t; - return this; - } - FilterAttireOptionsVariablesBuilder vendorId(String? t) { - _vendorId.value = t; + ListActivityLogsVariablesBuilder limit(int? t) { + _limit.value = t; return this; } ... } -ExampleConnector.instance.filterAttireOptions() -.itemId(itemId) -.isMandatory(isMandatory) -.vendorId(vendorId) +ExampleConnector.instance.listActivityLogs() +.offset(offset) +.limit(limit) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8790,8 +4769,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.filterAttireOptions(); -filterAttireOptionsData data = result.data; +final result = await ExampleConnector.instance.listActivityLogs(); +listActivityLogsData data = result.data; final ref = result.ref; ``` @@ -8799,46 +4778,269 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.filterAttireOptions().ref(); +final ref = ExampleConnector.instance.listActivityLogs().ref(); ref.execute(); ref.subscribe(...); ``` -### listBenefitsData +### getActivityLogById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getActivityLogById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getActivityLogById( + id: id, +); +getActivityLogByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getActivityLogById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listActivityLogsByUserId +#### Required Arguments +```dart +String userId = ...; +ExampleConnector.instance.listActivityLogsByUserId( + userId: userId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listActivityLogsByUserId, we created `listActivityLogsByUserIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListActivityLogsByUserIdVariablesBuilder { + ... + ListActivityLogsByUserIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListActivityLogsByUserIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listActivityLogsByUserId( + userId: userId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listActivityLogsByUserId( + userId: userId, +); +listActivityLogsByUserIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String userId = ...; + +final ref = ExampleConnector.instance.listActivityLogsByUserId( + userId: userId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listUnreadActivityLogsByUserId +#### Required Arguments +```dart +String userId = ...; +ExampleConnector.instance.listUnreadActivityLogsByUserId( + userId: userId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listUnreadActivityLogsByUserId, we created `listUnreadActivityLogsByUserIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListUnreadActivityLogsByUserIdVariablesBuilder { + ... + ListUnreadActivityLogsByUserIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListUnreadActivityLogsByUserIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listUnreadActivityLogsByUserId( + userId: userId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listUnreadActivityLogsByUserId( + userId: userId, +); +listUnreadActivityLogsByUserIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String userId = ...; + +final ref = ExampleConnector.instance.listUnreadActivityLogsByUserId( + userId: userId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterActivityLogs #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listBenefitsData().execute(); +ExampleConnector.instance.filterActivityLogs().execute(); ``` #### Optional Arguments -We return a builder for each query. For listBenefitsData, we created `listBenefitsDataBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For filterActivityLogs, we created `filterActivityLogsBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListBenefitsDataVariablesBuilder { +class FilterActivityLogsVariablesBuilder { ... - ListBenefitsDataVariablesBuilder offset(int? t) { + FilterActivityLogsVariablesBuilder userId(String? t) { + _userId.value = t; + return this; + } + FilterActivityLogsVariablesBuilder dateFrom(Timestamp? t) { + _dateFrom.value = t; + return this; + } + FilterActivityLogsVariablesBuilder dateTo(Timestamp? t) { + _dateTo.value = t; + return this; + } + FilterActivityLogsVariablesBuilder isRead(bool? t) { + _isRead.value = t; + return this; + } + FilterActivityLogsVariablesBuilder activityType(ActivityType? t) { + _activityType.value = t; + return this; + } + FilterActivityLogsVariablesBuilder iconType(ActivityIconType? t) { + _iconType.value = t; + return this; + } + FilterActivityLogsVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListBenefitsDataVariablesBuilder limit(int? t) { + FilterActivityLogsVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listBenefitsData() +ExampleConnector.instance.filterActivityLogs() +.userId(userId) +.dateFrom(dateFrom) +.dateTo(dateTo) +.isRead(isRead) +.activityType(activityType) +.iconType(iconType) .offset(offset) .limit(limit) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8853,8 +5055,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listBenefitsData(); -listBenefitsDataData data = result.data; +final result = await ExampleConnector.instance.filterActivityLogs(); +filterActivityLogsData data = result.data; final ref = result.ref; ``` @@ -8862,28 +5064,24 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.listBenefitsData().ref(); +final ref = ExampleConnector.instance.filterActivityLogs().ref(); ref.execute(); ref.subscribe(...); ``` -### getBenefitsDataByKey +### listBusinesses #### Required Arguments ```dart -String staffId = ...; -String vendorBenefitPlanId = ...; -ExampleConnector.instance.getBenefitsDataByKey( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -).execute(); +// No required arguments +ExampleConnector.instance.listBusinesses().execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8898,11 +5096,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getBenefitsDataByKey( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -); -getBenefitsDataByKeyData data = result.data; +final result = await ExampleConnector.instance.listBusinesses(); +listBusinessesData data = result.data; final ref = result.ref; ``` @@ -8910,12 +5105,55 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String staffId = ...; -String vendorBenefitPlanId = ...; +final ref = ExampleConnector.instance.listBusinesses().ref(); +ref.execute(); -final ref = ExampleConnector.instance.getBenefitsDataByKey( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, +ref.subscribe(...); +``` + + +### getBusinessesByUserId +#### Required Arguments +```dart +String userId = ...; +ExampleConnector.instance.getBusinessesByUserId( + userId: userId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getBusinessesByUserId( + userId: userId, +); +getBusinessesByUserIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String userId = ...; + +final ref = ExampleConnector.instance.getBusinessesByUserId( + userId: userId, ).ref(); ref.execute(); @@ -8923,34 +5161,487 @@ ref.subscribe(...); ``` -### listBenefitsDataByStaffId +### getBusinessById #### Required Arguments ```dart -String staffId = ...; -ExampleConnector.instance.listBenefitsDataByStaffId( - staffId: staffId, +String id = ...; +ExampleConnector.instance.getBusinessById( + id: id, ).execute(); ``` + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getBusinessById( + id: id, +); +getBusinessByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getBusinessById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listFaqDatas +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listFaqDatas().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listFaqDatas(); +listFaqDatasData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listFaqDatas().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getFaqDataById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getFaqDataById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getFaqDataById( + id: id, +); +getFaqDataByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getFaqDataById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterFaqDatas +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterFaqDatas().execute(); +``` + #### Optional Arguments -We return a builder for each query. For listBenefitsDataByStaffId, we created `listBenefitsDataByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For filterFaqDatas, we created `filterFaqDatasBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListBenefitsDataByStaffIdVariablesBuilder { +class FilterFaqDatasVariablesBuilder { ... - ListBenefitsDataByStaffIdVariablesBuilder offset(int? t) { + + FilterFaqDatasVariablesBuilder category(String? t) { + _category.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterFaqDatas() +.category(category) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterFaqDatas(); +filterFaqDatasData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterFaqDatas().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listTeamMembers +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listTeamMembers().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listTeamMembers(); +listTeamMembersData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listTeamMembers().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTeamMemberById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getTeamMemberById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getTeamMemberById( + id: id, +); +getTeamMemberByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getTeamMemberById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTeamMembersByTeamId +#### Required Arguments +```dart +String teamId = ...; +ExampleConnector.instance.getTeamMembersByTeamId( + teamId: teamId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getTeamMembersByTeamId( + teamId: teamId, +); +getTeamMembersByTeamIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String teamId = ...; + +final ref = ExampleConnector.instance.getTeamMembersByTeamId( + teamId: teamId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listUserConversations +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listUserConversations().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listUserConversations, we created `listUserConversationsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListUserConversationsVariablesBuilder { + ... + + ListUserConversationsVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListBenefitsDataByStaffIdVariablesBuilder limit(int? t) { + ListUserConversationsVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listBenefitsDataByStaffId( - staffId: staffId, +ExampleConnector.instance.listUserConversations() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listUserConversations(); +listUserConversationsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listUserConversations().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getUserConversationByKey +#### Required Arguments +```dart +String conversationId = ...; +String userId = ...; +ExampleConnector.instance.getUserConversationByKey( + conversationId: conversationId, + userId: userId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getUserConversationByKey( + conversationId: conversationId, + userId: userId, +); +getUserConversationByKeyData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String conversationId = ...; +String userId = ...; + +final ref = ExampleConnector.instance.getUserConversationByKey( + conversationId: conversationId, + userId: userId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listUserConversationsByUserId +#### Required Arguments +```dart +String userId = ...; +ExampleConnector.instance.listUserConversationsByUserId( + userId: userId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listUserConversationsByUserId, we created `listUserConversationsByUserIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListUserConversationsByUserIdVariablesBuilder { + ... + ListUserConversationsByUserIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListUserConversationsByUserIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listUserConversationsByUserId( + userId: userId, ) .offset(offset) .limit(limit) @@ -8958,7 +5649,7 @@ ExampleConnector.instance.listBenefitsDataByStaffId( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8973,10 +5664,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listBenefitsDataByStaffId( - staffId: staffId, +final result = await ExampleConnector.instance.listUserConversationsByUserId( + userId: userId, ); -listBenefitsDataByStaffIdData data = result.data; +listUserConversationsByUserIdData data = result.data; final ref = result.ref; ``` @@ -8984,10 +5675,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String staffId = ...; +String userId = ...; -final ref = ExampleConnector.instance.listBenefitsDataByStaffId( - staffId: staffId, +final ref = ExampleConnector.instance.listUserConversationsByUserId( + userId: userId, ).ref(); ref.execute(); @@ -8995,34 +5686,34 @@ ref.subscribe(...); ``` -### listBenefitsDataByVendorBenefitPlanId +### listUnreadUserConversationsByUserId #### Required Arguments ```dart -String vendorBenefitPlanId = ...; -ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( - vendorBenefitPlanId: vendorBenefitPlanId, +String userId = ...; +ExampleConnector.instance.listUnreadUserConversationsByUserId( + userId: userId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For listBenefitsDataByVendorBenefitPlanId, we created `listBenefitsDataByVendorBenefitPlanIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listUnreadUserConversationsByUserId, we created `listUnreadUserConversationsByUserIdBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder { +class ListUnreadUserConversationsByUserIdVariablesBuilder { ... - ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder offset(int? t) { + ListUnreadUserConversationsByUserIdVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder limit(int? t) { + ListUnreadUserConversationsByUserIdVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( - vendorBenefitPlanId: vendorBenefitPlanId, +ExampleConnector.instance.listUnreadUserConversationsByUserId( + userId: userId, ) .offset(offset) .limit(limit) @@ -9030,7 +5721,7 @@ ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -9045,10 +5736,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( - vendorBenefitPlanId: vendorBenefitPlanId, +final result = await ExampleConnector.instance.listUnreadUserConversationsByUserId( + userId: userId, ); -listBenefitsDataByVendorBenefitPlanIdData data = result.data; +listUnreadUserConversationsByUserIdData data = result.data; final ref = result.ref; ``` @@ -9056,10 +5747,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String vendorBenefitPlanId = ...; +String userId = ...; -final ref = ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( - vendorBenefitPlanId: vendorBenefitPlanId, +final ref = ExampleConnector.instance.listUnreadUserConversationsByUserId( + userId: userId, ).ref(); ref.execute(); @@ -9067,34 +5758,34 @@ ref.subscribe(...); ``` -### listBenefitsDataByVendorBenefitPlanIds +### listUserConversationsByConversationId #### Required Arguments ```dart -String vendorBenefitPlanIds = ...; -ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( - vendorBenefitPlanIds: vendorBenefitPlanIds, +String conversationId = ...; +ExampleConnector.instance.listUserConversationsByConversationId( + conversationId: conversationId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For listBenefitsDataByVendorBenefitPlanIds, we created `listBenefitsDataByVendorBenefitPlanIdsBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listUserConversationsByConversationId, we created `listUserConversationsByConversationIdBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder { +class ListUserConversationsByConversationIdVariablesBuilder { ... - ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder offset(int? t) { + ListUserConversationsByConversationIdVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder limit(int? t) { + ListUserConversationsByConversationIdVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( - vendorBenefitPlanIds: vendorBenefitPlanIds, +ExampleConnector.instance.listUserConversationsByConversationId( + conversationId: conversationId, ) .offset(offset) .limit(limit) @@ -9102,7 +5793,7 @@ ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -9117,10 +5808,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( - vendorBenefitPlanIds: vendorBenefitPlanIds, +final result = await ExampleConnector.instance.listUserConversationsByConversationId( + conversationId: conversationId, ); -listBenefitsDataByVendorBenefitPlanIdsData data = result.data; +listUserConversationsByConversationIdData data = result.data; final ref = result.ref; ``` @@ -9128,10 +5819,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String vendorBenefitPlanIds = ...; +String conversationId = ...; -final ref = ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( - vendorBenefitPlanIds: vendorBenefitPlanIds, +final ref = ExampleConnector.instance.listUserConversationsByConversationId( + conversationId: conversationId, ).ref(); ref.execute(); @@ -9139,6 +5830,1366 @@ ref.subscribe(...); ``` +### filterUserConversations +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterUserConversations().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterUserConversations, we created `filterUserConversationsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterUserConversationsVariablesBuilder { + ... + + FilterUserConversationsVariablesBuilder userId(String? t) { + _userId.value = t; + return this; + } + FilterUserConversationsVariablesBuilder conversationId(String? t) { + _conversationId.value = t; + return this; + } + FilterUserConversationsVariablesBuilder unreadMin(int? t) { + _unreadMin.value = t; + return this; + } + FilterUserConversationsVariablesBuilder unreadMax(int? t) { + _unreadMax.value = t; + return this; + } + FilterUserConversationsVariablesBuilder lastReadAfter(Timestamp? t) { + _lastReadAfter.value = t; + return this; + } + FilterUserConversationsVariablesBuilder lastReadBefore(Timestamp? t) { + _lastReadBefore.value = t; + return this; + } + FilterUserConversationsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + FilterUserConversationsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterUserConversations() +.userId(userId) +.conversationId(conversationId) +.unreadMin(unreadMin) +.unreadMax(unreadMax) +.lastReadAfter(lastReadAfter) +.lastReadBefore(lastReadBefore) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterUserConversations(); +filterUserConversationsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterUserConversations().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getVendorById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getVendorById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getVendorById( + id: id, +); +getVendorByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getVendorById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getVendorByUserId +#### Required Arguments +```dart +String userId = ...; +ExampleConnector.instance.getVendorByUserId( + userId: userId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getVendorByUserId( + userId: userId, +); +getVendorByUserIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String userId = ...; + +final ref = ExampleConnector.instance.getVendorByUserId( + userId: userId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listVendors +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listVendors().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listVendors(); +listVendorsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listVendors().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listCourses +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listCourses().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listCourses(); +listCoursesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listCourses().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getCourseById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getCourseById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getCourseById( + id: id, +); +getCourseByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getCourseById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterCourses +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterCourses().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterCourses, we created `filterCoursesBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterCoursesVariablesBuilder { + ... + + FilterCoursesVariablesBuilder categoryId(String? t) { + _categoryId.value = t; + return this; + } + FilterCoursesVariablesBuilder isCertification(bool? t) { + _isCertification.value = t; + return this; + } + FilterCoursesVariablesBuilder levelRequired(String? t) { + _levelRequired.value = t; + return this; + } + FilterCoursesVariablesBuilder completed(bool? t) { + _completed.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterCourses() +.categoryId(categoryId) +.isCertification(isCertification) +.levelRequired(levelRequired) +.completed(completed) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterCourses(); +filterCoursesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterCourses().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRoles +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listRoles().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listRoles(); +listRolesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listRoles().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getRoleById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getRoleById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getRoleById( + id: id, +); +getRoleByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getRoleById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRolesByVendorId +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.listRolesByVendorId( + vendorId: vendorId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listRolesByVendorId( + vendorId: vendorId, +); +listRolesByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; + +final ref = ExampleConnector.instance.listRolesByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRolesByroleCategoryId +#### Required Arguments +```dart +String roleCategoryId = ...; +ExampleConnector.instance.listRolesByroleCategoryId( + roleCategoryId: roleCategoryId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listRolesByroleCategoryId( + roleCategoryId: roleCategoryId, +); +listRolesByroleCategoryIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String roleCategoryId = ...; + +final ref = ExampleConnector.instance.listRolesByroleCategoryId( + roleCategoryId: roleCategoryId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listAssignments +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listAssignments().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listAssignments, we created `listAssignmentsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListAssignmentsVariablesBuilder { + ... + + ListAssignmentsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListAssignmentsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listAssignments() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listAssignments(); +listAssignmentsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listAssignments().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getAssignmentById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getAssignmentById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getAssignmentById( + id: id, +); +getAssignmentByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getAssignmentById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listAssignmentsByWorkforceId +#### Required Arguments +```dart +String workforceId = ...; +ExampleConnector.instance.listAssignmentsByWorkforceId( + workforceId: workforceId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listAssignmentsByWorkforceId, we created `listAssignmentsByWorkforceIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListAssignmentsByWorkforceIdVariablesBuilder { + ... + ListAssignmentsByWorkforceIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListAssignmentsByWorkforceIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listAssignmentsByWorkforceId( + workforceId: workforceId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listAssignmentsByWorkforceId( + workforceId: workforceId, +); +listAssignmentsByWorkforceIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String workforceId = ...; + +final ref = ExampleConnector.instance.listAssignmentsByWorkforceId( + workforceId: workforceId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listAssignmentsByWorkforceIds +#### Required Arguments +```dart +String workforceIds = ...; +ExampleConnector.instance.listAssignmentsByWorkforceIds( + workforceIds: workforceIds, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listAssignmentsByWorkforceIds, we created `listAssignmentsByWorkforceIdsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListAssignmentsByWorkforceIdsVariablesBuilder { + ... + ListAssignmentsByWorkforceIdsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListAssignmentsByWorkforceIdsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listAssignmentsByWorkforceIds( + workforceIds: workforceIds, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listAssignmentsByWorkforceIds( + workforceIds: workforceIds, +); +listAssignmentsByWorkforceIdsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String workforceIds = ...; + +final ref = ExampleConnector.instance.listAssignmentsByWorkforceIds( + workforceIds: workforceIds, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listAssignmentsByShiftRole +#### Required Arguments +```dart +String shiftId = ...; +String roleId = ...; +ExampleConnector.instance.listAssignmentsByShiftRole( + shiftId: shiftId, + roleId: roleId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listAssignmentsByShiftRole, we created `listAssignmentsByShiftRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListAssignmentsByShiftRoleVariablesBuilder { + ... + ListAssignmentsByShiftRoleVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListAssignmentsByShiftRoleVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listAssignmentsByShiftRole( + shiftId: shiftId, + roleId: roleId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listAssignmentsByShiftRole( + shiftId: shiftId, + roleId: roleId, +); +listAssignmentsByShiftRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String shiftId = ...; +String roleId = ...; + +final ref = ExampleConnector.instance.listAssignmentsByShiftRole( + shiftId: shiftId, + roleId: roleId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterAssignments +#### Required Arguments +```dart +String shiftIds = ...; +String roleIds = ...; +ExampleConnector.instance.filterAssignments( + shiftIds: shiftIds, + roleIds: roleIds, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterAssignments, we created `filterAssignmentsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterAssignmentsVariablesBuilder { + ... + FilterAssignmentsVariablesBuilder status(AssignmentStatus? t) { + _status.value = t; + return this; + } + FilterAssignmentsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + FilterAssignmentsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterAssignments( + shiftIds: shiftIds, + roleIds: roleIds, +) +.status(status) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterAssignments( + shiftIds: shiftIds, + roleIds: roleIds, +); +filterAssignmentsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String shiftIds = ...; +String roleIds = ...; + +final ref = ExampleConnector.instance.filterAssignments( + shiftIds: shiftIds, + roleIds: roleIds, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listLevels +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listLevels().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listLevels(); +listLevelsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listLevels().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getLevelById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getLevelById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getLevelById( + id: id, +); +getLevelByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getLevelById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterLevels +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterLevels().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterLevels, we created `filterLevelsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterLevelsVariablesBuilder { + ... + + FilterLevelsVariablesBuilder name(String? t) { + _name.value = t; + return this; + } + FilterLevelsVariablesBuilder xpRequired(int? t) { + _xpRequired.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterLevels() +.name(name) +.xpRequired(xpRequired) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterLevels(); +filterLevelsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterLevels().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listHubs +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listHubs().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listHubs(); +listHubsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listHubs().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getHubById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getHubById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getHubById( + id: id, +); +getHubByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getHubById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getHubsByOwnerId +#### Required Arguments +```dart +String ownerId = ...; +ExampleConnector.instance.getHubsByOwnerId( + ownerId: ownerId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getHubsByOwnerId( + ownerId: ownerId, +); +getHubsByOwnerIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String ownerId = ...; + +final ref = ExampleConnector.instance.getHubsByOwnerId( + ownerId: ownerId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterHubs +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterHubs().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterHubs, we created `filterHubsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterHubsVariablesBuilder { + ... + + FilterHubsVariablesBuilder ownerId(String? t) { + _ownerId.value = t; + return this; + } + FilterHubsVariablesBuilder name(String? t) { + _name.value = t; + return this; + } + FilterHubsVariablesBuilder nfcTagId(String? t) { + _nfcTagId.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterHubs() +.ownerId(ownerId) +.name(name) +.nfcTagId(nfcTagId) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterHubs(); +filterHubsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterHubs().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + ### listRecentPayments #### Required Arguments ```dart @@ -9683,39 +7734,39 @@ ref.subscribe(...); ``` -### listUserConversations +### listClientFeedbacks #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listUserConversations().execute(); +ExampleConnector.instance.listClientFeedbacks().execute(); ``` #### Optional Arguments -We return a builder for each query. For listUserConversations, we created `listUserConversationsBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listClientFeedbacks, we created `listClientFeedbacksBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListUserConversationsVariablesBuilder { +class ListClientFeedbacksVariablesBuilder { ... - ListUserConversationsVariablesBuilder offset(int? t) { + ListClientFeedbacksVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListUserConversationsVariablesBuilder limit(int? t) { + ListClientFeedbacksVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listUserConversations() +ExampleConnector.instance.listClientFeedbacks() .offset(offset) .limit(limit) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -9730,8 +7781,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listUserConversations(); -listUserConversationsData data = result.data; +final result = await ExampleConnector.instance.listClientFeedbacks(); +listClientFeedbacksData data = result.data; final ref = result.ref; ``` @@ -9739,422 +7790,18 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.listUserConversations().ref(); +final ref = ExampleConnector.instance.listClientFeedbacks().ref(); ref.execute(); ref.subscribe(...); ``` -### getUserConversationByKey -#### Required Arguments -```dart -String conversationId = ...; -String userId = ...; -ExampleConnector.instance.getUserConversationByKey( - conversationId: conversationId, - userId: userId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getUserConversationByKey( - conversationId: conversationId, - userId: userId, -); -getUserConversationByKeyData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String conversationId = ...; -String userId = ...; - -final ref = ExampleConnector.instance.getUserConversationByKey( - conversationId: conversationId, - userId: userId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listUserConversationsByUserId -#### Required Arguments -```dart -String userId = ...; -ExampleConnector.instance.listUserConversationsByUserId( - userId: userId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listUserConversationsByUserId, we created `listUserConversationsByUserIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListUserConversationsByUserIdVariablesBuilder { - ... - ListUserConversationsByUserIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListUserConversationsByUserIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listUserConversationsByUserId( - userId: userId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listUserConversationsByUserId( - userId: userId, -); -listUserConversationsByUserIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String userId = ...; - -final ref = ExampleConnector.instance.listUserConversationsByUserId( - userId: userId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listUnreadUserConversationsByUserId -#### Required Arguments -```dart -String userId = ...; -ExampleConnector.instance.listUnreadUserConversationsByUserId( - userId: userId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listUnreadUserConversationsByUserId, we created `listUnreadUserConversationsByUserIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListUnreadUserConversationsByUserIdVariablesBuilder { - ... - ListUnreadUserConversationsByUserIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListUnreadUserConversationsByUserIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listUnreadUserConversationsByUserId( - userId: userId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listUnreadUserConversationsByUserId( - userId: userId, -); -listUnreadUserConversationsByUserIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String userId = ...; - -final ref = ExampleConnector.instance.listUnreadUserConversationsByUserId( - userId: userId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listUserConversationsByConversationId -#### Required Arguments -```dart -String conversationId = ...; -ExampleConnector.instance.listUserConversationsByConversationId( - conversationId: conversationId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listUserConversationsByConversationId, we created `listUserConversationsByConversationIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListUserConversationsByConversationIdVariablesBuilder { - ... - ListUserConversationsByConversationIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListUserConversationsByConversationIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listUserConversationsByConversationId( - conversationId: conversationId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listUserConversationsByConversationId( - conversationId: conversationId, -); -listUserConversationsByConversationIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String conversationId = ...; - -final ref = ExampleConnector.instance.listUserConversationsByConversationId( - conversationId: conversationId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterUserConversations -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterUserConversations().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterUserConversations, we created `filterUserConversationsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterUserConversationsVariablesBuilder { - ... - - FilterUserConversationsVariablesBuilder userId(String? t) { - _userId.value = t; - return this; - } - FilterUserConversationsVariablesBuilder conversationId(String? t) { - _conversationId.value = t; - return this; - } - FilterUserConversationsVariablesBuilder unreadMin(int? t) { - _unreadMin.value = t; - return this; - } - FilterUserConversationsVariablesBuilder unreadMax(int? t) { - _unreadMax.value = t; - return this; - } - FilterUserConversationsVariablesBuilder lastReadAfter(Timestamp? t) { - _lastReadAfter.value = t; - return this; - } - FilterUserConversationsVariablesBuilder lastReadBefore(Timestamp? t) { - _lastReadBefore.value = t; - return this; - } - FilterUserConversationsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - FilterUserConversationsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterUserConversations() -.userId(userId) -.conversationId(conversationId) -.unreadMin(unreadMin) -.unreadMax(unreadMax) -.lastReadAfter(lastReadAfter) -.lastReadBefore(lastReadBefore) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterUserConversations(); -filterUserConversationsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterUserConversations().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listVendorRates -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listVendorRates().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listVendorRates(); -listVendorRatesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listVendorRates().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getVendorRateById +### getClientFeedbackById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getVendorRateById( +ExampleConnector.instance.getClientFeedbackById( id: id, ).execute(); ``` @@ -10162,7 +7809,7 @@ ExampleConnector.instance.getVendorRateById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10177,10 +7824,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getVendorRateById( +final result = await ExampleConnector.instance.getClientFeedbackById( id: id, ); -getVendorRateByIdData data = result.data; +getClientFeedbackByIdData data = result.data; final ref = result.ref; ``` @@ -10190,7 +7837,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getVendorRateById( +final ref = ExampleConnector.instance.getClientFeedbackById( id: id, ).ref(); ref.execute(); @@ -10199,217 +7846,33 @@ ref.subscribe(...); ``` -### listInvoices -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listInvoices().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listInvoices, we created `listInvoicesBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListInvoicesVariablesBuilder { - ... - - ListInvoicesVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListInvoicesVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listInvoices() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listInvoices(); -listInvoicesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listInvoices().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getInvoiceById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getInvoiceById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getInvoiceById( - id: id, -); -getInvoiceByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getInvoiceById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listInvoicesByVendorId -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.listInvoicesByVendorId( - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listInvoicesByVendorId, we created `listInvoicesByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListInvoicesByVendorIdVariablesBuilder { - ... - ListInvoicesByVendorIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListInvoicesByVendorIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listInvoicesByVendorId( - vendorId: vendorId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listInvoicesByVendorId( - vendorId: vendorId, -); -listInvoicesByVendorIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; - -final ref = ExampleConnector.instance.listInvoicesByVendorId( - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listInvoicesByBusinessId +### listClientFeedbacksByBusinessId #### Required Arguments ```dart String businessId = ...; -ExampleConnector.instance.listInvoicesByBusinessId( +ExampleConnector.instance.listClientFeedbacksByBusinessId( businessId: businessId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For listInvoicesByBusinessId, we created `listInvoicesByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listClientFeedbacksByBusinessId, we created `listClientFeedbacksByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListInvoicesByBusinessIdVariablesBuilder { +class ListClientFeedbacksByBusinessIdVariablesBuilder { ... - ListInvoicesByBusinessIdVariablesBuilder offset(int? t) { + ListClientFeedbacksByBusinessIdVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListInvoicesByBusinessIdVariablesBuilder limit(int? t) { + ListClientFeedbacksByBusinessIdVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listInvoicesByBusinessId( +ExampleConnector.instance.listClientFeedbacksByBusinessId( businessId: businessId, ) .offset(offset) @@ -10418,7 +7881,7 @@ ExampleConnector.instance.listInvoicesByBusinessId( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10433,10 +7896,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listInvoicesByBusinessId( +final result = await ExampleConnector.instance.listClientFeedbacksByBusinessId( businessId: businessId, ); -listInvoicesByBusinessIdData data = result.data; +listClientFeedbacksByBusinessIdData data = result.data; final ref = result.ref; ``` @@ -10446,7 +7909,7 @@ An example of how to use the `Ref` object is shown below: ```dart String businessId = ...; -final ref = ExampleConnector.instance.listInvoicesByBusinessId( +final ref = ExampleConnector.instance.listClientFeedbacksByBusinessId( businessId: businessId, ).ref(); ref.execute(); @@ -10455,34 +7918,34 @@ ref.subscribe(...); ``` -### listInvoicesByOrderId +### listClientFeedbacksByVendorId #### Required Arguments ```dart -String orderId = ...; -ExampleConnector.instance.listInvoicesByOrderId( - orderId: orderId, +String vendorId = ...; +ExampleConnector.instance.listClientFeedbacksByVendorId( + vendorId: vendorId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For listInvoicesByOrderId, we created `listInvoicesByOrderIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listClientFeedbacksByVendorId, we created `listClientFeedbacksByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListInvoicesByOrderIdVariablesBuilder { +class ListClientFeedbacksByVendorIdVariablesBuilder { ... - ListInvoicesByOrderIdVariablesBuilder offset(int? t) { + ListClientFeedbacksByVendorIdVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListInvoicesByOrderIdVariablesBuilder limit(int? t) { + ListClientFeedbacksByVendorIdVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listInvoicesByOrderId( - orderId: orderId, +ExampleConnector.instance.listClientFeedbacksByVendorId( + vendorId: vendorId, ) .offset(offset) .limit(limit) @@ -10490,7 +7953,7 @@ ExampleConnector.instance.listInvoicesByOrderId( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10505,10 +7968,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listInvoicesByOrderId( - orderId: orderId, +final result = await ExampleConnector.instance.listClientFeedbacksByVendorId( + vendorId: vendorId, ); -listInvoicesByOrderIdData data = result.data; +listClientFeedbacksByVendorIdData data = result.data; final ref = result.ref; ``` @@ -10516,10 +7979,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String orderId = ...; +String vendorId = ...; -final ref = ExampleConnector.instance.listInvoicesByOrderId( - orderId: orderId, +final ref = ExampleConnector.instance.listClientFeedbacksByVendorId( + vendorId: vendorId, ).ref(); ref.execute(); @@ -10527,34 +7990,37 @@ ref.subscribe(...); ``` -### listInvoicesByStatus +### listClientFeedbacksByBusinessAndVendor #### Required Arguments ```dart -InvoiceStatus status = ...; -ExampleConnector.instance.listInvoicesByStatus( - status: status, +String businessId = ...; +String vendorId = ...; +ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor( + businessId: businessId, + vendorId: vendorId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For listInvoicesByStatus, we created `listInvoicesByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listClientFeedbacksByBusinessAndVendor, we created `listClientFeedbacksByBusinessAndVendorBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListInvoicesByStatusVariablesBuilder { +class ListClientFeedbacksByBusinessAndVendorVariablesBuilder { ... - ListInvoicesByStatusVariablesBuilder offset(int? t) { + ListClientFeedbacksByBusinessAndVendorVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListInvoicesByStatusVariablesBuilder limit(int? t) { + ListClientFeedbacksByBusinessAndVendorVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listInvoicesByStatus( - status: status, +ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor( + businessId: businessId, + vendorId: vendorId, ) .offset(offset) .limit(limit) @@ -10562,7 +8028,7 @@ ExampleConnector.instance.listInvoicesByStatus( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10577,10 +8043,11 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listInvoicesByStatus( - status: status, +final result = await ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor( + businessId: businessId, + vendorId: vendorId, ); -listInvoicesByStatusData data = result.data; +listClientFeedbacksByBusinessAndVendorData data = result.data; final ref = result.ref; ``` @@ -10588,10 +8055,12 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -InvoiceStatus status = ...; +String businessId = ...; +String vendorId = ...; -final ref = ExampleConnector.instance.listInvoicesByStatus( - status: status, +final ref = ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor( + businessId: businessId, + vendorId: vendorId, ).ref(); ref.execute(); @@ -10599,79 +8068,69 @@ ref.subscribe(...); ``` -### filterInvoices +### filterClientFeedbacks #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.filterInvoices().execute(); +ExampleConnector.instance.filterClientFeedbacks().execute(); ``` #### Optional Arguments -We return a builder for each query. For filterInvoices, we created `filterInvoicesBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For filterClientFeedbacks, we created `filterClientFeedbacksBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class FilterInvoicesVariablesBuilder { +class FilterClientFeedbacksVariablesBuilder { ... - FilterInvoicesVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } - FilterInvoicesVariablesBuilder businessId(String? t) { + FilterClientFeedbacksVariablesBuilder businessId(String? t) { _businessId.value = t; return this; } - FilterInvoicesVariablesBuilder orderId(String? t) { - _orderId.value = t; + FilterClientFeedbacksVariablesBuilder vendorId(String? t) { + _vendorId.value = t; return this; } - FilterInvoicesVariablesBuilder status(InvoiceStatus? t) { - _status.value = t; + FilterClientFeedbacksVariablesBuilder ratingMin(int? t) { + _ratingMin.value = t; return this; } - FilterInvoicesVariablesBuilder issueDateFrom(Timestamp? t) { - _issueDateFrom.value = t; + FilterClientFeedbacksVariablesBuilder ratingMax(int? t) { + _ratingMax.value = t; return this; } - FilterInvoicesVariablesBuilder issueDateTo(Timestamp? t) { - _issueDateTo.value = t; + FilterClientFeedbacksVariablesBuilder dateFrom(Timestamp? t) { + _dateFrom.value = t; return this; } - FilterInvoicesVariablesBuilder dueDateFrom(Timestamp? t) { - _dueDateFrom.value = t; + FilterClientFeedbacksVariablesBuilder dateTo(Timestamp? t) { + _dateTo.value = t; return this; } - FilterInvoicesVariablesBuilder dueDateTo(Timestamp? t) { - _dueDateTo.value = t; - return this; - } - FilterInvoicesVariablesBuilder offset(int? t) { + FilterClientFeedbacksVariablesBuilder offset(int? t) { _offset.value = t; return this; } - FilterInvoicesVariablesBuilder limit(int? t) { + FilterClientFeedbacksVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.filterInvoices() -.vendorId(vendorId) +ExampleConnector.instance.filterClientFeedbacks() .businessId(businessId) -.orderId(orderId) -.status(status) -.issueDateFrom(issueDateFrom) -.issueDateTo(issueDateTo) -.dueDateFrom(dueDateFrom) -.dueDateTo(dueDateTo) +.vendorId(vendorId) +.ratingMin(ratingMin) +.ratingMax(ratingMax) +.dateFrom(dateFrom) +.dateTo(dateTo) .offset(offset) .limit(limit) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10686,8 +8145,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.filterInvoices(); -filterInvoicesData data = result.data; +final result = await ExampleConnector.instance.filterClientFeedbacks(); +filterClientFeedbacksData data = result.data; final ref = result.ref; ``` @@ -10695,49 +8154,49 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.filterInvoices().ref(); +final ref = ExampleConnector.instance.filterClientFeedbacks().ref(); ref.execute(); ref.subscribe(...); ``` -### listOverdueInvoices +### listClientFeedbackRatingsByVendorId #### Required Arguments ```dart -Timestamp now = ...; -ExampleConnector.instance.listOverdueInvoices( - now: now, +String vendorId = ...; +ExampleConnector.instance.listClientFeedbackRatingsByVendorId( + vendorId: vendorId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For listOverdueInvoices, we created `listOverdueInvoicesBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listClientFeedbackRatingsByVendorId, we created `listClientFeedbackRatingsByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListOverdueInvoicesVariablesBuilder { +class ListClientFeedbackRatingsByVendorIdVariablesBuilder { ... - ListOverdueInvoicesVariablesBuilder offset(int? t) { - _offset.value = t; + ListClientFeedbackRatingsByVendorIdVariablesBuilder dateFrom(Timestamp? t) { + _dateFrom.value = t; return this; } - ListOverdueInvoicesVariablesBuilder limit(int? t) { - _limit.value = t; + ListClientFeedbackRatingsByVendorIdVariablesBuilder dateTo(Timestamp? t) { + _dateTo.value = t; return this; } ... } -ExampleConnector.instance.listOverdueInvoices( - now: now, +ExampleConnector.instance.listClientFeedbackRatingsByVendorId( + vendorId: vendorId, ) -.offset(offset) -.limit(limit) +.dateFrom(dateFrom) +.dateTo(dateTo) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10752,10 +8211,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listOverdueInvoices( - now: now, +final result = await ExampleConnector.instance.listClientFeedbackRatingsByVendorId( + vendorId: vendorId, ); -listOverdueInvoicesData data = result.data; +listClientFeedbackRatingsByVendorIdData data = result.data; final ref = result.ref; ``` @@ -10763,10 +8222,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -Timestamp now = ...; +String vendorId = ...; -final ref = ExampleConnector.instance.listOverdueInvoices( - now: now, +final ref = ExampleConnector.instance.listClientFeedbackRatingsByVendorId( + vendorId: vendorId, ).ref(); ref.execute(); @@ -11820,17 +9279,39 @@ ref.subscribe(...); ``` -### listTeamHubs +### listTeamHudDepartments #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listTeamHubs().execute(); +ExampleConnector.instance.listTeamHudDepartments().execute(); ``` +#### Optional Arguments +We return a builder for each query. For listTeamHudDepartments, we created `listTeamHudDepartmentsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListTeamHudDepartmentsVariablesBuilder { + ... + + ListTeamHudDepartmentsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListTeamHudDepartmentsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + ... +} +ExampleConnector.instance.listTeamHudDepartments() +.offset(offset) +.limit(limit) +.execute(); +``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -11845,8 +9326,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listTeamHubs(); -listTeamHubsData data = result.data; +final result = await ExampleConnector.instance.listTeamHudDepartments(); +listTeamHudDepartmentsData data = result.data; final ref = result.ref; ``` @@ -11854,18 +9335,18 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.listTeamHubs().ref(); +final ref = ExampleConnector.instance.listTeamHudDepartments().ref(); ref.execute(); ref.subscribe(...); ``` -### getTeamHubById +### getTeamHudDepartmentById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getTeamHubById( +ExampleConnector.instance.getTeamHudDepartmentById( id: id, ).execute(); ``` @@ -11873,7 +9354,7 @@ ExampleConnector.instance.getTeamHubById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -11888,10 +9369,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getTeamHubById( +final result = await ExampleConnector.instance.getTeamHudDepartmentById( id: id, ); -getTeamHubByIdData data = result.data; +getTeamHudDepartmentByIdData data = result.data; final ref = result.ref; ``` @@ -11901,7 +9382,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getTeamHubById( +final ref = ExampleConnector.instance.getTeamHudDepartmentById( id: id, ).ref(); ref.execute(); @@ -11910,19 +9391,42 @@ ref.subscribe(...); ``` -### getTeamHubsByTeamId +### listTeamHudDepartmentsByTeamHubId #### Required Arguments ```dart -String teamId = ...; -ExampleConnector.instance.getTeamHubsByTeamId( - teamId: teamId, +String teamHubId = ...; +ExampleConnector.instance.listTeamHudDepartmentsByTeamHubId( + teamHubId: teamHubId, ).execute(); ``` +#### Optional Arguments +We return a builder for each query. For listTeamHudDepartmentsByTeamHubId, we created `listTeamHudDepartmentsByTeamHubIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListTeamHudDepartmentsByTeamHubIdVariablesBuilder { + ... + ListTeamHudDepartmentsByTeamHubIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListTeamHudDepartmentsByTeamHubIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + ... +} +ExampleConnector.instance.listTeamHudDepartmentsByTeamHubId( + teamHubId: teamHubId, +) +.offset(offset) +.limit(limit) +.execute(); +``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -11937,10 +9441,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getTeamHubsByTeamId( - teamId: teamId, +final result = await ExampleConnector.instance.listTeamHudDepartmentsByTeamHubId( + teamHubId: teamHubId, ); -getTeamHubsByTeamIdData data = result.data; +listTeamHudDepartmentsByTeamHubIdData data = result.data; final ref = result.ref; ``` @@ -11948,10 +9452,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String teamId = ...; +String teamHubId = ...; -final ref = ExampleConnector.instance.getTeamHubsByTeamId( - teamId: teamId, +final ref = ExampleConnector.instance.listTeamHudDepartmentsByTeamHubId( + teamHubId: teamHubId, ).ref(); ref.execute(); @@ -11959,19 +9463,17 @@ ref.subscribe(...); ``` -### listTeamHubsByOwnerId +### listUsers #### Required Arguments ```dart -String ownerId = ...; -ExampleConnector.instance.listTeamHubsByOwnerId( - ownerId: ownerId, -).execute(); +// No required arguments +ExampleConnector.instance.listUsers().execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -11986,10 +9488,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listTeamHubsByOwnerId( - ownerId: ownerId, -); -listTeamHubsByOwnerIdData data = result.data; +final result = await ExampleConnector.instance.listUsers(); +listUsersData data = result.data; final ref = result.ref; ``` @@ -11997,10 +9497,55 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String ownerId = ...; +final ref = ExampleConnector.instance.listUsers().ref(); +ref.execute(); -final ref = ExampleConnector.instance.listTeamHubsByOwnerId( - ownerId: ownerId, +ref.subscribe(...); +``` + + +### getUserById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getUserById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getUserById( + id: id, +); +getUserByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getUserById( + id: id, ).ref(); ref.execute(); @@ -12008,6 +9553,79 @@ ref.subscribe(...); ``` +### filterUsers +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterUsers().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterUsers, we created `filterUsersBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterUsersVariablesBuilder { + ... + + FilterUsersVariablesBuilder id(String? t) { + _id.value = t; + return this; + } + FilterUsersVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + FilterUsersVariablesBuilder role(UserBaseRole? t) { + _role.value = t; + return this; + } + FilterUsersVariablesBuilder userRole(String? t) { + _userRole.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterUsers() +.id(id) +.email(email) +.role(role) +.userRole(userRole) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterUsers(); +filterUsersData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterUsers().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + ### listAccounts #### Required Arguments ```dart @@ -12220,39 +9838,134 @@ ref.subscribe(...); ``` -### listActivityLogs +### listAttireOptions #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listActivityLogs().execute(); +ExampleConnector.instance.listAttireOptions().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listAttireOptions(); +listAttireOptionsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listAttireOptions().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getAttireOptionById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getAttireOptionById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getAttireOptionById( + id: id, +); +getAttireOptionByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getAttireOptionById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterAttireOptions +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterAttireOptions().execute(); ``` #### Optional Arguments -We return a builder for each query. For listActivityLogs, we created `listActivityLogsBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For filterAttireOptions, we created `filterAttireOptionsBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListActivityLogsVariablesBuilder { +class FilterAttireOptionsVariablesBuilder { ... - ListActivityLogsVariablesBuilder offset(int? t) { - _offset.value = t; + FilterAttireOptionsVariablesBuilder itemId(String? t) { + _itemId.value = t; return this; } - ListActivityLogsVariablesBuilder limit(int? t) { - _limit.value = t; + FilterAttireOptionsVariablesBuilder isMandatory(bool? t) { + _isMandatory.value = t; + return this; + } + FilterAttireOptionsVariablesBuilder vendorId(String? t) { + _vendorId.value = t; return this; } ... } -ExampleConnector.instance.listActivityLogs() -.offset(offset) -.limit(limit) +ExampleConnector.instance.filterAttireOptions() +.itemId(itemId) +.isMandatory(isMandatory) +.vendorId(vendorId) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -12267,8 +9980,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listActivityLogs(); -listActivityLogsData data = result.data; +final result = await ExampleConnector.instance.filterAttireOptions(); +filterAttireOptionsData data = result.data; final ref = result.ref; ``` @@ -12276,269 +9989,46 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.listActivityLogs().ref(); +final ref = ExampleConnector.instance.filterAttireOptions().ref(); ref.execute(); ref.subscribe(...); ``` -### getActivityLogById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getActivityLogById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getActivityLogById( - id: id, -); -getActivityLogByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getActivityLogById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listActivityLogsByUserId -#### Required Arguments -```dart -String userId = ...; -ExampleConnector.instance.listActivityLogsByUserId( - userId: userId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listActivityLogsByUserId, we created `listActivityLogsByUserIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListActivityLogsByUserIdVariablesBuilder { - ... - ListActivityLogsByUserIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListActivityLogsByUserIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listActivityLogsByUserId( - userId: userId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listActivityLogsByUserId( - userId: userId, -); -listActivityLogsByUserIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String userId = ...; - -final ref = ExampleConnector.instance.listActivityLogsByUserId( - userId: userId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listUnreadActivityLogsByUserId -#### Required Arguments -```dart -String userId = ...; -ExampleConnector.instance.listUnreadActivityLogsByUserId( - userId: userId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listUnreadActivityLogsByUserId, we created `listUnreadActivityLogsByUserIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListUnreadActivityLogsByUserIdVariablesBuilder { - ... - ListUnreadActivityLogsByUserIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListUnreadActivityLogsByUserIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listUnreadActivityLogsByUserId( - userId: userId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listUnreadActivityLogsByUserId( - userId: userId, -); -listUnreadActivityLogsByUserIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String userId = ...; - -final ref = ExampleConnector.instance.listUnreadActivityLogsByUserId( - userId: userId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterActivityLogs +### listInvoices #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.filterActivityLogs().execute(); +ExampleConnector.instance.listInvoices().execute(); ``` #### Optional Arguments -We return a builder for each query. For filterActivityLogs, we created `filterActivityLogsBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listInvoices, we created `listInvoicesBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class FilterActivityLogsVariablesBuilder { +class ListInvoicesVariablesBuilder { ... - FilterActivityLogsVariablesBuilder userId(String? t) { - _userId.value = t; - return this; - } - FilterActivityLogsVariablesBuilder dateFrom(Timestamp? t) { - _dateFrom.value = t; - return this; - } - FilterActivityLogsVariablesBuilder dateTo(Timestamp? t) { - _dateTo.value = t; - return this; - } - FilterActivityLogsVariablesBuilder isRead(bool? t) { - _isRead.value = t; - return this; - } - FilterActivityLogsVariablesBuilder activityType(ActivityType? t) { - _activityType.value = t; - return this; - } - FilterActivityLogsVariablesBuilder iconType(ActivityIconType? t) { - _iconType.value = t; - return this; - } - FilterActivityLogsVariablesBuilder offset(int? t) { + ListInvoicesVariablesBuilder offset(int? t) { _offset.value = t; return this; } - FilterActivityLogsVariablesBuilder limit(int? t) { + ListInvoicesVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.filterActivityLogs() -.userId(userId) -.dateFrom(dateFrom) -.dateTo(dateTo) -.isRead(isRead) -.activityType(activityType) -.iconType(iconType) +ExampleConnector.instance.listInvoices() .offset(offset) .limit(limit) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -12553,8 +10043,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.filterActivityLogs(); -filterActivityLogsData data = result.data; +final result = await ExampleConnector.instance.listInvoices(); +listInvoicesData data = result.data; final ref = result.ref; ``` @@ -12562,59 +10052,18 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.filterActivityLogs().ref(); +final ref = ExampleConnector.instance.listInvoices().ref(); ref.execute(); ref.subscribe(...); ``` -### listFaqDatas -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listFaqDatas().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listFaqDatas(); -listFaqDatasData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listFaqDatas().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getFaqDataById +### getInvoiceById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getFaqDataById( +ExampleConnector.instance.getInvoiceById( id: id, ).execute(); ``` @@ -12622,7 +10071,7 @@ ExampleConnector.instance.getFaqDataById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -12637,10 +10086,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getFaqDataById( +final result = await ExampleConnector.instance.getInvoiceById( id: id, ); -getFaqDataByIdData data = result.data; +getInvoiceByIdData data = result.data; final ref = result.ref; ``` @@ -12650,7 +10099,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getFaqDataById( +final ref = ExampleConnector.instance.getInvoiceById( id: id, ).ref(); ref.execute(); @@ -12659,146 +10108,425 @@ ref.subscribe(...); ``` -### filterFaqDatas +### listInvoicesByVendorId #### Required Arguments ```dart -// No required arguments -ExampleConnector.instance.filterFaqDatas().execute(); +String vendorId = ...; +ExampleConnector.instance.listInvoicesByVendorId( + vendorId: vendorId, +).execute(); ``` #### Optional Arguments -We return a builder for each query. For filterFaqDatas, we created `filterFaqDatasBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listInvoicesByVendorId, we created `listInvoicesByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class FilterFaqDatasVariablesBuilder { +class ListInvoicesByVendorIdVariablesBuilder { + ... + ListInvoicesByVendorIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListInvoicesByVendorIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listInvoicesByVendorId( + vendorId: vendorId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listInvoicesByVendorId( + vendorId: vendorId, +); +listInvoicesByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; + +final ref = ExampleConnector.instance.listInvoicesByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listInvoicesByBusinessId +#### Required Arguments +```dart +String businessId = ...; +ExampleConnector.instance.listInvoicesByBusinessId( + businessId: businessId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listInvoicesByBusinessId, we created `listInvoicesByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListInvoicesByBusinessIdVariablesBuilder { + ... + ListInvoicesByBusinessIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListInvoicesByBusinessIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listInvoicesByBusinessId( + businessId: businessId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listInvoicesByBusinessId( + businessId: businessId, +); +listInvoicesByBusinessIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessId = ...; + +final ref = ExampleConnector.instance.listInvoicesByBusinessId( + businessId: businessId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listInvoicesByOrderId +#### Required Arguments +```dart +String orderId = ...; +ExampleConnector.instance.listInvoicesByOrderId( + orderId: orderId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listInvoicesByOrderId, we created `listInvoicesByOrderIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListInvoicesByOrderIdVariablesBuilder { + ... + ListInvoicesByOrderIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListInvoicesByOrderIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listInvoicesByOrderId( + orderId: orderId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listInvoicesByOrderId( + orderId: orderId, +); +listInvoicesByOrderIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String orderId = ...; + +final ref = ExampleConnector.instance.listInvoicesByOrderId( + orderId: orderId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listInvoicesByStatus +#### Required Arguments +```dart +InvoiceStatus status = ...; +ExampleConnector.instance.listInvoicesByStatus( + status: status, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listInvoicesByStatus, we created `listInvoicesByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListInvoicesByStatusVariablesBuilder { + ... + ListInvoicesByStatusVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListInvoicesByStatusVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listInvoicesByStatus( + status: status, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listInvoicesByStatus( + status: status, +); +listInvoicesByStatusData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +InvoiceStatus status = ...; + +final ref = ExampleConnector.instance.listInvoicesByStatus( + status: status, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterInvoices +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterInvoices().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterInvoices, we created `filterInvoicesBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterInvoicesVariablesBuilder { ... - FilterFaqDatasVariablesBuilder category(String? t) { - _category.value = t; + FilterInvoicesVariablesBuilder vendorId(String? t) { + _vendorId.value = t; return this; } - - ... -} -ExampleConnector.instance.filterFaqDatas() -.category(category) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterFaqDatas(); -filterFaqDatasData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterFaqDatas().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getStaffDocumentByKey -#### Required Arguments -```dart -String staffId = ...; -String documentId = ...; -ExampleConnector.instance.getStaffDocumentByKey( - staffId: staffId, - documentId: documentId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getStaffDocumentByKey( - staffId: staffId, - documentId: documentId, -); -getStaffDocumentByKeyData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String documentId = ...; - -final ref = ExampleConnector.instance.getStaffDocumentByKey( - staffId: staffId, - documentId: documentId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffDocumentsByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.listStaffDocumentsByStaffId( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffDocumentsByStaffId, we created `listStaffDocumentsByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffDocumentsByStaffIdVariablesBuilder { - ... - ListStaffDocumentsByStaffIdVariablesBuilder offset(int? t) { + FilterInvoicesVariablesBuilder businessId(String? t) { + _businessId.value = t; + return this; + } + FilterInvoicesVariablesBuilder orderId(String? t) { + _orderId.value = t; + return this; + } + FilterInvoicesVariablesBuilder status(InvoiceStatus? t) { + _status.value = t; + return this; + } + FilterInvoicesVariablesBuilder issueDateFrom(Timestamp? t) { + _issueDateFrom.value = t; + return this; + } + FilterInvoicesVariablesBuilder issueDateTo(Timestamp? t) { + _issueDateTo.value = t; + return this; + } + FilterInvoicesVariablesBuilder dueDateFrom(Timestamp? t) { + _dueDateFrom.value = t; + return this; + } + FilterInvoicesVariablesBuilder dueDateTo(Timestamp? t) { + _dueDateTo.value = t; + return this; + } + FilterInvoicesVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListStaffDocumentsByStaffIdVariablesBuilder limit(int? t) { + FilterInvoicesVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listStaffDocumentsByStaffId( - staffId: staffId, +ExampleConnector.instance.filterInvoices() +.vendorId(vendorId) +.businessId(businessId) +.orderId(orderId) +.status(status) +.issueDateFrom(issueDateFrom) +.issueDateTo(issueDateTo) +.dueDateFrom(dueDateFrom) +.dueDateTo(dueDateTo) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterInvoices(); +filterInvoicesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterInvoices().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listOverdueInvoices +#### Required Arguments +```dart +Timestamp now = ...; +ExampleConnector.instance.listOverdueInvoices( + now: now, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listOverdueInvoices, we created `listOverdueInvoicesBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListOverdueInvoicesVariablesBuilder { + ... + ListOverdueInvoicesVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListOverdueInvoicesVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listOverdueInvoices( + now: now, ) .offset(offset) .limit(limit) @@ -12806,7 +10534,7 @@ ExampleConnector.instance.listStaffDocumentsByStaffId( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -12821,10 +10549,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listStaffDocumentsByStaffId( - staffId: staffId, +final result = await ExampleConnector.instance.listOverdueInvoices( + now: now, ); -listStaffDocumentsByStaffIdData data = result.data; +listOverdueInvoicesData data = result.data; final ref = result.ref; ``` @@ -12832,10 +10560,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String staffId = ...; +Timestamp now = ...; -final ref = ExampleConnector.instance.listStaffDocumentsByStaffId( - staffId: staffId, +final ref = ExampleConnector.instance.listOverdueInvoices( + now: now, ).ref(); ref.execute(); @@ -12843,42 +10571,17 @@ ref.subscribe(...); ``` -### listStaffDocumentsByDocumentType +### listMessages #### Required Arguments ```dart -DocumentType documentType = ...; -ExampleConnector.instance.listStaffDocumentsByDocumentType( - documentType: documentType, -).execute(); +// No required arguments +ExampleConnector.instance.listMessages().execute(); ``` -#### Optional Arguments -We return a builder for each query. For listStaffDocumentsByDocumentType, we created `listStaffDocumentsByDocumentTypeBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffDocumentsByDocumentTypeVariablesBuilder { - ... - ListStaffDocumentsByDocumentTypeVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffDocumentsByDocumentTypeVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - ... -} -ExampleConnector.instance.listStaffDocumentsByDocumentType( - documentType: documentType, -) -.offset(offset) -.limit(limit) -.execute(); -``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -12893,10 +10596,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listStaffDocumentsByDocumentType( - documentType: documentType, -); -listStaffDocumentsByDocumentTypeData data = result.data; +final result = await ExampleConnector.instance.listMessages(); +listMessagesData data = result.data; final ref = result.ref; ``` @@ -12904,10 +10605,55 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -DocumentType documentType = ...; +final ref = ExampleConnector.instance.listMessages().ref(); +ref.execute(); -final ref = ExampleConnector.instance.listStaffDocumentsByDocumentType( - documentType: documentType, +ref.subscribe(...); +``` + + +### getMessageById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getMessageById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getMessageById( + id: id, +); +getMessageByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getMessageById( + id: id, ).ref(); ref.execute(); @@ -12915,42 +10661,19 @@ ref.subscribe(...); ``` -### listStaffDocumentsByStatus +### getMessagesByConversationId #### Required Arguments ```dart -DocumentStatus status = ...; -ExampleConnector.instance.listStaffDocumentsByStatus( - status: status, +String conversationId = ...; +ExampleConnector.instance.getMessagesByConversationId( + conversationId: conversationId, ).execute(); ``` -#### Optional Arguments -We return a builder for each query. For listStaffDocumentsByStatus, we created `listStaffDocumentsByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffDocumentsByStatusVariablesBuilder { - ... - ListStaffDocumentsByStatusVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffDocumentsByStatusVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - ... -} -ExampleConnector.instance.listStaffDocumentsByStatus( - status: status, -) -.offset(offset) -.limit(limit) -.execute(); -``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -12965,10 +10688,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listStaffDocumentsByStatus( - status: status, +final result = await ExampleConnector.instance.getMessagesByConversationId( + conversationId: conversationId, ); -listStaffDocumentsByStatusData data = result.data; +getMessagesByConversationIdData data = result.data; final ref = result.ref; ``` @@ -12976,10 +10699,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -DocumentStatus status = ...; +String conversationId = ...; -final ref = ExampleConnector.instance.listStaffDocumentsByStatus( - status: status, +final ref = ExampleConnector.instance.getMessagesByConversationId( + conversationId: conversationId, ).ref(); ref.execute(); @@ -13126,17 +10849,17 @@ ref.subscribe(...); ``` -### listTeams +### listCategories #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listTeams().execute(); +ExampleConnector.instance.listCategories().execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13151,8 +10874,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listTeams(); -listTeamsData data = result.data; +final result = await ExampleConnector.instance.listCategories(); +listCategoriesData data = result.data; final ref = result.ref; ``` @@ -13160,18 +10883,18 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.listTeams().ref(); +final ref = ExampleConnector.instance.listCategories().ref(); ref.execute(); ref.subscribe(...); ``` -### getTeamById +### getCategoryById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getTeamById( +ExampleConnector.instance.getCategoryById( id: id, ).execute(); ``` @@ -13179,7 +10902,7 @@ ExampleConnector.instance.getTeamById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13194,10 +10917,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getTeamById( +final result = await ExampleConnector.instance.getCategoryById( id: id, ); -getTeamByIdData data = result.data; +getCategoryByIdData data = result.data; final ref = result.ref; ``` @@ -13207,7 +10930,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getTeamById( +final ref = ExampleConnector.instance.getCategoryById( id: id, ).ref(); ref.execute(); @@ -13216,19 +10939,39 @@ ref.subscribe(...); ``` -### getTeamsByOwnerId +### filterCategories #### Required Arguments ```dart -String ownerId = ...; -ExampleConnector.instance.getTeamsByOwnerId( - ownerId: ownerId, -).execute(); +// No required arguments +ExampleConnector.instance.filterCategories().execute(); ``` +#### Optional Arguments +We return a builder for each query. For filterCategories, we created `filterCategoriesBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterCategoriesVariablesBuilder { + ... + + FilterCategoriesVariablesBuilder categoryId(String? t) { + _categoryId.value = t; + return this; + } + FilterCategoriesVariablesBuilder label(String? t) { + _label.value = t; + return this; + } + ... +} +ExampleConnector.instance.filterCategories() +.categoryId(categoryId) +.label(label) +.execute(); +``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13243,10 +10986,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getTeamsByOwnerId( - ownerId: ownerId, -); -getTeamsByOwnerIdData data = result.data; +final result = await ExampleConnector.instance.filterCategories(); +filterCategoriesData data = result.data; final ref = result.ref; ``` @@ -13254,10 +10995,96 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String ownerId = ...; +final ref = ExampleConnector.instance.filterCategories().ref(); +ref.execute(); -final ref = ExampleConnector.instance.getTeamsByOwnerId( - ownerId: ownerId, +ref.subscribe(...); +``` + + +### listCustomRateCards +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listCustomRateCards().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listCustomRateCards(); +listCustomRateCardsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listCustomRateCards().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getCustomRateCardById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getCustomRateCardById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getCustomRateCardById( + id: id, +); +getCustomRateCardByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getCustomRateCardById( + id: id, ).ref(); ref.execute(); @@ -13265,6 +11092,1216 @@ ref.subscribe(...); ``` +### listDocuments +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listDocuments().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listDocuments(); +listDocumentsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listDocuments().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getDocumentById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getDocumentById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getDocumentById( + id: id, +); +getDocumentByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getDocumentById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterDocuments +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterDocuments().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterDocuments, we created `filterDocumentsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterDocumentsVariablesBuilder { + ... + + FilterDocumentsVariablesBuilder documentType(DocumentType? t) { + _documentType.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterDocuments() +.documentType(documentType) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterDocuments(); +filterDocumentsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterDocuments().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffAvailabilityStats +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listStaffAvailabilityStats().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffAvailabilityStats, we created `listStaffAvailabilityStatsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffAvailabilityStatsVariablesBuilder { + ... + + ListStaffAvailabilityStatsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffAvailabilityStatsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffAvailabilityStats() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffAvailabilityStats(); +listStaffAvailabilityStatsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listStaffAvailabilityStats().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getStaffAvailabilityStatsByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( + staffId: staffId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( + staffId: staffId, +); +getStaffAvailabilityStatsByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterStaffAvailabilityStats +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterStaffAvailabilityStats().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterStaffAvailabilityStats, we created `filterStaffAvailabilityStatsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterStaffAvailabilityStatsVariablesBuilder { + ... + + FilterStaffAvailabilityStatsVariablesBuilder needWorkIndexMin(int? t) { + _needWorkIndexMin.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder needWorkIndexMax(int? t) { + _needWorkIndexMax.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder utilizationMin(int? t) { + _utilizationMin.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder utilizationMax(int? t) { + _utilizationMax.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder acceptanceRateMin(int? t) { + _acceptanceRateMin.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder acceptanceRateMax(int? t) { + _acceptanceRateMax.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder lastShiftAfter(Timestamp? t) { + _lastShiftAfter.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder lastShiftBefore(Timestamp? t) { + _lastShiftBefore.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterStaffAvailabilityStats() +.needWorkIndexMin(needWorkIndexMin) +.needWorkIndexMax(needWorkIndexMax) +.utilizationMin(utilizationMin) +.utilizationMax(utilizationMax) +.acceptanceRateMin(acceptanceRateMin) +.acceptanceRateMax(acceptanceRateMax) +.lastShiftAfter(lastShiftAfter) +.lastShiftBefore(lastShiftBefore) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterStaffAvailabilityStats(); +filterStaffAvailabilityStatsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterStaffAvailabilityStats().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffAvailabilities +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listStaffAvailabilities().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffAvailabilities, we created `listStaffAvailabilitiesBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffAvailabilitiesVariablesBuilder { + ... + + ListStaffAvailabilitiesVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffAvailabilitiesVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffAvailabilities() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffAvailabilities(); +listStaffAvailabilitiesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listStaffAvailabilities().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffAvailabilitiesByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.listStaffAvailabilitiesByStaffId( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffAvailabilitiesByStaffId, we created `listStaffAvailabilitiesByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffAvailabilitiesByStaffIdVariablesBuilder { + ... + ListStaffAvailabilitiesByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffAvailabilitiesByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffAvailabilitiesByStaffId( + staffId: staffId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffAvailabilitiesByStaffId( + staffId: staffId, +); +listStaffAvailabilitiesByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.listStaffAvailabilitiesByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getStaffAvailabilityByKey +#### Required Arguments +```dart +String staffId = ...; +DayOfWeek day = ...; +AvailabilitySlot slot = ...; +ExampleConnector.instance.getStaffAvailabilityByKey( + staffId: staffId, + day: day, + slot: slot, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getStaffAvailabilityByKey( + staffId: staffId, + day: day, + slot: slot, +); +getStaffAvailabilityByKeyData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +DayOfWeek day = ...; +AvailabilitySlot slot = ...; + +final ref = ExampleConnector.instance.getStaffAvailabilityByKey( + staffId: staffId, + day: day, + slot: slot, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffAvailabilitiesByDay +#### Required Arguments +```dart +DayOfWeek day = ...; +ExampleConnector.instance.listStaffAvailabilitiesByDay( + day: day, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffAvailabilitiesByDay, we created `listStaffAvailabilitiesByDayBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffAvailabilitiesByDayVariablesBuilder { + ... + ListStaffAvailabilitiesByDayVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffAvailabilitiesByDayVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffAvailabilitiesByDay( + day: day, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffAvailabilitiesByDay( + day: day, +); +listStaffAvailabilitiesByDayData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +DayOfWeek day = ...; + +final ref = ExampleConnector.instance.listStaffAvailabilitiesByDay( + day: day, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getStaffCourseById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getStaffCourseById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getStaffCourseById( + id: id, +); +getStaffCourseByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getStaffCourseById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffCoursesByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.listStaffCoursesByStaffId( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffCoursesByStaffId, we created `listStaffCoursesByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffCoursesByStaffIdVariablesBuilder { + ... + ListStaffCoursesByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffCoursesByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffCoursesByStaffId( + staffId: staffId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffCoursesByStaffId( + staffId: staffId, +); +listStaffCoursesByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.listStaffCoursesByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffCoursesByCourseId +#### Required Arguments +```dart +String courseId = ...; +ExampleConnector.instance.listStaffCoursesByCourseId( + courseId: courseId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffCoursesByCourseId, we created `listStaffCoursesByCourseIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffCoursesByCourseIdVariablesBuilder { + ... + ListStaffCoursesByCourseIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffCoursesByCourseIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffCoursesByCourseId( + courseId: courseId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffCoursesByCourseId( + courseId: courseId, +); +listStaffCoursesByCourseIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String courseId = ...; + +final ref = ExampleConnector.instance.listStaffCoursesByCourseId( + courseId: courseId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getStaffCourseByStaffAndCourse +#### Required Arguments +```dart +String staffId = ...; +String courseId = ...; +ExampleConnector.instance.getStaffCourseByStaffAndCourse( + staffId: staffId, + courseId: courseId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getStaffCourseByStaffAndCourse( + staffId: staffId, + courseId: courseId, +); +getStaffCourseByStaffAndCourseData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +String courseId = ...; + +final ref = ExampleConnector.instance.getStaffCourseByStaffAndCourse( + staffId: staffId, + courseId: courseId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffRoles +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listStaffRoles().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffRoles, we created `listStaffRolesBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffRolesVariablesBuilder { + ... + + ListStaffRolesVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffRolesVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffRoles() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffRoles(); +listStaffRolesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listStaffRoles().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getStaffRoleByKey +#### Required Arguments +```dart +String staffId = ...; +String roleId = ...; +ExampleConnector.instance.getStaffRoleByKey( + staffId: staffId, + roleId: roleId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getStaffRoleByKey( + staffId: staffId, + roleId: roleId, +); +getStaffRoleByKeyData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +String roleId = ...; + +final ref = ExampleConnector.instance.getStaffRoleByKey( + staffId: staffId, + roleId: roleId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffRolesByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.listStaffRolesByStaffId( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffRolesByStaffId, we created `listStaffRolesByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffRolesByStaffIdVariablesBuilder { + ... + ListStaffRolesByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffRolesByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffRolesByStaffId( + staffId: staffId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffRolesByStaffId( + staffId: staffId, +); +listStaffRolesByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.listStaffRolesByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffRolesByRoleId +#### Required Arguments +```dart +String roleId = ...; +ExampleConnector.instance.listStaffRolesByRoleId( + roleId: roleId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffRolesByRoleId, we created `listStaffRolesByRoleIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffRolesByRoleIdVariablesBuilder { + ... + ListStaffRolesByRoleIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffRolesByRoleIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffRolesByRoleId( + roleId: roleId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffRolesByRoleId( + roleId: roleId, +); +listStaffRolesByRoleIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String roleId = ...; + +final ref = ExampleConnector.instance.listStaffRolesByRoleId( + roleId: roleId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterStaffRoles +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterStaffRoles().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterStaffRoles, we created `filterStaffRolesBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterStaffRolesVariablesBuilder { + ... + + FilterStaffRolesVariablesBuilder staffId(String? t) { + _staffId.value = t; + return this; + } + FilterStaffRolesVariablesBuilder roleId(String? t) { + _roleId.value = t; + return this; + } + FilterStaffRolesVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + FilterStaffRolesVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterStaffRoles() +.staffId(staffId) +.roleId(roleId) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterStaffRoles(); +filterStaffRolesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterStaffRoles().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + ### listEmergencyContacts #### Required Arguments ```dart @@ -13403,217 +12440,1215 @@ ref.execute(); ref.subscribe(...); ``` + +### listInvoiceTemplates +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listInvoiceTemplates().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listInvoiceTemplates, we created `listInvoiceTemplatesBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListInvoiceTemplatesVariablesBuilder { + ... + + ListInvoiceTemplatesVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListInvoiceTemplatesVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listInvoiceTemplates() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listInvoiceTemplates(); +listInvoiceTemplatesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listInvoiceTemplates().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getInvoiceTemplateById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getInvoiceTemplateById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getInvoiceTemplateById( + id: id, +); +getInvoiceTemplateByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getInvoiceTemplateById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listInvoiceTemplatesByOwnerId +#### Required Arguments +```dart +String ownerId = ...; +ExampleConnector.instance.listInvoiceTemplatesByOwnerId( + ownerId: ownerId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listInvoiceTemplatesByOwnerId, we created `listInvoiceTemplatesByOwnerIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListInvoiceTemplatesByOwnerIdVariablesBuilder { + ... + ListInvoiceTemplatesByOwnerIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListInvoiceTemplatesByOwnerIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listInvoiceTemplatesByOwnerId( + ownerId: ownerId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listInvoiceTemplatesByOwnerId( + ownerId: ownerId, +); +listInvoiceTemplatesByOwnerIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String ownerId = ...; + +final ref = ExampleConnector.instance.listInvoiceTemplatesByOwnerId( + ownerId: ownerId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listInvoiceTemplatesByVendorId +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.listInvoiceTemplatesByVendorId( + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listInvoiceTemplatesByVendorId, we created `listInvoiceTemplatesByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListInvoiceTemplatesByVendorIdVariablesBuilder { + ... + ListInvoiceTemplatesByVendorIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListInvoiceTemplatesByVendorIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listInvoiceTemplatesByVendorId( + vendorId: vendorId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listInvoiceTemplatesByVendorId( + vendorId: vendorId, +); +listInvoiceTemplatesByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; + +final ref = ExampleConnector.instance.listInvoiceTemplatesByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listInvoiceTemplatesByBusinessId +#### Required Arguments +```dart +String businessId = ...; +ExampleConnector.instance.listInvoiceTemplatesByBusinessId( + businessId: businessId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listInvoiceTemplatesByBusinessId, we created `listInvoiceTemplatesByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListInvoiceTemplatesByBusinessIdVariablesBuilder { + ... + ListInvoiceTemplatesByBusinessIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListInvoiceTemplatesByBusinessIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listInvoiceTemplatesByBusinessId( + businessId: businessId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listInvoiceTemplatesByBusinessId( + businessId: businessId, +); +listInvoiceTemplatesByBusinessIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessId = ...; + +final ref = ExampleConnector.instance.listInvoiceTemplatesByBusinessId( + businessId: businessId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listInvoiceTemplatesByOrderId +#### Required Arguments +```dart +String orderId = ...; +ExampleConnector.instance.listInvoiceTemplatesByOrderId( + orderId: orderId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listInvoiceTemplatesByOrderId, we created `listInvoiceTemplatesByOrderIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListInvoiceTemplatesByOrderIdVariablesBuilder { + ... + ListInvoiceTemplatesByOrderIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListInvoiceTemplatesByOrderIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listInvoiceTemplatesByOrderId( + orderId: orderId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listInvoiceTemplatesByOrderId( + orderId: orderId, +); +listInvoiceTemplatesByOrderIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String orderId = ...; + +final ref = ExampleConnector.instance.listInvoiceTemplatesByOrderId( + orderId: orderId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### searchInvoiceTemplatesByOwnerAndName +#### Required Arguments +```dart +String ownerId = ...; +String name = ...; +ExampleConnector.instance.searchInvoiceTemplatesByOwnerAndName( + ownerId: ownerId, + name: name, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For searchInvoiceTemplatesByOwnerAndName, we created `searchInvoiceTemplatesByOwnerAndNameBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder { + ... + SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.searchInvoiceTemplatesByOwnerAndName( + ownerId: ownerId, + name: name, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.searchInvoiceTemplatesByOwnerAndName( + ownerId: ownerId, + name: name, +); +searchInvoiceTemplatesByOwnerAndNameData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String ownerId = ...; +String name = ...; + +final ref = ExampleConnector.instance.searchInvoiceTemplatesByOwnerAndName( + ownerId: ownerId, + name: name, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listOrders +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listOrders().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listOrders, we created `listOrdersBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListOrdersVariablesBuilder { + ... + + ListOrdersVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListOrdersVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listOrders() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listOrders(); +listOrdersData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listOrders().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getOrderById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getOrderById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getOrderById( + id: id, +); +getOrderByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getOrderById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getOrdersByBusinessId +#### Required Arguments +```dart +String businessId = ...; +ExampleConnector.instance.getOrdersByBusinessId( + businessId: businessId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getOrdersByBusinessId, we created `getOrdersByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetOrdersByBusinessIdVariablesBuilder { + ... + GetOrdersByBusinessIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetOrdersByBusinessIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getOrdersByBusinessId( + businessId: businessId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getOrdersByBusinessId( + businessId: businessId, +); +getOrdersByBusinessIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessId = ...; + +final ref = ExampleConnector.instance.getOrdersByBusinessId( + businessId: businessId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getOrdersByVendorId +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.getOrdersByVendorId( + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getOrdersByVendorId, we created `getOrdersByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetOrdersByVendorIdVariablesBuilder { + ... + GetOrdersByVendorIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetOrdersByVendorIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getOrdersByVendorId( + vendorId: vendorId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getOrdersByVendorId( + vendorId: vendorId, +); +getOrdersByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; + +final ref = ExampleConnector.instance.getOrdersByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getOrdersByStatus +#### Required Arguments +```dart +OrderStatus status = ...; +ExampleConnector.instance.getOrdersByStatus( + status: status, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getOrdersByStatus, we created `getOrdersByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetOrdersByStatusVariablesBuilder { + ... + GetOrdersByStatusVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetOrdersByStatusVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getOrdersByStatus( + status: status, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getOrdersByStatus( + status: status, +); +getOrdersByStatusData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +OrderStatus status = ...; + +final ref = ExampleConnector.instance.getOrdersByStatus( + status: status, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getOrdersByDateRange +#### Required Arguments +```dart +Timestamp start = ...; +Timestamp end = ...; +ExampleConnector.instance.getOrdersByDateRange( + start: start, + end: end, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getOrdersByDateRange, we created `getOrdersByDateRangeBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetOrdersByDateRangeVariablesBuilder { + ... + GetOrdersByDateRangeVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetOrdersByDateRangeVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getOrdersByDateRange( + start: start, + end: end, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getOrdersByDateRange( + start: start, + end: end, +); +getOrdersByDateRangeData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +Timestamp start = ...; +Timestamp end = ...; + +final ref = ExampleConnector.instance.getOrdersByDateRange( + start: start, + end: end, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getRapidOrders +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.getRapidOrders().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getRapidOrders, we created `getRapidOrdersBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetRapidOrdersVariablesBuilder { + ... + + GetRapidOrdersVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetRapidOrdersVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getRapidOrders() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getRapidOrders(); +getRapidOrdersData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.getRapidOrders().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listOrdersByBusinessAndTeamHub +#### Required Arguments +```dart +String businessId = ...; +String teamHubId = ...; +ExampleConnector.instance.listOrdersByBusinessAndTeamHub( + businessId: businessId, + teamHubId: teamHubId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listOrdersByBusinessAndTeamHub, we created `listOrdersByBusinessAndTeamHubBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListOrdersByBusinessAndTeamHubVariablesBuilder { + ... + ListOrdersByBusinessAndTeamHubVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListOrdersByBusinessAndTeamHubVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listOrdersByBusinessAndTeamHub( + businessId: businessId, + teamHubId: teamHubId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listOrdersByBusinessAndTeamHub( + businessId: businessId, + teamHubId: teamHubId, +); +listOrdersByBusinessAndTeamHubData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessId = ...; +String teamHubId = ...; + +final ref = ExampleConnector.instance.listOrdersByBusinessAndTeamHub( + businessId: businessId, + teamHubId: teamHubId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRoleCategories +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listRoleCategories().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listRoleCategories(); +listRoleCategoriesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listRoleCategories().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getRoleCategoryById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getRoleCategoryById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getRoleCategoryById( + id: id, +); +getRoleCategoryByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getRoleCategoryById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getRoleCategoriesByCategory +#### Required Arguments +```dart +RoleCategoryType category = ...; +ExampleConnector.instance.getRoleCategoriesByCategory( + category: category, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getRoleCategoriesByCategory( + category: category, +); +getRoleCategoriesByCategoryData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +RoleCategoryType category = ...; + +final ref = ExampleConnector.instance.getRoleCategoriesByCategory( + category: category, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + ## Mutations -### createFaqData -#### Required Arguments -```dart -String category = ...; -ExampleConnector.instance.createFaqData( - category: category, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createFaqData, we created `createFaqDataBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateFaqDataVariablesBuilder { - ... - CreateFaqDataVariablesBuilder questions(List? t) { - _questions.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createFaqData( - category: category, -) -.questions(questions) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createFaqData( - category: category, -); -createFaqDataData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String category = ...; - -final ref = ExampleConnector.instance.createFaqData( - category: category, -).ref(); -ref.execute(); -``` - - -### updateFaqData -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateFaqData( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateFaqData, we created `updateFaqDataBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateFaqDataVariablesBuilder { - ... - UpdateFaqDataVariablesBuilder category(String? t) { - _category.value = t; - return this; - } - UpdateFaqDataVariablesBuilder questions(List? t) { - _questions.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateFaqData( - id: id, -) -.category(category) -.questions(questions) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateFaqData( - id: id, -); -updateFaqDataData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateFaqData( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteFaqData -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteFaqData( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteFaqData( - id: id, -); -deleteFaqDataData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteFaqData( - id: id, -).ref(); -ref.execute(); -``` - - -### createStaffAvailability +### createRecentPayment #### Required Arguments ```dart String staffId = ...; -DayOfWeek day = ...; -AvailabilitySlot slot = ...; -ExampleConnector.instance.createStaffAvailability( +String applicationId = ...; +String invoiceId = ...; +ExampleConnector.instance.createRecentPayment( staffId: staffId, - day: day, - slot: slot, + applicationId: applicationId, + invoiceId: invoiceId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createStaffAvailability, we created `createStaffAvailabilityBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createRecentPayment, we created `createRecentPaymentBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateStaffAvailabilityVariablesBuilder { +class CreateRecentPaymentVariablesBuilder { ... - CreateStaffAvailabilityVariablesBuilder status(AvailabilityStatus? t) { + + CreateRecentPaymentVariablesBuilder workedTime(String? t) { + _workedTime.value = t; + return this; + } + CreateRecentPaymentVariablesBuilder status(RecentPaymentStatus? t) { _status.value = t; return this; } - CreateStaffAvailabilityVariablesBuilder notes(String? t) { - _notes.value = t; - return this; - } ... } -ExampleConnector.instance.createStaffAvailability( +ExampleConnector.instance.createRecentPayment( staffId: staffId, - day: day, - slot: slot, + applicationId: applicationId, + invoiceId: invoiceId, ) +.workedTime(workedTime) .status(status) -.notes(notes) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13623,12 +13658,12 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createStaffAvailability( +final result = await ExampleConnector.instance.createRecentPayment( staffId: staffId, - day: day, - slot: slot, + applicationId: applicationId, + invoiceId: invoiceId, ); -createStaffAvailabilityData data = result.data; +createRecentPaymentData data = result.data; final ref = result.ref; ``` @@ -13637,60 +13672,69 @@ Each builder returns an `execute` function, which is a helper function that crea An example of how to use the `Ref` object is shown below: ```dart String staffId = ...; -DayOfWeek day = ...; -AvailabilitySlot slot = ...; +String applicationId = ...; +String invoiceId = ...; -final ref = ExampleConnector.instance.createStaffAvailability( +final ref = ExampleConnector.instance.createRecentPayment( staffId: staffId, - day: day, - slot: slot, + applicationId: applicationId, + invoiceId: invoiceId, ).ref(); ref.execute(); ``` -### updateStaffAvailability +### updateRecentPayment #### Required Arguments ```dart -String staffId = ...; -DayOfWeek day = ...; -AvailabilitySlot slot = ...; -ExampleConnector.instance.updateStaffAvailability( - staffId: staffId, - day: day, - slot: slot, +String id = ...; +ExampleConnector.instance.updateRecentPayment( + id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateStaffAvailability, we created `updateStaffAvailabilityBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateRecentPayment, we created `updateRecentPaymentBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateStaffAvailabilityVariablesBuilder { +class UpdateRecentPaymentVariablesBuilder { ... - UpdateStaffAvailabilityVariablesBuilder status(AvailabilityStatus? t) { + UpdateRecentPaymentVariablesBuilder workedTime(String? t) { + _workedTime.value = t; + return this; + } + UpdateRecentPaymentVariablesBuilder status(RecentPaymentStatus? t) { _status.value = t; return this; } - UpdateStaffAvailabilityVariablesBuilder notes(String? t) { - _notes.value = t; + UpdateRecentPaymentVariablesBuilder staffId(String? t) { + _staffId.value = t; + return this; + } + UpdateRecentPaymentVariablesBuilder applicationId(String? t) { + _applicationId.value = t; + return this; + } + UpdateRecentPaymentVariablesBuilder invoiceId(String? t) { + _invoiceId.value = t; return this; } ... } -ExampleConnector.instance.updateStaffAvailability( - staffId: staffId, - day: day, - slot: slot, +ExampleConnector.instance.updateRecentPayment( + id: id, ) +.workedTime(workedTime) .status(status) -.notes(notes) +.staffId(staffId) +.applicationId(applicationId) +.invoiceId(invoiceId) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13700,235 +13744,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateStaffAvailability( - staffId: staffId, - day: day, - slot: slot, -); -updateStaffAvailabilityData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -DayOfWeek day = ...; -AvailabilitySlot slot = ...; - -final ref = ExampleConnector.instance.updateStaffAvailability( - staffId: staffId, - day: day, - slot: slot, -).ref(); -ref.execute(); -``` - - -### deleteStaffAvailability -#### Required Arguments -```dart -String staffId = ...; -DayOfWeek day = ...; -AvailabilitySlot slot = ...; -ExampleConnector.instance.deleteStaffAvailability( - staffId: staffId, - day: day, - slot: slot, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteStaffAvailability( - staffId: staffId, - day: day, - slot: slot, -); -deleteStaffAvailabilityData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -DayOfWeek day = ...; -AvailabilitySlot slot = ...; - -final ref = ExampleConnector.instance.deleteStaffAvailability( - staffId: staffId, - day: day, - slot: slot, -).ref(); -ref.execute(); -``` - - -### createTaxForm -#### Required Arguments -```dart -TaxFormType formType = ...; -String title = ...; -String staffId = ...; -ExampleConnector.instance.createTaxForm( - formType: formType, - title: title, - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createTaxForm, we created `createTaxFormBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateTaxFormVariablesBuilder { - ... - CreateTaxFormVariablesBuilder subtitle(String? t) { - _subtitle.value = t; - return this; - } - CreateTaxFormVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - CreateTaxFormVariablesBuilder status(TaxFormStatus? t) { - _status.value = t; - return this; - } - CreateTaxFormVariablesBuilder formData(AnyValue? t) { - _formData.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createTaxForm( - formType: formType, - title: title, - staffId: staffId, -) -.subtitle(subtitle) -.description(description) -.status(status) -.formData(formData) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createTaxForm( - formType: formType, - title: title, - staffId: staffId, -); -createTaxFormData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -TaxFormType formType = ...; -String title = ...; -String staffId = ...; - -final ref = ExampleConnector.instance.createTaxForm( - formType: formType, - title: title, - staffId: staffId, -).ref(); -ref.execute(); -``` - - -### updateTaxForm -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateTaxForm( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateTaxForm, we created `updateTaxFormBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateTaxFormVariablesBuilder { - ... - UpdateTaxFormVariablesBuilder status(TaxFormStatus? t) { - _status.value = t; - return this; - } - UpdateTaxFormVariablesBuilder formData(AnyValue? t) { - _formData.value = t; - return this; - } - UpdateTaxFormVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - UpdateTaxFormVariablesBuilder subtitle(String? t) { - _subtitle.value = t; - return this; - } - UpdateTaxFormVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateTaxForm( - id: id, -) -.status(status) -.formData(formData) -.title(title) -.subtitle(subtitle) -.description(description) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateTaxForm( +final result = await ExampleConnector.instance.updateRecentPayment( id: id, ); -updateTaxFormData data = result.data; +updateRecentPaymentData data = result.data; final ref = result.ref; ``` @@ -13938,18 +13757,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateTaxForm( +final ref = ExampleConnector.instance.updateRecentPayment( id: id, ).ref(); ref.execute(); ``` -### deleteTaxForm +### deleteRecentPayment #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteTaxForm( +ExampleConnector.instance.deleteRecentPayment( id: id, ).execute(); ``` @@ -13957,7 +13776,7 @@ ExampleConnector.instance.deleteTaxForm( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13967,10 +13786,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteTaxForm( +final result = await ExampleConnector.instance.deleteRecentPayment( id: id, ); -deleteTaxFormData data = result.data; +deleteRecentPaymentData data = result.data; final ref = result.ref; ``` @@ -13980,2057 +13799,13 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteTaxForm( +final ref = ExampleConnector.instance.deleteRecentPayment( id: id, ).ref(); ref.execute(); ``` -### createMessage -#### Required Arguments -```dart -String conversationId = ...; -String senderId = ...; -String content = ...; -ExampleConnector.instance.createMessage( - conversationId: conversationId, - senderId: senderId, - content: content, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createMessage, we created `createMessageBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateMessageVariablesBuilder { - ... - CreateMessageVariablesBuilder isSystem(bool? t) { - _isSystem.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createMessage( - conversationId: conversationId, - senderId: senderId, - content: content, -) -.isSystem(isSystem) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createMessage( - conversationId: conversationId, - senderId: senderId, - content: content, -); -createMessageData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String conversationId = ...; -String senderId = ...; -String content = ...; - -final ref = ExampleConnector.instance.createMessage( - conversationId: conversationId, - senderId: senderId, - content: content, -).ref(); -ref.execute(); -``` - - -### updateMessage -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateMessage( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateMessage, we created `updateMessageBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateMessageVariablesBuilder { - ... - UpdateMessageVariablesBuilder conversationId(String? t) { - _conversationId.value = t; - return this; - } - UpdateMessageVariablesBuilder senderId(String? t) { - _senderId.value = t; - return this; - } - UpdateMessageVariablesBuilder content(String? t) { - _content.value = t; - return this; - } - UpdateMessageVariablesBuilder isSystem(bool? t) { - _isSystem.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateMessage( - id: id, -) -.conversationId(conversationId) -.senderId(senderId) -.content(content) -.isSystem(isSystem) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateMessage( - id: id, -); -updateMessageData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateMessage( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteMessage -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteMessage( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteMessage( - id: id, -); -deleteMessageData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteMessage( - id: id, -).ref(); -ref.execute(); -``` - - -### createVendor -#### Required Arguments -```dart -String userId = ...; -String companyName = ...; -ExampleConnector.instance.createVendor( - userId: userId, - companyName: companyName, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createVendor, we created `createVendorBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateVendorVariablesBuilder { - ... - CreateVendorVariablesBuilder email(String? t) { - _email.value = t; - return this; - } - CreateVendorVariablesBuilder phone(String? t) { - _phone.value = t; - return this; - } - CreateVendorVariablesBuilder photoUrl(String? t) { - _photoUrl.value = t; - return this; - } - CreateVendorVariablesBuilder address(String? t) { - _address.value = t; - return this; - } - CreateVendorVariablesBuilder billingAddress(String? t) { - _billingAddress.value = t; - return this; - } - CreateVendorVariablesBuilder timezone(String? t) { - _timezone.value = t; - return this; - } - CreateVendorVariablesBuilder legalName(String? t) { - _legalName.value = t; - return this; - } - CreateVendorVariablesBuilder doingBusinessAs(String? t) { - _doingBusinessAs.value = t; - return this; - } - CreateVendorVariablesBuilder region(String? t) { - _region.value = t; - return this; - } - CreateVendorVariablesBuilder state(String? t) { - _state.value = t; - return this; - } - CreateVendorVariablesBuilder city(String? t) { - _city.value = t; - return this; - } - CreateVendorVariablesBuilder serviceSpecialty(String? t) { - _serviceSpecialty.value = t; - return this; - } - CreateVendorVariablesBuilder approvalStatus(ApprovalStatus? t) { - _approvalStatus.value = t; - return this; - } - CreateVendorVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - CreateVendorVariablesBuilder markup(double? t) { - _markup.value = t; - return this; - } - CreateVendorVariablesBuilder fee(double? t) { - _fee.value = t; - return this; - } - CreateVendorVariablesBuilder csat(double? t) { - _csat.value = t; - return this; - } - CreateVendorVariablesBuilder tier(VendorTier? t) { - _tier.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createVendor( - userId: userId, - companyName: companyName, -) -.email(email) -.phone(phone) -.photoUrl(photoUrl) -.address(address) -.billingAddress(billingAddress) -.timezone(timezone) -.legalName(legalName) -.doingBusinessAs(doingBusinessAs) -.region(region) -.state(state) -.city(city) -.serviceSpecialty(serviceSpecialty) -.approvalStatus(approvalStatus) -.isActive(isActive) -.markup(markup) -.fee(fee) -.csat(csat) -.tier(tier) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createVendor( - userId: userId, - companyName: companyName, -); -createVendorData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String userId = ...; -String companyName = ...; - -final ref = ExampleConnector.instance.createVendor( - userId: userId, - companyName: companyName, -).ref(); -ref.execute(); -``` - - -### updateVendor -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateVendor( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateVendor, we created `updateVendorBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateVendorVariablesBuilder { - ... - UpdateVendorVariablesBuilder companyName(String? t) { - _companyName.value = t; - return this; - } - UpdateVendorVariablesBuilder email(String? t) { - _email.value = t; - return this; - } - UpdateVendorVariablesBuilder phone(String? t) { - _phone.value = t; - return this; - } - UpdateVendorVariablesBuilder photoUrl(String? t) { - _photoUrl.value = t; - return this; - } - UpdateVendorVariablesBuilder address(String? t) { - _address.value = t; - return this; - } - UpdateVendorVariablesBuilder billingAddress(String? t) { - _billingAddress.value = t; - return this; - } - UpdateVendorVariablesBuilder timezone(String? t) { - _timezone.value = t; - return this; - } - UpdateVendorVariablesBuilder legalName(String? t) { - _legalName.value = t; - return this; - } - UpdateVendorVariablesBuilder doingBusinessAs(String? t) { - _doingBusinessAs.value = t; - return this; - } - UpdateVendorVariablesBuilder region(String? t) { - _region.value = t; - return this; - } - UpdateVendorVariablesBuilder state(String? t) { - _state.value = t; - return this; - } - UpdateVendorVariablesBuilder city(String? t) { - _city.value = t; - return this; - } - UpdateVendorVariablesBuilder serviceSpecialty(String? t) { - _serviceSpecialty.value = t; - return this; - } - UpdateVendorVariablesBuilder approvalStatus(ApprovalStatus? t) { - _approvalStatus.value = t; - return this; - } - UpdateVendorVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - UpdateVendorVariablesBuilder markup(double? t) { - _markup.value = t; - return this; - } - UpdateVendorVariablesBuilder fee(double? t) { - _fee.value = t; - return this; - } - UpdateVendorVariablesBuilder csat(double? t) { - _csat.value = t; - return this; - } - UpdateVendorVariablesBuilder tier(VendorTier? t) { - _tier.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateVendor( - id: id, -) -.companyName(companyName) -.email(email) -.phone(phone) -.photoUrl(photoUrl) -.address(address) -.billingAddress(billingAddress) -.timezone(timezone) -.legalName(legalName) -.doingBusinessAs(doingBusinessAs) -.region(region) -.state(state) -.city(city) -.serviceSpecialty(serviceSpecialty) -.approvalStatus(approvalStatus) -.isActive(isActive) -.markup(markup) -.fee(fee) -.csat(csat) -.tier(tier) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateVendor( - id: id, -); -updateVendorData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateVendor( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteVendor -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteVendor( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteVendor( - id: id, -); -deleteVendorData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteVendor( - id: id, -).ref(); -ref.execute(); -``` - - -### createAccount -#### Required Arguments -```dart -String bank = ...; -AccountType type = ...; -String last4 = ...; -String ownerId = ...; -ExampleConnector.instance.createAccount( - bank: bank, - type: type, - last4: last4, - ownerId: ownerId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createAccount, we created `createAccountBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateAccountVariablesBuilder { - ... - CreateAccountVariablesBuilder isPrimary(bool? t) { - _isPrimary.value = t; - return this; - } - CreateAccountVariablesBuilder accountNumber(String? t) { - _accountNumber.value = t; - return this; - } - CreateAccountVariablesBuilder routeNumber(String? t) { - _routeNumber.value = t; - return this; - } - CreateAccountVariablesBuilder expiryTime(Timestamp? t) { - _expiryTime.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createAccount( - bank: bank, - type: type, - last4: last4, - ownerId: ownerId, -) -.isPrimary(isPrimary) -.accountNumber(accountNumber) -.routeNumber(routeNumber) -.expiryTime(expiryTime) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createAccount( - bank: bank, - type: type, - last4: last4, - ownerId: ownerId, -); -createAccountData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String bank = ...; -AccountType type = ...; -String last4 = ...; -String ownerId = ...; - -final ref = ExampleConnector.instance.createAccount( - bank: bank, - type: type, - last4: last4, - ownerId: ownerId, -).ref(); -ref.execute(); -``` - - -### updateAccount -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateAccount( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateAccount, we created `updateAccountBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateAccountVariablesBuilder { - ... - UpdateAccountVariablesBuilder bank(String? t) { - _bank.value = t; - return this; - } - UpdateAccountVariablesBuilder type(AccountType? t) { - _type.value = t; - return this; - } - UpdateAccountVariablesBuilder last4(String? t) { - _last4.value = t; - return this; - } - UpdateAccountVariablesBuilder isPrimary(bool? t) { - _isPrimary.value = t; - return this; - } - UpdateAccountVariablesBuilder accountNumber(String? t) { - _accountNumber.value = t; - return this; - } - UpdateAccountVariablesBuilder routeNumber(String? t) { - _routeNumber.value = t; - return this; - } - UpdateAccountVariablesBuilder expiryTime(Timestamp? t) { - _expiryTime.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateAccount( - id: id, -) -.bank(bank) -.type(type) -.last4(last4) -.isPrimary(isPrimary) -.accountNumber(accountNumber) -.routeNumber(routeNumber) -.expiryTime(expiryTime) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateAccount( - id: id, -); -updateAccountData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateAccount( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteAccount -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteAccount( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteAccount( - id: id, -); -deleteAccountData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteAccount( - id: id, -).ref(); -ref.execute(); -``` - - -### createShiftRole -#### Required Arguments -```dart -String shiftId = ...; -String roleId = ...; -int count = ...; -ExampleConnector.instance.createShiftRole( - shiftId: shiftId, - roleId: roleId, - count: count, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createShiftRole, we created `createShiftRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateShiftRoleVariablesBuilder { - ... - CreateShiftRoleVariablesBuilder assigned(int? t) { - _assigned.value = t; - return this; - } - CreateShiftRoleVariablesBuilder startTime(Timestamp? t) { - _startTime.value = t; - return this; - } - CreateShiftRoleVariablesBuilder endTime(Timestamp? t) { - _endTime.value = t; - return this; - } - CreateShiftRoleVariablesBuilder hours(double? t) { - _hours.value = t; - return this; - } - CreateShiftRoleVariablesBuilder department(String? t) { - _department.value = t; - return this; - } - CreateShiftRoleVariablesBuilder uniform(String? t) { - _uniform.value = t; - return this; - } - CreateShiftRoleVariablesBuilder breakType(BreakDuration? t) { - _breakType.value = t; - return this; - } - CreateShiftRoleVariablesBuilder totalValue(double? t) { - _totalValue.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createShiftRole( - shiftId: shiftId, - roleId: roleId, - count: count, -) -.assigned(assigned) -.startTime(startTime) -.endTime(endTime) -.hours(hours) -.department(department) -.uniform(uniform) -.breakType(breakType) -.totalValue(totalValue) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createShiftRole( - shiftId: shiftId, - roleId: roleId, - count: count, -); -createShiftRoleData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String shiftId = ...; -String roleId = ...; -int count = ...; - -final ref = ExampleConnector.instance.createShiftRole( - shiftId: shiftId, - roleId: roleId, - count: count, -).ref(); -ref.execute(); -``` - - -### updateShiftRole -#### Required Arguments -```dart -String shiftId = ...; -String roleId = ...; -ExampleConnector.instance.updateShiftRole( - shiftId: shiftId, - roleId: roleId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateShiftRole, we created `updateShiftRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateShiftRoleVariablesBuilder { - ... - UpdateShiftRoleVariablesBuilder count(int? t) { - _count.value = t; - return this; - } - UpdateShiftRoleVariablesBuilder assigned(int? t) { - _assigned.value = t; - return this; - } - UpdateShiftRoleVariablesBuilder startTime(Timestamp? t) { - _startTime.value = t; - return this; - } - UpdateShiftRoleVariablesBuilder endTime(Timestamp? t) { - _endTime.value = t; - return this; - } - UpdateShiftRoleVariablesBuilder hours(double? t) { - _hours.value = t; - return this; - } - UpdateShiftRoleVariablesBuilder department(String? t) { - _department.value = t; - return this; - } - UpdateShiftRoleVariablesBuilder uniform(String? t) { - _uniform.value = t; - return this; - } - UpdateShiftRoleVariablesBuilder breakType(BreakDuration? t) { - _breakType.value = t; - return this; - } - UpdateShiftRoleVariablesBuilder totalValue(double? t) { - _totalValue.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateShiftRole( - shiftId: shiftId, - roleId: roleId, -) -.count(count) -.assigned(assigned) -.startTime(startTime) -.endTime(endTime) -.hours(hours) -.department(department) -.uniform(uniform) -.breakType(breakType) -.totalValue(totalValue) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateShiftRole( - shiftId: shiftId, - roleId: roleId, -); -updateShiftRoleData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String shiftId = ...; -String roleId = ...; - -final ref = ExampleConnector.instance.updateShiftRole( - shiftId: shiftId, - roleId: roleId, -).ref(); -ref.execute(); -``` - - -### deleteShiftRole -#### Required Arguments -```dart -String shiftId = ...; -String roleId = ...; -ExampleConnector.instance.deleteShiftRole( - shiftId: shiftId, - roleId: roleId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteShiftRole( - shiftId: shiftId, - roleId: roleId, -); -deleteShiftRoleData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String shiftId = ...; -String roleId = ...; - -final ref = ExampleConnector.instance.deleteShiftRole( - shiftId: shiftId, - roleId: roleId, -).ref(); -ref.execute(); -``` - - -### createStaffAvailabilityStats -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.createStaffAvailabilityStats( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createStaffAvailabilityStats, we created `createStaffAvailabilityStatsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateStaffAvailabilityStatsVariablesBuilder { - ... - CreateStaffAvailabilityStatsVariablesBuilder needWorkIndex(int? t) { - _needWorkIndex.value = t; - return this; - } - CreateStaffAvailabilityStatsVariablesBuilder utilizationPercentage(int? t) { - _utilizationPercentage.value = t; - return this; - } - CreateStaffAvailabilityStatsVariablesBuilder predictedAvailabilityScore(int? t) { - _predictedAvailabilityScore.value = t; - return this; - } - CreateStaffAvailabilityStatsVariablesBuilder scheduledHoursThisPeriod(int? t) { - _scheduledHoursThisPeriod.value = t; - return this; - } - CreateStaffAvailabilityStatsVariablesBuilder desiredHoursThisPeriod(int? t) { - _desiredHoursThisPeriod.value = t; - return this; - } - CreateStaffAvailabilityStatsVariablesBuilder lastShiftDate(Timestamp? t) { - _lastShiftDate.value = t; - return this; - } - CreateStaffAvailabilityStatsVariablesBuilder acceptanceRate(int? t) { - _acceptanceRate.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createStaffAvailabilityStats( - staffId: staffId, -) -.needWorkIndex(needWorkIndex) -.utilizationPercentage(utilizationPercentage) -.predictedAvailabilityScore(predictedAvailabilityScore) -.scheduledHoursThisPeriod(scheduledHoursThisPeriod) -.desiredHoursThisPeriod(desiredHoursThisPeriod) -.lastShiftDate(lastShiftDate) -.acceptanceRate(acceptanceRate) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createStaffAvailabilityStats( - staffId: staffId, -); -createStaffAvailabilityStatsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.createStaffAvailabilityStats( - staffId: staffId, -).ref(); -ref.execute(); -``` - - -### updateStaffAvailabilityStats -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.updateStaffAvailabilityStats( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateStaffAvailabilityStats, we created `updateStaffAvailabilityStatsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateStaffAvailabilityStatsVariablesBuilder { - ... - UpdateStaffAvailabilityStatsVariablesBuilder needWorkIndex(int? t) { - _needWorkIndex.value = t; - return this; - } - UpdateStaffAvailabilityStatsVariablesBuilder utilizationPercentage(int? t) { - _utilizationPercentage.value = t; - return this; - } - UpdateStaffAvailabilityStatsVariablesBuilder predictedAvailabilityScore(int? t) { - _predictedAvailabilityScore.value = t; - return this; - } - UpdateStaffAvailabilityStatsVariablesBuilder scheduledHoursThisPeriod(int? t) { - _scheduledHoursThisPeriod.value = t; - return this; - } - UpdateStaffAvailabilityStatsVariablesBuilder desiredHoursThisPeriod(int? t) { - _desiredHoursThisPeriod.value = t; - return this; - } - UpdateStaffAvailabilityStatsVariablesBuilder lastShiftDate(Timestamp? t) { - _lastShiftDate.value = t; - return this; - } - UpdateStaffAvailabilityStatsVariablesBuilder acceptanceRate(int? t) { - _acceptanceRate.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateStaffAvailabilityStats( - staffId: staffId, -) -.needWorkIndex(needWorkIndex) -.utilizationPercentage(utilizationPercentage) -.predictedAvailabilityScore(predictedAvailabilityScore) -.scheduledHoursThisPeriod(scheduledHoursThisPeriod) -.desiredHoursThisPeriod(desiredHoursThisPeriod) -.lastShiftDate(lastShiftDate) -.acceptanceRate(acceptanceRate) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateStaffAvailabilityStats( - staffId: staffId, -); -updateStaffAvailabilityStatsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.updateStaffAvailabilityStats( - staffId: staffId, -).ref(); -ref.execute(); -``` - - -### deleteStaffAvailabilityStats -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.deleteStaffAvailabilityStats( - staffId: staffId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteStaffAvailabilityStats( - staffId: staffId, -); -deleteStaffAvailabilityStatsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.deleteStaffAvailabilityStats( - staffId: staffId, -).ref(); -ref.execute(); -``` - - -### createTaskComment -#### Required Arguments -```dart -String taskId = ...; -String teamMemberId = ...; -String comment = ...; -ExampleConnector.instance.createTaskComment( - taskId: taskId, - teamMemberId: teamMemberId, - comment: comment, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createTaskComment, we created `createTaskCommentBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateTaskCommentVariablesBuilder { - ... - CreateTaskCommentVariablesBuilder isSystem(bool? t) { - _isSystem.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createTaskComment( - taskId: taskId, - teamMemberId: teamMemberId, - comment: comment, -) -.isSystem(isSystem) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createTaskComment( - taskId: taskId, - teamMemberId: teamMemberId, - comment: comment, -); -createTaskCommentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String taskId = ...; -String teamMemberId = ...; -String comment = ...; - -final ref = ExampleConnector.instance.createTaskComment( - taskId: taskId, - teamMemberId: teamMemberId, - comment: comment, -).ref(); -ref.execute(); -``` - - -### updateTaskComment -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateTaskComment( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateTaskComment, we created `updateTaskCommentBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateTaskCommentVariablesBuilder { - ... - UpdateTaskCommentVariablesBuilder comment(String? t) { - _comment.value = t; - return this; - } - UpdateTaskCommentVariablesBuilder isSystem(bool? t) { - _isSystem.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateTaskComment( - id: id, -) -.comment(comment) -.isSystem(isSystem) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateTaskComment( - id: id, -); -updateTaskCommentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateTaskComment( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteTaskComment -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteTaskComment( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteTaskComment( - id: id, -); -deleteTaskCommentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteTaskComment( - id: id, -).ref(); -ref.execute(); -``` - - -### createCustomRateCard -#### Required Arguments -```dart -String name = ...; -ExampleConnector.instance.createCustomRateCard( - name: name, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createCustomRateCard, we created `createCustomRateCardBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateCustomRateCardVariablesBuilder { - ... - CreateCustomRateCardVariablesBuilder baseBook(String? t) { - _baseBook.value = t; - return this; - } - CreateCustomRateCardVariablesBuilder discount(double? t) { - _discount.value = t; - return this; - } - CreateCustomRateCardVariablesBuilder isDefault(bool? t) { - _isDefault.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createCustomRateCard( - name: name, -) -.baseBook(baseBook) -.discount(discount) -.isDefault(isDefault) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createCustomRateCard( - name: name, -); -createCustomRateCardData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String name = ...; - -final ref = ExampleConnector.instance.createCustomRateCard( - name: name, -).ref(); -ref.execute(); -``` - - -### updateCustomRateCard -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateCustomRateCard( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateCustomRateCard, we created `updateCustomRateCardBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateCustomRateCardVariablesBuilder { - ... - UpdateCustomRateCardVariablesBuilder name(String? t) { - _name.value = t; - return this; - } - UpdateCustomRateCardVariablesBuilder baseBook(String? t) { - _baseBook.value = t; - return this; - } - UpdateCustomRateCardVariablesBuilder discount(double? t) { - _discount.value = t; - return this; - } - UpdateCustomRateCardVariablesBuilder isDefault(bool? t) { - _isDefault.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateCustomRateCard( - id: id, -) -.name(name) -.baseBook(baseBook) -.discount(discount) -.isDefault(isDefault) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateCustomRateCard( - id: id, -); -updateCustomRateCardData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateCustomRateCard( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteCustomRateCard -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteCustomRateCard( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteCustomRateCard( - id: id, -); -deleteCustomRateCardData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteCustomRateCard( - id: id, -).ref(); -ref.execute(); -``` - - -### createActivityLog -#### Required Arguments -```dart -String userId = ...; -Timestamp date = ...; -String title = ...; -String description = ...; -ActivityType activityType = ...; -ExampleConnector.instance.createActivityLog( - userId: userId, - date: date, - title: title, - description: description, - activityType: activityType, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createActivityLog, we created `createActivityLogBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateActivityLogVariablesBuilder { - ... - CreateActivityLogVariablesBuilder hourStart(String? t) { - _hourStart.value = t; - return this; - } - CreateActivityLogVariablesBuilder hourEnd(String? t) { - _hourEnd.value = t; - return this; - } - CreateActivityLogVariablesBuilder totalhours(String? t) { - _totalhours.value = t; - return this; - } - CreateActivityLogVariablesBuilder iconType(ActivityIconType? t) { - _iconType.value = t; - return this; - } - CreateActivityLogVariablesBuilder iconColor(String? t) { - _iconColor.value = t; - return this; - } - CreateActivityLogVariablesBuilder isRead(bool? t) { - _isRead.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createActivityLog( - userId: userId, - date: date, - title: title, - description: description, - activityType: activityType, -) -.hourStart(hourStart) -.hourEnd(hourEnd) -.totalhours(totalhours) -.iconType(iconType) -.iconColor(iconColor) -.isRead(isRead) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createActivityLog( - userId: userId, - date: date, - title: title, - description: description, - activityType: activityType, -); -createActivityLogData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String userId = ...; -Timestamp date = ...; -String title = ...; -String description = ...; -ActivityType activityType = ...; - -final ref = ExampleConnector.instance.createActivityLog( - userId: userId, - date: date, - title: title, - description: description, - activityType: activityType, -).ref(); -ref.execute(); -``` - - -### updateActivityLog -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateActivityLog( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateActivityLog, we created `updateActivityLogBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateActivityLogVariablesBuilder { - ... - UpdateActivityLogVariablesBuilder userId(String? t) { - _userId.value = t; - return this; - } - UpdateActivityLogVariablesBuilder date(Timestamp? t) { - _date.value = t; - return this; - } - UpdateActivityLogVariablesBuilder hourStart(String? t) { - _hourStart.value = t; - return this; - } - UpdateActivityLogVariablesBuilder hourEnd(String? t) { - _hourEnd.value = t; - return this; - } - UpdateActivityLogVariablesBuilder totalhours(String? t) { - _totalhours.value = t; - return this; - } - UpdateActivityLogVariablesBuilder iconType(ActivityIconType? t) { - _iconType.value = t; - return this; - } - UpdateActivityLogVariablesBuilder iconColor(String? t) { - _iconColor.value = t; - return this; - } - UpdateActivityLogVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - UpdateActivityLogVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - UpdateActivityLogVariablesBuilder isRead(bool? t) { - _isRead.value = t; - return this; - } - UpdateActivityLogVariablesBuilder activityType(ActivityType? t) { - _activityType.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateActivityLog( - id: id, -) -.userId(userId) -.date(date) -.hourStart(hourStart) -.hourEnd(hourEnd) -.totalhours(totalhours) -.iconType(iconType) -.iconColor(iconColor) -.title(title) -.description(description) -.isRead(isRead) -.activityType(activityType) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateActivityLog( - id: id, -); -updateActivityLogData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateActivityLog( - id: id, -).ref(); -ref.execute(); -``` - - -### markActivityLogAsRead -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.markActivityLogAsRead( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.markActivityLogAsRead( - id: id, -); -markActivityLogAsReadData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.markActivityLogAsRead( - id: id, -).ref(); -ref.execute(); -``` - - -### markActivityLogsAsRead -#### Required Arguments -```dart -String ids = ...; -ExampleConnector.instance.markActivityLogsAsRead( - ids: ids, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.markActivityLogsAsRead( - ids: ids, -); -markActivityLogsAsReadData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String ids = ...; - -final ref = ExampleConnector.instance.markActivityLogsAsRead( - ids: ids, -).ref(); -ref.execute(); -``` - - -### deleteActivityLog -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteActivityLog( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteActivityLog( - id: id, -); -deleteActivityLogData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteActivityLog( - id: id, -).ref(); -ref.execute(); -``` - - -### createMemberTask -#### Required Arguments -```dart -String teamMemberId = ...; -String taskId = ...; -ExampleConnector.instance.createMemberTask( - teamMemberId: teamMemberId, - taskId: taskId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createMemberTask( - teamMemberId: teamMemberId, - taskId: taskId, -); -createMemberTaskData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String teamMemberId = ...; -String taskId = ...; - -final ref = ExampleConnector.instance.createMemberTask( - teamMemberId: teamMemberId, - taskId: taskId, -).ref(); -ref.execute(); -``` - - -### deleteMemberTask -#### Required Arguments -```dart -String teamMemberId = ...; -String taskId = ...; -ExampleConnector.instance.deleteMemberTask( - teamMemberId: teamMemberId, - taskId: taskId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteMemberTask( - teamMemberId: teamMemberId, - taskId: taskId, -); -deleteMemberTaskData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String teamMemberId = ...; -String taskId = ...; - -final ref = ExampleConnector.instance.deleteMemberTask( - teamMemberId: teamMemberId, - taskId: taskId, -).ref(); -ref.execute(); -``` - - ### CreateStaff #### Required Arguments ```dart @@ -16519,832 +14294,74 @@ ref.execute(); ``` -### createApplication +### createActivityLog #### Required Arguments ```dart -String shiftId = ...; -String staffId = ...; -ApplicationStatus status = ...; -ApplicationOrigin origin = ...; -String roleId = ...; -ExampleConnector.instance.createApplication( - shiftId: shiftId, - staffId: staffId, - status: status, - origin: origin, - roleId: roleId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createApplication, we created `createApplicationBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateApplicationVariablesBuilder { - ... - CreateApplicationVariablesBuilder checkInTime(Timestamp? t) { - _checkInTime.value = t; - return this; - } - CreateApplicationVariablesBuilder checkOutTime(Timestamp? t) { - _checkOutTime.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createApplication( - shiftId: shiftId, - staffId: staffId, - status: status, - origin: origin, - roleId: roleId, -) -.checkInTime(checkInTime) -.checkOutTime(checkOutTime) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createApplication( - shiftId: shiftId, - staffId: staffId, - status: status, - origin: origin, - roleId: roleId, -); -createApplicationData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String shiftId = ...; -String staffId = ...; -ApplicationStatus status = ...; -ApplicationOrigin origin = ...; -String roleId = ...; - -final ref = ExampleConnector.instance.createApplication( - shiftId: shiftId, - staffId: staffId, - status: status, - origin: origin, - roleId: roleId, -).ref(); -ref.execute(); -``` - - -### updateApplicationStatus -#### Required Arguments -```dart -String id = ...; -String roleId = ...; -ExampleConnector.instance.updateApplicationStatus( - id: id, - roleId: roleId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateApplicationStatus, we created `updateApplicationStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateApplicationStatusVariablesBuilder { - ... - UpdateApplicationStatusVariablesBuilder shiftId(String? t) { - _shiftId.value = t; - return this; - } - UpdateApplicationStatusVariablesBuilder staffId(String? t) { - _staffId.value = t; - return this; - } - UpdateApplicationStatusVariablesBuilder status(ApplicationStatus? t) { - _status.value = t; - return this; - } - UpdateApplicationStatusVariablesBuilder checkInTime(Timestamp? t) { - _checkInTime.value = t; - return this; - } - UpdateApplicationStatusVariablesBuilder checkOutTime(Timestamp? t) { - _checkOutTime.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateApplicationStatus( - id: id, - roleId: roleId, -) -.shiftId(shiftId) -.staffId(staffId) -.status(status) -.checkInTime(checkInTime) -.checkOutTime(checkOutTime) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateApplicationStatus( - id: id, - roleId: roleId, -); -updateApplicationStatusData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; -String roleId = ...; - -final ref = ExampleConnector.instance.updateApplicationStatus( - id: id, - roleId: roleId, -).ref(); -ref.execute(); -``` - - -### deleteApplication -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteApplication( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteApplication( - id: id, -); -deleteApplicationData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteApplication( - id: id, -).ref(); -ref.execute(); -``` - - -### CreateCertificate -#### Required Arguments -```dart -String name = ...; -CertificateStatus status = ...; -String staffId = ...; -ExampleConnector.instance.createCertificate( - name: name, - status: status, - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For CreateCertificate, we created `CreateCertificateBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateCertificateVariablesBuilder { - ... - CreateCertificateVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - CreateCertificateVariablesBuilder expiry(Timestamp? t) { - _expiry.value = t; - return this; - } - CreateCertificateVariablesBuilder fileUrl(String? t) { - _fileUrl.value = t; - return this; - } - CreateCertificateVariablesBuilder icon(String? t) { - _icon.value = t; - return this; - } - CreateCertificateVariablesBuilder certificationType(ComplianceType? t) { - _certificationType.value = t; - return this; - } - CreateCertificateVariablesBuilder issuer(String? t) { - _issuer.value = t; - return this; - } - CreateCertificateVariablesBuilder validationStatus(ValidationStatus? t) { - _validationStatus.value = t; - return this; - } - CreateCertificateVariablesBuilder certificateNumber(String? t) { - _certificateNumber.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createCertificate( - name: name, - status: status, - staffId: staffId, -) -.description(description) -.expiry(expiry) -.fileUrl(fileUrl) -.icon(icon) -.certificationType(certificationType) -.issuer(issuer) -.validationStatus(validationStatus) -.certificateNumber(certificateNumber) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createCertificate( - name: name, - status: status, - staffId: staffId, -); -CreateCertificateData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String name = ...; -CertificateStatus status = ...; -String staffId = ...; - -final ref = ExampleConnector.instance.createCertificate( - name: name, - status: status, - staffId: staffId, -).ref(); -ref.execute(); -``` - - -### UpdateCertificate -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateCertificate( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For UpdateCertificate, we created `UpdateCertificateBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateCertificateVariablesBuilder { - ... - UpdateCertificateVariablesBuilder name(String? t) { - _name.value = t; - return this; - } - UpdateCertificateVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - UpdateCertificateVariablesBuilder expiry(Timestamp? t) { - _expiry.value = t; - return this; - } - UpdateCertificateVariablesBuilder status(CertificateStatus? t) { - _status.value = t; - return this; - } - UpdateCertificateVariablesBuilder fileUrl(String? t) { - _fileUrl.value = t; - return this; - } - UpdateCertificateVariablesBuilder icon(String? t) { - _icon.value = t; - return this; - } - UpdateCertificateVariablesBuilder staffId(String? t) { - _staffId.value = t; - return this; - } - UpdateCertificateVariablesBuilder certificationType(ComplianceType? t) { - _certificationType.value = t; - return this; - } - UpdateCertificateVariablesBuilder issuer(String? t) { - _issuer.value = t; - return this; - } - UpdateCertificateVariablesBuilder validationStatus(ValidationStatus? t) { - _validationStatus.value = t; - return this; - } - UpdateCertificateVariablesBuilder certificateNumber(String? t) { - _certificateNumber.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateCertificate( - id: id, -) -.name(name) -.description(description) -.expiry(expiry) -.status(status) -.fileUrl(fileUrl) -.icon(icon) -.staffId(staffId) -.certificationType(certificationType) -.issuer(issuer) -.validationStatus(validationStatus) -.certificateNumber(certificateNumber) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateCertificate( - id: id, -); -UpdateCertificateData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateCertificate( - id: id, -).ref(); -ref.execute(); -``` - - -### DeleteCertificate -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteCertificate( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteCertificate( - id: id, -); -DeleteCertificateData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteCertificate( - id: id, -).ref(); -ref.execute(); -``` - - -### createHub -#### Required Arguments -```dart -String name = ...; -String ownerId = ...; -ExampleConnector.instance.createHub( - name: name, - ownerId: ownerId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createHub, we created `createHubBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateHubVariablesBuilder { - ... - CreateHubVariablesBuilder locationName(String? t) { - _locationName.value = t; - return this; - } - CreateHubVariablesBuilder address(String? t) { - _address.value = t; - return this; - } - CreateHubVariablesBuilder nfcTagId(String? t) { - _nfcTagId.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createHub( - name: name, - ownerId: ownerId, -) -.locationName(locationName) -.address(address) -.nfcTagId(nfcTagId) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createHub( - name: name, - ownerId: ownerId, -); -createHubData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String name = ...; -String ownerId = ...; - -final ref = ExampleConnector.instance.createHub( - name: name, - ownerId: ownerId, -).ref(); -ref.execute(); -``` - - -### updateHub -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateHub( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateHub, we created `updateHubBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateHubVariablesBuilder { - ... - UpdateHubVariablesBuilder name(String? t) { - _name.value = t; - return this; - } - UpdateHubVariablesBuilder locationName(String? t) { - _locationName.value = t; - return this; - } - UpdateHubVariablesBuilder address(String? t) { - _address.value = t; - return this; - } - UpdateHubVariablesBuilder nfcTagId(String? t) { - _nfcTagId.value = t; - return this; - } - UpdateHubVariablesBuilder ownerId(String? t) { - _ownerId.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateHub( - id: id, -) -.name(name) -.locationName(locationName) -.address(address) -.nfcTagId(nfcTagId) -.ownerId(ownerId) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateHub( - id: id, -); -updateHubData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateHub( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteHub -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteHub( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteHub( - id: id, -); -deleteHubData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteHub( - id: id, -).ref(); -ref.execute(); -``` - - -### createStaffRole -#### Required Arguments -```dart -String staffId = ...; -String roleId = ...; -ExampleConnector.instance.createStaffRole( - staffId: staffId, - roleId: roleId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createStaffRole, we created `createStaffRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateStaffRoleVariablesBuilder { - ... - CreateStaffRoleVariablesBuilder roleType(RoleType? t) { - _roleType.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createStaffRole( - staffId: staffId, - roleId: roleId, -) -.roleType(roleType) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createStaffRole( - staffId: staffId, - roleId: roleId, -); -createStaffRoleData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String roleId = ...; - -final ref = ExampleConnector.instance.createStaffRole( - staffId: staffId, - roleId: roleId, -).ref(); -ref.execute(); -``` - - -### deleteStaffRole -#### Required Arguments -```dart -String staffId = ...; -String roleId = ...; -ExampleConnector.instance.deleteStaffRole( - staffId: staffId, - roleId: roleId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteStaffRole( - staffId: staffId, - roleId: roleId, -); -deleteStaffRoleData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String roleId = ...; - -final ref = ExampleConnector.instance.deleteStaffRole( - staffId: staffId, - roleId: roleId, -).ref(); -ref.execute(); -``` - - -### createUserConversation -#### Required Arguments -```dart -String conversationId = ...; String userId = ...; -ExampleConnector.instance.createUserConversation( - conversationId: conversationId, +Timestamp date = ...; +String title = ...; +String description = ...; +ActivityType activityType = ...; +ExampleConnector.instance.createActivityLog( userId: userId, + date: date, + title: title, + description: description, + activityType: activityType, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createUserConversation, we created `createUserConversationBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createActivityLog, we created `createActivityLogBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateUserConversationVariablesBuilder { +class CreateActivityLogVariablesBuilder { ... - CreateUserConversationVariablesBuilder unreadCount(int? t) { - _unreadCount.value = t; + CreateActivityLogVariablesBuilder hourStart(String? t) { + _hourStart.value = t; return this; } - CreateUserConversationVariablesBuilder lastReadAt(Timestamp? t) { - _lastReadAt.value = t; + CreateActivityLogVariablesBuilder hourEnd(String? t) { + _hourEnd.value = t; + return this; + } + CreateActivityLogVariablesBuilder totalhours(String? t) { + _totalhours.value = t; + return this; + } + CreateActivityLogVariablesBuilder iconType(ActivityIconType? t) { + _iconType.value = t; + return this; + } + CreateActivityLogVariablesBuilder iconColor(String? t) { + _iconColor.value = t; + return this; + } + CreateActivityLogVariablesBuilder isRead(bool? t) { + _isRead.value = t; return this; } ... } -ExampleConnector.instance.createUserConversation( - conversationId: conversationId, +ExampleConnector.instance.createActivityLog( userId: userId, + date: date, + title: title, + description: description, + activityType: activityType, ) -.unreadCount(unreadCount) -.lastReadAt(lastReadAt) +.hourStart(hourStart) +.hourEnd(hourEnd) +.totalhours(totalhours) +.iconType(iconType) +.iconColor(iconColor) +.isRead(isRead) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -17354,11 +14371,14 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createUserConversation( - conversationId: conversationId, +final result = await ExampleConnector.instance.createActivityLog( userId: userId, + date: date, + title: title, + description: description, + activityType: activityType, ); -createUserConversationData data = result.data; +createActivityLogData data = result.data; final ref = result.ref; ``` @@ -17366,2489 +14386,104 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String conversationId = ...; String userId = ...; +Timestamp date = ...; +String title = ...; +String description = ...; +ActivityType activityType = ...; -final ref = ExampleConnector.instance.createUserConversation( - conversationId: conversationId, +final ref = ExampleConnector.instance.createActivityLog( userId: userId, + date: date, + title: title, + description: description, + activityType: activityType, ).ref(); ref.execute(); ``` -### updateUserConversation -#### Required Arguments -```dart -String conversationId = ...; -String userId = ...; -ExampleConnector.instance.updateUserConversation( - conversationId: conversationId, - userId: userId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateUserConversation, we created `updateUserConversationBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateUserConversationVariablesBuilder { - ... - UpdateUserConversationVariablesBuilder unreadCount(int? t) { - _unreadCount.value = t; - return this; - } - UpdateUserConversationVariablesBuilder lastReadAt(Timestamp? t) { - _lastReadAt.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateUserConversation( - conversationId: conversationId, - userId: userId, -) -.unreadCount(unreadCount) -.lastReadAt(lastReadAt) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateUserConversation( - conversationId: conversationId, - userId: userId, -); -updateUserConversationData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String conversationId = ...; -String userId = ...; - -final ref = ExampleConnector.instance.updateUserConversation( - conversationId: conversationId, - userId: userId, -).ref(); -ref.execute(); -``` - - -### markConversationAsRead -#### Required Arguments -```dart -String conversationId = ...; -String userId = ...; -ExampleConnector.instance.markConversationAsRead( - conversationId: conversationId, - userId: userId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For markConversationAsRead, we created `markConversationAsReadBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class MarkConversationAsReadVariablesBuilder { - ... - MarkConversationAsReadVariablesBuilder lastReadAt(Timestamp? t) { - _lastReadAt.value = t; - return this; - } - - ... -} -ExampleConnector.instance.markConversationAsRead( - conversationId: conversationId, - userId: userId, -) -.lastReadAt(lastReadAt) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.markConversationAsRead( - conversationId: conversationId, - userId: userId, -); -markConversationAsReadData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String conversationId = ...; -String userId = ...; - -final ref = ExampleConnector.instance.markConversationAsRead( - conversationId: conversationId, - userId: userId, -).ref(); -ref.execute(); -``` - - -### incrementUnreadForUser -#### Required Arguments -```dart -String conversationId = ...; -String userId = ...; -int unreadCount = ...; -ExampleConnector.instance.incrementUnreadForUser( - conversationId: conversationId, - userId: userId, - unreadCount: unreadCount, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.incrementUnreadForUser( - conversationId: conversationId, - userId: userId, - unreadCount: unreadCount, -); -incrementUnreadForUserData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String conversationId = ...; -String userId = ...; -int unreadCount = ...; - -final ref = ExampleConnector.instance.incrementUnreadForUser( - conversationId: conversationId, - userId: userId, - unreadCount: unreadCount, -).ref(); -ref.execute(); -``` - - -### deleteUserConversation -#### Required Arguments -```dart -String conversationId = ...; -String userId = ...; -ExampleConnector.instance.deleteUserConversation( - conversationId: conversationId, - userId: userId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteUserConversation( - conversationId: conversationId, - userId: userId, -); -deleteUserConversationData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String conversationId = ...; -String userId = ...; - -final ref = ExampleConnector.instance.deleteUserConversation( - conversationId: conversationId, - userId: userId, -).ref(); -ref.execute(); -``` - - -### createCategory -#### Required Arguments -```dart -String categoryId = ...; -String label = ...; -ExampleConnector.instance.createCategory( - categoryId: categoryId, - label: label, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createCategory, we created `createCategoryBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateCategoryVariablesBuilder { - ... - CreateCategoryVariablesBuilder icon(String? t) { - _icon.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createCategory( - categoryId: categoryId, - label: label, -) -.icon(icon) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createCategory( - categoryId: categoryId, - label: label, -); -createCategoryData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String categoryId = ...; -String label = ...; - -final ref = ExampleConnector.instance.createCategory( - categoryId: categoryId, - label: label, -).ref(); -ref.execute(); -``` - - -### updateCategory +### updateActivityLog #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateCategory( +ExampleConnector.instance.updateActivityLog( id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateCategory, we created `updateCategoryBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateActivityLog, we created `updateActivityLogBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateCategoryVariablesBuilder { +class UpdateActivityLogVariablesBuilder { ... - UpdateCategoryVariablesBuilder categoryId(String? t) { - _categoryId.value = t; + UpdateActivityLogVariablesBuilder userId(String? t) { + _userId.value = t; return this; } - UpdateCategoryVariablesBuilder label(String? t) { - _label.value = t; - return this; - } - UpdateCategoryVariablesBuilder icon(String? t) { - _icon.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateCategory( - id: id, -) -.categoryId(categoryId) -.label(label) -.icon(icon) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateCategory( - id: id, -); -updateCategoryData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateCategory( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteCategory -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteCategory( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteCategory( - id: id, -); -deleteCategoryData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteCategory( - id: id, -).ref(); -ref.execute(); -``` - - -### createDocument -#### Required Arguments -```dart -DocumentType documentType = ...; -String name = ...; -ExampleConnector.instance.createDocument( - documentType: documentType, - name: name, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createDocument, we created `createDocumentBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateDocumentVariablesBuilder { - ... - CreateDocumentVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createDocument( - documentType: documentType, - name: name, -) -.description(description) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createDocument( - documentType: documentType, - name: name, -); -createDocumentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -DocumentType documentType = ...; -String name = ...; - -final ref = ExampleConnector.instance.createDocument( - documentType: documentType, - name: name, -).ref(); -ref.execute(); -``` - - -### updateDocument -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateDocument( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateDocument, we created `updateDocumentBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateDocumentVariablesBuilder { - ... - UpdateDocumentVariablesBuilder documentType(DocumentType? t) { - _documentType.value = t; - return this; - } - UpdateDocumentVariablesBuilder name(String? t) { - _name.value = t; - return this; - } - UpdateDocumentVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateDocument( - id: id, -) -.documentType(documentType) -.name(name) -.description(description) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateDocument( - id: id, -); -updateDocumentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateDocument( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteDocument -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteDocument( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteDocument( - id: id, -); -deleteDocumentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteDocument( - id: id, -).ref(); -ref.execute(); -``` - - -### createConversation -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.createConversation().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createConversation, we created `createConversationBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateConversationVariablesBuilder { - ... - - CreateConversationVariablesBuilder subject(String? t) { - _subject.value = t; - return this; - } - CreateConversationVariablesBuilder status(ConversationStatus? t) { - _status.value = t; - return this; - } - CreateConversationVariablesBuilder conversationType(ConversationType? t) { - _conversationType.value = t; - return this; - } - CreateConversationVariablesBuilder isGroup(bool? t) { - _isGroup.value = t; - return this; - } - CreateConversationVariablesBuilder groupName(String? t) { - _groupName.value = t; - return this; - } - CreateConversationVariablesBuilder lastMessage(String? t) { - _lastMessage.value = t; - return this; - } - CreateConversationVariablesBuilder lastMessageAt(Timestamp? t) { - _lastMessageAt.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createConversation() -.subject(subject) -.status(status) -.conversationType(conversationType) -.isGroup(isGroup) -.groupName(groupName) -.lastMessage(lastMessage) -.lastMessageAt(lastMessageAt) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createConversation(); -createConversationData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.createConversation().ref(); -ref.execute(); -``` - - -### updateConversation -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateConversation( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateConversation, we created `updateConversationBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateConversationVariablesBuilder { - ... - UpdateConversationVariablesBuilder subject(String? t) { - _subject.value = t; - return this; - } - UpdateConversationVariablesBuilder status(ConversationStatus? t) { - _status.value = t; - return this; - } - UpdateConversationVariablesBuilder conversationType(ConversationType? t) { - _conversationType.value = t; - return this; - } - UpdateConversationVariablesBuilder isGroup(bool? t) { - _isGroup.value = t; - return this; - } - UpdateConversationVariablesBuilder groupName(String? t) { - _groupName.value = t; - return this; - } - UpdateConversationVariablesBuilder lastMessage(String? t) { - _lastMessage.value = t; - return this; - } - UpdateConversationVariablesBuilder lastMessageAt(Timestamp? t) { - _lastMessageAt.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateConversation( - id: id, -) -.subject(subject) -.status(status) -.conversationType(conversationType) -.isGroup(isGroup) -.groupName(groupName) -.lastMessage(lastMessage) -.lastMessageAt(lastMessageAt) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateConversation( - id: id, -); -updateConversationData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateConversation( - id: id, -).ref(); -ref.execute(); -``` - - -### updateConversationLastMessage -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateConversationLastMessage( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateConversationLastMessage, we created `updateConversationLastMessageBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateConversationLastMessageVariablesBuilder { - ... - UpdateConversationLastMessageVariablesBuilder lastMessage(String? t) { - _lastMessage.value = t; - return this; - } - UpdateConversationLastMessageVariablesBuilder lastMessageAt(Timestamp? t) { - _lastMessageAt.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateConversationLastMessage( - id: id, -) -.lastMessage(lastMessage) -.lastMessageAt(lastMessageAt) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateConversationLastMessage( - id: id, -); -updateConversationLastMessageData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateConversationLastMessage( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteConversation -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteConversation( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteConversation( - id: id, -); -deleteConversationData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteConversation( - id: id, -).ref(); -ref.execute(); -``` - - -### createOrder -#### Required Arguments -```dart -String businessId = ...; -OrderType orderType = ...; -ExampleConnector.instance.createOrder( - businessId: businessId, - orderType: orderType, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createOrder, we created `createOrderBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateOrderVariablesBuilder { - ... - - CreateOrderVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } - CreateOrderVariablesBuilder location(String? t) { - _location.value = t; - return this; - } - CreateOrderVariablesBuilder status(OrderStatus? t) { - _status.value = t; - return this; - } - CreateOrderVariablesBuilder date(Timestamp? t) { + UpdateActivityLogVariablesBuilder date(Timestamp? t) { _date.value = t; return this; } - CreateOrderVariablesBuilder startDate(Timestamp? t) { - _startDate.value = t; + UpdateActivityLogVariablesBuilder hourStart(String? t) { + _hourStart.value = t; return this; } - CreateOrderVariablesBuilder endDate(Timestamp? t) { - _endDate.value = t; + UpdateActivityLogVariablesBuilder hourEnd(String? t) { + _hourEnd.value = t; return this; } - CreateOrderVariablesBuilder duration(OrderDuration? t) { - _duration.value = t; + UpdateActivityLogVariablesBuilder totalhours(String? t) { + _totalhours.value = t; return this; } - CreateOrderVariablesBuilder lunchBreak(int? t) { - _lunchBreak.value = t; + UpdateActivityLogVariablesBuilder iconType(ActivityIconType? t) { + _iconType.value = t; return this; } - CreateOrderVariablesBuilder total(double? t) { - _total.value = t; + UpdateActivityLogVariablesBuilder iconColor(String? t) { + _iconColor.value = t; return this; } - CreateOrderVariablesBuilder eventName(String? t) { - _eventName.value = t; + UpdateActivityLogVariablesBuilder title(String? t) { + _title.value = t; return this; } - CreateOrderVariablesBuilder assignedStaff(AnyValue? t) { - _assignedStaff.value = t; + UpdateActivityLogVariablesBuilder description(String? t) { + _description.value = t; return this; } - CreateOrderVariablesBuilder shifts(AnyValue? t) { - _shifts.value = t; + UpdateActivityLogVariablesBuilder isRead(bool? t) { + _isRead.value = t; return this; } - CreateOrderVariablesBuilder requested(int? t) { - _requested.value = t; - return this; - } - CreateOrderVariablesBuilder hub(String? t) { - _hub.value = t; - return this; - } - CreateOrderVariablesBuilder recurringDays(AnyValue? t) { - _recurringDays.value = t; - return this; - } - CreateOrderVariablesBuilder permanentStartDate(Timestamp? t) { - _permanentStartDate.value = t; - return this; - } - CreateOrderVariablesBuilder permanentDays(AnyValue? t) { - _permanentDays.value = t; - return this; - } - CreateOrderVariablesBuilder notes(String? t) { - _notes.value = t; - return this; - } - CreateOrderVariablesBuilder detectedConflicts(AnyValue? t) { - _detectedConflicts.value = t; - return this; - } - CreateOrderVariablesBuilder poReference(String? t) { - _poReference.value = t; + UpdateActivityLogVariablesBuilder activityType(ActivityType? t) { + _activityType.value = t; return this; } ... } -ExampleConnector.instance.createOrder( - businessId: businessId, - orderType: orderType, +ExampleConnector.instance.updateActivityLog( + id: id, ) -.vendorId(vendorId) -.location(location) -.status(status) +.userId(userId) .date(date) -.startDate(startDate) -.endDate(endDate) -.duration(duration) -.lunchBreak(lunchBreak) -.total(total) -.eventName(eventName) -.assignedStaff(assignedStaff) -.shifts(shifts) -.requested(requested) -.hub(hub) -.recurringDays(recurringDays) -.permanentStartDate(permanentStartDate) -.permanentDays(permanentDays) -.notes(notes) -.detectedConflicts(detectedConflicts) -.poReference(poReference) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createOrder( - businessId: businessId, - orderType: orderType, -); -createOrderData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String businessId = ...; -OrderType orderType = ...; - -final ref = ExampleConnector.instance.createOrder( - businessId: businessId, - orderType: orderType, -).ref(); -ref.execute(); -``` - - -### updateOrder -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateOrder( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateOrder, we created `updateOrderBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateOrderVariablesBuilder { - ... - UpdateOrderVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } - UpdateOrderVariablesBuilder businessId(String? t) { - _businessId.value = t; - return this; - } - UpdateOrderVariablesBuilder location(String? t) { - _location.value = t; - return this; - } - UpdateOrderVariablesBuilder status(OrderStatus? t) { - _status.value = t; - return this; - } - UpdateOrderVariablesBuilder date(Timestamp? t) { - _date.value = t; - return this; - } - UpdateOrderVariablesBuilder startDate(Timestamp? t) { - _startDate.value = t; - return this; - } - UpdateOrderVariablesBuilder endDate(Timestamp? t) { - _endDate.value = t; - return this; - } - UpdateOrderVariablesBuilder total(double? t) { - _total.value = t; - return this; - } - UpdateOrderVariablesBuilder eventName(String? t) { - _eventName.value = t; - return this; - } - UpdateOrderVariablesBuilder assignedStaff(AnyValue? t) { - _assignedStaff.value = t; - return this; - } - UpdateOrderVariablesBuilder shifts(AnyValue? t) { - _shifts.value = t; - return this; - } - UpdateOrderVariablesBuilder requested(int? t) { - _requested.value = t; - return this; - } - UpdateOrderVariablesBuilder hub(String? t) { - _hub.value = t; - return this; - } - UpdateOrderVariablesBuilder recurringDays(AnyValue? t) { - _recurringDays.value = t; - return this; - } - UpdateOrderVariablesBuilder permanentDays(AnyValue? t) { - _permanentDays.value = t; - return this; - } - UpdateOrderVariablesBuilder notes(String? t) { - _notes.value = t; - return this; - } - UpdateOrderVariablesBuilder detectedConflicts(AnyValue? t) { - _detectedConflicts.value = t; - return this; - } - UpdateOrderVariablesBuilder poReference(String? t) { - _poReference.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateOrder( - id: id, -) -.vendorId(vendorId) -.businessId(businessId) -.location(location) -.status(status) -.date(date) -.startDate(startDate) -.endDate(endDate) -.total(total) -.eventName(eventName) -.assignedStaff(assignedStaff) -.shifts(shifts) -.requested(requested) -.hub(hub) -.recurringDays(recurringDays) -.permanentDays(permanentDays) -.notes(notes) -.detectedConflicts(detectedConflicts) -.poReference(poReference) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateOrder( - id: id, -); -updateOrderData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateOrder( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteOrder -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteOrder( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteOrder( - id: id, -); -deleteOrderData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteOrder( - id: id, -).ref(); -ref.execute(); -``` - - -### createRoleCategory -#### Required Arguments -```dart -String roleName = ...; -RoleCategoryType category = ...; -ExampleConnector.instance.createRoleCategory( - roleName: roleName, - category: category, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createRoleCategory( - roleName: roleName, - category: category, -); -createRoleCategoryData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String roleName = ...; -RoleCategoryType category = ...; - -final ref = ExampleConnector.instance.createRoleCategory( - roleName: roleName, - category: category, -).ref(); -ref.execute(); -``` - - -### updateRoleCategory -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateRoleCategory( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateRoleCategory, we created `updateRoleCategoryBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateRoleCategoryVariablesBuilder { - ... - UpdateRoleCategoryVariablesBuilder roleName(String? t) { - _roleName.value = t; - return this; - } - UpdateRoleCategoryVariablesBuilder category(RoleCategoryType? t) { - _category.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateRoleCategory( - id: id, -) -.roleName(roleName) -.category(category) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateRoleCategory( - id: id, -); -updateRoleCategoryData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateRoleCategory( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteRoleCategory -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteRoleCategory( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteRoleCategory( - id: id, -); -deleteRoleCategoryData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteRoleCategory( - id: id, -).ref(); -ref.execute(); -``` - - -### createShift -#### Required Arguments -```dart -String title = ...; -String orderId = ...; -ExampleConnector.instance.createShift( - title: title, - orderId: orderId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createShift, we created `createShiftBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateShiftVariablesBuilder { - ... - CreateShiftVariablesBuilder date(Timestamp? t) { - _date.value = t; - return this; - } - CreateShiftVariablesBuilder startTime(Timestamp? t) { - _startTime.value = t; - return this; - } - CreateShiftVariablesBuilder endTime(Timestamp? t) { - _endTime.value = t; - return this; - } - CreateShiftVariablesBuilder hours(double? t) { - _hours.value = t; - return this; - } - CreateShiftVariablesBuilder cost(double? t) { - _cost.value = t; - return this; - } - CreateShiftVariablesBuilder location(String? t) { - _location.value = t; - return this; - } - CreateShiftVariablesBuilder locationAddress(String? t) { - _locationAddress.value = t; - return this; - } - CreateShiftVariablesBuilder latitude(double? t) { - _latitude.value = t; - return this; - } - CreateShiftVariablesBuilder longitude(double? t) { - _longitude.value = t; - return this; - } - CreateShiftVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - CreateShiftVariablesBuilder status(ShiftStatus? t) { - _status.value = t; - return this; - } - CreateShiftVariablesBuilder workersNeeded(int? t) { - _workersNeeded.value = t; - return this; - } - CreateShiftVariablesBuilder filled(int? t) { - _filled.value = t; - return this; - } - CreateShiftVariablesBuilder filledAt(Timestamp? t) { - _filledAt.value = t; - return this; - } - CreateShiftVariablesBuilder managers(List? t) { - _managers.value = t; - return this; - } - CreateShiftVariablesBuilder durationDays(int? t) { - _durationDays.value = t; - return this; - } - CreateShiftVariablesBuilder createdBy(String? t) { - _createdBy.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createShift( - title: title, - orderId: orderId, -) -.date(date) -.startTime(startTime) -.endTime(endTime) -.hours(hours) -.cost(cost) -.location(location) -.locationAddress(locationAddress) -.latitude(latitude) -.longitude(longitude) -.description(description) -.status(status) -.workersNeeded(workersNeeded) -.filled(filled) -.filledAt(filledAt) -.managers(managers) -.durationDays(durationDays) -.createdBy(createdBy) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createShift( - title: title, - orderId: orderId, -); -createShiftData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String title = ...; -String orderId = ...; - -final ref = ExampleConnector.instance.createShift( - title: title, - orderId: orderId, -).ref(); -ref.execute(); -``` - - -### updateShift -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateShift( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateShift, we created `updateShiftBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateShiftVariablesBuilder { - ... - UpdateShiftVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - UpdateShiftVariablesBuilder orderId(String? t) { - _orderId.value = t; - return this; - } - UpdateShiftVariablesBuilder date(Timestamp? t) { - _date.value = t; - return this; - } - UpdateShiftVariablesBuilder startTime(Timestamp? t) { - _startTime.value = t; - return this; - } - UpdateShiftVariablesBuilder endTime(Timestamp? t) { - _endTime.value = t; - return this; - } - UpdateShiftVariablesBuilder hours(double? t) { - _hours.value = t; - return this; - } - UpdateShiftVariablesBuilder cost(double? t) { - _cost.value = t; - return this; - } - UpdateShiftVariablesBuilder location(String? t) { - _location.value = t; - return this; - } - UpdateShiftVariablesBuilder locationAddress(String? t) { - _locationAddress.value = t; - return this; - } - UpdateShiftVariablesBuilder latitude(double? t) { - _latitude.value = t; - return this; - } - UpdateShiftVariablesBuilder longitude(double? t) { - _longitude.value = t; - return this; - } - UpdateShiftVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - UpdateShiftVariablesBuilder status(ShiftStatus? t) { - _status.value = t; - return this; - } - UpdateShiftVariablesBuilder workersNeeded(int? t) { - _workersNeeded.value = t; - return this; - } - UpdateShiftVariablesBuilder filled(int? t) { - _filled.value = t; - return this; - } - UpdateShiftVariablesBuilder filledAt(Timestamp? t) { - _filledAt.value = t; - return this; - } - UpdateShiftVariablesBuilder managers(List? t) { - _managers.value = t; - return this; - } - UpdateShiftVariablesBuilder durationDays(int? t) { - _durationDays.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateShift( - id: id, -) -.title(title) -.orderId(orderId) -.date(date) -.startTime(startTime) -.endTime(endTime) -.hours(hours) -.cost(cost) -.location(location) -.locationAddress(locationAddress) -.latitude(latitude) -.longitude(longitude) -.description(description) -.status(status) -.workersNeeded(workersNeeded) -.filled(filled) -.filledAt(filledAt) -.managers(managers) -.durationDays(durationDays) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateShift( - id: id, -); -updateShiftData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateShift( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteShift -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteShift( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteShift( - id: id, -); -deleteShiftData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteShift( - id: id, -).ref(); -ref.execute(); -``` - - -### createTeam -#### Required Arguments -```dart -String teamName = ...; -String ownerId = ...; -String ownerName = ...; -String ownerRole = ...; -ExampleConnector.instance.createTeam( - teamName: teamName, - ownerId: ownerId, - ownerName: ownerName, - ownerRole: ownerRole, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createTeam, we created `createTeamBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateTeamVariablesBuilder { - ... - CreateTeamVariablesBuilder email(String? t) { - _email.value = t; - return this; - } - CreateTeamVariablesBuilder companyLogo(String? t) { - _companyLogo.value = t; - return this; - } - CreateTeamVariablesBuilder totalMembers(int? t) { - _totalMembers.value = t; - return this; - } - CreateTeamVariablesBuilder activeMembers(int? t) { - _activeMembers.value = t; - return this; - } - CreateTeamVariablesBuilder totalHubs(int? t) { - _totalHubs.value = t; - return this; - } - CreateTeamVariablesBuilder departments(AnyValue? t) { - _departments.value = t; - return this; - } - CreateTeamVariablesBuilder favoriteStaffCount(int? t) { - _favoriteStaffCount.value = t; - return this; - } - CreateTeamVariablesBuilder blockedStaffCount(int? t) { - _blockedStaffCount.value = t; - return this; - } - CreateTeamVariablesBuilder favoriteStaff(AnyValue? t) { - _favoriteStaff.value = t; - return this; - } - CreateTeamVariablesBuilder blockedStaff(AnyValue? t) { - _blockedStaff.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createTeam( - teamName: teamName, - ownerId: ownerId, - ownerName: ownerName, - ownerRole: ownerRole, -) -.email(email) -.companyLogo(companyLogo) -.totalMembers(totalMembers) -.activeMembers(activeMembers) -.totalHubs(totalHubs) -.departments(departments) -.favoriteStaffCount(favoriteStaffCount) -.blockedStaffCount(blockedStaffCount) -.favoriteStaff(favoriteStaff) -.blockedStaff(blockedStaff) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createTeam( - teamName: teamName, - ownerId: ownerId, - ownerName: ownerName, - ownerRole: ownerRole, -); -createTeamData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String teamName = ...; -String ownerId = ...; -String ownerName = ...; -String ownerRole = ...; - -final ref = ExampleConnector.instance.createTeam( - teamName: teamName, - ownerId: ownerId, - ownerName: ownerName, - ownerRole: ownerRole, -).ref(); -ref.execute(); -``` - - -### updateTeam -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateTeam( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateTeam, we created `updateTeamBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateTeamVariablesBuilder { - ... - UpdateTeamVariablesBuilder teamName(String? t) { - _teamName.value = t; - return this; - } - UpdateTeamVariablesBuilder ownerName(String? t) { - _ownerName.value = t; - return this; - } - UpdateTeamVariablesBuilder ownerRole(String? t) { - _ownerRole.value = t; - return this; - } - UpdateTeamVariablesBuilder companyLogo(String? t) { - _companyLogo.value = t; - return this; - } - UpdateTeamVariablesBuilder totalMembers(int? t) { - _totalMembers.value = t; - return this; - } - UpdateTeamVariablesBuilder activeMembers(int? t) { - _activeMembers.value = t; - return this; - } - UpdateTeamVariablesBuilder totalHubs(int? t) { - _totalHubs.value = t; - return this; - } - UpdateTeamVariablesBuilder departments(AnyValue? t) { - _departments.value = t; - return this; - } - UpdateTeamVariablesBuilder favoriteStaffCount(int? t) { - _favoriteStaffCount.value = t; - return this; - } - UpdateTeamVariablesBuilder blockedStaffCount(int? t) { - _blockedStaffCount.value = t; - return this; - } - UpdateTeamVariablesBuilder favoriteStaff(AnyValue? t) { - _favoriteStaff.value = t; - return this; - } - UpdateTeamVariablesBuilder blockedStaff(AnyValue? t) { - _blockedStaff.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateTeam( - id: id, -) -.teamName(teamName) -.ownerName(ownerName) -.ownerRole(ownerRole) -.companyLogo(companyLogo) -.totalMembers(totalMembers) -.activeMembers(activeMembers) -.totalHubs(totalHubs) -.departments(departments) -.favoriteStaffCount(favoriteStaffCount) -.blockedStaffCount(blockedStaffCount) -.favoriteStaff(favoriteStaff) -.blockedStaff(blockedStaff) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateTeam( - id: id, -); -updateTeamData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateTeam( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteTeam -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteTeam( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteTeam( - id: id, -); -deleteTeamData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteTeam( - id: id, -).ref(); -ref.execute(); -``` - - -### createRole -#### Required Arguments -```dart -String name = ...; -double costPerHour = ...; -String vendorId = ...; -String roleCategoryId = ...; -ExampleConnector.instance.createRole( - name: name, - costPerHour: costPerHour, - vendorId: vendorId, - roleCategoryId: roleCategoryId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createRole( - name: name, - costPerHour: costPerHour, - vendorId: vendorId, - roleCategoryId: roleCategoryId, -); -createRoleData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String name = ...; -double costPerHour = ...; -String vendorId = ...; -String roleCategoryId = ...; - -final ref = ExampleConnector.instance.createRole( - name: name, - costPerHour: costPerHour, - vendorId: vendorId, - roleCategoryId: roleCategoryId, -).ref(); -ref.execute(); -``` - - -### updateRole -#### Required Arguments -```dart -String id = ...; -String roleCategoryId = ...; -ExampleConnector.instance.updateRole( - id: id, - roleCategoryId: roleCategoryId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateRole, we created `updateRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateRoleVariablesBuilder { - ... - UpdateRoleVariablesBuilder name(String? t) { - _name.value = t; - return this; - } - UpdateRoleVariablesBuilder costPerHour(double? t) { - _costPerHour.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateRole( - id: id, - roleCategoryId: roleCategoryId, -) -.name(name) -.costPerHour(costPerHour) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateRole( - id: id, - roleCategoryId: roleCategoryId, -); -updateRoleData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; -String roleCategoryId = ...; - -final ref = ExampleConnector.instance.updateRole( - id: id, - roleCategoryId: roleCategoryId, -).ref(); -ref.execute(); -``` - - -### deleteRole -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteRole( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteRole( - id: id, -); -deleteRoleData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteRole( - id: id, -).ref(); -ref.execute(); -``` - - -### createTeamHub -#### Required Arguments -```dart -String teamId = ...; -String hubName = ...; -String address = ...; -ExampleConnector.instance.createTeamHub( - teamId: teamId, - hubName: hubName, - address: address, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createTeamHub, we created `createTeamHubBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateTeamHubVariablesBuilder { - ... - CreateTeamHubVariablesBuilder city(String? t) { - _city.value = t; - return this; - } - CreateTeamHubVariablesBuilder state(String? t) { - _state.value = t; - return this; - } - CreateTeamHubVariablesBuilder zipCode(String? t) { - _zipCode.value = t; - return this; - } - CreateTeamHubVariablesBuilder managerName(String? t) { - _managerName.value = t; - return this; - } - CreateTeamHubVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - CreateTeamHubVariablesBuilder departments(AnyValue? t) { - _departments.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createTeamHub( - teamId: teamId, - hubName: hubName, - address: address, -) -.city(city) -.state(state) -.zipCode(zipCode) -.managerName(managerName) -.isActive(isActive) -.departments(departments) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createTeamHub( - teamId: teamId, - hubName: hubName, - address: address, -); -createTeamHubData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String teamId = ...; -String hubName = ...; -String address = ...; - -final ref = ExampleConnector.instance.createTeamHub( - teamId: teamId, - hubName: hubName, - address: address, -).ref(); -ref.execute(); -``` - - -### updateTeamHub -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateTeamHub( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateTeamHub, we created `updateTeamHubBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateTeamHubVariablesBuilder { - ... - UpdateTeamHubVariablesBuilder hubName(String? t) { - _hubName.value = t; - return this; - } - UpdateTeamHubVariablesBuilder address(String? t) { - _address.value = t; - return this; - } - UpdateTeamHubVariablesBuilder city(String? t) { - _city.value = t; - return this; - } - UpdateTeamHubVariablesBuilder state(String? t) { - _state.value = t; - return this; - } - UpdateTeamHubVariablesBuilder zipCode(String? t) { - _zipCode.value = t; - return this; - } - UpdateTeamHubVariablesBuilder managerName(String? t) { - _managerName.value = t; - return this; - } - UpdateTeamHubVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - UpdateTeamHubVariablesBuilder departments(AnyValue? t) { - _departments.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateTeamHub( - id: id, -) -.hubName(hubName) -.address(address) -.city(city) -.state(state) -.zipCode(zipCode) -.managerName(managerName) -.isActive(isActive) -.departments(departments) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateTeamHub( - id: id, -); -updateTeamHubData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateTeamHub( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteTeamHub -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteTeamHub( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteTeamHub( - id: id, -); -deleteTeamHubData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteTeamHub( - id: id, -).ref(); -ref.execute(); -``` - - -### CreateAssignment -#### Required Arguments -```dart -String workforceId = ...; -String roleId = ...; -String shiftId = ...; -ExampleConnector.instance.createAssignment( - workforceId: workforceId, - roleId: roleId, - shiftId: shiftId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For CreateAssignment, we created `CreateAssignmentBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateAssignmentVariablesBuilder { - ... - CreateAssignmentVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - CreateAssignmentVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - CreateAssignmentVariablesBuilder instructions(String? t) { - _instructions.value = t; - return this; - } - CreateAssignmentVariablesBuilder status(AssignmentStatus? t) { - _status.value = t; - return this; - } - CreateAssignmentVariablesBuilder tipsAvailable(bool? t) { - _tipsAvailable.value = t; - return this; - } - CreateAssignmentVariablesBuilder travelTime(bool? t) { - _travelTime.value = t; - return this; - } - CreateAssignmentVariablesBuilder mealProvided(bool? t) { - _mealProvided.value = t; - return this; - } - CreateAssignmentVariablesBuilder parkingAvailable(bool? t) { - _parkingAvailable.value = t; - return this; - } - CreateAssignmentVariablesBuilder gasCompensation(bool? t) { - _gasCompensation.value = t; - return this; - } - CreateAssignmentVariablesBuilder managers(List? t) { - _managers.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createAssignment( - workforceId: workforceId, - roleId: roleId, - shiftId: shiftId, -) +.hourStart(hourStart) +.hourEnd(hourEnd) +.totalhours(totalhours) +.iconType(iconType) +.iconColor(iconColor) .title(title) .description(description) -.instructions(instructions) -.status(status) -.tipsAvailable(tipsAvailable) -.travelTime(travelTime) -.mealProvided(mealProvided) -.parkingAvailable(parkingAvailable) -.gasCompensation(gasCompensation) -.managers(managers) +.isRead(isRead) +.activityType(activityType) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -19858,129 +14493,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createAssignment( - workforceId: workforceId, - roleId: roleId, - shiftId: shiftId, +final result = await ExampleConnector.instance.updateActivityLog( + id: id, ); -CreateAssignmentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String workforceId = ...; -String roleId = ...; -String shiftId = ...; - -final ref = ExampleConnector.instance.createAssignment( - workforceId: workforceId, - roleId: roleId, - shiftId: shiftId, -).ref(); -ref.execute(); -``` - - -### UpdateAssignment -#### Required Arguments -```dart -String id = ...; -String roleId = ...; -String shiftId = ...; -ExampleConnector.instance.updateAssignment( - id: id, - roleId: roleId, - shiftId: shiftId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For UpdateAssignment, we created `UpdateAssignmentBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateAssignmentVariablesBuilder { - ... - UpdateAssignmentVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - UpdateAssignmentVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - UpdateAssignmentVariablesBuilder instructions(String? t) { - _instructions.value = t; - return this; - } - UpdateAssignmentVariablesBuilder status(AssignmentStatus? t) { - _status.value = t; - return this; - } - UpdateAssignmentVariablesBuilder tipsAvailable(bool? t) { - _tipsAvailable.value = t; - return this; - } - UpdateAssignmentVariablesBuilder travelTime(bool? t) { - _travelTime.value = t; - return this; - } - UpdateAssignmentVariablesBuilder mealProvided(bool? t) { - _mealProvided.value = t; - return this; - } - UpdateAssignmentVariablesBuilder parkingAvailable(bool? t) { - _parkingAvailable.value = t; - return this; - } - UpdateAssignmentVariablesBuilder gasCompensation(bool? t) { - _gasCompensation.value = t; - return this; - } - UpdateAssignmentVariablesBuilder managers(List? t) { - _managers.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateAssignment( - id: id, - roleId: roleId, - shiftId: shiftId, -) -.title(title) -.description(description) -.instructions(instructions) -.status(status) -.tipsAvailable(tipsAvailable) -.travelTime(travelTime) -.mealProvided(mealProvided) -.parkingAvailable(parkingAvailable) -.gasCompensation(gasCompensation) -.managers(managers) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateAssignment( - id: id, - roleId: roleId, - shiftId: shiftId, -); -UpdateAssignmentData data = result.data; +updateActivityLogData data = result.data; final ref = result.ref; ``` @@ -19989,23 +14505,19 @@ Each builder returns an `execute` function, which is a helper function that crea An example of how to use the `Ref` object is shown below: ```dart String id = ...; -String roleId = ...; -String shiftId = ...; -final ref = ExampleConnector.instance.updateAssignment( +final ref = ExampleConnector.instance.updateActivityLog( id: id, - roleId: roleId, - shiftId: shiftId, ).ref(); ref.execute(); ``` -### DeleteAssignment +### markActivityLogAsRead #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteAssignment( +ExampleConnector.instance.markActivityLogAsRead( id: id, ).execute(); ``` @@ -20013,7 +14525,7 @@ ExampleConnector.instance.deleteAssignment( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -20023,10 +14535,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteAssignment( +final result = await ExampleConnector.instance.markActivityLogAsRead( id: id, ); -DeleteAssignmentData data = result.data; +markActivityLogAsReadData data = result.data; final ref = result.ref; ``` @@ -20036,67 +14548,26 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteAssignment( +final ref = ExampleConnector.instance.markActivityLogAsRead( id: id, ).ref(); ref.execute(); ``` -### createStaffCourse +### markActivityLogsAsRead #### Required Arguments ```dart -String staffId = ...; -String courseId = ...; -ExampleConnector.instance.createStaffCourse( - staffId: staffId, - courseId: courseId, +String ids = ...; +ExampleConnector.instance.markActivityLogsAsRead( + ids: ids, ).execute(); ``` -#### Optional Arguments -We return a builder for each query. For createStaffCourse, we created `createStaffCourseBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateStaffCourseVariablesBuilder { - ... - CreateStaffCourseVariablesBuilder progressPercent(int? t) { - _progressPercent.value = t; - return this; - } - CreateStaffCourseVariablesBuilder completed(bool? t) { - _completed.value = t; - return this; - } - CreateStaffCourseVariablesBuilder completedAt(Timestamp? t) { - _completedAt.value = t; - return this; - } - CreateStaffCourseVariablesBuilder startedAt(Timestamp? t) { - _startedAt.value = t; - return this; - } - CreateStaffCourseVariablesBuilder lastAccessedAt(Timestamp? t) { - _lastAccessedAt.value = t; - return this; - } - ... -} -ExampleConnector.instance.createStaffCourse( - staffId: staffId, - courseId: courseId, -) -.progressPercent(progressPercent) -.completed(completed) -.completedAt(completedAt) -.startedAt(startedAt) -.lastAccessedAt(lastAccessedAt) -.execute(); -``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -20106,11 +14577,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createStaffCourse( - staffId: staffId, - courseId: courseId, +final result = await ExampleConnector.instance.markActivityLogsAsRead( + ids: ids, ); -createStaffCourseData data = result.data; +markActivityLogsAsReadData data = result.data; final ref = result.ref; ``` @@ -20118,102 +14588,20 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String staffId = ...; -String courseId = ...; +String ids = ...; -final ref = ExampleConnector.instance.createStaffCourse( - staffId: staffId, - courseId: courseId, +final ref = ExampleConnector.instance.markActivityLogsAsRead( + ids: ids, ).ref(); ref.execute(); ``` -### updateStaffCourse +### deleteActivityLog #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateStaffCourse( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateStaffCourse, we created `updateStaffCourseBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateStaffCourseVariablesBuilder { - ... - UpdateStaffCourseVariablesBuilder progressPercent(int? t) { - _progressPercent.value = t; - return this; - } - UpdateStaffCourseVariablesBuilder completed(bool? t) { - _completed.value = t; - return this; - } - UpdateStaffCourseVariablesBuilder completedAt(Timestamp? t) { - _completedAt.value = t; - return this; - } - UpdateStaffCourseVariablesBuilder startedAt(Timestamp? t) { - _startedAt.value = t; - return this; - } - UpdateStaffCourseVariablesBuilder lastAccessedAt(Timestamp? t) { - _lastAccessedAt.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateStaffCourse( - id: id, -) -.progressPercent(progressPercent) -.completed(completed) -.completedAt(completedAt) -.startedAt(startedAt) -.lastAccessedAt(lastAccessedAt) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateStaffCourse( - id: id, -); -updateStaffCourseData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateStaffCourse( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteStaffCourse -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteStaffCourse( +ExampleConnector.instance.deleteActivityLog( id: id, ).execute(); ``` @@ -20221,7 +14609,7 @@ ExampleConnector.instance.deleteStaffCourse( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -20231,10 +14619,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteStaffCourse( +final result = await ExampleConnector.instance.deleteActivityLog( id: id, ); -deleteStaffCourseData data = result.data; +deleteActivityLogData data = result.data; final ref = result.ref; ``` @@ -20244,714 +14632,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteStaffCourse( - id: id, -).ref(); -ref.execute(); -``` - - -### createTask -#### Required Arguments -```dart -String taskName = ...; -TaskPriority priority = ...; -TaskStatus status = ...; -String ownerId = ...; -ExampleConnector.instance.createTask( - taskName: taskName, - priority: priority, - status: status, - ownerId: ownerId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createTask, we created `createTaskBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateTaskVariablesBuilder { - ... - CreateTaskVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - CreateTaskVariablesBuilder dueDate(Timestamp? t) { - _dueDate.value = t; - return this; - } - CreateTaskVariablesBuilder progress(int? t) { - _progress.value = t; - return this; - } - CreateTaskVariablesBuilder orderIndex(int? t) { - _orderIndex.value = t; - return this; - } - CreateTaskVariablesBuilder commentCount(int? t) { - _commentCount.value = t; - return this; - } - CreateTaskVariablesBuilder attachmentCount(int? t) { - _attachmentCount.value = t; - return this; - } - CreateTaskVariablesBuilder files(AnyValue? t) { - _files.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createTask( - taskName: taskName, - priority: priority, - status: status, - ownerId: ownerId, -) -.description(description) -.dueDate(dueDate) -.progress(progress) -.orderIndex(orderIndex) -.commentCount(commentCount) -.attachmentCount(attachmentCount) -.files(files) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createTask( - taskName: taskName, - priority: priority, - status: status, - ownerId: ownerId, -); -createTaskData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String taskName = ...; -TaskPriority priority = ...; -TaskStatus status = ...; -String ownerId = ...; - -final ref = ExampleConnector.instance.createTask( - taskName: taskName, - priority: priority, - status: status, - ownerId: ownerId, -).ref(); -ref.execute(); -``` - - -### updateTask -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateTask( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateTask, we created `updateTaskBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateTaskVariablesBuilder { - ... - UpdateTaskVariablesBuilder taskName(String? t) { - _taskName.value = t; - return this; - } - UpdateTaskVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - UpdateTaskVariablesBuilder priority(TaskPriority? t) { - _priority.value = t; - return this; - } - UpdateTaskVariablesBuilder status(TaskStatus? t) { - _status.value = t; - return this; - } - UpdateTaskVariablesBuilder dueDate(Timestamp? t) { - _dueDate.value = t; - return this; - } - UpdateTaskVariablesBuilder progress(int? t) { - _progress.value = t; - return this; - } - UpdateTaskVariablesBuilder assignedMembers(AnyValue? t) { - _assignedMembers.value = t; - return this; - } - UpdateTaskVariablesBuilder orderIndex(int? t) { - _orderIndex.value = t; - return this; - } - UpdateTaskVariablesBuilder commentCount(int? t) { - _commentCount.value = t; - return this; - } - UpdateTaskVariablesBuilder attachmentCount(int? t) { - _attachmentCount.value = t; - return this; - } - UpdateTaskVariablesBuilder files(AnyValue? t) { - _files.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateTask( - id: id, -) -.taskName(taskName) -.description(description) -.priority(priority) -.status(status) -.dueDate(dueDate) -.progress(progress) -.assignedMembers(assignedMembers) -.orderIndex(orderIndex) -.commentCount(commentCount) -.attachmentCount(attachmentCount) -.files(files) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateTask( - id: id, -); -updateTaskData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateTask( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteTask -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteTask( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteTask( - id: id, -); -deleteTaskData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteTask( - id: id, -).ref(); -ref.execute(); -``` - - -### createVendorBenefitPlan -#### Required Arguments -```dart -String vendorId = ...; -String title = ...; -ExampleConnector.instance.createVendorBenefitPlan( - vendorId: vendorId, - title: title, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createVendorBenefitPlan, we created `createVendorBenefitPlanBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateVendorBenefitPlanVariablesBuilder { - ... - CreateVendorBenefitPlanVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - CreateVendorBenefitPlanVariablesBuilder requestLabel(String? t) { - _requestLabel.value = t; - return this; - } - CreateVendorBenefitPlanVariablesBuilder total(int? t) { - _total.value = t; - return this; - } - CreateVendorBenefitPlanVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - CreateVendorBenefitPlanVariablesBuilder createdBy(String? t) { - _createdBy.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createVendorBenefitPlan( - vendorId: vendorId, - title: title, -) -.description(description) -.requestLabel(requestLabel) -.total(total) -.isActive(isActive) -.createdBy(createdBy) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createVendorBenefitPlan( - vendorId: vendorId, - title: title, -); -createVendorBenefitPlanData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; -String title = ...; - -final ref = ExampleConnector.instance.createVendorBenefitPlan( - vendorId: vendorId, - title: title, -).ref(); -ref.execute(); -``` - - -### updateVendorBenefitPlan -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateVendorBenefitPlan( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateVendorBenefitPlan, we created `updateVendorBenefitPlanBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateVendorBenefitPlanVariablesBuilder { - ... - UpdateVendorBenefitPlanVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } - UpdateVendorBenefitPlanVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - UpdateVendorBenefitPlanVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - UpdateVendorBenefitPlanVariablesBuilder requestLabel(String? t) { - _requestLabel.value = t; - return this; - } - UpdateVendorBenefitPlanVariablesBuilder total(int? t) { - _total.value = t; - return this; - } - UpdateVendorBenefitPlanVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - UpdateVendorBenefitPlanVariablesBuilder createdBy(String? t) { - _createdBy.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateVendorBenefitPlan( - id: id, -) -.vendorId(vendorId) -.title(title) -.description(description) -.requestLabel(requestLabel) -.total(total) -.isActive(isActive) -.createdBy(createdBy) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateVendorBenefitPlan( - id: id, -); -updateVendorBenefitPlanData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateVendorBenefitPlan( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteVendorBenefitPlan -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteVendorBenefitPlan( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteVendorBenefitPlan( - id: id, -); -deleteVendorBenefitPlanData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteVendorBenefitPlan( - id: id, -).ref(); -ref.execute(); -``` - - -### createCourse -#### Required Arguments -```dart -String categoryId = ...; -ExampleConnector.instance.createCourse( - categoryId: categoryId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createCourse, we created `createCourseBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateCourseVariablesBuilder { - ... - - CreateCourseVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - CreateCourseVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - CreateCourseVariablesBuilder thumbnailUrl(String? t) { - _thumbnailUrl.value = t; - return this; - } - CreateCourseVariablesBuilder durationMinutes(int? t) { - _durationMinutes.value = t; - return this; - } - CreateCourseVariablesBuilder xpReward(int? t) { - _xpReward.value = t; - return this; - } - CreateCourseVariablesBuilder levelRequired(String? t) { - _levelRequired.value = t; - return this; - } - CreateCourseVariablesBuilder isCertification(bool? t) { - _isCertification.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createCourse( - categoryId: categoryId, -) -.title(title) -.description(description) -.thumbnailUrl(thumbnailUrl) -.durationMinutes(durationMinutes) -.xpReward(xpReward) -.levelRequired(levelRequired) -.isCertification(isCertification) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createCourse( - categoryId: categoryId, -); -createCourseData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String categoryId = ...; - -final ref = ExampleConnector.instance.createCourse( - categoryId: categoryId, -).ref(); -ref.execute(); -``` - - -### updateCourse -#### Required Arguments -```dart -String id = ...; -String categoryId = ...; -ExampleConnector.instance.updateCourse( - id: id, - categoryId: categoryId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateCourse, we created `updateCourseBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateCourseVariablesBuilder { - ... - UpdateCourseVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - UpdateCourseVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - UpdateCourseVariablesBuilder thumbnailUrl(String? t) { - _thumbnailUrl.value = t; - return this; - } - UpdateCourseVariablesBuilder durationMinutes(int? t) { - _durationMinutes.value = t; - return this; - } - UpdateCourseVariablesBuilder xpReward(int? t) { - _xpReward.value = t; - return this; - } - UpdateCourseVariablesBuilder levelRequired(String? t) { - _levelRequired.value = t; - return this; - } - UpdateCourseVariablesBuilder isCertification(bool? t) { - _isCertification.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateCourse( - id: id, - categoryId: categoryId, -) -.title(title) -.description(description) -.thumbnailUrl(thumbnailUrl) -.durationMinutes(durationMinutes) -.xpReward(xpReward) -.levelRequired(levelRequired) -.isCertification(isCertification) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateCourse( - id: id, - categoryId: categoryId, -); -updateCourseData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; -String categoryId = ...; - -final ref = ExampleConnector.instance.updateCourse( - id: id, - categoryId: categoryId, -).ref(); -ref.execute(); -``` - - -### deleteCourse -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteCourse( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteCourse( - id: id, -); -deleteCourseData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteCourse( +final ref = ExampleConnector.instance.deleteActivityLog( id: id, ).ref(); ref.execute(); @@ -21146,51 +14827,21 @@ ref.execute(); ``` -### createStaffDocument +### createMemberTask #### Required Arguments ```dart -String staffId = ...; -String staffName = ...; -String documentId = ...; -DocumentStatus status = ...; -ExampleConnector.instance.createStaffDocument( - staffId: staffId, - staffName: staffName, - documentId: documentId, - status: status, +String teamMemberId = ...; +String taskId = ...; +ExampleConnector.instance.createMemberTask( + teamMemberId: teamMemberId, + taskId: taskId, ).execute(); ``` -#### Optional Arguments -We return a builder for each query. For createStaffDocument, we created `createStaffDocumentBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateStaffDocumentVariablesBuilder { - ... - CreateStaffDocumentVariablesBuilder documentUrl(String? t) { - _documentUrl.value = t; - return this; - } - CreateStaffDocumentVariablesBuilder expiryDate(Timestamp? t) { - _expiryDate.value = t; - return this; - } - ... -} -ExampleConnector.instance.createStaffDocument( - staffId: staffId, - staffName: staffName, - documentId: documentId, - status: status, -) -.documentUrl(documentUrl) -.expiryDate(expiryDate) -.execute(); -``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -21200,13 +14851,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createStaffDocument( - staffId: staffId, - staffName: staffName, - documentId: documentId, - status: status, +final result = await ExampleConnector.instance.createMemberTask( + teamMemberId: teamMemberId, + taskId: taskId, ); -createStaffDocumentData data = result.data; +createMemberTaskData data = result.data; final ref = result.ref; ``` @@ -21214,65 +14863,32 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String staffId = ...; -String staffName = ...; -String documentId = ...; -DocumentStatus status = ...; +String teamMemberId = ...; +String taskId = ...; -final ref = ExampleConnector.instance.createStaffDocument( - staffId: staffId, - staffName: staffName, - documentId: documentId, - status: status, +final ref = ExampleConnector.instance.createMemberTask( + teamMemberId: teamMemberId, + taskId: taskId, ).ref(); ref.execute(); ``` -### updateStaffDocument +### deleteMemberTask #### Required Arguments ```dart -String staffId = ...; -String documentId = ...; -ExampleConnector.instance.updateStaffDocument( - staffId: staffId, - documentId: documentId, +String teamMemberId = ...; +String taskId = ...; +ExampleConnector.instance.deleteMemberTask( + teamMemberId: teamMemberId, + taskId: taskId, ).execute(); ``` -#### Optional Arguments -We return a builder for each query. For updateStaffDocument, we created `updateStaffDocumentBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateStaffDocumentVariablesBuilder { - ... - UpdateStaffDocumentVariablesBuilder status(DocumentStatus? t) { - _status.value = t; - return this; - } - UpdateStaffDocumentVariablesBuilder documentUrl(String? t) { - _documentUrl.value = t; - return this; - } - UpdateStaffDocumentVariablesBuilder expiryDate(Timestamp? t) { - _expiryDate.value = t; - return this; - } - ... -} -ExampleConnector.instance.updateStaffDocument( - staffId: staffId, - documentId: documentId, -) -.status(status) -.documentUrl(documentUrl) -.expiryDate(expiryDate) -.execute(); -``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -21282,11 +14898,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateStaffDocument( - staffId: staffId, - documentId: documentId, +final result = await ExampleConnector.instance.deleteMemberTask( + teamMemberId: teamMemberId, + taskId: taskId, ); -updateStaffDocumentData data = result.data; +deleteMemberTaskData data = result.data; final ref = result.ref; ``` @@ -21294,59 +14910,12 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String staffId = ...; -String documentId = ...; +String teamMemberId = ...; +String taskId = ...; -final ref = ExampleConnector.instance.updateStaffDocument( - staffId: staffId, - documentId: documentId, -).ref(); -ref.execute(); -``` - - -### deleteStaffDocument -#### Required Arguments -```dart -String staffId = ...; -String documentId = ...; -ExampleConnector.instance.deleteStaffDocument( - staffId: staffId, - documentId: documentId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteStaffDocument( - staffId: staffId, - documentId: documentId, -); -deleteStaffDocumentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String documentId = ...; - -final ref = ExampleConnector.instance.deleteStaffDocument( - staffId: staffId, - documentId: documentId, +final ref = ExampleConnector.instance.deleteMemberTask( + teamMemberId: teamMemberId, + taskId: taskId, ).ref(); ref.execute(); ``` @@ -21702,91 +15271,68 @@ ref.execute(); ``` -### createBusiness +### createCourse #### Required Arguments ```dart -String businessName = ...; -String userId = ...; -BusinessRateGroup rateGroup = ...; -BusinessStatus status = ...; -ExampleConnector.instance.createBusiness( - businessName: businessName, - userId: userId, - rateGroup: rateGroup, - status: status, +String categoryId = ...; +ExampleConnector.instance.createCourse( + categoryId: categoryId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createBusiness, we created `createBusinessBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createCourse, we created `createCourseBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateBusinessVariablesBuilder { +class CreateCourseVariablesBuilder { ... - CreateBusinessVariablesBuilder contactName(String? t) { - _contactName.value = t; + + CreateCourseVariablesBuilder title(String? t) { + _title.value = t; return this; } - CreateBusinessVariablesBuilder companyLogoUrl(String? t) { - _companyLogoUrl.value = t; + CreateCourseVariablesBuilder description(String? t) { + _description.value = t; return this; } - CreateBusinessVariablesBuilder phone(String? t) { - _phone.value = t; + CreateCourseVariablesBuilder thumbnailUrl(String? t) { + _thumbnailUrl.value = t; return this; } - CreateBusinessVariablesBuilder email(String? t) { - _email.value = t; + CreateCourseVariablesBuilder durationMinutes(int? t) { + _durationMinutes.value = t; return this; } - CreateBusinessVariablesBuilder hubBuilding(String? t) { - _hubBuilding.value = t; + CreateCourseVariablesBuilder xpReward(int? t) { + _xpReward.value = t; return this; } - CreateBusinessVariablesBuilder address(String? t) { - _address.value = t; + CreateCourseVariablesBuilder levelRequired(String? t) { + _levelRequired.value = t; return this; } - CreateBusinessVariablesBuilder city(String? t) { - _city.value = t; - return this; - } - CreateBusinessVariablesBuilder area(BusinessArea? t) { - _area.value = t; - return this; - } - CreateBusinessVariablesBuilder sector(BusinessSector? t) { - _sector.value = t; - return this; - } - CreateBusinessVariablesBuilder notes(String? t) { - _notes.value = t; + CreateCourseVariablesBuilder isCertification(bool? t) { + _isCertification.value = t; return this; } ... } -ExampleConnector.instance.createBusiness( - businessName: businessName, - userId: userId, - rateGroup: rateGroup, - status: status, +ExampleConnector.instance.createCourse( + categoryId: categoryId, ) -.contactName(contactName) -.companyLogoUrl(companyLogoUrl) -.phone(phone) -.email(email) -.hubBuilding(hubBuilding) -.address(address) -.city(city) -.area(area) -.sector(sector) -.notes(notes) +.title(title) +.description(description) +.thumbnailUrl(thumbnailUrl) +.durationMinutes(durationMinutes) +.xpReward(xpReward) +.levelRequired(levelRequired) +.isCertification(isCertification) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -21796,13 +15342,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createBusiness( - businessName: businessName, - userId: userId, - rateGroup: rateGroup, - status: status, +final result = await ExampleConnector.instance.createCourse( + categoryId: categoryId, ); -createBusinessData data = result.data; +createCourseData data = result.data; final ref = result.ref; ``` @@ -21810,112 +15353,79 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String businessName = ...; -String userId = ...; -BusinessRateGroup rateGroup = ...; -BusinessStatus status = ...; +String categoryId = ...; -final ref = ExampleConnector.instance.createBusiness( - businessName: businessName, - userId: userId, - rateGroup: rateGroup, - status: status, +final ref = ExampleConnector.instance.createCourse( + categoryId: categoryId, ).ref(); ref.execute(); ``` -### updateBusiness +### updateCourse #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateBusiness( +String categoryId = ...; +ExampleConnector.instance.updateCourse( id: id, + categoryId: categoryId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateBusiness, we created `updateBusinessBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateCourse, we created `updateCourseBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateBusinessVariablesBuilder { +class UpdateCourseVariablesBuilder { ... - UpdateBusinessVariablesBuilder businessName(String? t) { - _businessName.value = t; + UpdateCourseVariablesBuilder title(String? t) { + _title.value = t; return this; } - UpdateBusinessVariablesBuilder contactName(String? t) { - _contactName.value = t; + UpdateCourseVariablesBuilder description(String? t) { + _description.value = t; return this; } - UpdateBusinessVariablesBuilder companyLogoUrl(String? t) { - _companyLogoUrl.value = t; + UpdateCourseVariablesBuilder thumbnailUrl(String? t) { + _thumbnailUrl.value = t; return this; } - UpdateBusinessVariablesBuilder phone(String? t) { - _phone.value = t; + UpdateCourseVariablesBuilder durationMinutes(int? t) { + _durationMinutes.value = t; return this; } - UpdateBusinessVariablesBuilder email(String? t) { - _email.value = t; + UpdateCourseVariablesBuilder xpReward(int? t) { + _xpReward.value = t; return this; } - UpdateBusinessVariablesBuilder hubBuilding(String? t) { - _hubBuilding.value = t; + UpdateCourseVariablesBuilder levelRequired(String? t) { + _levelRequired.value = t; return this; } - UpdateBusinessVariablesBuilder address(String? t) { - _address.value = t; - return this; - } - UpdateBusinessVariablesBuilder city(String? t) { - _city.value = t; - return this; - } - UpdateBusinessVariablesBuilder area(BusinessArea? t) { - _area.value = t; - return this; - } - UpdateBusinessVariablesBuilder sector(BusinessSector? t) { - _sector.value = t; - return this; - } - UpdateBusinessVariablesBuilder rateGroup(BusinessRateGroup? t) { - _rateGroup.value = t; - return this; - } - UpdateBusinessVariablesBuilder status(BusinessStatus? t) { - _status.value = t; - return this; - } - UpdateBusinessVariablesBuilder notes(String? t) { - _notes.value = t; + UpdateCourseVariablesBuilder isCertification(bool? t) { + _isCertification.value = t; return this; } ... } -ExampleConnector.instance.updateBusiness( +ExampleConnector.instance.updateCourse( id: id, + categoryId: categoryId, ) -.businessName(businessName) -.contactName(contactName) -.companyLogoUrl(companyLogoUrl) -.phone(phone) -.email(email) -.hubBuilding(hubBuilding) -.address(address) -.city(city) -.area(area) -.sector(sector) -.rateGroup(rateGroup) -.status(status) -.notes(notes) +.title(title) +.description(description) +.thumbnailUrl(thumbnailUrl) +.durationMinutes(durationMinutes) +.xpReward(xpReward) +.levelRequired(levelRequired) +.isCertification(isCertification) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -21925,10 +15435,55 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateBusiness( +final result = await ExampleConnector.instance.updateCourse( + id: id, + categoryId: categoryId, +); +updateCourseData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; +String categoryId = ...; + +final ref = ExampleConnector.instance.updateCourse( + id: id, + categoryId: categoryId, +).ref(); +ref.execute(); +``` + + +### deleteCourse +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteCourse( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteCourse( id: id, ); -updateBusinessData data = result.data; +deleteCourseData data = result.data; final ref = result.ref; ``` @@ -21938,26 +15493,47 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateBusiness( +final ref = ExampleConnector.instance.deleteCourse( id: id, ).ref(); ref.execute(); ``` -### deleteBusiness +### createDocument #### Required Arguments ```dart -String id = ...; -ExampleConnector.instance.deleteBusiness( - id: id, +DocumentType documentType = ...; +String name = ...; +ExampleConnector.instance.createDocument( + documentType: documentType, + name: name, ).execute(); ``` +#### Optional Arguments +We return a builder for each query. For createDocument, we created `createDocumentBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateDocumentVariablesBuilder { + ... + CreateDocumentVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + ... +} +ExampleConnector.instance.createDocument( + documentType: documentType, + name: name, +) +.description(description) +.execute(); +``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -21967,10 +15543,83 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteBusiness( +final result = await ExampleConnector.instance.createDocument( + documentType: documentType, + name: name, +); +createDocumentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +DocumentType documentType = ...; +String name = ...; + +final ref = ExampleConnector.instance.createDocument( + documentType: documentType, + name: name, +).ref(); +ref.execute(); +``` + + +### updateDocument +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateDocument( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateDocument, we created `updateDocumentBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateDocumentVariablesBuilder { + ... + UpdateDocumentVariablesBuilder documentType(DocumentType? t) { + _documentType.value = t; + return this; + } + UpdateDocumentVariablesBuilder name(String? t) { + _name.value = t; + return this; + } + UpdateDocumentVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateDocument( + id: id, +) +.documentType(documentType) +.name(name) +.description(description) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateDocument( id: id, ); -deleteBusinessData data = result.data; +updateDocumentData data = result.data; final ref = result.ref; ``` @@ -21980,7 +15629,49 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteBusiness( +final ref = ExampleConnector.instance.updateDocument( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteDocument +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteDocument( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteDocument( + id: id, +); +deleteDocumentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteDocument( id: id, ).ref(); ref.execute(); @@ -22346,40 +16037,51 @@ ref.execute(); ``` -### createTeamHudDepartment +### createStaffDocument #### Required Arguments ```dart -String name = ...; -String teamHubId = ...; -ExampleConnector.instance.createTeamHudDepartment( - name: name, - teamHubId: teamHubId, +String staffId = ...; +String staffName = ...; +String documentId = ...; +DocumentStatus status = ...; +ExampleConnector.instance.createStaffDocument( + staffId: staffId, + staffName: staffName, + documentId: documentId, + status: status, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createTeamHudDepartment, we created `createTeamHudDepartmentBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createStaffDocument, we created `createStaffDocumentBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateTeamHudDepartmentVariablesBuilder { +class CreateStaffDocumentVariablesBuilder { ... - CreateTeamHudDepartmentVariablesBuilder costCenter(String? t) { - _costCenter.value = t; + CreateStaffDocumentVariablesBuilder documentUrl(String? t) { + _documentUrl.value = t; + return this; + } + CreateStaffDocumentVariablesBuilder expiryDate(Timestamp? t) { + _expiryDate.value = t; return this; } ... } -ExampleConnector.instance.createTeamHudDepartment( - name: name, - teamHubId: teamHubId, +ExampleConnector.instance.createStaffDocument( + staffId: staffId, + staffName: staffName, + documentId: documentId, + status: status, ) -.costCenter(costCenter) +.documentUrl(documentUrl) +.expiryDate(expiryDate) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -22389,11 +16091,13 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createTeamHudDepartment( - name: name, - teamHubId: teamHubId, +final result = await ExampleConnector.instance.createStaffDocument( + staffId: staffId, + staffName: staffName, + documentId: documentId, + status: status, ); -createTeamHudDepartmentData data = result.data; +createStaffDocumentData data = result.data; final ref = result.ref; ``` @@ -22401,58 +16105,65 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String name = ...; -String teamHubId = ...; +String staffId = ...; +String staffName = ...; +String documentId = ...; +DocumentStatus status = ...; -final ref = ExampleConnector.instance.createTeamHudDepartment( - name: name, - teamHubId: teamHubId, +final ref = ExampleConnector.instance.createStaffDocument( + staffId: staffId, + staffName: staffName, + documentId: documentId, + status: status, ).ref(); ref.execute(); ``` -### updateTeamHudDepartment +### updateStaffDocument #### Required Arguments ```dart -String id = ...; -ExampleConnector.instance.updateTeamHudDepartment( - id: id, +String staffId = ...; +String documentId = ...; +ExampleConnector.instance.updateStaffDocument( + staffId: staffId, + documentId: documentId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateTeamHudDepartment, we created `updateTeamHudDepartmentBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateStaffDocument, we created `updateStaffDocumentBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateTeamHudDepartmentVariablesBuilder { +class UpdateStaffDocumentVariablesBuilder { ... - UpdateTeamHudDepartmentVariablesBuilder name(String? t) { - _name.value = t; + UpdateStaffDocumentVariablesBuilder status(DocumentStatus? t) { + _status.value = t; return this; } - UpdateTeamHudDepartmentVariablesBuilder costCenter(String? t) { - _costCenter.value = t; + UpdateStaffDocumentVariablesBuilder documentUrl(String? t) { + _documentUrl.value = t; return this; } - UpdateTeamHudDepartmentVariablesBuilder teamHubId(String? t) { - _teamHubId.value = t; + UpdateStaffDocumentVariablesBuilder expiryDate(Timestamp? t) { + _expiryDate.value = t; return this; } ... } -ExampleConnector.instance.updateTeamHudDepartment( - id: id, +ExampleConnector.instance.updateStaffDocument( + staffId: staffId, + documentId: documentId, ) -.name(name) -.costCenter(costCenter) -.teamHubId(teamHubId) +.status(status) +.documentUrl(documentUrl) +.expiryDate(expiryDate) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -22462,10 +16173,361 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateTeamHudDepartment( +final result = await ExampleConnector.instance.updateStaffDocument( + staffId: staffId, + documentId: documentId, +); +updateStaffDocumentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +String documentId = ...; + +final ref = ExampleConnector.instance.updateStaffDocument( + staffId: staffId, + documentId: documentId, +).ref(); +ref.execute(); +``` + + +### deleteStaffDocument +#### Required Arguments +```dart +String staffId = ...; +String documentId = ...; +ExampleConnector.instance.deleteStaffDocument( + staffId: staffId, + documentId: documentId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteStaffDocument( + staffId: staffId, + documentId: documentId, +); +deleteStaffDocumentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +String documentId = ...; + +final ref = ExampleConnector.instance.deleteStaffDocument( + staffId: staffId, + documentId: documentId, +).ref(); +ref.execute(); +``` + + +### createVendor +#### Required Arguments +```dart +String userId = ...; +String companyName = ...; +ExampleConnector.instance.createVendor( + userId: userId, + companyName: companyName, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createVendor, we created `createVendorBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateVendorVariablesBuilder { + ... + CreateVendorVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + CreateVendorVariablesBuilder phone(String? t) { + _phone.value = t; + return this; + } + CreateVendorVariablesBuilder photoUrl(String? t) { + _photoUrl.value = t; + return this; + } + CreateVendorVariablesBuilder address(String? t) { + _address.value = t; + return this; + } + CreateVendorVariablesBuilder billingAddress(String? t) { + _billingAddress.value = t; + return this; + } + CreateVendorVariablesBuilder timezone(String? t) { + _timezone.value = t; + return this; + } + CreateVendorVariablesBuilder legalName(String? t) { + _legalName.value = t; + return this; + } + CreateVendorVariablesBuilder doingBusinessAs(String? t) { + _doingBusinessAs.value = t; + return this; + } + CreateVendorVariablesBuilder region(String? t) { + _region.value = t; + return this; + } + CreateVendorVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + CreateVendorVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + CreateVendorVariablesBuilder serviceSpecialty(String? t) { + _serviceSpecialty.value = t; + return this; + } + CreateVendorVariablesBuilder approvalStatus(ApprovalStatus? t) { + _approvalStatus.value = t; + return this; + } + CreateVendorVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + CreateVendorVariablesBuilder markup(double? t) { + _markup.value = t; + return this; + } + CreateVendorVariablesBuilder fee(double? t) { + _fee.value = t; + return this; + } + CreateVendorVariablesBuilder csat(double? t) { + _csat.value = t; + return this; + } + CreateVendorVariablesBuilder tier(VendorTier? t) { + _tier.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createVendor( + userId: userId, + companyName: companyName, +) +.email(email) +.phone(phone) +.photoUrl(photoUrl) +.address(address) +.billingAddress(billingAddress) +.timezone(timezone) +.legalName(legalName) +.doingBusinessAs(doingBusinessAs) +.region(region) +.state(state) +.city(city) +.serviceSpecialty(serviceSpecialty) +.approvalStatus(approvalStatus) +.isActive(isActive) +.markup(markup) +.fee(fee) +.csat(csat) +.tier(tier) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createVendor( + userId: userId, + companyName: companyName, +); +createVendorData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String userId = ...; +String companyName = ...; + +final ref = ExampleConnector.instance.createVendor( + userId: userId, + companyName: companyName, +).ref(); +ref.execute(); +``` + + +### updateVendor +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateVendor( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateVendor, we created `updateVendorBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateVendorVariablesBuilder { + ... + UpdateVendorVariablesBuilder companyName(String? t) { + _companyName.value = t; + return this; + } + UpdateVendorVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + UpdateVendorVariablesBuilder phone(String? t) { + _phone.value = t; + return this; + } + UpdateVendorVariablesBuilder photoUrl(String? t) { + _photoUrl.value = t; + return this; + } + UpdateVendorVariablesBuilder address(String? t) { + _address.value = t; + return this; + } + UpdateVendorVariablesBuilder billingAddress(String? t) { + _billingAddress.value = t; + return this; + } + UpdateVendorVariablesBuilder timezone(String? t) { + _timezone.value = t; + return this; + } + UpdateVendorVariablesBuilder legalName(String? t) { + _legalName.value = t; + return this; + } + UpdateVendorVariablesBuilder doingBusinessAs(String? t) { + _doingBusinessAs.value = t; + return this; + } + UpdateVendorVariablesBuilder region(String? t) { + _region.value = t; + return this; + } + UpdateVendorVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + UpdateVendorVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + UpdateVendorVariablesBuilder serviceSpecialty(String? t) { + _serviceSpecialty.value = t; + return this; + } + UpdateVendorVariablesBuilder approvalStatus(ApprovalStatus? t) { + _approvalStatus.value = t; + return this; + } + UpdateVendorVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + UpdateVendorVariablesBuilder markup(double? t) { + _markup.value = t; + return this; + } + UpdateVendorVariablesBuilder fee(double? t) { + _fee.value = t; + return this; + } + UpdateVendorVariablesBuilder csat(double? t) { + _csat.value = t; + return this; + } + UpdateVendorVariablesBuilder tier(VendorTier? t) { + _tier.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateVendor( + id: id, +) +.companyName(companyName) +.email(email) +.phone(phone) +.photoUrl(photoUrl) +.address(address) +.billingAddress(billingAddress) +.timezone(timezone) +.legalName(legalName) +.doingBusinessAs(doingBusinessAs) +.region(region) +.state(state) +.city(city) +.serviceSpecialty(serviceSpecialty) +.approvalStatus(approvalStatus) +.isActive(isActive) +.markup(markup) +.fee(fee) +.csat(csat) +.tier(tier) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateVendor( id: id, ); -updateTeamHudDepartmentData data = result.data; +updateVendorData data = result.data; final ref = result.ref; ``` @@ -22475,18 +16537,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateTeamHudDepartment( +final ref = ExampleConnector.instance.updateVendor( id: id, ).ref(); ref.execute(); ``` -### deleteTeamHudDepartment +### deleteVendor #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteTeamHudDepartment( +ExampleConnector.instance.deleteVendor( id: id, ).execute(); ``` @@ -22494,7 +16556,7 @@ ExampleConnector.instance.deleteTeamHudDepartment( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -22504,10 +16566,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteTeamHudDepartment( +final result = await ExampleConnector.instance.deleteVendor( id: id, ); -deleteTeamHudDepartmentData data = result.data; +deleteVendorData data = result.data; final ref = result.ref; ``` @@ -22517,7 +16579,721 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteTeamHudDepartment( +final ref = ExampleConnector.instance.deleteVendor( + id: id, +).ref(); +ref.execute(); +``` + + +### createShift +#### Required Arguments +```dart +String title = ...; +String orderId = ...; +ExampleConnector.instance.createShift( + title: title, + orderId: orderId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createShift, we created `createShiftBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateShiftVariablesBuilder { + ... + CreateShiftVariablesBuilder date(Timestamp? t) { + _date.value = t; + return this; + } + CreateShiftVariablesBuilder startTime(Timestamp? t) { + _startTime.value = t; + return this; + } + CreateShiftVariablesBuilder endTime(Timestamp? t) { + _endTime.value = t; + return this; + } + CreateShiftVariablesBuilder hours(double? t) { + _hours.value = t; + return this; + } + CreateShiftVariablesBuilder cost(double? t) { + _cost.value = t; + return this; + } + CreateShiftVariablesBuilder location(String? t) { + _location.value = t; + return this; + } + CreateShiftVariablesBuilder locationAddress(String? t) { + _locationAddress.value = t; + return this; + } + CreateShiftVariablesBuilder latitude(double? t) { + _latitude.value = t; + return this; + } + CreateShiftVariablesBuilder longitude(double? t) { + _longitude.value = t; + return this; + } + CreateShiftVariablesBuilder placeId(String? t) { + _placeId.value = t; + return this; + } + CreateShiftVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + CreateShiftVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + CreateShiftVariablesBuilder street(String? t) { + _street.value = t; + return this; + } + CreateShiftVariablesBuilder country(String? t) { + _country.value = t; + return this; + } + CreateShiftVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + CreateShiftVariablesBuilder status(ShiftStatus? t) { + _status.value = t; + return this; + } + CreateShiftVariablesBuilder workersNeeded(int? t) { + _workersNeeded.value = t; + return this; + } + CreateShiftVariablesBuilder filled(int? t) { + _filled.value = t; + return this; + } + CreateShiftVariablesBuilder filledAt(Timestamp? t) { + _filledAt.value = t; + return this; + } + CreateShiftVariablesBuilder managers(List? t) { + _managers.value = t; + return this; + } + CreateShiftVariablesBuilder durationDays(int? t) { + _durationDays.value = t; + return this; + } + CreateShiftVariablesBuilder createdBy(String? t) { + _createdBy.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createShift( + title: title, + orderId: orderId, +) +.date(date) +.startTime(startTime) +.endTime(endTime) +.hours(hours) +.cost(cost) +.location(location) +.locationAddress(locationAddress) +.latitude(latitude) +.longitude(longitude) +.placeId(placeId) +.city(city) +.state(state) +.street(street) +.country(country) +.description(description) +.status(status) +.workersNeeded(workersNeeded) +.filled(filled) +.filledAt(filledAt) +.managers(managers) +.durationDays(durationDays) +.createdBy(createdBy) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createShift( + title: title, + orderId: orderId, +); +createShiftData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String title = ...; +String orderId = ...; + +final ref = ExampleConnector.instance.createShift( + title: title, + orderId: orderId, +).ref(); +ref.execute(); +``` + + +### updateShift +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateShift( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateShift, we created `updateShiftBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateShiftVariablesBuilder { + ... + UpdateShiftVariablesBuilder title(String? t) { + _title.value = t; + return this; + } + UpdateShiftVariablesBuilder orderId(String? t) { + _orderId.value = t; + return this; + } + UpdateShiftVariablesBuilder date(Timestamp? t) { + _date.value = t; + return this; + } + UpdateShiftVariablesBuilder startTime(Timestamp? t) { + _startTime.value = t; + return this; + } + UpdateShiftVariablesBuilder endTime(Timestamp? t) { + _endTime.value = t; + return this; + } + UpdateShiftVariablesBuilder hours(double? t) { + _hours.value = t; + return this; + } + UpdateShiftVariablesBuilder cost(double? t) { + _cost.value = t; + return this; + } + UpdateShiftVariablesBuilder location(String? t) { + _location.value = t; + return this; + } + UpdateShiftVariablesBuilder locationAddress(String? t) { + _locationAddress.value = t; + return this; + } + UpdateShiftVariablesBuilder latitude(double? t) { + _latitude.value = t; + return this; + } + UpdateShiftVariablesBuilder longitude(double? t) { + _longitude.value = t; + return this; + } + UpdateShiftVariablesBuilder placeId(String? t) { + _placeId.value = t; + return this; + } + UpdateShiftVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + UpdateShiftVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + UpdateShiftVariablesBuilder street(String? t) { + _street.value = t; + return this; + } + UpdateShiftVariablesBuilder country(String? t) { + _country.value = t; + return this; + } + UpdateShiftVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + UpdateShiftVariablesBuilder status(ShiftStatus? t) { + _status.value = t; + return this; + } + UpdateShiftVariablesBuilder workersNeeded(int? t) { + _workersNeeded.value = t; + return this; + } + UpdateShiftVariablesBuilder filled(int? t) { + _filled.value = t; + return this; + } + UpdateShiftVariablesBuilder filledAt(Timestamp? t) { + _filledAt.value = t; + return this; + } + UpdateShiftVariablesBuilder managers(List? t) { + _managers.value = t; + return this; + } + UpdateShiftVariablesBuilder durationDays(int? t) { + _durationDays.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateShift( + id: id, +) +.title(title) +.orderId(orderId) +.date(date) +.startTime(startTime) +.endTime(endTime) +.hours(hours) +.cost(cost) +.location(location) +.locationAddress(locationAddress) +.latitude(latitude) +.longitude(longitude) +.placeId(placeId) +.city(city) +.state(state) +.street(street) +.country(country) +.description(description) +.status(status) +.workersNeeded(workersNeeded) +.filled(filled) +.filledAt(filledAt) +.managers(managers) +.durationDays(durationDays) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateShift( + id: id, +); +updateShiftData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateShift( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteShift +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteShift( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteShift( + id: id, +); +deleteShiftData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteShift( + id: id, +).ref(); +ref.execute(); +``` + + +### createStaffRole +#### Required Arguments +```dart +String staffId = ...; +String roleId = ...; +ExampleConnector.instance.createStaffRole( + staffId: staffId, + roleId: roleId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createStaffRole, we created `createStaffRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateStaffRoleVariablesBuilder { + ... + CreateStaffRoleVariablesBuilder roleType(RoleType? t) { + _roleType.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createStaffRole( + staffId: staffId, + roleId: roleId, +) +.roleType(roleType) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createStaffRole( + staffId: staffId, + roleId: roleId, +); +createStaffRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +String roleId = ...; + +final ref = ExampleConnector.instance.createStaffRole( + staffId: staffId, + roleId: roleId, +).ref(); +ref.execute(); +``` + + +### deleteStaffRole +#### Required Arguments +```dart +String staffId = ...; +String roleId = ...; +ExampleConnector.instance.deleteStaffRole( + staffId: staffId, + roleId: roleId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteStaffRole( + staffId: staffId, + roleId: roleId, +); +deleteStaffRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +String roleId = ...; + +final ref = ExampleConnector.instance.deleteStaffRole( + staffId: staffId, + roleId: roleId, +).ref(); +ref.execute(); +``` + + +### createVendorBenefitPlan +#### Required Arguments +```dart +String vendorId = ...; +String title = ...; +ExampleConnector.instance.createVendorBenefitPlan( + vendorId: vendorId, + title: title, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createVendorBenefitPlan, we created `createVendorBenefitPlanBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateVendorBenefitPlanVariablesBuilder { + ... + CreateVendorBenefitPlanVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + CreateVendorBenefitPlanVariablesBuilder requestLabel(String? t) { + _requestLabel.value = t; + return this; + } + CreateVendorBenefitPlanVariablesBuilder total(int? t) { + _total.value = t; + return this; + } + CreateVendorBenefitPlanVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + CreateVendorBenefitPlanVariablesBuilder createdBy(String? t) { + _createdBy.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createVendorBenefitPlan( + vendorId: vendorId, + title: title, +) +.description(description) +.requestLabel(requestLabel) +.total(total) +.isActive(isActive) +.createdBy(createdBy) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createVendorBenefitPlan( + vendorId: vendorId, + title: title, +); +createVendorBenefitPlanData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; +String title = ...; + +final ref = ExampleConnector.instance.createVendorBenefitPlan( + vendorId: vendorId, + title: title, +).ref(); +ref.execute(); +``` + + +### updateVendorBenefitPlan +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateVendorBenefitPlan( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateVendorBenefitPlan, we created `updateVendorBenefitPlanBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateVendorBenefitPlanVariablesBuilder { + ... + UpdateVendorBenefitPlanVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + UpdateVendorBenefitPlanVariablesBuilder title(String? t) { + _title.value = t; + return this; + } + UpdateVendorBenefitPlanVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + UpdateVendorBenefitPlanVariablesBuilder requestLabel(String? t) { + _requestLabel.value = t; + return this; + } + UpdateVendorBenefitPlanVariablesBuilder total(int? t) { + _total.value = t; + return this; + } + UpdateVendorBenefitPlanVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + UpdateVendorBenefitPlanVariablesBuilder createdBy(String? t) { + _createdBy.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateVendorBenefitPlan( + id: id, +) +.vendorId(vendorId) +.title(title) +.description(description) +.requestLabel(requestLabel) +.total(total) +.isActive(isActive) +.createdBy(createdBy) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateVendorBenefitPlan( + id: id, +); +updateVendorBenefitPlanData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateVendorBenefitPlan( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteVendorBenefitPlan +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteVendorBenefitPlan( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteVendorBenefitPlan( + id: id, +); +deleteVendorBenefitPlanData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteVendorBenefitPlan( id: id, ).ref(); ref.execute(); @@ -22761,55 +17537,37 @@ ref.execute(); ``` -### createAttireOption +### createFaqData #### Required Arguments ```dart -String itemId = ...; -String label = ...; -ExampleConnector.instance.createAttireOption( - itemId: itemId, - label: label, +String category = ...; +ExampleConnector.instance.createFaqData( + category: category, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createAttireOption, we created `createAttireOptionBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createFaqData, we created `createFaqDataBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateAttireOptionVariablesBuilder { +class CreateFaqDataVariablesBuilder { ... - CreateAttireOptionVariablesBuilder icon(String? t) { - _icon.value = t; - return this; - } - CreateAttireOptionVariablesBuilder imageUrl(String? t) { - _imageUrl.value = t; - return this; - } - CreateAttireOptionVariablesBuilder isMandatory(bool? t) { - _isMandatory.value = t; - return this; - } - CreateAttireOptionVariablesBuilder vendorId(String? t) { - _vendorId.value = t; + CreateFaqDataVariablesBuilder questions(List? t) { + _questions.value = t; return this; } ... } -ExampleConnector.instance.createAttireOption( - itemId: itemId, - label: label, +ExampleConnector.instance.createFaqData( + category: category, ) -.icon(icon) -.imageUrl(imageUrl) -.isMandatory(isMandatory) -.vendorId(vendorId) +.questions(questions) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -22819,11 +17577,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createAttireOption( - itemId: itemId, - label: label, +final result = await ExampleConnector.instance.createFaqData( + category: category, ); -createAttireOptionData data = result.data; +createFaqDataData data = result.data; final ref = result.ref; ``` @@ -22831,73 +17588,3453 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String itemId = ...; +String category = ...; + +final ref = ExampleConnector.instance.createFaqData( + category: category, +).ref(); +ref.execute(); +``` + + +### updateFaqData +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateFaqData( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateFaqData, we created `updateFaqDataBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateFaqDataVariablesBuilder { + ... + UpdateFaqDataVariablesBuilder category(String? t) { + _category.value = t; + return this; + } + UpdateFaqDataVariablesBuilder questions(List? t) { + _questions.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateFaqData( + id: id, +) +.category(category) +.questions(questions) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateFaqData( + id: id, +); +updateFaqDataData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateFaqData( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteFaqData +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteFaqData( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteFaqData( + id: id, +); +deleteFaqDataData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteFaqData( + id: id, +).ref(); +ref.execute(); +``` + + +### createOrder +#### Required Arguments +```dart +String businessId = ...; +OrderType orderType = ...; +String teamHubId = ...; +ExampleConnector.instance.createOrder( + businessId: businessId, + orderType: orderType, + teamHubId: teamHubId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createOrder, we created `createOrderBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateOrderVariablesBuilder { + ... + + CreateOrderVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + CreateOrderVariablesBuilder status(OrderStatus? t) { + _status.value = t; + return this; + } + CreateOrderVariablesBuilder date(Timestamp? t) { + _date.value = t; + return this; + } + CreateOrderVariablesBuilder startDate(Timestamp? t) { + _startDate.value = t; + return this; + } + CreateOrderVariablesBuilder endDate(Timestamp? t) { + _endDate.value = t; + return this; + } + CreateOrderVariablesBuilder duration(OrderDuration? t) { + _duration.value = t; + return this; + } + CreateOrderVariablesBuilder lunchBreak(int? t) { + _lunchBreak.value = t; + return this; + } + CreateOrderVariablesBuilder total(double? t) { + _total.value = t; + return this; + } + CreateOrderVariablesBuilder eventName(String? t) { + _eventName.value = t; + return this; + } + CreateOrderVariablesBuilder assignedStaff(AnyValue? t) { + _assignedStaff.value = t; + return this; + } + CreateOrderVariablesBuilder shifts(AnyValue? t) { + _shifts.value = t; + return this; + } + CreateOrderVariablesBuilder requested(int? t) { + _requested.value = t; + return this; + } + CreateOrderVariablesBuilder recurringDays(AnyValue? t) { + _recurringDays.value = t; + return this; + } + CreateOrderVariablesBuilder permanentStartDate(Timestamp? t) { + _permanentStartDate.value = t; + return this; + } + CreateOrderVariablesBuilder permanentDays(AnyValue? t) { + _permanentDays.value = t; + return this; + } + CreateOrderVariablesBuilder notes(String? t) { + _notes.value = t; + return this; + } + CreateOrderVariablesBuilder detectedConflicts(AnyValue? t) { + _detectedConflicts.value = t; + return this; + } + CreateOrderVariablesBuilder poReference(String? t) { + _poReference.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createOrder( + businessId: businessId, + orderType: orderType, + teamHubId: teamHubId, +) +.vendorId(vendorId) +.status(status) +.date(date) +.startDate(startDate) +.endDate(endDate) +.duration(duration) +.lunchBreak(lunchBreak) +.total(total) +.eventName(eventName) +.assignedStaff(assignedStaff) +.shifts(shifts) +.requested(requested) +.recurringDays(recurringDays) +.permanentStartDate(permanentStartDate) +.permanentDays(permanentDays) +.notes(notes) +.detectedConflicts(detectedConflicts) +.poReference(poReference) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createOrder( + businessId: businessId, + orderType: orderType, + teamHubId: teamHubId, +); +createOrderData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessId = ...; +OrderType orderType = ...; +String teamHubId = ...; + +final ref = ExampleConnector.instance.createOrder( + businessId: businessId, + orderType: orderType, + teamHubId: teamHubId, +).ref(); +ref.execute(); +``` + + +### updateOrder +#### Required Arguments +```dart +String id = ...; +String teamHubId = ...; +ExampleConnector.instance.updateOrder( + id: id, + teamHubId: teamHubId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateOrder, we created `updateOrderBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateOrderVariablesBuilder { + ... + UpdateOrderVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + UpdateOrderVariablesBuilder businessId(String? t) { + _businessId.value = t; + return this; + } + UpdateOrderVariablesBuilder status(OrderStatus? t) { + _status.value = t; + return this; + } + UpdateOrderVariablesBuilder date(Timestamp? t) { + _date.value = t; + return this; + } + UpdateOrderVariablesBuilder startDate(Timestamp? t) { + _startDate.value = t; + return this; + } + UpdateOrderVariablesBuilder endDate(Timestamp? t) { + _endDate.value = t; + return this; + } + UpdateOrderVariablesBuilder total(double? t) { + _total.value = t; + return this; + } + UpdateOrderVariablesBuilder eventName(String? t) { + _eventName.value = t; + return this; + } + UpdateOrderVariablesBuilder assignedStaff(AnyValue? t) { + _assignedStaff.value = t; + return this; + } + UpdateOrderVariablesBuilder shifts(AnyValue? t) { + _shifts.value = t; + return this; + } + UpdateOrderVariablesBuilder requested(int? t) { + _requested.value = t; + return this; + } + UpdateOrderVariablesBuilder recurringDays(AnyValue? t) { + _recurringDays.value = t; + return this; + } + UpdateOrderVariablesBuilder permanentDays(AnyValue? t) { + _permanentDays.value = t; + return this; + } + UpdateOrderVariablesBuilder notes(String? t) { + _notes.value = t; + return this; + } + UpdateOrderVariablesBuilder detectedConflicts(AnyValue? t) { + _detectedConflicts.value = t; + return this; + } + UpdateOrderVariablesBuilder poReference(String? t) { + _poReference.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateOrder( + id: id, + teamHubId: teamHubId, +) +.vendorId(vendorId) +.businessId(businessId) +.status(status) +.date(date) +.startDate(startDate) +.endDate(endDate) +.total(total) +.eventName(eventName) +.assignedStaff(assignedStaff) +.shifts(shifts) +.requested(requested) +.recurringDays(recurringDays) +.permanentDays(permanentDays) +.notes(notes) +.detectedConflicts(detectedConflicts) +.poReference(poReference) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateOrder( + id: id, + teamHubId: teamHubId, +); +updateOrderData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; +String teamHubId = ...; + +final ref = ExampleConnector.instance.updateOrder( + id: id, + teamHubId: teamHubId, +).ref(); +ref.execute(); +``` + + +### deleteOrder +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteOrder( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteOrder( + id: id, +); +deleteOrderData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteOrder( + id: id, +).ref(); +ref.execute(); +``` + + +### createRole +#### Required Arguments +```dart +String name = ...; +double costPerHour = ...; +String vendorId = ...; +String roleCategoryId = ...; +ExampleConnector.instance.createRole( + name: name, + costPerHour: costPerHour, + vendorId: vendorId, + roleCategoryId: roleCategoryId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createRole( + name: name, + costPerHour: costPerHour, + vendorId: vendorId, + roleCategoryId: roleCategoryId, +); +createRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String name = ...; +double costPerHour = ...; +String vendorId = ...; +String roleCategoryId = ...; + +final ref = ExampleConnector.instance.createRole( + name: name, + costPerHour: costPerHour, + vendorId: vendorId, + roleCategoryId: roleCategoryId, +).ref(); +ref.execute(); +``` + + +### updateRole +#### Required Arguments +```dart +String id = ...; +String roleCategoryId = ...; +ExampleConnector.instance.updateRole( + id: id, + roleCategoryId: roleCategoryId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateRole, we created `updateRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateRoleVariablesBuilder { + ... + UpdateRoleVariablesBuilder name(String? t) { + _name.value = t; + return this; + } + UpdateRoleVariablesBuilder costPerHour(double? t) { + _costPerHour.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateRole( + id: id, + roleCategoryId: roleCategoryId, +) +.name(name) +.costPerHour(costPerHour) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateRole( + id: id, + roleCategoryId: roleCategoryId, +); +updateRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; +String roleCategoryId = ...; + +final ref = ExampleConnector.instance.updateRole( + id: id, + roleCategoryId: roleCategoryId, +).ref(); +ref.execute(); +``` + + +### deleteRole +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteRole( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteRole( + id: id, +); +deleteRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteRole( + id: id, +).ref(); +ref.execute(); +``` + + +### createUserConversation +#### Required Arguments +```dart +String conversationId = ...; +String userId = ...; +ExampleConnector.instance.createUserConversation( + conversationId: conversationId, + userId: userId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createUserConversation, we created `createUserConversationBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateUserConversationVariablesBuilder { + ... + CreateUserConversationVariablesBuilder unreadCount(int? t) { + _unreadCount.value = t; + return this; + } + CreateUserConversationVariablesBuilder lastReadAt(Timestamp? t) { + _lastReadAt.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createUserConversation( + conversationId: conversationId, + userId: userId, +) +.unreadCount(unreadCount) +.lastReadAt(lastReadAt) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createUserConversation( + conversationId: conversationId, + userId: userId, +); +createUserConversationData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String conversationId = ...; +String userId = ...; + +final ref = ExampleConnector.instance.createUserConversation( + conversationId: conversationId, + userId: userId, +).ref(); +ref.execute(); +``` + + +### updateUserConversation +#### Required Arguments +```dart +String conversationId = ...; +String userId = ...; +ExampleConnector.instance.updateUserConversation( + conversationId: conversationId, + userId: userId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateUserConversation, we created `updateUserConversationBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateUserConversationVariablesBuilder { + ... + UpdateUserConversationVariablesBuilder unreadCount(int? t) { + _unreadCount.value = t; + return this; + } + UpdateUserConversationVariablesBuilder lastReadAt(Timestamp? t) { + _lastReadAt.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateUserConversation( + conversationId: conversationId, + userId: userId, +) +.unreadCount(unreadCount) +.lastReadAt(lastReadAt) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateUserConversation( + conversationId: conversationId, + userId: userId, +); +updateUserConversationData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String conversationId = ...; +String userId = ...; + +final ref = ExampleConnector.instance.updateUserConversation( + conversationId: conversationId, + userId: userId, +).ref(); +ref.execute(); +``` + + +### markConversationAsRead +#### Required Arguments +```dart +String conversationId = ...; +String userId = ...; +ExampleConnector.instance.markConversationAsRead( + conversationId: conversationId, + userId: userId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For markConversationAsRead, we created `markConversationAsReadBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class MarkConversationAsReadVariablesBuilder { + ... + MarkConversationAsReadVariablesBuilder lastReadAt(Timestamp? t) { + _lastReadAt.value = t; + return this; + } + + ... +} +ExampleConnector.instance.markConversationAsRead( + conversationId: conversationId, + userId: userId, +) +.lastReadAt(lastReadAt) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.markConversationAsRead( + conversationId: conversationId, + userId: userId, +); +markConversationAsReadData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String conversationId = ...; +String userId = ...; + +final ref = ExampleConnector.instance.markConversationAsRead( + conversationId: conversationId, + userId: userId, +).ref(); +ref.execute(); +``` + + +### incrementUnreadForUser +#### Required Arguments +```dart +String conversationId = ...; +String userId = ...; +int unreadCount = ...; +ExampleConnector.instance.incrementUnreadForUser( + conversationId: conversationId, + userId: userId, + unreadCount: unreadCount, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.incrementUnreadForUser( + conversationId: conversationId, + userId: userId, + unreadCount: unreadCount, +); +incrementUnreadForUserData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String conversationId = ...; +String userId = ...; +int unreadCount = ...; + +final ref = ExampleConnector.instance.incrementUnreadForUser( + conversationId: conversationId, + userId: userId, + unreadCount: unreadCount, +).ref(); +ref.execute(); +``` + + +### deleteUserConversation +#### Required Arguments +```dart +String conversationId = ...; +String userId = ...; +ExampleConnector.instance.deleteUserConversation( + conversationId: conversationId, + userId: userId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteUserConversation( + conversationId: conversationId, + userId: userId, +); +deleteUserConversationData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String conversationId = ...; +String userId = ...; + +final ref = ExampleConnector.instance.deleteUserConversation( + conversationId: conversationId, + userId: userId, +).ref(); +ref.execute(); +``` + + +### createStaffCourse +#### Required Arguments +```dart +String staffId = ...; +String courseId = ...; +ExampleConnector.instance.createStaffCourse( + staffId: staffId, + courseId: courseId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createStaffCourse, we created `createStaffCourseBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateStaffCourseVariablesBuilder { + ... + CreateStaffCourseVariablesBuilder progressPercent(int? t) { + _progressPercent.value = t; + return this; + } + CreateStaffCourseVariablesBuilder completed(bool? t) { + _completed.value = t; + return this; + } + CreateStaffCourseVariablesBuilder completedAt(Timestamp? t) { + _completedAt.value = t; + return this; + } + CreateStaffCourseVariablesBuilder startedAt(Timestamp? t) { + _startedAt.value = t; + return this; + } + CreateStaffCourseVariablesBuilder lastAccessedAt(Timestamp? t) { + _lastAccessedAt.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createStaffCourse( + staffId: staffId, + courseId: courseId, +) +.progressPercent(progressPercent) +.completed(completed) +.completedAt(completedAt) +.startedAt(startedAt) +.lastAccessedAt(lastAccessedAt) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createStaffCourse( + staffId: staffId, + courseId: courseId, +); +createStaffCourseData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +String courseId = ...; + +final ref = ExampleConnector.instance.createStaffCourse( + staffId: staffId, + courseId: courseId, +).ref(); +ref.execute(); +``` + + +### updateStaffCourse +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateStaffCourse( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateStaffCourse, we created `updateStaffCourseBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateStaffCourseVariablesBuilder { + ... + UpdateStaffCourseVariablesBuilder progressPercent(int? t) { + _progressPercent.value = t; + return this; + } + UpdateStaffCourseVariablesBuilder completed(bool? t) { + _completed.value = t; + return this; + } + UpdateStaffCourseVariablesBuilder completedAt(Timestamp? t) { + _completedAt.value = t; + return this; + } + UpdateStaffCourseVariablesBuilder startedAt(Timestamp? t) { + _startedAt.value = t; + return this; + } + UpdateStaffCourseVariablesBuilder lastAccessedAt(Timestamp? t) { + _lastAccessedAt.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateStaffCourse( + id: id, +) +.progressPercent(progressPercent) +.completed(completed) +.completedAt(completedAt) +.startedAt(startedAt) +.lastAccessedAt(lastAccessedAt) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateStaffCourse( + id: id, +); +updateStaffCourseData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateStaffCourse( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteStaffCourse +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteStaffCourse( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteStaffCourse( + id: id, +); +deleteStaffCourseData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteStaffCourse( + id: id, +).ref(); +ref.execute(); +``` + + +### createShiftRole +#### Required Arguments +```dart +String shiftId = ...; +String roleId = ...; +int count = ...; +ExampleConnector.instance.createShiftRole( + shiftId: shiftId, + roleId: roleId, + count: count, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createShiftRole, we created `createShiftRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateShiftRoleVariablesBuilder { + ... + CreateShiftRoleVariablesBuilder assigned(int? t) { + _assigned.value = t; + return this; + } + CreateShiftRoleVariablesBuilder startTime(Timestamp? t) { + _startTime.value = t; + return this; + } + CreateShiftRoleVariablesBuilder endTime(Timestamp? t) { + _endTime.value = t; + return this; + } + CreateShiftRoleVariablesBuilder hours(double? t) { + _hours.value = t; + return this; + } + CreateShiftRoleVariablesBuilder department(String? t) { + _department.value = t; + return this; + } + CreateShiftRoleVariablesBuilder uniform(String? t) { + _uniform.value = t; + return this; + } + CreateShiftRoleVariablesBuilder breakType(BreakDuration? t) { + _breakType.value = t; + return this; + } + CreateShiftRoleVariablesBuilder totalValue(double? t) { + _totalValue.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createShiftRole( + shiftId: shiftId, + roleId: roleId, + count: count, +) +.assigned(assigned) +.startTime(startTime) +.endTime(endTime) +.hours(hours) +.department(department) +.uniform(uniform) +.breakType(breakType) +.totalValue(totalValue) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createShiftRole( + shiftId: shiftId, + roleId: roleId, + count: count, +); +createShiftRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String shiftId = ...; +String roleId = ...; +int count = ...; + +final ref = ExampleConnector.instance.createShiftRole( + shiftId: shiftId, + roleId: roleId, + count: count, +).ref(); +ref.execute(); +``` + + +### updateShiftRole +#### Required Arguments +```dart +String shiftId = ...; +String roleId = ...; +ExampleConnector.instance.updateShiftRole( + shiftId: shiftId, + roleId: roleId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateShiftRole, we created `updateShiftRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateShiftRoleVariablesBuilder { + ... + UpdateShiftRoleVariablesBuilder count(int? t) { + _count.value = t; + return this; + } + UpdateShiftRoleVariablesBuilder assigned(int? t) { + _assigned.value = t; + return this; + } + UpdateShiftRoleVariablesBuilder startTime(Timestamp? t) { + _startTime.value = t; + return this; + } + UpdateShiftRoleVariablesBuilder endTime(Timestamp? t) { + _endTime.value = t; + return this; + } + UpdateShiftRoleVariablesBuilder hours(double? t) { + _hours.value = t; + return this; + } + UpdateShiftRoleVariablesBuilder department(String? t) { + _department.value = t; + return this; + } + UpdateShiftRoleVariablesBuilder uniform(String? t) { + _uniform.value = t; + return this; + } + UpdateShiftRoleVariablesBuilder breakType(BreakDuration? t) { + _breakType.value = t; + return this; + } + UpdateShiftRoleVariablesBuilder totalValue(double? t) { + _totalValue.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateShiftRole( + shiftId: shiftId, + roleId: roleId, +) +.count(count) +.assigned(assigned) +.startTime(startTime) +.endTime(endTime) +.hours(hours) +.department(department) +.uniform(uniform) +.breakType(breakType) +.totalValue(totalValue) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateShiftRole( + shiftId: shiftId, + roleId: roleId, +); +updateShiftRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String shiftId = ...; +String roleId = ...; + +final ref = ExampleConnector.instance.updateShiftRole( + shiftId: shiftId, + roleId: roleId, +).ref(); +ref.execute(); +``` + + +### deleteShiftRole +#### Required Arguments +```dart +String shiftId = ...; +String roleId = ...; +ExampleConnector.instance.deleteShiftRole( + shiftId: shiftId, + roleId: roleId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteShiftRole( + shiftId: shiftId, + roleId: roleId, +); +deleteShiftRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String shiftId = ...; +String roleId = ...; + +final ref = ExampleConnector.instance.deleteShiftRole( + shiftId: shiftId, + roleId: roleId, +).ref(); +ref.execute(); +``` + + +### createTask +#### Required Arguments +```dart +String taskName = ...; +TaskPriority priority = ...; +TaskStatus status = ...; +String ownerId = ...; +ExampleConnector.instance.createTask( + taskName: taskName, + priority: priority, + status: status, + ownerId: ownerId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createTask, we created `createTaskBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateTaskVariablesBuilder { + ... + CreateTaskVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + CreateTaskVariablesBuilder dueDate(Timestamp? t) { + _dueDate.value = t; + return this; + } + CreateTaskVariablesBuilder progress(int? t) { + _progress.value = t; + return this; + } + CreateTaskVariablesBuilder orderIndex(int? t) { + _orderIndex.value = t; + return this; + } + CreateTaskVariablesBuilder commentCount(int? t) { + _commentCount.value = t; + return this; + } + CreateTaskVariablesBuilder attachmentCount(int? t) { + _attachmentCount.value = t; + return this; + } + CreateTaskVariablesBuilder files(AnyValue? t) { + _files.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createTask( + taskName: taskName, + priority: priority, + status: status, + ownerId: ownerId, +) +.description(description) +.dueDate(dueDate) +.progress(progress) +.orderIndex(orderIndex) +.commentCount(commentCount) +.attachmentCount(attachmentCount) +.files(files) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createTask( + taskName: taskName, + priority: priority, + status: status, + ownerId: ownerId, +); +createTaskData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String taskName = ...; +TaskPriority priority = ...; +TaskStatus status = ...; +String ownerId = ...; + +final ref = ExampleConnector.instance.createTask( + taskName: taskName, + priority: priority, + status: status, + ownerId: ownerId, +).ref(); +ref.execute(); +``` + + +### updateTask +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateTask( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateTask, we created `updateTaskBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateTaskVariablesBuilder { + ... + UpdateTaskVariablesBuilder taskName(String? t) { + _taskName.value = t; + return this; + } + UpdateTaskVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + UpdateTaskVariablesBuilder priority(TaskPriority? t) { + _priority.value = t; + return this; + } + UpdateTaskVariablesBuilder status(TaskStatus? t) { + _status.value = t; + return this; + } + UpdateTaskVariablesBuilder dueDate(Timestamp? t) { + _dueDate.value = t; + return this; + } + UpdateTaskVariablesBuilder progress(int? t) { + _progress.value = t; + return this; + } + UpdateTaskVariablesBuilder assignedMembers(AnyValue? t) { + _assignedMembers.value = t; + return this; + } + UpdateTaskVariablesBuilder orderIndex(int? t) { + _orderIndex.value = t; + return this; + } + UpdateTaskVariablesBuilder commentCount(int? t) { + _commentCount.value = t; + return this; + } + UpdateTaskVariablesBuilder attachmentCount(int? t) { + _attachmentCount.value = t; + return this; + } + UpdateTaskVariablesBuilder files(AnyValue? t) { + _files.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateTask( + id: id, +) +.taskName(taskName) +.description(description) +.priority(priority) +.status(status) +.dueDate(dueDate) +.progress(progress) +.assignedMembers(assignedMembers) +.orderIndex(orderIndex) +.commentCount(commentCount) +.attachmentCount(attachmentCount) +.files(files) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateTask( + id: id, +); +updateTaskData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateTask( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteTask +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteTask( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteTask( + id: id, +); +deleteTaskData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteTask( + id: id, +).ref(); +ref.execute(); +``` + + +### createTeamHudDepartment +#### Required Arguments +```dart +String name = ...; +String teamHubId = ...; +ExampleConnector.instance.createTeamHudDepartment( + name: name, + teamHubId: teamHubId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createTeamHudDepartment, we created `createTeamHudDepartmentBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateTeamHudDepartmentVariablesBuilder { + ... + CreateTeamHudDepartmentVariablesBuilder costCenter(String? t) { + _costCenter.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createTeamHudDepartment( + name: name, + teamHubId: teamHubId, +) +.costCenter(costCenter) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createTeamHudDepartment( + name: name, + teamHubId: teamHubId, +); +createTeamHudDepartmentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String name = ...; +String teamHubId = ...; + +final ref = ExampleConnector.instance.createTeamHudDepartment( + name: name, + teamHubId: teamHubId, +).ref(); +ref.execute(); +``` + + +### updateTeamHudDepartment +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateTeamHudDepartment( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateTeamHudDepartment, we created `updateTeamHudDepartmentBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateTeamHudDepartmentVariablesBuilder { + ... + UpdateTeamHudDepartmentVariablesBuilder name(String? t) { + _name.value = t; + return this; + } + UpdateTeamHudDepartmentVariablesBuilder costCenter(String? t) { + _costCenter.value = t; + return this; + } + UpdateTeamHudDepartmentVariablesBuilder teamHubId(String? t) { + _teamHubId.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateTeamHudDepartment( + id: id, +) +.name(name) +.costCenter(costCenter) +.teamHubId(teamHubId) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateTeamHudDepartment( + id: id, +); +updateTeamHudDepartmentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateTeamHudDepartment( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteTeamHudDepartment +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteTeamHudDepartment( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteTeamHudDepartment( + id: id, +); +deleteTeamHudDepartmentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteTeamHudDepartment( + id: id, +).ref(); +ref.execute(); +``` + + +### createWorkforce +#### Required Arguments +```dart +String vendorId = ...; +String staffId = ...; +String workforceNumber = ...; +ExampleConnector.instance.createWorkforce( + vendorId: vendorId, + staffId: staffId, + workforceNumber: workforceNumber, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createWorkforce, we created `createWorkforceBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateWorkforceVariablesBuilder { + ... + CreateWorkforceVariablesBuilder employmentType(WorkforceEmploymentType? t) { + _employmentType.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createWorkforce( + vendorId: vendorId, + staffId: staffId, + workforceNumber: workforceNumber, +) +.employmentType(employmentType) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createWorkforce( + vendorId: vendorId, + staffId: staffId, + workforceNumber: workforceNumber, +); +createWorkforceData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; +String staffId = ...; +String workforceNumber = ...; + +final ref = ExampleConnector.instance.createWorkforce( + vendorId: vendorId, + staffId: staffId, + workforceNumber: workforceNumber, +).ref(); +ref.execute(); +``` + + +### updateWorkforce +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateWorkforce( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateWorkforce, we created `updateWorkforceBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateWorkforceVariablesBuilder { + ... + UpdateWorkforceVariablesBuilder workforceNumber(String? t) { + _workforceNumber.value = t; + return this; + } + UpdateWorkforceVariablesBuilder employmentType(WorkforceEmploymentType? t) { + _employmentType.value = t; + return this; + } + UpdateWorkforceVariablesBuilder status(WorkforceStatus? t) { + _status.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateWorkforce( + id: id, +) +.workforceNumber(workforceNumber) +.employmentType(employmentType) +.status(status) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateWorkforce( + id: id, +); +updateWorkforceData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateWorkforce( + id: id, +).ref(); +ref.execute(); +``` + + +### deactivateWorkforce +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deactivateWorkforce( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deactivateWorkforce( + id: id, +); +deactivateWorkforceData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deactivateWorkforce( + id: id, +).ref(); +ref.execute(); +``` + + +### createAccount +#### Required Arguments +```dart +String bank = ...; +AccountType type = ...; +String last4 = ...; +String ownerId = ...; +ExampleConnector.instance.createAccount( + bank: bank, + type: type, + last4: last4, + ownerId: ownerId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createAccount, we created `createAccountBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateAccountVariablesBuilder { + ... + CreateAccountVariablesBuilder isPrimary(bool? t) { + _isPrimary.value = t; + return this; + } + CreateAccountVariablesBuilder accountNumber(String? t) { + _accountNumber.value = t; + return this; + } + CreateAccountVariablesBuilder routeNumber(String? t) { + _routeNumber.value = t; + return this; + } + CreateAccountVariablesBuilder expiryTime(Timestamp? t) { + _expiryTime.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createAccount( + bank: bank, + type: type, + last4: last4, + ownerId: ownerId, +) +.isPrimary(isPrimary) +.accountNumber(accountNumber) +.routeNumber(routeNumber) +.expiryTime(expiryTime) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createAccount( + bank: bank, + type: type, + last4: last4, + ownerId: ownerId, +); +createAccountData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String bank = ...; +AccountType type = ...; +String last4 = ...; +String ownerId = ...; + +final ref = ExampleConnector.instance.createAccount( + bank: bank, + type: type, + last4: last4, + ownerId: ownerId, +).ref(); +ref.execute(); +``` + + +### updateAccount +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateAccount( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateAccount, we created `updateAccountBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateAccountVariablesBuilder { + ... + UpdateAccountVariablesBuilder bank(String? t) { + _bank.value = t; + return this; + } + UpdateAccountVariablesBuilder type(AccountType? t) { + _type.value = t; + return this; + } + UpdateAccountVariablesBuilder last4(String? t) { + _last4.value = t; + return this; + } + UpdateAccountVariablesBuilder isPrimary(bool? t) { + _isPrimary.value = t; + return this; + } + UpdateAccountVariablesBuilder accountNumber(String? t) { + _accountNumber.value = t; + return this; + } + UpdateAccountVariablesBuilder routeNumber(String? t) { + _routeNumber.value = t; + return this; + } + UpdateAccountVariablesBuilder expiryTime(Timestamp? t) { + _expiryTime.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateAccount( + id: id, +) +.bank(bank) +.type(type) +.last4(last4) +.isPrimary(isPrimary) +.accountNumber(accountNumber) +.routeNumber(routeNumber) +.expiryTime(expiryTime) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateAccount( + id: id, +); +updateAccountData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateAccount( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteAccount +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteAccount( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteAccount( + id: id, +); +deleteAccountData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteAccount( + id: id, +).ref(); +ref.execute(); +``` + + +### createStaffAvailabilityStats +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.createStaffAvailabilityStats( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createStaffAvailabilityStats, we created `createStaffAvailabilityStatsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateStaffAvailabilityStatsVariablesBuilder { + ... + CreateStaffAvailabilityStatsVariablesBuilder needWorkIndex(int? t) { + _needWorkIndex.value = t; + return this; + } + CreateStaffAvailabilityStatsVariablesBuilder utilizationPercentage(int? t) { + _utilizationPercentage.value = t; + return this; + } + CreateStaffAvailabilityStatsVariablesBuilder predictedAvailabilityScore(int? t) { + _predictedAvailabilityScore.value = t; + return this; + } + CreateStaffAvailabilityStatsVariablesBuilder scheduledHoursThisPeriod(int? t) { + _scheduledHoursThisPeriod.value = t; + return this; + } + CreateStaffAvailabilityStatsVariablesBuilder desiredHoursThisPeriod(int? t) { + _desiredHoursThisPeriod.value = t; + return this; + } + CreateStaffAvailabilityStatsVariablesBuilder lastShiftDate(Timestamp? t) { + _lastShiftDate.value = t; + return this; + } + CreateStaffAvailabilityStatsVariablesBuilder acceptanceRate(int? t) { + _acceptanceRate.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createStaffAvailabilityStats( + staffId: staffId, +) +.needWorkIndex(needWorkIndex) +.utilizationPercentage(utilizationPercentage) +.predictedAvailabilityScore(predictedAvailabilityScore) +.scheduledHoursThisPeriod(scheduledHoursThisPeriod) +.desiredHoursThisPeriod(desiredHoursThisPeriod) +.lastShiftDate(lastShiftDate) +.acceptanceRate(acceptanceRate) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createStaffAvailabilityStats( + staffId: staffId, +); +createStaffAvailabilityStatsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.createStaffAvailabilityStats( + staffId: staffId, +).ref(); +ref.execute(); +``` + + +### updateStaffAvailabilityStats +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.updateStaffAvailabilityStats( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateStaffAvailabilityStats, we created `updateStaffAvailabilityStatsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateStaffAvailabilityStatsVariablesBuilder { + ... + UpdateStaffAvailabilityStatsVariablesBuilder needWorkIndex(int? t) { + _needWorkIndex.value = t; + return this; + } + UpdateStaffAvailabilityStatsVariablesBuilder utilizationPercentage(int? t) { + _utilizationPercentage.value = t; + return this; + } + UpdateStaffAvailabilityStatsVariablesBuilder predictedAvailabilityScore(int? t) { + _predictedAvailabilityScore.value = t; + return this; + } + UpdateStaffAvailabilityStatsVariablesBuilder scheduledHoursThisPeriod(int? t) { + _scheduledHoursThisPeriod.value = t; + return this; + } + UpdateStaffAvailabilityStatsVariablesBuilder desiredHoursThisPeriod(int? t) { + _desiredHoursThisPeriod.value = t; + return this; + } + UpdateStaffAvailabilityStatsVariablesBuilder lastShiftDate(Timestamp? t) { + _lastShiftDate.value = t; + return this; + } + UpdateStaffAvailabilityStatsVariablesBuilder acceptanceRate(int? t) { + _acceptanceRate.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateStaffAvailabilityStats( + staffId: staffId, +) +.needWorkIndex(needWorkIndex) +.utilizationPercentage(utilizationPercentage) +.predictedAvailabilityScore(predictedAvailabilityScore) +.scheduledHoursThisPeriod(scheduledHoursThisPeriod) +.desiredHoursThisPeriod(desiredHoursThisPeriod) +.lastShiftDate(lastShiftDate) +.acceptanceRate(acceptanceRate) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateStaffAvailabilityStats( + staffId: staffId, +); +updateStaffAvailabilityStatsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.updateStaffAvailabilityStats( + staffId: staffId, +).ref(); +ref.execute(); +``` + + +### deleteStaffAvailabilityStats +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.deleteStaffAvailabilityStats( + staffId: staffId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteStaffAvailabilityStats( + staffId: staffId, +); +deleteStaffAvailabilityStatsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.deleteStaffAvailabilityStats( + staffId: staffId, +).ref(); +ref.execute(); +``` + + +### createMessage +#### Required Arguments +```dart +String conversationId = ...; +String senderId = ...; +String content = ...; +ExampleConnector.instance.createMessage( + conversationId: conversationId, + senderId: senderId, + content: content, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createMessage, we created `createMessageBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateMessageVariablesBuilder { + ... + CreateMessageVariablesBuilder isSystem(bool? t) { + _isSystem.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createMessage( + conversationId: conversationId, + senderId: senderId, + content: content, +) +.isSystem(isSystem) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createMessage( + conversationId: conversationId, + senderId: senderId, + content: content, +); +createMessageData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String conversationId = ...; +String senderId = ...; +String content = ...; + +final ref = ExampleConnector.instance.createMessage( + conversationId: conversationId, + senderId: senderId, + content: content, +).ref(); +ref.execute(); +``` + + +### updateMessage +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateMessage( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateMessage, we created `updateMessageBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateMessageVariablesBuilder { + ... + UpdateMessageVariablesBuilder conversationId(String? t) { + _conversationId.value = t; + return this; + } + UpdateMessageVariablesBuilder senderId(String? t) { + _senderId.value = t; + return this; + } + UpdateMessageVariablesBuilder content(String? t) { + _content.value = t; + return this; + } + UpdateMessageVariablesBuilder isSystem(bool? t) { + _isSystem.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateMessage( + id: id, +) +.conversationId(conversationId) +.senderId(senderId) +.content(content) +.isSystem(isSystem) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateMessage( + id: id, +); +updateMessageData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateMessage( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteMessage +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteMessage( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteMessage( + id: id, +); +deleteMessageData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteMessage( + id: id, +).ref(); +ref.execute(); +``` + + +### createTaxForm +#### Required Arguments +```dart +TaxFormType formType = ...; +String firstName = ...; +String lastName = ...; +int socialSN = ...; +String address = ...; +TaxFormStatus status = ...; +String staffId = ...; +ExampleConnector.instance.createTaxForm( + formType: formType, + firstName: firstName, + lastName: lastName, + socialSN: socialSN, + address: address, + status: status, + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createTaxForm, we created `createTaxFormBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateTaxFormVariablesBuilder { + ... + CreateTaxFormVariablesBuilder mInitial(String? t) { + _mInitial.value = t; + return this; + } + CreateTaxFormVariablesBuilder oLastName(String? t) { + _oLastName.value = t; + return this; + } + CreateTaxFormVariablesBuilder dob(Timestamp? t) { + _dob.value = t; + return this; + } + CreateTaxFormVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + CreateTaxFormVariablesBuilder phone(String? t) { + _phone.value = t; + return this; + } + CreateTaxFormVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + CreateTaxFormVariablesBuilder apt(String? t) { + _apt.value = t; + return this; + } + CreateTaxFormVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + CreateTaxFormVariablesBuilder zipCode(String? t) { + _zipCode.value = t; + return this; + } + CreateTaxFormVariablesBuilder marital(MaritalStatus? t) { + _marital.value = t; + return this; + } + CreateTaxFormVariablesBuilder multipleJob(bool? t) { + _multipleJob.value = t; + return this; + } + CreateTaxFormVariablesBuilder childrens(int? t) { + _childrens.value = t; + return this; + } + CreateTaxFormVariablesBuilder otherDeps(int? t) { + _otherDeps.value = t; + return this; + } + CreateTaxFormVariablesBuilder totalCredits(double? t) { + _totalCredits.value = t; + return this; + } + CreateTaxFormVariablesBuilder otherInconme(double? t) { + _otherInconme.value = t; + return this; + } + CreateTaxFormVariablesBuilder deductions(double? t) { + _deductions.value = t; + return this; + } + CreateTaxFormVariablesBuilder extraWithholding(double? t) { + _extraWithholding.value = t; + return this; + } + CreateTaxFormVariablesBuilder citizen(CitizenshipStatus? t) { + _citizen.value = t; + return this; + } + CreateTaxFormVariablesBuilder uscis(String? t) { + _uscis.value = t; + return this; + } + CreateTaxFormVariablesBuilder passportNumber(String? t) { + _passportNumber.value = t; + return this; + } + CreateTaxFormVariablesBuilder countryIssue(String? t) { + _countryIssue.value = t; + return this; + } + CreateTaxFormVariablesBuilder prepartorOrTranslator(bool? t) { + _prepartorOrTranslator.value = t; + return this; + } + CreateTaxFormVariablesBuilder signature(String? t) { + _signature.value = t; + return this; + } + CreateTaxFormVariablesBuilder date(Timestamp? t) { + _date.value = t; + return this; + } + CreateTaxFormVariablesBuilder createdBy(String? t) { + _createdBy.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createTaxForm( + formType: formType, + firstName: firstName, + lastName: lastName, + socialSN: socialSN, + address: address, + status: status, + staffId: staffId, +) +.mInitial(mInitial) +.oLastName(oLastName) +.dob(dob) +.email(email) +.phone(phone) +.city(city) +.apt(apt) +.state(state) +.zipCode(zipCode) +.marital(marital) +.multipleJob(multipleJob) +.childrens(childrens) +.otherDeps(otherDeps) +.totalCredits(totalCredits) +.otherInconme(otherInconme) +.deductions(deductions) +.extraWithholding(extraWithholding) +.citizen(citizen) +.uscis(uscis) +.passportNumber(passportNumber) +.countryIssue(countryIssue) +.prepartorOrTranslator(prepartorOrTranslator) +.signature(signature) +.date(date) +.createdBy(createdBy) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createTaxForm( + formType: formType, + firstName: firstName, + lastName: lastName, + socialSN: socialSN, + address: address, + status: status, + staffId: staffId, +); +createTaxFormData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +TaxFormType formType = ...; +String firstName = ...; +String lastName = ...; +int socialSN = ...; +String address = ...; +TaxFormStatus status = ...; +String staffId = ...; + +final ref = ExampleConnector.instance.createTaxForm( + formType: formType, + firstName: firstName, + lastName: lastName, + socialSN: socialSN, + address: address, + status: status, + staffId: staffId, +).ref(); +ref.execute(); +``` + + +### updateTaxForm +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateTaxForm( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateTaxForm, we created `updateTaxFormBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateTaxFormVariablesBuilder { + ... + UpdateTaxFormVariablesBuilder formType(TaxFormType? t) { + _formType.value = t; + return this; + } + UpdateTaxFormVariablesBuilder firstName(String? t) { + _firstName.value = t; + return this; + } + UpdateTaxFormVariablesBuilder lastName(String? t) { + _lastName.value = t; + return this; + } + UpdateTaxFormVariablesBuilder mInitial(String? t) { + _mInitial.value = t; + return this; + } + UpdateTaxFormVariablesBuilder oLastName(String? t) { + _oLastName.value = t; + return this; + } + UpdateTaxFormVariablesBuilder dob(Timestamp? t) { + _dob.value = t; + return this; + } + UpdateTaxFormVariablesBuilder socialSN(int? t) { + _socialSN.value = t; + return this; + } + UpdateTaxFormVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + UpdateTaxFormVariablesBuilder phone(String? t) { + _phone.value = t; + return this; + } + UpdateTaxFormVariablesBuilder address(String? t) { + _address.value = t; + return this; + } + UpdateTaxFormVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + UpdateTaxFormVariablesBuilder apt(String? t) { + _apt.value = t; + return this; + } + UpdateTaxFormVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + UpdateTaxFormVariablesBuilder zipCode(String? t) { + _zipCode.value = t; + return this; + } + UpdateTaxFormVariablesBuilder marital(MaritalStatus? t) { + _marital.value = t; + return this; + } + UpdateTaxFormVariablesBuilder multipleJob(bool? t) { + _multipleJob.value = t; + return this; + } + UpdateTaxFormVariablesBuilder childrens(int? t) { + _childrens.value = t; + return this; + } + UpdateTaxFormVariablesBuilder otherDeps(int? t) { + _otherDeps.value = t; + return this; + } + UpdateTaxFormVariablesBuilder totalCredits(double? t) { + _totalCredits.value = t; + return this; + } + UpdateTaxFormVariablesBuilder otherInconme(double? t) { + _otherInconme.value = t; + return this; + } + UpdateTaxFormVariablesBuilder deductions(double? t) { + _deductions.value = t; + return this; + } + UpdateTaxFormVariablesBuilder extraWithholding(double? t) { + _extraWithholding.value = t; + return this; + } + UpdateTaxFormVariablesBuilder citizen(CitizenshipStatus? t) { + _citizen.value = t; + return this; + } + UpdateTaxFormVariablesBuilder uscis(String? t) { + _uscis.value = t; + return this; + } + UpdateTaxFormVariablesBuilder passportNumber(String? t) { + _passportNumber.value = t; + return this; + } + UpdateTaxFormVariablesBuilder countryIssue(String? t) { + _countryIssue.value = t; + return this; + } + UpdateTaxFormVariablesBuilder prepartorOrTranslator(bool? t) { + _prepartorOrTranslator.value = t; + return this; + } + UpdateTaxFormVariablesBuilder signature(String? t) { + _signature.value = t; + return this; + } + UpdateTaxFormVariablesBuilder date(Timestamp? t) { + _date.value = t; + return this; + } + UpdateTaxFormVariablesBuilder status(TaxFormStatus? t) { + _status.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateTaxForm( + id: id, +) +.formType(formType) +.firstName(firstName) +.lastName(lastName) +.mInitial(mInitial) +.oLastName(oLastName) +.dob(dob) +.socialSN(socialSN) +.email(email) +.phone(phone) +.address(address) +.city(city) +.apt(apt) +.state(state) +.zipCode(zipCode) +.marital(marital) +.multipleJob(multipleJob) +.childrens(childrens) +.otherDeps(otherDeps) +.totalCredits(totalCredits) +.otherInconme(otherInconme) +.deductions(deductions) +.extraWithholding(extraWithholding) +.citizen(citizen) +.uscis(uscis) +.passportNumber(passportNumber) +.countryIssue(countryIssue) +.prepartorOrTranslator(prepartorOrTranslator) +.signature(signature) +.date(date) +.status(status) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateTaxForm( + id: id, +); +updateTaxFormData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateTaxForm( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteTaxForm +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteTaxForm( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteTaxForm( + id: id, +); +deleteTaxFormData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteTaxForm( + id: id, +).ref(); +ref.execute(); +``` + + +### createApplication +#### Required Arguments +```dart +String shiftId = ...; +String staffId = ...; +ApplicationStatus status = ...; +ApplicationOrigin origin = ...; +String roleId = ...; +ExampleConnector.instance.createApplication( + shiftId: shiftId, + staffId: staffId, + status: status, + origin: origin, + roleId: roleId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createApplication, we created `createApplicationBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateApplicationVariablesBuilder { + ... + CreateApplicationVariablesBuilder checkInTime(Timestamp? t) { + _checkInTime.value = t; + return this; + } + CreateApplicationVariablesBuilder checkOutTime(Timestamp? t) { + _checkOutTime.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createApplication( + shiftId: shiftId, + staffId: staffId, + status: status, + origin: origin, + roleId: roleId, +) +.checkInTime(checkInTime) +.checkOutTime(checkOutTime) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createApplication( + shiftId: shiftId, + staffId: staffId, + status: status, + origin: origin, + roleId: roleId, +); +createApplicationData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String shiftId = ...; +String staffId = ...; +ApplicationStatus status = ...; +ApplicationOrigin origin = ...; +String roleId = ...; + +final ref = ExampleConnector.instance.createApplication( + shiftId: shiftId, + staffId: staffId, + status: status, + origin: origin, + roleId: roleId, +).ref(); +ref.execute(); +``` + + +### updateApplicationStatus +#### Required Arguments +```dart +String id = ...; +String roleId = ...; +ExampleConnector.instance.updateApplicationStatus( + id: id, + roleId: roleId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateApplicationStatus, we created `updateApplicationStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateApplicationStatusVariablesBuilder { + ... + UpdateApplicationStatusVariablesBuilder shiftId(String? t) { + _shiftId.value = t; + return this; + } + UpdateApplicationStatusVariablesBuilder staffId(String? t) { + _staffId.value = t; + return this; + } + UpdateApplicationStatusVariablesBuilder status(ApplicationStatus? t) { + _status.value = t; + return this; + } + UpdateApplicationStatusVariablesBuilder checkInTime(Timestamp? t) { + _checkInTime.value = t; + return this; + } + UpdateApplicationStatusVariablesBuilder checkOutTime(Timestamp? t) { + _checkOutTime.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateApplicationStatus( + id: id, + roleId: roleId, +) +.shiftId(shiftId) +.staffId(staffId) +.status(status) +.checkInTime(checkInTime) +.checkOutTime(checkOutTime) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateApplicationStatus( + id: id, + roleId: roleId, +); +updateApplicationStatusData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; +String roleId = ...; + +final ref = ExampleConnector.instance.updateApplicationStatus( + id: id, + roleId: roleId, +).ref(); +ref.execute(); +``` + + +### deleteApplication +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteApplication( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteApplication( + id: id, +); +deleteApplicationData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteApplication( + id: id, +).ref(); +ref.execute(); +``` + + +### createCategory +#### Required Arguments +```dart +String categoryId = ...; +String label = ...; +ExampleConnector.instance.createCategory( + categoryId: categoryId, + label: label, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createCategory, we created `createCategoryBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateCategoryVariablesBuilder { + ... + CreateCategoryVariablesBuilder icon(String? t) { + _icon.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createCategory( + categoryId: categoryId, + label: label, +) +.icon(icon) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createCategory( + categoryId: categoryId, + label: label, +); +createCategoryData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String categoryId = ...; String label = ...; -final ref = ExampleConnector.instance.createAttireOption( - itemId: itemId, +final ref = ExampleConnector.instance.createCategory( + categoryId: categoryId, label: label, ).ref(); ref.execute(); ``` -### updateAttireOption +### updateCategory #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateAttireOption( +ExampleConnector.instance.updateCategory( id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateAttireOption, we created `updateAttireOptionBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateCategory, we created `updateCategoryBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateAttireOptionVariablesBuilder { +class UpdateCategoryVariablesBuilder { ... - UpdateAttireOptionVariablesBuilder itemId(String? t) { - _itemId.value = t; + UpdateCategoryVariablesBuilder categoryId(String? t) { + _categoryId.value = t; return this; } - UpdateAttireOptionVariablesBuilder label(String? t) { + UpdateCategoryVariablesBuilder label(String? t) { _label.value = t; return this; } - UpdateAttireOptionVariablesBuilder icon(String? t) { + UpdateCategoryVariablesBuilder icon(String? t) { _icon.value = t; return this; } - UpdateAttireOptionVariablesBuilder imageUrl(String? t) { - _imageUrl.value = t; - return this; - } - UpdateAttireOptionVariablesBuilder isMandatory(bool? t) { - _isMandatory.value = t; - return this; - } - UpdateAttireOptionVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } ... } -ExampleConnector.instance.updateAttireOption( +ExampleConnector.instance.updateCategory( id: id, ) -.itemId(itemId) +.categoryId(categoryId) .label(label) .icon(icon) -.imageUrl(imageUrl) -.isMandatory(isMandatory) -.vendorId(vendorId) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -22907,10 +21044,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateAttireOption( +final result = await ExampleConnector.instance.updateCategory( id: id, ); -updateAttireOptionData data = result.data; +updateCategoryData data = result.data; final ref = result.ref; ``` @@ -22920,18 +21057,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateAttireOption( +final ref = ExampleConnector.instance.updateCategory( id: id, ).ref(); ref.execute(); ``` -### deleteAttireOption +### deleteCategory #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteAttireOption( +ExampleConnector.instance.deleteCategory( id: id, ).execute(); ``` @@ -22939,7 +21076,7 @@ ExampleConnector.instance.deleteAttireOption( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -22949,10 +21086,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteAttireOption( +final result = await ExampleConnector.instance.deleteCategory( id: id, ); -deleteAttireOptionData data = result.data; +deleteCategoryData data = result.data; final ref = result.ref; ``` @@ -22962,7 +21099,292 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteAttireOption( +final ref = ExampleConnector.instance.deleteCategory( + id: id, +).ref(); +ref.execute(); +``` + + +### createBusiness +#### Required Arguments +```dart +String businessName = ...; +String userId = ...; +BusinessRateGroup rateGroup = ...; +BusinessStatus status = ...; +ExampleConnector.instance.createBusiness( + businessName: businessName, + userId: userId, + rateGroup: rateGroup, + status: status, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createBusiness, we created `createBusinessBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateBusinessVariablesBuilder { + ... + CreateBusinessVariablesBuilder contactName(String? t) { + _contactName.value = t; + return this; + } + CreateBusinessVariablesBuilder companyLogoUrl(String? t) { + _companyLogoUrl.value = t; + return this; + } + CreateBusinessVariablesBuilder phone(String? t) { + _phone.value = t; + return this; + } + CreateBusinessVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + CreateBusinessVariablesBuilder hubBuilding(String? t) { + _hubBuilding.value = t; + return this; + } + CreateBusinessVariablesBuilder address(String? t) { + _address.value = t; + return this; + } + CreateBusinessVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + CreateBusinessVariablesBuilder area(BusinessArea? t) { + _area.value = t; + return this; + } + CreateBusinessVariablesBuilder sector(BusinessSector? t) { + _sector.value = t; + return this; + } + CreateBusinessVariablesBuilder notes(String? t) { + _notes.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createBusiness( + businessName: businessName, + userId: userId, + rateGroup: rateGroup, + status: status, +) +.contactName(contactName) +.companyLogoUrl(companyLogoUrl) +.phone(phone) +.email(email) +.hubBuilding(hubBuilding) +.address(address) +.city(city) +.area(area) +.sector(sector) +.notes(notes) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createBusiness( + businessName: businessName, + userId: userId, + rateGroup: rateGroup, + status: status, +); +createBusinessData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessName = ...; +String userId = ...; +BusinessRateGroup rateGroup = ...; +BusinessStatus status = ...; + +final ref = ExampleConnector.instance.createBusiness( + businessName: businessName, + userId: userId, + rateGroup: rateGroup, + status: status, +).ref(); +ref.execute(); +``` + + +### updateBusiness +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateBusiness( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateBusiness, we created `updateBusinessBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateBusinessVariablesBuilder { + ... + UpdateBusinessVariablesBuilder businessName(String? t) { + _businessName.value = t; + return this; + } + UpdateBusinessVariablesBuilder contactName(String? t) { + _contactName.value = t; + return this; + } + UpdateBusinessVariablesBuilder companyLogoUrl(String? t) { + _companyLogoUrl.value = t; + return this; + } + UpdateBusinessVariablesBuilder phone(String? t) { + _phone.value = t; + return this; + } + UpdateBusinessVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + UpdateBusinessVariablesBuilder hubBuilding(String? t) { + _hubBuilding.value = t; + return this; + } + UpdateBusinessVariablesBuilder address(String? t) { + _address.value = t; + return this; + } + UpdateBusinessVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + UpdateBusinessVariablesBuilder area(BusinessArea? t) { + _area.value = t; + return this; + } + UpdateBusinessVariablesBuilder sector(BusinessSector? t) { + _sector.value = t; + return this; + } + UpdateBusinessVariablesBuilder rateGroup(BusinessRateGroup? t) { + _rateGroup.value = t; + return this; + } + UpdateBusinessVariablesBuilder status(BusinessStatus? t) { + _status.value = t; + return this; + } + UpdateBusinessVariablesBuilder notes(String? t) { + _notes.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateBusiness( + id: id, +) +.businessName(businessName) +.contactName(contactName) +.companyLogoUrl(companyLogoUrl) +.phone(phone) +.email(email) +.hubBuilding(hubBuilding) +.address(address) +.city(city) +.area(area) +.sector(sector) +.rateGroup(rateGroup) +.status(status) +.notes(notes) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateBusiness( + id: id, +); +updateBusinessData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateBusiness( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteBusiness +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteBusiness( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteBusiness( + id: id, +); +deleteBusinessData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteBusiness( id: id, ).ref(); ref.execute(); @@ -23177,390 +21599,50 @@ ref.execute(); ``` -### createRecentPayment -#### Required Arguments -```dart -String staffId = ...; -String applicationId = ...; -String invoiceId = ...; -ExampleConnector.instance.createRecentPayment( - staffId: staffId, - applicationId: applicationId, - invoiceId: invoiceId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createRecentPayment, we created `createRecentPaymentBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateRecentPaymentVariablesBuilder { - ... - - CreateRecentPaymentVariablesBuilder workedTime(String? t) { - _workedTime.value = t; - return this; - } - CreateRecentPaymentVariablesBuilder status(RecentPaymentStatus? t) { - _status.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createRecentPayment( - staffId: staffId, - applicationId: applicationId, - invoiceId: invoiceId, -) -.workedTime(workedTime) -.status(status) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createRecentPayment( - staffId: staffId, - applicationId: applicationId, - invoiceId: invoiceId, -); -createRecentPaymentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String applicationId = ...; -String invoiceId = ...; - -final ref = ExampleConnector.instance.createRecentPayment( - staffId: staffId, - applicationId: applicationId, - invoiceId: invoiceId, -).ref(); -ref.execute(); -``` - - -### updateRecentPayment -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateRecentPayment( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateRecentPayment, we created `updateRecentPaymentBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateRecentPaymentVariablesBuilder { - ... - UpdateRecentPaymentVariablesBuilder workedTime(String? t) { - _workedTime.value = t; - return this; - } - UpdateRecentPaymentVariablesBuilder status(RecentPaymentStatus? t) { - _status.value = t; - return this; - } - UpdateRecentPaymentVariablesBuilder staffId(String? t) { - _staffId.value = t; - return this; - } - UpdateRecentPaymentVariablesBuilder applicationId(String? t) { - _applicationId.value = t; - return this; - } - UpdateRecentPaymentVariablesBuilder invoiceId(String? t) { - _invoiceId.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateRecentPayment( - id: id, -) -.workedTime(workedTime) -.status(status) -.staffId(staffId) -.applicationId(applicationId) -.invoiceId(invoiceId) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateRecentPayment( - id: id, -); -updateRecentPaymentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateRecentPayment( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteRecentPayment -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteRecentPayment( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteRecentPayment( - id: id, -); -deleteRecentPaymentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteRecentPayment( - id: id, -).ref(); -ref.execute(); -``` - - -### createBenefitsData -#### Required Arguments -```dart -String vendorBenefitPlanId = ...; -String staffId = ...; -int current = ...; -ExampleConnector.instance.createBenefitsData( - vendorBenefitPlanId: vendorBenefitPlanId, - staffId: staffId, - current: current, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createBenefitsData( - vendorBenefitPlanId: vendorBenefitPlanId, - staffId: staffId, - current: current, -); -createBenefitsDataData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorBenefitPlanId = ...; -String staffId = ...; -int current = ...; - -final ref = ExampleConnector.instance.createBenefitsData( - vendorBenefitPlanId: vendorBenefitPlanId, - staffId: staffId, - current: current, -).ref(); -ref.execute(); -``` - - -### updateBenefitsData -#### Required Arguments -```dart -String staffId = ...; -String vendorBenefitPlanId = ...; -ExampleConnector.instance.updateBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateBenefitsData, we created `updateBenefitsDataBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateBenefitsDataVariablesBuilder { - ... - UpdateBenefitsDataVariablesBuilder current(int? t) { - _current.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -) -.current(current) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -); -updateBenefitsDataData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String vendorBenefitPlanId = ...; - -final ref = ExampleConnector.instance.updateBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -).ref(); -ref.execute(); -``` - - -### deleteBenefitsData -#### Required Arguments -```dart -String staffId = ...; -String vendorBenefitPlanId = ...; -ExampleConnector.instance.deleteBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -); -deleteBenefitsDataData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String vendorBenefitPlanId = ...; - -final ref = ExampleConnector.instance.deleteBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -).ref(); -ref.execute(); -``` - - -### createEmergencyContact +### createHub #### Required Arguments ```dart String name = ...; -String phone = ...; -RelationshipType relationship = ...; -String staffId = ...; -ExampleConnector.instance.createEmergencyContact( +String ownerId = ...; +ExampleConnector.instance.createHub( name: name, - phone: phone, - relationship: relationship, - staffId: staffId, + ownerId: ownerId, ).execute(); ``` +#### Optional Arguments +We return a builder for each query. For createHub, we created `createHubBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateHubVariablesBuilder { + ... + CreateHubVariablesBuilder locationName(String? t) { + _locationName.value = t; + return this; + } + CreateHubVariablesBuilder address(String? t) { + _address.value = t; + return this; + } + CreateHubVariablesBuilder nfcTagId(String? t) { + _nfcTagId.value = t; + return this; + } + ... +} +ExampleConnector.instance.createHub( + name: name, + ownerId: ownerId, +) +.locationName(locationName) +.address(address) +.nfcTagId(nfcTagId) +.execute(); +``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23570,13 +21652,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createEmergencyContact( +final result = await ExampleConnector.instance.createHub( name: name, - phone: phone, - relationship: relationship, - staffId: staffId, + ownerId: ownerId, ); -createEmergencyContactData data = result.data; +createHubData data = result.data; final ref = result.ref; ``` @@ -23585,61 +21665,67 @@ Each builder returns an `execute` function, which is a helper function that crea An example of how to use the `Ref` object is shown below: ```dart String name = ...; -String phone = ...; -RelationshipType relationship = ...; -String staffId = ...; +String ownerId = ...; -final ref = ExampleConnector.instance.createEmergencyContact( +final ref = ExampleConnector.instance.createHub( name: name, - phone: phone, - relationship: relationship, - staffId: staffId, + ownerId: ownerId, ).ref(); ref.execute(); ``` -### updateEmergencyContact +### updateHub #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateEmergencyContact( +ExampleConnector.instance.updateHub( id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateEmergencyContact, we created `updateEmergencyContactBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateHub, we created `updateHubBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateEmergencyContactVariablesBuilder { +class UpdateHubVariablesBuilder { ... - UpdateEmergencyContactVariablesBuilder name(String? t) { + UpdateHubVariablesBuilder name(String? t) { _name.value = t; return this; } - UpdateEmergencyContactVariablesBuilder phone(String? t) { - _phone.value = t; + UpdateHubVariablesBuilder locationName(String? t) { + _locationName.value = t; return this; } - UpdateEmergencyContactVariablesBuilder relationship(RelationshipType? t) { - _relationship.value = t; + UpdateHubVariablesBuilder address(String? t) { + _address.value = t; + return this; + } + UpdateHubVariablesBuilder nfcTagId(String? t) { + _nfcTagId.value = t; + return this; + } + UpdateHubVariablesBuilder ownerId(String? t) { + _ownerId.value = t; return this; } ... } -ExampleConnector.instance.updateEmergencyContact( +ExampleConnector.instance.updateHub( id: id, ) .name(name) -.phone(phone) -.relationship(relationship) +.locationName(locationName) +.address(address) +.nfcTagId(nfcTagId) +.ownerId(ownerId) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23649,10 +21735,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateEmergencyContact( +final result = await ExampleConnector.instance.updateHub( id: id, ); -updateEmergencyContactData data = result.data; +updateHubData data = result.data; final ref = result.ref; ``` @@ -23662,18 +21748,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateEmergencyContact( +final ref = ExampleConnector.instance.updateHub( id: id, ).ref(); ref.execute(); ``` -### deleteEmergencyContact +### deleteHub #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteEmergencyContact( +ExampleConnector.instance.deleteHub( id: id, ).execute(); ``` @@ -23681,7 +21767,7 @@ ExampleConnector.instance.deleteEmergencyContact( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23691,10 +21777,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteEmergencyContact( +final result = await ExampleConnector.instance.deleteHub( id: id, ); -deleteEmergencyContactData data = result.data; +deleteHubData data = result.data; final ref = result.ref; ``` @@ -23704,7 +21790,1404 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteEmergencyContact( +final ref = ExampleConnector.instance.deleteHub( + id: id, +).ref(); +ref.execute(); +``` + + +### createRoleCategory +#### Required Arguments +```dart +String roleName = ...; +RoleCategoryType category = ...; +ExampleConnector.instance.createRoleCategory( + roleName: roleName, + category: category, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createRoleCategory( + roleName: roleName, + category: category, +); +createRoleCategoryData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String roleName = ...; +RoleCategoryType category = ...; + +final ref = ExampleConnector.instance.createRoleCategory( + roleName: roleName, + category: category, +).ref(); +ref.execute(); +``` + + +### updateRoleCategory +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateRoleCategory( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateRoleCategory, we created `updateRoleCategoryBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateRoleCategoryVariablesBuilder { + ... + UpdateRoleCategoryVariablesBuilder roleName(String? t) { + _roleName.value = t; + return this; + } + UpdateRoleCategoryVariablesBuilder category(RoleCategoryType? t) { + _category.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateRoleCategory( + id: id, +) +.roleName(roleName) +.category(category) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateRoleCategory( + id: id, +); +updateRoleCategoryData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateRoleCategory( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteRoleCategory +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteRoleCategory( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteRoleCategory( + id: id, +); +deleteRoleCategoryData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteRoleCategory( + id: id, +).ref(); +ref.execute(); +``` + + +### createTeam +#### Required Arguments +```dart +String teamName = ...; +String ownerId = ...; +String ownerName = ...; +String ownerRole = ...; +ExampleConnector.instance.createTeam( + teamName: teamName, + ownerId: ownerId, + ownerName: ownerName, + ownerRole: ownerRole, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createTeam, we created `createTeamBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateTeamVariablesBuilder { + ... + CreateTeamVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + CreateTeamVariablesBuilder companyLogo(String? t) { + _companyLogo.value = t; + return this; + } + CreateTeamVariablesBuilder totalMembers(int? t) { + _totalMembers.value = t; + return this; + } + CreateTeamVariablesBuilder activeMembers(int? t) { + _activeMembers.value = t; + return this; + } + CreateTeamVariablesBuilder totalHubs(int? t) { + _totalHubs.value = t; + return this; + } + CreateTeamVariablesBuilder departments(AnyValue? t) { + _departments.value = t; + return this; + } + CreateTeamVariablesBuilder favoriteStaffCount(int? t) { + _favoriteStaffCount.value = t; + return this; + } + CreateTeamVariablesBuilder blockedStaffCount(int? t) { + _blockedStaffCount.value = t; + return this; + } + CreateTeamVariablesBuilder favoriteStaff(AnyValue? t) { + _favoriteStaff.value = t; + return this; + } + CreateTeamVariablesBuilder blockedStaff(AnyValue? t) { + _blockedStaff.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createTeam( + teamName: teamName, + ownerId: ownerId, + ownerName: ownerName, + ownerRole: ownerRole, +) +.email(email) +.companyLogo(companyLogo) +.totalMembers(totalMembers) +.activeMembers(activeMembers) +.totalHubs(totalHubs) +.departments(departments) +.favoriteStaffCount(favoriteStaffCount) +.blockedStaffCount(blockedStaffCount) +.favoriteStaff(favoriteStaff) +.blockedStaff(blockedStaff) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createTeam( + teamName: teamName, + ownerId: ownerId, + ownerName: ownerName, + ownerRole: ownerRole, +); +createTeamData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String teamName = ...; +String ownerId = ...; +String ownerName = ...; +String ownerRole = ...; + +final ref = ExampleConnector.instance.createTeam( + teamName: teamName, + ownerId: ownerId, + ownerName: ownerName, + ownerRole: ownerRole, +).ref(); +ref.execute(); +``` + + +### updateTeam +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateTeam( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateTeam, we created `updateTeamBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateTeamVariablesBuilder { + ... + UpdateTeamVariablesBuilder teamName(String? t) { + _teamName.value = t; + return this; + } + UpdateTeamVariablesBuilder ownerName(String? t) { + _ownerName.value = t; + return this; + } + UpdateTeamVariablesBuilder ownerRole(String? t) { + _ownerRole.value = t; + return this; + } + UpdateTeamVariablesBuilder companyLogo(String? t) { + _companyLogo.value = t; + return this; + } + UpdateTeamVariablesBuilder totalMembers(int? t) { + _totalMembers.value = t; + return this; + } + UpdateTeamVariablesBuilder activeMembers(int? t) { + _activeMembers.value = t; + return this; + } + UpdateTeamVariablesBuilder totalHubs(int? t) { + _totalHubs.value = t; + return this; + } + UpdateTeamVariablesBuilder departments(AnyValue? t) { + _departments.value = t; + return this; + } + UpdateTeamVariablesBuilder favoriteStaffCount(int? t) { + _favoriteStaffCount.value = t; + return this; + } + UpdateTeamVariablesBuilder blockedStaffCount(int? t) { + _blockedStaffCount.value = t; + return this; + } + UpdateTeamVariablesBuilder favoriteStaff(AnyValue? t) { + _favoriteStaff.value = t; + return this; + } + UpdateTeamVariablesBuilder blockedStaff(AnyValue? t) { + _blockedStaff.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateTeam( + id: id, +) +.teamName(teamName) +.ownerName(ownerName) +.ownerRole(ownerRole) +.companyLogo(companyLogo) +.totalMembers(totalMembers) +.activeMembers(activeMembers) +.totalHubs(totalHubs) +.departments(departments) +.favoriteStaffCount(favoriteStaffCount) +.blockedStaffCount(blockedStaffCount) +.favoriteStaff(favoriteStaff) +.blockedStaff(blockedStaff) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateTeam( + id: id, +); +updateTeamData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateTeam( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteTeam +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteTeam( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteTeam( + id: id, +); +deleteTeamData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteTeam( + id: id, +).ref(); +ref.execute(); +``` + + +### createConversation +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.createConversation().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createConversation, we created `createConversationBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateConversationVariablesBuilder { + ... + + CreateConversationVariablesBuilder subject(String? t) { + _subject.value = t; + return this; + } + CreateConversationVariablesBuilder status(ConversationStatus? t) { + _status.value = t; + return this; + } + CreateConversationVariablesBuilder conversationType(ConversationType? t) { + _conversationType.value = t; + return this; + } + CreateConversationVariablesBuilder isGroup(bool? t) { + _isGroup.value = t; + return this; + } + CreateConversationVariablesBuilder groupName(String? t) { + _groupName.value = t; + return this; + } + CreateConversationVariablesBuilder lastMessage(String? t) { + _lastMessage.value = t; + return this; + } + CreateConversationVariablesBuilder lastMessageAt(Timestamp? t) { + _lastMessageAt.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createConversation() +.subject(subject) +.status(status) +.conversationType(conversationType) +.isGroup(isGroup) +.groupName(groupName) +.lastMessage(lastMessage) +.lastMessageAt(lastMessageAt) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createConversation(); +createConversationData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.createConversation().ref(); +ref.execute(); +``` + + +### updateConversation +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateConversation( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateConversation, we created `updateConversationBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateConversationVariablesBuilder { + ... + UpdateConversationVariablesBuilder subject(String? t) { + _subject.value = t; + return this; + } + UpdateConversationVariablesBuilder status(ConversationStatus? t) { + _status.value = t; + return this; + } + UpdateConversationVariablesBuilder conversationType(ConversationType? t) { + _conversationType.value = t; + return this; + } + UpdateConversationVariablesBuilder isGroup(bool? t) { + _isGroup.value = t; + return this; + } + UpdateConversationVariablesBuilder groupName(String? t) { + _groupName.value = t; + return this; + } + UpdateConversationVariablesBuilder lastMessage(String? t) { + _lastMessage.value = t; + return this; + } + UpdateConversationVariablesBuilder lastMessageAt(Timestamp? t) { + _lastMessageAt.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateConversation( + id: id, +) +.subject(subject) +.status(status) +.conversationType(conversationType) +.isGroup(isGroup) +.groupName(groupName) +.lastMessage(lastMessage) +.lastMessageAt(lastMessageAt) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateConversation( + id: id, +); +updateConversationData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateConversation( + id: id, +).ref(); +ref.execute(); +``` + + +### updateConversationLastMessage +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateConversationLastMessage( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateConversationLastMessage, we created `updateConversationLastMessageBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateConversationLastMessageVariablesBuilder { + ... + UpdateConversationLastMessageVariablesBuilder lastMessage(String? t) { + _lastMessage.value = t; + return this; + } + UpdateConversationLastMessageVariablesBuilder lastMessageAt(Timestamp? t) { + _lastMessageAt.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateConversationLastMessage( + id: id, +) +.lastMessage(lastMessage) +.lastMessageAt(lastMessageAt) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateConversationLastMessage( + id: id, +); +updateConversationLastMessageData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateConversationLastMessage( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteConversation +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteConversation( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteConversation( + id: id, +); +deleteConversationData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteConversation( + id: id, +).ref(); +ref.execute(); +``` + + +### createStaffAvailability +#### Required Arguments +```dart +String staffId = ...; +DayOfWeek day = ...; +AvailabilitySlot slot = ...; +ExampleConnector.instance.createStaffAvailability( + staffId: staffId, + day: day, + slot: slot, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createStaffAvailability, we created `createStaffAvailabilityBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateStaffAvailabilityVariablesBuilder { + ... + CreateStaffAvailabilityVariablesBuilder status(AvailabilityStatus? t) { + _status.value = t; + return this; + } + CreateStaffAvailabilityVariablesBuilder notes(String? t) { + _notes.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createStaffAvailability( + staffId: staffId, + day: day, + slot: slot, +) +.status(status) +.notes(notes) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createStaffAvailability( + staffId: staffId, + day: day, + slot: slot, +); +createStaffAvailabilityData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +DayOfWeek day = ...; +AvailabilitySlot slot = ...; + +final ref = ExampleConnector.instance.createStaffAvailability( + staffId: staffId, + day: day, + slot: slot, +).ref(); +ref.execute(); +``` + + +### updateStaffAvailability +#### Required Arguments +```dart +String staffId = ...; +DayOfWeek day = ...; +AvailabilitySlot slot = ...; +ExampleConnector.instance.updateStaffAvailability( + staffId: staffId, + day: day, + slot: slot, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateStaffAvailability, we created `updateStaffAvailabilityBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateStaffAvailabilityVariablesBuilder { + ... + UpdateStaffAvailabilityVariablesBuilder status(AvailabilityStatus? t) { + _status.value = t; + return this; + } + UpdateStaffAvailabilityVariablesBuilder notes(String? t) { + _notes.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateStaffAvailability( + staffId: staffId, + day: day, + slot: slot, +) +.status(status) +.notes(notes) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateStaffAvailability( + staffId: staffId, + day: day, + slot: slot, +); +updateStaffAvailabilityData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +DayOfWeek day = ...; +AvailabilitySlot slot = ...; + +final ref = ExampleConnector.instance.updateStaffAvailability( + staffId: staffId, + day: day, + slot: slot, +).ref(); +ref.execute(); +``` + + +### deleteStaffAvailability +#### Required Arguments +```dart +String staffId = ...; +DayOfWeek day = ...; +AvailabilitySlot slot = ...; +ExampleConnector.instance.deleteStaffAvailability( + staffId: staffId, + day: day, + slot: slot, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteStaffAvailability( + staffId: staffId, + day: day, + slot: slot, +); +deleteStaffAvailabilityData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +DayOfWeek day = ...; +AvailabilitySlot slot = ...; + +final ref = ExampleConnector.instance.deleteStaffAvailability( + staffId: staffId, + day: day, + slot: slot, +).ref(); +ref.execute(); +``` + + +### CreateAssignment +#### Required Arguments +```dart +String workforceId = ...; +String roleId = ...; +String shiftId = ...; +ExampleConnector.instance.createAssignment( + workforceId: workforceId, + roleId: roleId, + shiftId: shiftId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For CreateAssignment, we created `CreateAssignmentBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateAssignmentVariablesBuilder { + ... + CreateAssignmentVariablesBuilder title(String? t) { + _title.value = t; + return this; + } + CreateAssignmentVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + CreateAssignmentVariablesBuilder instructions(String? t) { + _instructions.value = t; + return this; + } + CreateAssignmentVariablesBuilder status(AssignmentStatus? t) { + _status.value = t; + return this; + } + CreateAssignmentVariablesBuilder tipsAvailable(bool? t) { + _tipsAvailable.value = t; + return this; + } + CreateAssignmentVariablesBuilder travelTime(bool? t) { + _travelTime.value = t; + return this; + } + CreateAssignmentVariablesBuilder mealProvided(bool? t) { + _mealProvided.value = t; + return this; + } + CreateAssignmentVariablesBuilder parkingAvailable(bool? t) { + _parkingAvailable.value = t; + return this; + } + CreateAssignmentVariablesBuilder gasCompensation(bool? t) { + _gasCompensation.value = t; + return this; + } + CreateAssignmentVariablesBuilder managers(List? t) { + _managers.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createAssignment( + workforceId: workforceId, + roleId: roleId, + shiftId: shiftId, +) +.title(title) +.description(description) +.instructions(instructions) +.status(status) +.tipsAvailable(tipsAvailable) +.travelTime(travelTime) +.mealProvided(mealProvided) +.parkingAvailable(parkingAvailable) +.gasCompensation(gasCompensation) +.managers(managers) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createAssignment( + workforceId: workforceId, + roleId: roleId, + shiftId: shiftId, +); +CreateAssignmentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String workforceId = ...; +String roleId = ...; +String shiftId = ...; + +final ref = ExampleConnector.instance.createAssignment( + workforceId: workforceId, + roleId: roleId, + shiftId: shiftId, +).ref(); +ref.execute(); +``` + + +### UpdateAssignment +#### Required Arguments +```dart +String id = ...; +String roleId = ...; +String shiftId = ...; +ExampleConnector.instance.updateAssignment( + id: id, + roleId: roleId, + shiftId: shiftId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For UpdateAssignment, we created `UpdateAssignmentBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateAssignmentVariablesBuilder { + ... + UpdateAssignmentVariablesBuilder title(String? t) { + _title.value = t; + return this; + } + UpdateAssignmentVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + UpdateAssignmentVariablesBuilder instructions(String? t) { + _instructions.value = t; + return this; + } + UpdateAssignmentVariablesBuilder status(AssignmentStatus? t) { + _status.value = t; + return this; + } + UpdateAssignmentVariablesBuilder tipsAvailable(bool? t) { + _tipsAvailable.value = t; + return this; + } + UpdateAssignmentVariablesBuilder travelTime(bool? t) { + _travelTime.value = t; + return this; + } + UpdateAssignmentVariablesBuilder mealProvided(bool? t) { + _mealProvided.value = t; + return this; + } + UpdateAssignmentVariablesBuilder parkingAvailable(bool? t) { + _parkingAvailable.value = t; + return this; + } + UpdateAssignmentVariablesBuilder gasCompensation(bool? t) { + _gasCompensation.value = t; + return this; + } + UpdateAssignmentVariablesBuilder managers(List? t) { + _managers.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateAssignment( + id: id, + roleId: roleId, + shiftId: shiftId, +) +.title(title) +.description(description) +.instructions(instructions) +.status(status) +.tipsAvailable(tipsAvailable) +.travelTime(travelTime) +.mealProvided(mealProvided) +.parkingAvailable(parkingAvailable) +.gasCompensation(gasCompensation) +.managers(managers) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateAssignment( + id: id, + roleId: roleId, + shiftId: shiftId, +); +UpdateAssignmentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; +String roleId = ...; +String shiftId = ...; + +final ref = ExampleConnector.instance.updateAssignment( + id: id, + roleId: roleId, + shiftId: shiftId, +).ref(); +ref.execute(); +``` + + +### DeleteAssignment +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteAssignment( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteAssignment( + id: id, +); +DeleteAssignmentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteAssignment( + id: id, +).ref(); +ref.execute(); +``` + + +### CreateUser +#### Required Arguments +```dart +String id = ...; +UserBaseRole role = ...; +ExampleConnector.instance.createUser( + id: id, + role: role, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For CreateUser, we created `CreateUserBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateUserVariablesBuilder { + ... + CreateUserVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + CreateUserVariablesBuilder fullName(String? t) { + _fullName.value = t; + return this; + } + CreateUserVariablesBuilder userRole(String? t) { + _userRole.value = t; + return this; + } + CreateUserVariablesBuilder photoUrl(String? t) { + _photoUrl.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createUser( + id: id, + role: role, +) +.email(email) +.fullName(fullName) +.userRole(userRole) +.photoUrl(photoUrl) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createUser( + id: id, + role: role, +); +CreateUserData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; +UserBaseRole role = ...; + +final ref = ExampleConnector.instance.createUser( + id: id, + role: role, +).ref(); +ref.execute(); +``` + + +### UpdateUser +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateUser( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For UpdateUser, we created `UpdateUserBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateUserVariablesBuilder { + ... + UpdateUserVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + UpdateUserVariablesBuilder fullName(String? t) { + _fullName.value = t; + return this; + } + UpdateUserVariablesBuilder role(UserBaseRole? t) { + _role.value = t; + return this; + } + UpdateUserVariablesBuilder userRole(String? t) { + _userRole.value = t; + return this; + } + UpdateUserVariablesBuilder photoUrl(String? t) { + _photoUrl.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateUser( + id: id, +) +.email(email) +.fullName(fullName) +.role(role) +.userRole(userRole) +.photoUrl(photoUrl) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateUser( + id: id, +); +UpdateUserData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateUser( + id: id, +).ref(); +ref.execute(); +``` + + +### DeleteUser +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteUser( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteUser( + id: id, +); +DeleteUserData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteUser( id: id, ).ref(); ref.execute(); @@ -24059,246 +23542,23 @@ ref.execute(); ``` -### CreateUser +### createBenefitsData #### Required Arguments ```dart -String id = ...; -UserBaseRole role = ...; -ExampleConnector.instance.createUser( - id: id, - role: role, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For CreateUser, we created `CreateUserBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateUserVariablesBuilder { - ... - CreateUserVariablesBuilder email(String? t) { - _email.value = t; - return this; - } - CreateUserVariablesBuilder fullName(String? t) { - _fullName.value = t; - return this; - } - CreateUserVariablesBuilder userRole(String? t) { - _userRole.value = t; - return this; - } - CreateUserVariablesBuilder photoUrl(String? t) { - _photoUrl.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createUser( - id: id, - role: role, -) -.email(email) -.fullName(fullName) -.userRole(userRole) -.photoUrl(photoUrl) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createUser( - id: id, - role: role, -); -CreateUserData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; -UserBaseRole role = ...; - -final ref = ExampleConnector.instance.createUser( - id: id, - role: role, -).ref(); -ref.execute(); -``` - - -### UpdateUser -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateUser( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For UpdateUser, we created `UpdateUserBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateUserVariablesBuilder { - ... - UpdateUserVariablesBuilder email(String? t) { - _email.value = t; - return this; - } - UpdateUserVariablesBuilder fullName(String? t) { - _fullName.value = t; - return this; - } - UpdateUserVariablesBuilder role(UserBaseRole? t) { - _role.value = t; - return this; - } - UpdateUserVariablesBuilder userRole(String? t) { - _userRole.value = t; - return this; - } - UpdateUserVariablesBuilder photoUrl(String? t) { - _photoUrl.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateUser( - id: id, -) -.email(email) -.fullName(fullName) -.role(role) -.userRole(userRole) -.photoUrl(photoUrl) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateUser( - id: id, -); -UpdateUserData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateUser( - id: id, -).ref(); -ref.execute(); -``` - - -### DeleteUser -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteUser( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteUser( - id: id, -); -DeleteUserData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteUser( - id: id, -).ref(); -ref.execute(); -``` - - -### createWorkforce -#### Required Arguments -```dart -String vendorId = ...; +String vendorBenefitPlanId = ...; String staffId = ...; -String workforceNumber = ...; -ExampleConnector.instance.createWorkforce( - vendorId: vendorId, +int current = ...; +ExampleConnector.instance.createBenefitsData( + vendorBenefitPlanId: vendorBenefitPlanId, staffId: staffId, - workforceNumber: workforceNumber, + current: current, ).execute(); ``` -#### Optional Arguments -We return a builder for each query. For createWorkforce, we created `createWorkforceBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateWorkforceVariablesBuilder { - ... - CreateWorkforceVariablesBuilder employmentType(WorkforceEmploymentType? t) { - _employmentType.value = t; - return this; - } - ... -} -ExampleConnector.instance.createWorkforce( - vendorId: vendorId, - staffId: staffId, - workforceNumber: workforceNumber, -) -.employmentType(employmentType) -.execute(); -``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -24308,12 +23568,12 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createWorkforce( - vendorId: vendorId, +final result = await ExampleConnector.instance.createBenefitsData( + vendorBenefitPlanId: vendorBenefitPlanId, staffId: staffId, - workforceNumber: workforceNumber, + current: current, ); -createWorkforceData data = result.data; +createBenefitsDataData data = result.data; final ref = result.ref; ``` @@ -24321,60 +23581,676 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String vendorId = ...; +String vendorBenefitPlanId = ...; String staffId = ...; -String workforceNumber = ...; +int current = ...; -final ref = ExampleConnector.instance.createWorkforce( - vendorId: vendorId, +final ref = ExampleConnector.instance.createBenefitsData( + vendorBenefitPlanId: vendorBenefitPlanId, staffId: staffId, - workforceNumber: workforceNumber, + current: current, ).ref(); ref.execute(); ``` -### updateWorkforce +### updateBenefitsData +#### Required Arguments +```dart +String staffId = ...; +String vendorBenefitPlanId = ...; +ExampleConnector.instance.updateBenefitsData( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateBenefitsData, we created `updateBenefitsDataBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateBenefitsDataVariablesBuilder { + ... + UpdateBenefitsDataVariablesBuilder current(int? t) { + _current.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateBenefitsData( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +) +.current(current) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateBenefitsData( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +); +updateBenefitsDataData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +String vendorBenefitPlanId = ...; + +final ref = ExampleConnector.instance.updateBenefitsData( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +).ref(); +ref.execute(); +``` + + +### deleteBenefitsData +#### Required Arguments +```dart +String staffId = ...; +String vendorBenefitPlanId = ...; +ExampleConnector.instance.deleteBenefitsData( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteBenefitsData( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +); +deleteBenefitsDataData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +String vendorBenefitPlanId = ...; + +final ref = ExampleConnector.instance.deleteBenefitsData( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +).ref(); +ref.execute(); +``` + + +### createCustomRateCard +#### Required Arguments +```dart +String name = ...; +ExampleConnector.instance.createCustomRateCard( + name: name, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createCustomRateCard, we created `createCustomRateCardBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateCustomRateCardVariablesBuilder { + ... + CreateCustomRateCardVariablesBuilder baseBook(String? t) { + _baseBook.value = t; + return this; + } + CreateCustomRateCardVariablesBuilder discount(double? t) { + _discount.value = t; + return this; + } + CreateCustomRateCardVariablesBuilder isDefault(bool? t) { + _isDefault.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createCustomRateCard( + name: name, +) +.baseBook(baseBook) +.discount(discount) +.isDefault(isDefault) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createCustomRateCard( + name: name, +); +createCustomRateCardData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String name = ...; + +final ref = ExampleConnector.instance.createCustomRateCard( + name: name, +).ref(); +ref.execute(); +``` + + +### updateCustomRateCard #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateWorkforce( +ExampleConnector.instance.updateCustomRateCard( id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateWorkforce, we created `updateWorkforceBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateCustomRateCard, we created `updateCustomRateCardBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateWorkforceVariablesBuilder { +class UpdateCustomRateCardVariablesBuilder { ... - UpdateWorkforceVariablesBuilder workforceNumber(String? t) { - _workforceNumber.value = t; + UpdateCustomRateCardVariablesBuilder name(String? t) { + _name.value = t; return this; } - UpdateWorkforceVariablesBuilder employmentType(WorkforceEmploymentType? t) { - _employmentType.value = t; + UpdateCustomRateCardVariablesBuilder baseBook(String? t) { + _baseBook.value = t; return this; } - UpdateWorkforceVariablesBuilder status(WorkforceStatus? t) { + UpdateCustomRateCardVariablesBuilder discount(double? t) { + _discount.value = t; + return this; + } + UpdateCustomRateCardVariablesBuilder isDefault(bool? t) { + _isDefault.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateCustomRateCard( + id: id, +) +.name(name) +.baseBook(baseBook) +.discount(discount) +.isDefault(isDefault) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateCustomRateCard( + id: id, +); +updateCustomRateCardData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateCustomRateCard( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteCustomRateCard +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteCustomRateCard( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteCustomRateCard( + id: id, +); +deleteCustomRateCardData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteCustomRateCard( + id: id, +).ref(); +ref.execute(); +``` + + +### createEmergencyContact +#### Required Arguments +```dart +String name = ...; +String phone = ...; +RelationshipType relationship = ...; +String staffId = ...; +ExampleConnector.instance.createEmergencyContact( + name: name, + phone: phone, + relationship: relationship, + staffId: staffId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createEmergencyContact( + name: name, + phone: phone, + relationship: relationship, + staffId: staffId, +); +createEmergencyContactData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String name = ...; +String phone = ...; +RelationshipType relationship = ...; +String staffId = ...; + +final ref = ExampleConnector.instance.createEmergencyContact( + name: name, + phone: phone, + relationship: relationship, + staffId: staffId, +).ref(); +ref.execute(); +``` + + +### updateEmergencyContact +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateEmergencyContact( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateEmergencyContact, we created `updateEmergencyContactBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateEmergencyContactVariablesBuilder { + ... + UpdateEmergencyContactVariablesBuilder name(String? t) { + _name.value = t; + return this; + } + UpdateEmergencyContactVariablesBuilder phone(String? t) { + _phone.value = t; + return this; + } + UpdateEmergencyContactVariablesBuilder relationship(RelationshipType? t) { + _relationship.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateEmergencyContact( + id: id, +) +.name(name) +.phone(phone) +.relationship(relationship) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateEmergencyContact( + id: id, +); +updateEmergencyContactData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateEmergencyContact( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteEmergencyContact +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteEmergencyContact( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteEmergencyContact( + id: id, +); +deleteEmergencyContactData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteEmergencyContact( + id: id, +).ref(); +ref.execute(); +``` + + +### CreateCertificate +#### Required Arguments +```dart +String name = ...; +CertificateStatus status = ...; +String staffId = ...; +ExampleConnector.instance.createCertificate( + name: name, + status: status, + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For CreateCertificate, we created `CreateCertificateBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateCertificateVariablesBuilder { + ... + CreateCertificateVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + CreateCertificateVariablesBuilder expiry(Timestamp? t) { + _expiry.value = t; + return this; + } + CreateCertificateVariablesBuilder fileUrl(String? t) { + _fileUrl.value = t; + return this; + } + CreateCertificateVariablesBuilder icon(String? t) { + _icon.value = t; + return this; + } + CreateCertificateVariablesBuilder certificationType(ComplianceType? t) { + _certificationType.value = t; + return this; + } + CreateCertificateVariablesBuilder issuer(String? t) { + _issuer.value = t; + return this; + } + CreateCertificateVariablesBuilder validationStatus(ValidationStatus? t) { + _validationStatus.value = t; + return this; + } + CreateCertificateVariablesBuilder certificateNumber(String? t) { + _certificateNumber.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createCertificate( + name: name, + status: status, + staffId: staffId, +) +.description(description) +.expiry(expiry) +.fileUrl(fileUrl) +.icon(icon) +.certificationType(certificationType) +.issuer(issuer) +.validationStatus(validationStatus) +.certificateNumber(certificateNumber) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createCertificate( + name: name, + status: status, + staffId: staffId, +); +CreateCertificateData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String name = ...; +CertificateStatus status = ...; +String staffId = ...; + +final ref = ExampleConnector.instance.createCertificate( + name: name, + status: status, + staffId: staffId, +).ref(); +ref.execute(); +``` + + +### UpdateCertificate +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateCertificate( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For UpdateCertificate, we created `UpdateCertificateBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateCertificateVariablesBuilder { + ... + UpdateCertificateVariablesBuilder name(String? t) { + _name.value = t; + return this; + } + UpdateCertificateVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + UpdateCertificateVariablesBuilder expiry(Timestamp? t) { + _expiry.value = t; + return this; + } + UpdateCertificateVariablesBuilder status(CertificateStatus? t) { _status.value = t; return this; } + UpdateCertificateVariablesBuilder fileUrl(String? t) { + _fileUrl.value = t; + return this; + } + UpdateCertificateVariablesBuilder icon(String? t) { + _icon.value = t; + return this; + } + UpdateCertificateVariablesBuilder staffId(String? t) { + _staffId.value = t; + return this; + } + UpdateCertificateVariablesBuilder certificationType(ComplianceType? t) { + _certificationType.value = t; + return this; + } + UpdateCertificateVariablesBuilder issuer(String? t) { + _issuer.value = t; + return this; + } + UpdateCertificateVariablesBuilder validationStatus(ValidationStatus? t) { + _validationStatus.value = t; + return this; + } + UpdateCertificateVariablesBuilder certificateNumber(String? t) { + _certificateNumber.value = t; + return this; + } ... } -ExampleConnector.instance.updateWorkforce( +ExampleConnector.instance.updateCertificate( id: id, ) -.workforceNumber(workforceNumber) -.employmentType(employmentType) +.name(name) +.description(description) +.expiry(expiry) .status(status) +.fileUrl(fileUrl) +.icon(icon) +.staffId(staffId) +.certificationType(certificationType) +.issuer(issuer) +.validationStatus(validationStatus) +.certificateNumber(certificateNumber) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -24384,10 +24260,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateWorkforce( +final result = await ExampleConnector.instance.updateCertificate( id: id, ); -updateWorkforceData data = result.data; +UpdateCertificateData data = result.data; final ref = result.ref; ``` @@ -24397,18 +24273,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateWorkforce( +final ref = ExampleConnector.instance.updateCertificate( id: id, ).ref(); ref.execute(); ``` -### deactivateWorkforce +### DeleteCertificate #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deactivateWorkforce( +ExampleConnector.instance.deleteCertificate( id: id, ).execute(); ``` @@ -24416,7 +24292,7 @@ ExampleConnector.instance.deactivateWorkforce( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -24426,10 +24302,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deactivateWorkforce( +final result = await ExampleConnector.instance.deleteCertificate( id: id, ); -deactivateWorkforceData data = result.data; +DeleteCertificateData data = result.data; final ref = result.ref; ``` @@ -24439,7 +24315,683 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deactivateWorkforce( +final ref = ExampleConnector.instance.deleteCertificate( + id: id, +).ref(); +ref.execute(); +``` + + +### createTaskComment +#### Required Arguments +```dart +String taskId = ...; +String teamMemberId = ...; +String comment = ...; +ExampleConnector.instance.createTaskComment( + taskId: taskId, + teamMemberId: teamMemberId, + comment: comment, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createTaskComment, we created `createTaskCommentBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateTaskCommentVariablesBuilder { + ... + CreateTaskCommentVariablesBuilder isSystem(bool? t) { + _isSystem.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createTaskComment( + taskId: taskId, + teamMemberId: teamMemberId, + comment: comment, +) +.isSystem(isSystem) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createTaskComment( + taskId: taskId, + teamMemberId: teamMemberId, + comment: comment, +); +createTaskCommentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String taskId = ...; +String teamMemberId = ...; +String comment = ...; + +final ref = ExampleConnector.instance.createTaskComment( + taskId: taskId, + teamMemberId: teamMemberId, + comment: comment, +).ref(); +ref.execute(); +``` + + +### updateTaskComment +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateTaskComment( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateTaskComment, we created `updateTaskCommentBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateTaskCommentVariablesBuilder { + ... + UpdateTaskCommentVariablesBuilder comment(String? t) { + _comment.value = t; + return this; + } + UpdateTaskCommentVariablesBuilder isSystem(bool? t) { + _isSystem.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateTaskComment( + id: id, +) +.comment(comment) +.isSystem(isSystem) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateTaskComment( + id: id, +); +updateTaskCommentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateTaskComment( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteTaskComment +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteTaskComment( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteTaskComment( + id: id, +); +deleteTaskCommentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteTaskComment( + id: id, +).ref(); +ref.execute(); +``` + + +### createTeamHub +#### Required Arguments +```dart +String teamId = ...; +String hubName = ...; +String address = ...; +ExampleConnector.instance.createTeamHub( + teamId: teamId, + hubName: hubName, + address: address, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createTeamHub, we created `createTeamHubBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateTeamHubVariablesBuilder { + ... + CreateTeamHubVariablesBuilder placeId(String? t) { + _placeId.value = t; + return this; + } + CreateTeamHubVariablesBuilder latitude(double? t) { + _latitude.value = t; + return this; + } + CreateTeamHubVariablesBuilder longitude(double? t) { + _longitude.value = t; + return this; + } + CreateTeamHubVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + CreateTeamHubVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + CreateTeamHubVariablesBuilder street(String? t) { + _street.value = t; + return this; + } + CreateTeamHubVariablesBuilder country(String? t) { + _country.value = t; + return this; + } + CreateTeamHubVariablesBuilder zipCode(String? t) { + _zipCode.value = t; + return this; + } + CreateTeamHubVariablesBuilder managerName(String? t) { + _managerName.value = t; + return this; + } + CreateTeamHubVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + CreateTeamHubVariablesBuilder departments(AnyValue? t) { + _departments.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createTeamHub( + teamId: teamId, + hubName: hubName, + address: address, +) +.placeId(placeId) +.latitude(latitude) +.longitude(longitude) +.city(city) +.state(state) +.street(street) +.country(country) +.zipCode(zipCode) +.managerName(managerName) +.isActive(isActive) +.departments(departments) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createTeamHub( + teamId: teamId, + hubName: hubName, + address: address, +); +createTeamHubData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String teamId = ...; +String hubName = ...; +String address = ...; + +final ref = ExampleConnector.instance.createTeamHub( + teamId: teamId, + hubName: hubName, + address: address, +).ref(); +ref.execute(); +``` + + +### updateTeamHub +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateTeamHub( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateTeamHub, we created `updateTeamHubBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateTeamHubVariablesBuilder { + ... + UpdateTeamHubVariablesBuilder teamId(String? t) { + _teamId.value = t; + return this; + } + UpdateTeamHubVariablesBuilder hubName(String? t) { + _hubName.value = t; + return this; + } + UpdateTeamHubVariablesBuilder address(String? t) { + _address.value = t; + return this; + } + UpdateTeamHubVariablesBuilder placeId(String? t) { + _placeId.value = t; + return this; + } + UpdateTeamHubVariablesBuilder latitude(double? t) { + _latitude.value = t; + return this; + } + UpdateTeamHubVariablesBuilder longitude(double? t) { + _longitude.value = t; + return this; + } + UpdateTeamHubVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + UpdateTeamHubVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + UpdateTeamHubVariablesBuilder street(String? t) { + _street.value = t; + return this; + } + UpdateTeamHubVariablesBuilder country(String? t) { + _country.value = t; + return this; + } + UpdateTeamHubVariablesBuilder zipCode(String? t) { + _zipCode.value = t; + return this; + } + UpdateTeamHubVariablesBuilder managerName(String? t) { + _managerName.value = t; + return this; + } + UpdateTeamHubVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + UpdateTeamHubVariablesBuilder departments(AnyValue? t) { + _departments.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateTeamHub( + id: id, +) +.teamId(teamId) +.hubName(hubName) +.address(address) +.placeId(placeId) +.latitude(latitude) +.longitude(longitude) +.city(city) +.state(state) +.street(street) +.country(country) +.zipCode(zipCode) +.managerName(managerName) +.isActive(isActive) +.departments(departments) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateTeamHub( + id: id, +); +updateTeamHubData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateTeamHub( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteTeamHub +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteTeamHub( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteTeamHub( + id: id, +); +deleteTeamHubData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteTeamHub( + id: id, +).ref(); +ref.execute(); +``` + + +### createAttireOption +#### Required Arguments +```dart +String itemId = ...; +String label = ...; +ExampleConnector.instance.createAttireOption( + itemId: itemId, + label: label, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createAttireOption, we created `createAttireOptionBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateAttireOptionVariablesBuilder { + ... + CreateAttireOptionVariablesBuilder icon(String? t) { + _icon.value = t; + return this; + } + CreateAttireOptionVariablesBuilder imageUrl(String? t) { + _imageUrl.value = t; + return this; + } + CreateAttireOptionVariablesBuilder isMandatory(bool? t) { + _isMandatory.value = t; + return this; + } + CreateAttireOptionVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createAttireOption( + itemId: itemId, + label: label, +) +.icon(icon) +.imageUrl(imageUrl) +.isMandatory(isMandatory) +.vendorId(vendorId) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createAttireOption( + itemId: itemId, + label: label, +); +createAttireOptionData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String itemId = ...; +String label = ...; + +final ref = ExampleConnector.instance.createAttireOption( + itemId: itemId, + label: label, +).ref(); +ref.execute(); +``` + + +### updateAttireOption +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateAttireOption( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateAttireOption, we created `updateAttireOptionBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateAttireOptionVariablesBuilder { + ... + UpdateAttireOptionVariablesBuilder itemId(String? t) { + _itemId.value = t; + return this; + } + UpdateAttireOptionVariablesBuilder label(String? t) { + _label.value = t; + return this; + } + UpdateAttireOptionVariablesBuilder icon(String? t) { + _icon.value = t; + return this; + } + UpdateAttireOptionVariablesBuilder imageUrl(String? t) { + _imageUrl.value = t; + return this; + } + UpdateAttireOptionVariablesBuilder isMandatory(bool? t) { + _isMandatory.value = t; + return this; + } + UpdateAttireOptionVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateAttireOption( + id: id, +) +.itemId(itemId) +.label(label) +.icon(icon) +.imageUrl(imageUrl) +.isMandatory(isMandatory) +.vendorId(vendorId) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateAttireOption( + id: id, +); +updateAttireOptionData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateAttireOption( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteAttireOption +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteAttireOption( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteAttireOption( + id: id, +); +deleteAttireOptionData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteAttireOption( id: id, ).ref(); ref.execute(); diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/create_order.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/create_order.dart index 6cbe2419..d7056171 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/create_order.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/create_order.dart @@ -4,7 +4,6 @@ class CreateOrderVariablesBuilder { Optional _vendorId = Optional.optional(nativeFromJson, nativeToJson); String businessId; OrderType orderType; - Optional _location = Optional.optional(nativeFromJson, nativeToJson); Optional _status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer); Optional _date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer); Optional _startDate = Optional.optional((json) => json['startDate'] = Timestamp.fromJson(json['startDate']), defaultSerializer); @@ -16,7 +15,7 @@ class CreateOrderVariablesBuilder { Optional _assignedStaff = Optional.optional(AnyValue.fromJson, defaultSerializer); Optional _shifts = Optional.optional(AnyValue.fromJson, defaultSerializer); Optional _requested = Optional.optional(nativeFromJson, nativeToJson); - Optional _hub = Optional.optional(nativeFromJson, nativeToJson); + String teamHubId; Optional _recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer); Optional _permanentStartDate = Optional.optional((json) => json['permanentStartDate'] = Timestamp.fromJson(json['permanentStartDate']), defaultSerializer); Optional _permanentDays = Optional.optional(AnyValue.fromJson, defaultSerializer); @@ -29,10 +28,6 @@ class CreateOrderVariablesBuilder { _vendorId.value = t; return this; } - CreateOrderVariablesBuilder location(String? t) { - _location.value = t; - return this; - } CreateOrderVariablesBuilder status(OrderStatus? t) { _status.value = t; return this; @@ -77,10 +72,6 @@ class CreateOrderVariablesBuilder { _requested.value = t; return this; } - CreateOrderVariablesBuilder hub(String? t) { - _hub.value = t; - return this; - } CreateOrderVariablesBuilder recurringDays(AnyValue? t) { _recurringDays.value = t; return this; @@ -106,7 +97,7 @@ class CreateOrderVariablesBuilder { return this; } - CreateOrderVariablesBuilder(this._dataConnect, {required this.businessId,required this.orderType,}); + CreateOrderVariablesBuilder(this._dataConnect, {required this.businessId,required this.orderType,required this.teamHubId,}); Deserializer dataDeserializer = (dynamic json) => CreateOrderData.fromJson(jsonDecode(json)); Serializer varsSerializer = (CreateOrderVariables vars) => jsonEncode(vars.toJson()); Future> execute() { @@ -114,7 +105,7 @@ class CreateOrderVariablesBuilder { } MutationRef ref() { - CreateOrderVariables vars= CreateOrderVariables(vendorId: _vendorId,businessId: businessId,orderType: orderType,location: _location,status: _status,date: _date,startDate: _startDate,endDate: _endDate,duration: _duration,lunchBreak: _lunchBreak,total: _total,eventName: _eventName,assignedStaff: _assignedStaff,shifts: _shifts,requested: _requested,hub: _hub,recurringDays: _recurringDays,permanentStartDate: _permanentStartDate,permanentDays: _permanentDays,notes: _notes,detectedConflicts: _detectedConflicts,poReference: _poReference,); + CreateOrderVariables vars= CreateOrderVariables(vendorId: _vendorId,businessId: businessId,orderType: orderType,status: _status,date: _date,startDate: _startDate,endDate: _endDate,duration: _duration,lunchBreak: _lunchBreak,total: _total,eventName: _eventName,assignedStaff: _assignedStaff,shifts: _shifts,requested: _requested,teamHubId: teamHubId,recurringDays: _recurringDays,permanentStartDate: _permanentStartDate,permanentDays: _permanentDays,notes: _notes,detectedConflicts: _detectedConflicts,poReference: _poReference,); return _dataConnect.mutation("createOrder", dataDeserializer, varsSerializer, vars); } } @@ -192,7 +183,6 @@ class CreateOrderVariables { late final OptionalvendorId; final String businessId; final OrderType orderType; - late final Optionallocation; late final Optionalstatus; late final Optionaldate; late final OptionalstartDate; @@ -204,7 +194,7 @@ class CreateOrderVariables { late final OptionalassignedStaff; late final Optionalshifts; late final Optionalrequested; - late final Optionalhub; + final String teamHubId; late final OptionalrecurringDays; late final OptionalpermanentStartDate; late final OptionalpermanentDays; @@ -215,7 +205,8 @@ class CreateOrderVariables { CreateOrderVariables.fromJson(Map json): businessId = nativeFromJson(json['businessId']), - orderType = OrderType.values.byName(json['orderType']) { + orderType = OrderType.values.byName(json['orderType']), + teamHubId = nativeFromJson(json['teamHubId']) { vendorId = Optional.optional(nativeFromJson, nativeToJson); @@ -224,10 +215,6 @@ class CreateOrderVariables { - location = Optional.optional(nativeFromJson, nativeToJson); - location.value = json['location'] == null ? null : nativeFromJson(json['location']); - - status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer); status.value = json['status'] == null ? null : OrderStatus.values.byName(json['status']); @@ -272,9 +259,6 @@ class CreateOrderVariables { requested.value = json['requested'] == null ? null : nativeFromJson(json['requested']); - hub = Optional.optional(nativeFromJson, nativeToJson); - hub.value = json['hub'] == null ? null : nativeFromJson(json['hub']); - recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer); recurringDays.value = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']); @@ -313,7 +297,6 @@ class CreateOrderVariables { return vendorId == otherTyped.vendorId && businessId == otherTyped.businessId && orderType == otherTyped.orderType && - location == otherTyped.location && status == otherTyped.status && date == otherTyped.date && startDate == otherTyped.startDate && @@ -325,7 +308,7 @@ class CreateOrderVariables { assignedStaff == otherTyped.assignedStaff && shifts == otherTyped.shifts && requested == otherTyped.requested && - hub == otherTyped.hub && + teamHubId == otherTyped.teamHubId && recurringDays == otherTyped.recurringDays && permanentStartDate == otherTyped.permanentStartDate && permanentDays == otherTyped.permanentDays && @@ -335,7 +318,7 @@ class CreateOrderVariables { } @override - int get hashCode => Object.hashAll([vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, eventName.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentStartDate.hashCode, permanentDays.hashCode, notes.hashCode, detectedConflicts.hashCode, poReference.hashCode]); + int get hashCode => Object.hashAll([vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, eventName.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, teamHubId.hashCode, recurringDays.hashCode, permanentStartDate.hashCode, permanentDays.hashCode, notes.hashCode, detectedConflicts.hashCode, poReference.hashCode]); Map toJson() { @@ -347,9 +330,6 @@ class CreateOrderVariables { json['orderType'] = orderType.name ; - if(location.state == OptionalState.set) { - json['location'] = location.toJson(); - } if(status.state == OptionalState.set) { json['status'] = status.toJson(); } @@ -383,9 +363,7 @@ class CreateOrderVariables { if(requested.state == OptionalState.set) { json['requested'] = requested.toJson(); } - if(hub.state == OptionalState.set) { - json['hub'] = hub.toJson(); - } + json['teamHubId'] = nativeToJson(teamHubId); if(recurringDays.state == OptionalState.set) { json['recurringDays'] = recurringDays.toJson(); } @@ -411,7 +389,6 @@ class CreateOrderVariables { required this.vendorId, required this.businessId, required this.orderType, - required this.location, required this.status, required this.date, required this.startDate, @@ -423,7 +400,7 @@ class CreateOrderVariables { required this.assignedStaff, required this.shifts, required this.requested, - required this.hub, + required this.teamHubId, required this.recurringDays, required this.permanentStartDate, required this.permanentDays, diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/create_shift.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/create_shift.dart index 2f81c6de..d00f3f1e 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/create_shift.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/create_shift.dart @@ -12,6 +12,11 @@ class CreateShiftVariablesBuilder { Optional _locationAddress = Optional.optional(nativeFromJson, nativeToJson); Optional _latitude = Optional.optional(nativeFromJson, nativeToJson); Optional _longitude = Optional.optional(nativeFromJson, nativeToJson); + Optional _placeId = Optional.optional(nativeFromJson, nativeToJson); + Optional _city = Optional.optional(nativeFromJson, nativeToJson); + Optional _state = Optional.optional(nativeFromJson, nativeToJson); + Optional _street = Optional.optional(nativeFromJson, nativeToJson); + Optional _country = Optional.optional(nativeFromJson, nativeToJson); Optional _description = Optional.optional(nativeFromJson, nativeToJson); Optional _status = Optional.optional((data) => ShiftStatus.values.byName(data), enumSerializer); Optional _workersNeeded = Optional.optional(nativeFromJson, nativeToJson); @@ -57,6 +62,26 @@ class CreateShiftVariablesBuilder { _longitude.value = t; return this; } + CreateShiftVariablesBuilder placeId(String? t) { + _placeId.value = t; + return this; + } + CreateShiftVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + CreateShiftVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + CreateShiftVariablesBuilder street(String? t) { + _street.value = t; + return this; + } + CreateShiftVariablesBuilder country(String? t) { + _country.value = t; + return this; + } CreateShiftVariablesBuilder description(String? t) { _description.value = t; return this; @@ -98,7 +123,7 @@ class CreateShiftVariablesBuilder { } MutationRef ref() { - CreateShiftVariables vars= CreateShiftVariables(title: title,orderId: orderId,date: _date,startTime: _startTime,endTime: _endTime,hours: _hours,cost: _cost,location: _location,locationAddress: _locationAddress,latitude: _latitude,longitude: _longitude,description: _description,status: _status,workersNeeded: _workersNeeded,filled: _filled,filledAt: _filledAt,managers: _managers,durationDays: _durationDays,createdBy: _createdBy,); + CreateShiftVariables vars= CreateShiftVariables(title: title,orderId: orderId,date: _date,startTime: _startTime,endTime: _endTime,hours: _hours,cost: _cost,location: _location,locationAddress: _locationAddress,latitude: _latitude,longitude: _longitude,placeId: _placeId,city: _city,state: _state,street: _street,country: _country,description: _description,status: _status,workersNeeded: _workersNeeded,filled: _filled,filledAt: _filledAt,managers: _managers,durationDays: _durationDays,createdBy: _createdBy,); return _dataConnect.mutation("createShift", dataDeserializer, varsSerializer, vars); } } @@ -184,6 +209,11 @@ class CreateShiftVariables { late final OptionallocationAddress; late final Optionallatitude; late final Optionallongitude; + late final OptionalplaceId; + late final Optionalcity; + late final Optionalstate; + late final Optionalstreet; + late final Optionalcountry; late final Optionaldescription; late final Optionalstatus; late final OptionalworkersNeeded; @@ -237,6 +267,26 @@ class CreateShiftVariables { longitude.value = json['longitude'] == null ? null : nativeFromJson(json['longitude']); + placeId = Optional.optional(nativeFromJson, nativeToJson); + placeId.value = json['placeId'] == null ? null : nativeFromJson(json['placeId']); + + + city = Optional.optional(nativeFromJson, nativeToJson); + city.value = json['city'] == null ? null : nativeFromJson(json['city']); + + + state = Optional.optional(nativeFromJson, nativeToJson); + state.value = json['state'] == null ? null : nativeFromJson(json['state']); + + + street = Optional.optional(nativeFromJson, nativeToJson); + street.value = json['street'] == null ? null : nativeFromJson(json['street']); + + + country = Optional.optional(nativeFromJson, nativeToJson); + country.value = json['country'] == null ? null : nativeFromJson(json['country']); + + description = Optional.optional(nativeFromJson, nativeToJson); description.value = json['description'] == null ? null : nativeFromJson(json['description']); @@ -292,6 +342,11 @@ class CreateShiftVariables { locationAddress == otherTyped.locationAddress && latitude == otherTyped.latitude && longitude == otherTyped.longitude && + placeId == otherTyped.placeId && + city == otherTyped.city && + state == otherTyped.state && + street == otherTyped.street && + country == otherTyped.country && description == otherTyped.description && status == otherTyped.status && workersNeeded == otherTyped.workersNeeded && @@ -303,7 +358,7 @@ class CreateShiftVariables { } @override - int get hashCode => Object.hashAll([title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdBy.hashCode]); + int get hashCode => Object.hashAll([title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, placeId.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdBy.hashCode]); Map toJson() { @@ -337,6 +392,21 @@ class CreateShiftVariables { if(longitude.state == OptionalState.set) { json['longitude'] = longitude.toJson(); } + if(placeId.state == OptionalState.set) { + json['placeId'] = placeId.toJson(); + } + if(city.state == OptionalState.set) { + json['city'] = city.toJson(); + } + if(state.state == OptionalState.set) { + json['state'] = state.toJson(); + } + if(street.state == OptionalState.set) { + json['street'] = street.toJson(); + } + if(country.state == OptionalState.set) { + json['country'] = country.toJson(); + } if(description.state == OptionalState.set) { json['description'] = description.toJson(); } @@ -376,6 +446,11 @@ class CreateShiftVariables { required this.locationAddress, required this.latitude, required this.longitude, + required this.placeId, + required this.city, + required this.state, + required this.street, + required this.country, required this.description, required this.status, required this.workersNeeded, diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/create_tax_form.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/create_tax_form.dart index 62723cd5..cd546560 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/create_tax_form.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/create_tax_form.dart @@ -2,31 +2,140 @@ part of 'generated.dart'; class CreateTaxFormVariablesBuilder { TaxFormType formType; - String title; - Optional _subtitle = Optional.optional(nativeFromJson, nativeToJson); - Optional _description = Optional.optional(nativeFromJson, nativeToJson); - Optional _status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer); + String firstName; + String lastName; + Optional _mInitial = Optional.optional(nativeFromJson, nativeToJson); + Optional _oLastName = Optional.optional(nativeFromJson, nativeToJson); + Optional _dob = Optional.optional((json) => json['dob'] = Timestamp.fromJson(json['dob']), defaultSerializer); + int socialSN; + Optional _email = Optional.optional(nativeFromJson, nativeToJson); + Optional _phone = Optional.optional(nativeFromJson, nativeToJson); + String address; + Optional _city = Optional.optional(nativeFromJson, nativeToJson); + Optional _apt = Optional.optional(nativeFromJson, nativeToJson); + Optional _state = Optional.optional(nativeFromJson, nativeToJson); + Optional _zipCode = Optional.optional(nativeFromJson, nativeToJson); + Optional _marital = Optional.optional((data) => MaritalStatus.values.byName(data), enumSerializer); + Optional _multipleJob = Optional.optional(nativeFromJson, nativeToJson); + Optional _childrens = Optional.optional(nativeFromJson, nativeToJson); + Optional _otherDeps = Optional.optional(nativeFromJson, nativeToJson); + Optional _totalCredits = Optional.optional(nativeFromJson, nativeToJson); + Optional _otherInconme = Optional.optional(nativeFromJson, nativeToJson); + Optional _deductions = Optional.optional(nativeFromJson, nativeToJson); + Optional _extraWithholding = Optional.optional(nativeFromJson, nativeToJson); + Optional _citizen = Optional.optional((data) => CitizenshipStatus.values.byName(data), enumSerializer); + Optional _uscis = Optional.optional(nativeFromJson, nativeToJson); + Optional _passportNumber = Optional.optional(nativeFromJson, nativeToJson); + Optional _countryIssue = Optional.optional(nativeFromJson, nativeToJson); + Optional _prepartorOrTranslator = Optional.optional(nativeFromJson, nativeToJson); + Optional _signature = Optional.optional(nativeFromJson, nativeToJson); + Optional _date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer); + TaxFormStatus status; String staffId; - Optional _formData = Optional.optional(AnyValue.fromJson, defaultSerializer); + Optional _createdBy = Optional.optional(nativeFromJson, nativeToJson); - final FirebaseDataConnect _dataConnect; CreateTaxFormVariablesBuilder subtitle(String? t) { - _subtitle.value = t; + final FirebaseDataConnect _dataConnect; CreateTaxFormVariablesBuilder mInitial(String? t) { + _mInitial.value = t; return this; } - CreateTaxFormVariablesBuilder description(String? t) { - _description.value = t; + CreateTaxFormVariablesBuilder oLastName(String? t) { + _oLastName.value = t; return this; } - CreateTaxFormVariablesBuilder status(TaxFormStatus? t) { - _status.value = t; + CreateTaxFormVariablesBuilder dob(Timestamp? t) { + _dob.value = t; return this; } - CreateTaxFormVariablesBuilder formData(AnyValue? t) { - _formData.value = t; + CreateTaxFormVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + CreateTaxFormVariablesBuilder phone(String? t) { + _phone.value = t; + return this; + } + CreateTaxFormVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + CreateTaxFormVariablesBuilder apt(String? t) { + _apt.value = t; + return this; + } + CreateTaxFormVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + CreateTaxFormVariablesBuilder zipCode(String? t) { + _zipCode.value = t; + return this; + } + CreateTaxFormVariablesBuilder marital(MaritalStatus? t) { + _marital.value = t; + return this; + } + CreateTaxFormVariablesBuilder multipleJob(bool? t) { + _multipleJob.value = t; + return this; + } + CreateTaxFormVariablesBuilder childrens(int? t) { + _childrens.value = t; + return this; + } + CreateTaxFormVariablesBuilder otherDeps(int? t) { + _otherDeps.value = t; + return this; + } + CreateTaxFormVariablesBuilder totalCredits(double? t) { + _totalCredits.value = t; + return this; + } + CreateTaxFormVariablesBuilder otherInconme(double? t) { + _otherInconme.value = t; + return this; + } + CreateTaxFormVariablesBuilder deductions(double? t) { + _deductions.value = t; + return this; + } + CreateTaxFormVariablesBuilder extraWithholding(double? t) { + _extraWithholding.value = t; + return this; + } + CreateTaxFormVariablesBuilder citizen(CitizenshipStatus? t) { + _citizen.value = t; + return this; + } + CreateTaxFormVariablesBuilder uscis(String? t) { + _uscis.value = t; + return this; + } + CreateTaxFormVariablesBuilder passportNumber(String? t) { + _passportNumber.value = t; + return this; + } + CreateTaxFormVariablesBuilder countryIssue(String? t) { + _countryIssue.value = t; + return this; + } + CreateTaxFormVariablesBuilder prepartorOrTranslator(bool? t) { + _prepartorOrTranslator.value = t; + return this; + } + CreateTaxFormVariablesBuilder signature(String? t) { + _signature.value = t; + return this; + } + CreateTaxFormVariablesBuilder date(Timestamp? t) { + _date.value = t; + return this; + } + CreateTaxFormVariablesBuilder createdBy(String? t) { + _createdBy.value = t; return this; } - CreateTaxFormVariablesBuilder(this._dataConnect, {required this.formType,required this.title,required this.staffId,}); + CreateTaxFormVariablesBuilder(this._dataConnect, {required this.formType,required this.firstName,required this.lastName,required this.socialSN,required this.address,required this.status,required this.staffId,}); Deserializer dataDeserializer = (dynamic json) => CreateTaxFormData.fromJson(jsonDecode(json)); Serializer varsSerializer = (CreateTaxFormVariables vars) => jsonEncode(vars.toJson()); Future> execute() { @@ -34,7 +143,7 @@ class CreateTaxFormVariablesBuilder { } MutationRef ref() { - CreateTaxFormVariables vars= CreateTaxFormVariables(formType: formType,title: title,subtitle: _subtitle,description: _description,status: _status,staffId: staffId,formData: _formData,); + CreateTaxFormVariables vars= CreateTaxFormVariables(formType: formType,firstName: firstName,lastName: lastName,mInitial: _mInitial,oLastName: _oLastName,dob: _dob,socialSN: socialSN,email: _email,phone: _phone,address: address,city: _city,apt: _apt,state: _state,zipCode: _zipCode,marital: _marital,multipleJob: _multipleJob,childrens: _childrens,otherDeps: _otherDeps,totalCredits: _totalCredits,otherInconme: _otherInconme,deductions: _deductions,extraWithholding: _extraWithholding,citizen: _citizen,uscis: _uscis,passportNumber: _passportNumber,countryIssue: _countryIssue,prepartorOrTranslator: _prepartorOrTranslator,signature: _signature,date: _date,status: status,staffId: staffId,createdBy: _createdBy,); return _dataConnect.mutation("createTaxForm", dataDeserializer, varsSerializer, vars); } } @@ -110,37 +219,154 @@ class CreateTaxFormData { @immutable class CreateTaxFormVariables { final TaxFormType formType; - final String title; - late final Optionalsubtitle; - late final Optionaldescription; - late final Optionalstatus; + final String firstName; + final String lastName; + late final OptionalmInitial; + late final OptionaloLastName; + late final Optionaldob; + final int socialSN; + late final Optionalemail; + late final Optionalphone; + final String address; + late final Optionalcity; + late final Optionalapt; + late final Optionalstate; + late final OptionalzipCode; + late final Optionalmarital; + late final OptionalmultipleJob; + late final Optionalchildrens; + late final OptionalotherDeps; + late final OptionaltotalCredits; + late final OptionalotherInconme; + late final Optionaldeductions; + late final OptionalextraWithholding; + late final Optionalcitizen; + late final Optionaluscis; + late final OptionalpassportNumber; + late final OptionalcountryIssue; + late final OptionalprepartorOrTranslator; + late final Optionalsignature; + late final Optionaldate; + final TaxFormStatus status; final String staffId; - late final OptionalformData; + late final OptionalcreatedBy; @Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.') CreateTaxFormVariables.fromJson(Map json): formType = TaxFormType.values.byName(json['formType']), - title = nativeFromJson(json['title']), + firstName = nativeFromJson(json['firstName']), + lastName = nativeFromJson(json['lastName']), + socialSN = nativeFromJson(json['socialSN']), + address = nativeFromJson(json['address']), + status = TaxFormStatus.values.byName(json['status']), staffId = nativeFromJson(json['staffId']) { - subtitle = Optional.optional(nativeFromJson, nativeToJson); - subtitle.value = json['subtitle'] == null ? null : nativeFromJson(json['subtitle']); + + mInitial = Optional.optional(nativeFromJson, nativeToJson); + mInitial.value = json['mInitial'] == null ? null : nativeFromJson(json['mInitial']); - description = Optional.optional(nativeFromJson, nativeToJson); - description.value = json['description'] == null ? null : nativeFromJson(json['description']); + oLastName = Optional.optional(nativeFromJson, nativeToJson); + oLastName.value = json['oLastName'] == null ? null : nativeFromJson(json['oLastName']); - status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer); - status.value = json['status'] == null ? null : TaxFormStatus.values.byName(json['status']); + dob = Optional.optional((json) => json['dob'] = Timestamp.fromJson(json['dob']), defaultSerializer); + dob.value = json['dob'] == null ? null : Timestamp.fromJson(json['dob']); - formData = Optional.optional(AnyValue.fromJson, defaultSerializer); - formData.value = json['formData'] == null ? null : AnyValue.fromJson(json['formData']); + email = Optional.optional(nativeFromJson, nativeToJson); + email.value = json['email'] == null ? null : nativeFromJson(json['email']); + + + phone = Optional.optional(nativeFromJson, nativeToJson); + phone.value = json['phone'] == null ? null : nativeFromJson(json['phone']); + + + + city = Optional.optional(nativeFromJson, nativeToJson); + city.value = json['city'] == null ? null : nativeFromJson(json['city']); + + + apt = Optional.optional(nativeFromJson, nativeToJson); + apt.value = json['apt'] == null ? null : nativeFromJson(json['apt']); + + + state = Optional.optional(nativeFromJson, nativeToJson); + state.value = json['state'] == null ? null : nativeFromJson(json['state']); + + + zipCode = Optional.optional(nativeFromJson, nativeToJson); + zipCode.value = json['zipCode'] == null ? null : nativeFromJson(json['zipCode']); + + + marital = Optional.optional((data) => MaritalStatus.values.byName(data), enumSerializer); + marital.value = json['marital'] == null ? null : MaritalStatus.values.byName(json['marital']); + + + multipleJob = Optional.optional(nativeFromJson, nativeToJson); + multipleJob.value = json['multipleJob'] == null ? null : nativeFromJson(json['multipleJob']); + + + childrens = Optional.optional(nativeFromJson, nativeToJson); + childrens.value = json['childrens'] == null ? null : nativeFromJson(json['childrens']); + + + otherDeps = Optional.optional(nativeFromJson, nativeToJson); + otherDeps.value = json['otherDeps'] == null ? null : nativeFromJson(json['otherDeps']); + + + totalCredits = Optional.optional(nativeFromJson, nativeToJson); + totalCredits.value = json['totalCredits'] == null ? null : nativeFromJson(json['totalCredits']); + + + otherInconme = Optional.optional(nativeFromJson, nativeToJson); + otherInconme.value = json['otherInconme'] == null ? null : nativeFromJson(json['otherInconme']); + + + deductions = Optional.optional(nativeFromJson, nativeToJson); + deductions.value = json['deductions'] == null ? null : nativeFromJson(json['deductions']); + + + extraWithholding = Optional.optional(nativeFromJson, nativeToJson); + extraWithholding.value = json['extraWithholding'] == null ? null : nativeFromJson(json['extraWithholding']); + + + citizen = Optional.optional((data) => CitizenshipStatus.values.byName(data), enumSerializer); + citizen.value = json['citizen'] == null ? null : CitizenshipStatus.values.byName(json['citizen']); + + + uscis = Optional.optional(nativeFromJson, nativeToJson); + uscis.value = json['uscis'] == null ? null : nativeFromJson(json['uscis']); + + + passportNumber = Optional.optional(nativeFromJson, nativeToJson); + passportNumber.value = json['passportNumber'] == null ? null : nativeFromJson(json['passportNumber']); + + + countryIssue = Optional.optional(nativeFromJson, nativeToJson); + countryIssue.value = json['countryIssue'] == null ? null : nativeFromJson(json['countryIssue']); + + + prepartorOrTranslator = Optional.optional(nativeFromJson, nativeToJson); + prepartorOrTranslator.value = json['prepartorOrTranslator'] == null ? null : nativeFromJson(json['prepartorOrTranslator']); + + + signature = Optional.optional(nativeFromJson, nativeToJson); + signature.value = json['signature'] == null ? null : nativeFromJson(json['signature']); + + + date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer); + date.value = json['date'] == null ? null : Timestamp.fromJson(json['date']); + + + + + createdBy = Optional.optional(nativeFromJson, nativeToJson); + createdBy.value = json['createdBy'] == null ? null : nativeFromJson(json['createdBy']); } @override @@ -154,16 +380,41 @@ class CreateTaxFormVariables { final CreateTaxFormVariables otherTyped = other as CreateTaxFormVariables; return formType == otherTyped.formType && - title == otherTyped.title && - subtitle == otherTyped.subtitle && - description == otherTyped.description && + firstName == otherTyped.firstName && + lastName == otherTyped.lastName && + mInitial == otherTyped.mInitial && + oLastName == otherTyped.oLastName && + dob == otherTyped.dob && + socialSN == otherTyped.socialSN && + email == otherTyped.email && + phone == otherTyped.phone && + address == otherTyped.address && + city == otherTyped.city && + apt == otherTyped.apt && + state == otherTyped.state && + zipCode == otherTyped.zipCode && + marital == otherTyped.marital && + multipleJob == otherTyped.multipleJob && + childrens == otherTyped.childrens && + otherDeps == otherTyped.otherDeps && + totalCredits == otherTyped.totalCredits && + otherInconme == otherTyped.otherInconme && + deductions == otherTyped.deductions && + extraWithholding == otherTyped.extraWithholding && + citizen == otherTyped.citizen && + uscis == otherTyped.uscis && + passportNumber == otherTyped.passportNumber && + countryIssue == otherTyped.countryIssue && + prepartorOrTranslator == otherTyped.prepartorOrTranslator && + signature == otherTyped.signature && + date == otherTyped.date && status == otherTyped.status && staffId == otherTyped.staffId && - formData == otherTyped.formData; + createdBy == otherTyped.createdBy; } @override - int get hashCode => Object.hashAll([formType.hashCode, title.hashCode, subtitle.hashCode, description.hashCode, status.hashCode, staffId.hashCode, formData.hashCode]); + int get hashCode => Object.hashAll([formType.hashCode, firstName.hashCode, lastName.hashCode, mInitial.hashCode, oLastName.hashCode, dob.hashCode, socialSN.hashCode, email.hashCode, phone.hashCode, address.hashCode, city.hashCode, apt.hashCode, state.hashCode, zipCode.hashCode, marital.hashCode, multipleJob.hashCode, childrens.hashCode, otherDeps.hashCode, totalCredits.hashCode, otherInconme.hashCode, deductions.hashCode, extraWithholding.hashCode, citizen.hashCode, uscis.hashCode, passportNumber.hashCode, countryIssue.hashCode, prepartorOrTranslator.hashCode, signature.hashCode, date.hashCode, status.hashCode, staffId.hashCode, createdBy.hashCode]); Map toJson() { @@ -171,31 +422,125 @@ class CreateTaxFormVariables { json['formType'] = formType.name ; - json['title'] = nativeToJson(title); - if(subtitle.state == OptionalState.set) { - json['subtitle'] = subtitle.toJson(); + json['firstName'] = nativeToJson(firstName); + json['lastName'] = nativeToJson(lastName); + if(mInitial.state == OptionalState.set) { + json['mInitial'] = mInitial.toJson(); } - if(description.state == OptionalState.set) { - json['description'] = description.toJson(); + if(oLastName.state == OptionalState.set) { + json['oLastName'] = oLastName.toJson(); } - if(status.state == OptionalState.set) { - json['status'] = status.toJson(); + if(dob.state == OptionalState.set) { + json['dob'] = dob.toJson(); } + json['socialSN'] = nativeToJson(socialSN); + if(email.state == OptionalState.set) { + json['email'] = email.toJson(); + } + if(phone.state == OptionalState.set) { + json['phone'] = phone.toJson(); + } + json['address'] = nativeToJson(address); + if(city.state == OptionalState.set) { + json['city'] = city.toJson(); + } + if(apt.state == OptionalState.set) { + json['apt'] = apt.toJson(); + } + if(state.state == OptionalState.set) { + json['state'] = state.toJson(); + } + if(zipCode.state == OptionalState.set) { + json['zipCode'] = zipCode.toJson(); + } + if(marital.state == OptionalState.set) { + json['marital'] = marital.toJson(); + } + if(multipleJob.state == OptionalState.set) { + json['multipleJob'] = multipleJob.toJson(); + } + if(childrens.state == OptionalState.set) { + json['childrens'] = childrens.toJson(); + } + if(otherDeps.state == OptionalState.set) { + json['otherDeps'] = otherDeps.toJson(); + } + if(totalCredits.state == OptionalState.set) { + json['totalCredits'] = totalCredits.toJson(); + } + if(otherInconme.state == OptionalState.set) { + json['otherInconme'] = otherInconme.toJson(); + } + if(deductions.state == OptionalState.set) { + json['deductions'] = deductions.toJson(); + } + if(extraWithholding.state == OptionalState.set) { + json['extraWithholding'] = extraWithholding.toJson(); + } + if(citizen.state == OptionalState.set) { + json['citizen'] = citizen.toJson(); + } + if(uscis.state == OptionalState.set) { + json['uscis'] = uscis.toJson(); + } + if(passportNumber.state == OptionalState.set) { + json['passportNumber'] = passportNumber.toJson(); + } + if(countryIssue.state == OptionalState.set) { + json['countryIssue'] = countryIssue.toJson(); + } + if(prepartorOrTranslator.state == OptionalState.set) { + json['prepartorOrTranslator'] = prepartorOrTranslator.toJson(); + } + if(signature.state == OptionalState.set) { + json['signature'] = signature.toJson(); + } + if(date.state == OptionalState.set) { + json['date'] = date.toJson(); + } + json['status'] = + status.name + ; json['staffId'] = nativeToJson(staffId); - if(formData.state == OptionalState.set) { - json['formData'] = formData.toJson(); + if(createdBy.state == OptionalState.set) { + json['createdBy'] = createdBy.toJson(); } return json; } CreateTaxFormVariables({ required this.formType, - required this.title, - required this.subtitle, - required this.description, + required this.firstName, + required this.lastName, + required this.mInitial, + required this.oLastName, + required this.dob, + required this.socialSN, + required this.email, + required this.phone, + required this.address, + required this.city, + required this.apt, + required this.state, + required this.zipCode, + required this.marital, + required this.multipleJob, + required this.childrens, + required this.otherDeps, + required this.totalCredits, + required this.otherInconme, + required this.deductions, + required this.extraWithholding, + required this.citizen, + required this.uscis, + required this.passportNumber, + required this.countryIssue, + required this.prepartorOrTranslator, + required this.signature, + required this.date, required this.status, required this.staffId, - required this.formData, + required this.createdBy, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/create_team_hub.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/create_team_hub.dart index c7d51d5b..61fc1a55 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/create_team_hub.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/create_team_hub.dart @@ -4,14 +4,31 @@ class CreateTeamHubVariablesBuilder { String teamId; String hubName; String address; + Optional _placeId = Optional.optional(nativeFromJson, nativeToJson); + Optional _latitude = Optional.optional(nativeFromJson, nativeToJson); + Optional _longitude = Optional.optional(nativeFromJson, nativeToJson); Optional _city = Optional.optional(nativeFromJson, nativeToJson); Optional _state = Optional.optional(nativeFromJson, nativeToJson); + Optional _street = Optional.optional(nativeFromJson, nativeToJson); + Optional _country = Optional.optional(nativeFromJson, nativeToJson); Optional _zipCode = Optional.optional(nativeFromJson, nativeToJson); Optional _managerName = Optional.optional(nativeFromJson, nativeToJson); Optional _isActive = Optional.optional(nativeFromJson, nativeToJson); Optional _departments = Optional.optional(AnyValue.fromJson, defaultSerializer); - final FirebaseDataConnect _dataConnect; CreateTeamHubVariablesBuilder city(String? t) { + final FirebaseDataConnect _dataConnect; CreateTeamHubVariablesBuilder placeId(String? t) { + _placeId.value = t; + return this; + } + CreateTeamHubVariablesBuilder latitude(double? t) { + _latitude.value = t; + return this; + } + CreateTeamHubVariablesBuilder longitude(double? t) { + _longitude.value = t; + return this; + } + CreateTeamHubVariablesBuilder city(String? t) { _city.value = t; return this; } @@ -19,6 +36,14 @@ class CreateTeamHubVariablesBuilder { _state.value = t; return this; } + CreateTeamHubVariablesBuilder street(String? t) { + _street.value = t; + return this; + } + CreateTeamHubVariablesBuilder country(String? t) { + _country.value = t; + return this; + } CreateTeamHubVariablesBuilder zipCode(String? t) { _zipCode.value = t; return this; @@ -44,7 +69,7 @@ class CreateTeamHubVariablesBuilder { } MutationRef ref() { - CreateTeamHubVariables vars= CreateTeamHubVariables(teamId: teamId,hubName: hubName,address: address,city: _city,state: _state,zipCode: _zipCode,managerName: _managerName,isActive: _isActive,departments: _departments,); + CreateTeamHubVariables vars= CreateTeamHubVariables(teamId: teamId,hubName: hubName,address: address,placeId: _placeId,latitude: _latitude,longitude: _longitude,city: _city,state: _state,street: _street,country: _country,zipCode: _zipCode,managerName: _managerName,isActive: _isActive,departments: _departments,); return _dataConnect.mutation("createTeamHub", dataDeserializer, varsSerializer, vars); } } @@ -122,8 +147,13 @@ class CreateTeamHubVariables { final String teamId; final String hubName; final String address; + late final OptionalplaceId; + late final Optionallatitude; + late final Optionallongitude; late final Optionalcity; late final Optionalstate; + late final Optionalstreet; + late final Optionalcountry; late final OptionalzipCode; late final OptionalmanagerName; late final OptionalisActive; @@ -139,6 +169,18 @@ class CreateTeamHubVariables { + placeId = Optional.optional(nativeFromJson, nativeToJson); + placeId.value = json['placeId'] == null ? null : nativeFromJson(json['placeId']); + + + latitude = Optional.optional(nativeFromJson, nativeToJson); + latitude.value = json['latitude'] == null ? null : nativeFromJson(json['latitude']); + + + longitude = Optional.optional(nativeFromJson, nativeToJson); + longitude.value = json['longitude'] == null ? null : nativeFromJson(json['longitude']); + + city = Optional.optional(nativeFromJson, nativeToJson); city.value = json['city'] == null ? null : nativeFromJson(json['city']); @@ -147,6 +189,14 @@ class CreateTeamHubVariables { state.value = json['state'] == null ? null : nativeFromJson(json['state']); + street = Optional.optional(nativeFromJson, nativeToJson); + street.value = json['street'] == null ? null : nativeFromJson(json['street']); + + + country = Optional.optional(nativeFromJson, nativeToJson); + country.value = json['country'] == null ? null : nativeFromJson(json['country']); + + zipCode = Optional.optional(nativeFromJson, nativeToJson); zipCode.value = json['zipCode'] == null ? null : nativeFromJson(json['zipCode']); @@ -176,8 +226,13 @@ class CreateTeamHubVariables { return teamId == otherTyped.teamId && hubName == otherTyped.hubName && address == otherTyped.address && + placeId == otherTyped.placeId && + latitude == otherTyped.latitude && + longitude == otherTyped.longitude && city == otherTyped.city && state == otherTyped.state && + street == otherTyped.street && + country == otherTyped.country && zipCode == otherTyped.zipCode && managerName == otherTyped.managerName && isActive == otherTyped.isActive && @@ -185,7 +240,7 @@ class CreateTeamHubVariables { } @override - int get hashCode => Object.hashAll([teamId.hashCode, hubName.hashCode, address.hashCode, city.hashCode, state.hashCode, zipCode.hashCode, managerName.hashCode, isActive.hashCode, departments.hashCode]); + int get hashCode => Object.hashAll([teamId.hashCode, hubName.hashCode, address.hashCode, placeId.hashCode, latitude.hashCode, longitude.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, zipCode.hashCode, managerName.hashCode, isActive.hashCode, departments.hashCode]); Map toJson() { @@ -193,12 +248,27 @@ class CreateTeamHubVariables { json['teamId'] = nativeToJson(teamId); json['hubName'] = nativeToJson(hubName); json['address'] = nativeToJson(address); + if(placeId.state == OptionalState.set) { + json['placeId'] = placeId.toJson(); + } + if(latitude.state == OptionalState.set) { + json['latitude'] = latitude.toJson(); + } + if(longitude.state == OptionalState.set) { + json['longitude'] = longitude.toJson(); + } if(city.state == OptionalState.set) { json['city'] = city.toJson(); } if(state.state == OptionalState.set) { json['state'] = state.toJson(); } + if(street.state == OptionalState.set) { + json['street'] = street.toJson(); + } + if(country.state == OptionalState.set) { + json['country'] = country.toJson(); + } if(zipCode.state == OptionalState.set) { json['zipCode'] = zipCode.toJson(); } @@ -218,8 +288,13 @@ class CreateTeamHubVariables { required this.teamId, required this.hubName, required this.address, + required this.placeId, + required this.latitude, + required this.longitude, required this.city, required this.state, + required this.street, + required this.country, required this.zipCode, required this.managerName, required this.isActive, diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/filter_invoices.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/filter_invoices.dart index 6a4dd128..59b76475 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/filter_invoices.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/filter_invoices.dart @@ -371,15 +371,15 @@ class FilterInvoicesInvoicesBusiness { @immutable class FilterInvoicesInvoicesOrder { final String? eventName; - final String? hub; final String? deparment; final String? poReference; + final FilterInvoicesInvoicesOrderTeamHub teamHub; FilterInvoicesInvoicesOrder.fromJson(dynamic json): eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - hub = json['hub'] == null ? null : nativeFromJson(json['hub']), deparment = json['deparment'] == null ? null : nativeFromJson(json['deparment']), - poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']); + poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']), + teamHub = FilterInvoicesInvoicesOrderTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -391,13 +391,13 @@ class FilterInvoicesInvoicesOrder { final FilterInvoicesInvoicesOrder otherTyped = other as FilterInvoicesInvoicesOrder; return eventName == otherTyped.eventName && - hub == otherTyped.hub && deparment == otherTyped.deparment && - poReference == otherTyped.poReference; + poReference == otherTyped.poReference && + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]); + int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode, teamHub.hashCode]); Map toJson() { @@ -405,23 +405,67 @@ class FilterInvoicesInvoicesOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (hub != null) { - json['hub'] = nativeToJson(hub); - } if (deparment != null) { json['deparment'] = nativeToJson(deparment); } if (poReference != null) { json['poReference'] = nativeToJson(poReference); } + json['teamHub'] = teamHub.toJson(); return json; } FilterInvoicesInvoicesOrder({ this.eventName, - this.hub, this.deparment, this.poReference, + required this.teamHub, + }); +} + +@immutable +class FilterInvoicesInvoicesOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + FilterInvoicesInvoicesOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final FilterInvoicesInvoicesOrderTeamHub otherTyped = other as FilterInvoicesInvoicesOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + FilterInvoicesInvoicesOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/filter_shifts.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/filter_shifts.dart index c82e41c4..3afa19a6 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/filter_shifts.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/filter_shifts.dart @@ -61,6 +61,11 @@ class FilterShiftsShifts { final String? locationAddress; final double? latitude; final double? longitude; + final String? placeId; + final String? city; + final String? state; + final String? street; + final String? country; final String? description; final EnumValue? status; final int? workersNeeded; @@ -86,6 +91,11 @@ class FilterShiftsShifts { locationAddress = json['locationAddress'] == null ? null : nativeFromJson(json['locationAddress']), latitude = json['latitude'] == null ? null : nativeFromJson(json['latitude']), longitude = json['longitude'] == null ? null : nativeFromJson(json['longitude']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + city = json['city'] == null ? null : nativeFromJson(json['city']), + state = json['state'] == null ? null : nativeFromJson(json['state']), + street = json['street'] == null ? null : nativeFromJson(json['street']), + country = json['country'] == null ? null : nativeFromJson(json['country']), description = json['description'] == null ? null : nativeFromJson(json['description']), status = json['status'] == null ? null : shiftStatusDeserializer(json['status']), workersNeeded = json['workersNeeded'] == null ? null : nativeFromJson(json['workersNeeded']), @@ -121,6 +131,11 @@ class FilterShiftsShifts { locationAddress == otherTyped.locationAddress && latitude == otherTyped.latitude && longitude == otherTyped.longitude && + placeId == otherTyped.placeId && + city == otherTyped.city && + state == otherTyped.state && + street == otherTyped.street && + country == otherTyped.country && description == otherTyped.description && status == otherTyped.status && workersNeeded == otherTyped.workersNeeded && @@ -135,7 +150,7 @@ class FilterShiftsShifts { } @override - int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, placeId.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]); Map toJson() { @@ -170,6 +185,21 @@ class FilterShiftsShifts { if (longitude != null) { json['longitude'] = nativeToJson(longitude); } + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + if (city != null) { + json['city'] = nativeToJson(city); + } + if (state != null) { + json['state'] = nativeToJson(state); + } + if (street != null) { + json['street'] = nativeToJson(street); + } + if (country != null) { + json['country'] = nativeToJson(country); + } if (description != null) { json['description'] = nativeToJson(description); } @@ -219,6 +249,11 @@ class FilterShiftsShifts { this.locationAddress, this.latitude, this.longitude, + this.placeId, + this.city, + this.state, + this.street, + this.country, this.description, this.status, this.workersNeeded, diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/filter_tax_forms.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/filter_tax_forms.dart deleted file mode 100644 index bbfbe1cc..00000000 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/filter_tax_forms.dart +++ /dev/null @@ -1,189 +0,0 @@ -part of 'generated.dart'; - -class FilterTaxFormsVariablesBuilder { - Optional _formType = Optional.optional((data) => TaxFormType.values.byName(data), enumSerializer); - Optional _status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer); - Optional _staffId = Optional.optional(nativeFromJson, nativeToJson); - - final FirebaseDataConnect _dataConnect; - FilterTaxFormsVariablesBuilder formType(TaxFormType? t) { - _formType.value = t; - return this; - } - FilterTaxFormsVariablesBuilder status(TaxFormStatus? t) { - _status.value = t; - return this; - } - FilterTaxFormsVariablesBuilder staffId(String? t) { - _staffId.value = t; - return this; - } - - FilterTaxFormsVariablesBuilder(this._dataConnect, ); - Deserializer dataDeserializer = (dynamic json) => FilterTaxFormsData.fromJson(jsonDecode(json)); - Serializer varsSerializer = (FilterTaxFormsVariables vars) => jsonEncode(vars.toJson()); - Future> execute() { - return ref().execute(); - } - - QueryRef ref() { - FilterTaxFormsVariables vars= FilterTaxFormsVariables(formType: _formType,status: _status,staffId: _staffId,); - return _dataConnect.query("filterTaxForms", dataDeserializer, varsSerializer, vars); - } -} - -@immutable -class FilterTaxFormsTaxForms { - final String id; - final EnumValue formType; - final String title; - final EnumValue status; - final String staffId; - FilterTaxFormsTaxForms.fromJson(dynamic json): - - id = nativeFromJson(json['id']), - formType = taxFormTypeDeserializer(json['formType']), - title = nativeFromJson(json['title']), - status = taxFormStatusDeserializer(json['status']), - staffId = nativeFromJson(json['staffId']); - @override - bool operator ==(Object other) { - if(identical(this, other)) { - return true; - } - if(other.runtimeType != runtimeType) { - return false; - } - - final FilterTaxFormsTaxForms otherTyped = other as FilterTaxFormsTaxForms; - return id == otherTyped.id && - formType == otherTyped.formType && - title == otherTyped.title && - status == otherTyped.status && - staffId == otherTyped.staffId; - - } - @override - int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, title.hashCode, status.hashCode, staffId.hashCode]); - - - Map toJson() { - Map json = {}; - json['id'] = nativeToJson(id); - json['formType'] = - taxFormTypeSerializer(formType) - ; - json['title'] = nativeToJson(title); - json['status'] = - taxFormStatusSerializer(status) - ; - json['staffId'] = nativeToJson(staffId); - return json; - } - - FilterTaxFormsTaxForms({ - required this.id, - required this.formType, - required this.title, - required this.status, - required this.staffId, - }); -} - -@immutable -class FilterTaxFormsData { - final List taxForms; - FilterTaxFormsData.fromJson(dynamic json): - - taxForms = (json['taxForms'] as List) - .map((e) => FilterTaxFormsTaxForms.fromJson(e)) - .toList(); - @override - bool operator ==(Object other) { - if(identical(this, other)) { - return true; - } - if(other.runtimeType != runtimeType) { - return false; - } - - final FilterTaxFormsData otherTyped = other as FilterTaxFormsData; - return taxForms == otherTyped.taxForms; - - } - @override - int get hashCode => taxForms.hashCode; - - - Map toJson() { - Map json = {}; - json['taxForms'] = taxForms.map((e) => e.toJson()).toList(); - return json; - } - - FilterTaxFormsData({ - required this.taxForms, - }); -} - -@immutable -class FilterTaxFormsVariables { - late final OptionalformType; - late final Optionalstatus; - late final OptionalstaffId; - @Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.') - FilterTaxFormsVariables.fromJson(Map json) { - - - formType = Optional.optional((data) => TaxFormType.values.byName(data), enumSerializer); - formType.value = json['formType'] == null ? null : TaxFormType.values.byName(json['formType']); - - - status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer); - status.value = json['status'] == null ? null : TaxFormStatus.values.byName(json['status']); - - - staffId = Optional.optional(nativeFromJson, nativeToJson); - staffId.value = json['staffId'] == null ? null : nativeFromJson(json['staffId']); - - } - @override - bool operator ==(Object other) { - if(identical(this, other)) { - return true; - } - if(other.runtimeType != runtimeType) { - return false; - } - - final FilterTaxFormsVariables otherTyped = other as FilterTaxFormsVariables; - return formType == otherTyped.formType && - status == otherTyped.status && - staffId == otherTyped.staffId; - - } - @override - int get hashCode => Object.hashAll([formType.hashCode, status.hashCode, staffId.hashCode]); - - - Map toJson() { - Map json = {}; - if(formType.state == OptionalState.set) { - json['formType'] = formType.toJson(); - } - if(status.state == OptionalState.set) { - json['status'] = status.toJson(); - } - if(staffId.state == OptionalState.set) { - json['staffId'] = staffId.toJson(); - } - return json; - } - - FilterTaxFormsVariables({ - required this.formType, - required this.status, - required this.staffId, - }); -} - diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/generated.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/generated.dart index 326b1641..e7b339b5 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/generated.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/generated.dart @@ -4,97 +4,121 @@ import 'package:flutter/foundation.dart'; import 'dart:convert'; import 'package:flutter/foundation.dart'; -part 'create_faq_data.dart'; +part 'create_recent_payment.dart'; -part 'update_faq_data.dart'; +part 'update_recent_payment.dart'; -part 'delete_faq_data.dart'; +part 'delete_recent_payment.dart'; -part 'create_staff_availability.dart'; +part 'create_staff.dart'; -part 'update_staff_availability.dart'; +part 'update_staff.dart'; -part 'delete_staff_availability.dart'; +part 'delete_staff.dart'; -part 'list_staff_availability_stats.dart'; +part 'get_staff_document_by_key.dart'; -part 'get_staff_availability_stats_by_staff_id.dart'; +part 'list_staff_documents_by_staff_id.dart'; -part 'filter_staff_availability_stats.dart'; +part 'list_staff_documents_by_document_type.dart'; -part 'create_tax_form.dart'; +part 'list_staff_documents_by_status.dart'; -part 'update_tax_form.dart'; +part 'list_tax_forms.dart'; -part 'delete_tax_form.dart'; +part 'get_tax_form_by_id.dart'; -part 'list_hubs.dart'; +part 'get_tax_forms_by_staff_id.dart'; -part 'get_hub_by_id.dart'; +part 'list_tax_forms_where.dart'; -part 'get_hubs_by_owner_id.dart'; +part 'list_team_hubs.dart'; -part 'filter_hubs.dart'; +part 'get_team_hub_by_id.dart'; -part 'create_message.dart'; +part 'get_team_hubs_by_team_id.dart'; -part 'update_message.dart'; +part 'list_team_hubs_by_owner_id.dart'; -part 'delete_message.dart'; +part 'create_activity_log.dart'; -part 'create_vendor.dart'; +part 'update_activity_log.dart'; -part 'update_vendor.dart'; +part 'mark_activity_log_as_read.dart'; -part 'delete_vendor.dart'; +part 'mark_activity_logs_as_read.dart'; -part 'create_account.dart'; +part 'delete_activity_log.dart'; -part 'update_account.dart'; +part 'create_level.dart'; -part 'delete_account.dart'; +part 'update_level.dart'; -part 'create_shift_role.dart'; +part 'delete_level.dart'; -part 'update_shift_role.dart'; +part 'create_member_task.dart'; -part 'delete_shift_role.dart'; +part 'delete_member_task.dart'; -part 'create_staff_availability_stats.dart'; +part 'list_shifts.dart'; -part 'update_staff_availability_stats.dart'; +part 'get_shift_by_id.dart'; -part 'delete_staff_availability_stats.dart'; +part 'filter_shifts.dart'; -part 'create_task_comment.dart'; +part 'get_shifts_by_business_id.dart'; -part 'update_task_comment.dart'; +part 'get_shifts_by_vendor_id.dart'; -part 'delete_task_comment.dart'; +part 'list_staff.dart'; -part 'list_assignments.dart'; +part 'get_staff_by_id.dart'; -part 'get_assignment_by_id.dart'; +part 'get_staff_by_user_id.dart'; -part 'list_assignments_by_workforce_id.dart'; +part 'filter_staff.dart'; -part 'list_assignments_by_workforce_ids.dart'; +part 'list_teams.dart'; -part 'list_assignments_by_shift_role.dart'; +part 'get_team_by_id.dart'; -part 'filter_assignments.dart'; +part 'get_teams_by_owner_id.dart'; -part 'create_custom_rate_card.dart'; +part 'create_team_member.dart'; -part 'update_custom_rate_card.dart'; +part 'update_team_member.dart'; -part 'delete_custom_rate_card.dart'; +part 'update_team_member_invite_status.dart'; -part 'list_documents.dart'; +part 'accept_invite_by_code.dart'; -part 'get_document_by_id.dart'; +part 'cancel_invite_by_code.dart'; -part 'filter_documents.dart'; +part 'delete_team_member.dart'; + +part 'create_course.dart'; + +part 'update_course.dart'; + +part 'delete_course.dart'; + +part 'create_document.dart'; + +part 'update_document.dart'; + +part 'delete_document.dart'; + +part 'create_invoice.dart'; + +part 'update_invoice.dart'; + +part 'delete_invoice.dart'; + +part 'get_my_tasks.dart'; + +part 'get_member_task_by_id_key.dart'; + +part 'get_member_tasks_by_task_id.dart'; part 'get_shift_role_by_id.dart'; @@ -116,47 +140,11 @@ part 'list_shift_roles_by_business_and_dates_summary.dart'; part 'get_completed_shifts_by_business_id.dart'; -part 'create_activity_log.dart'; +part 'create_staff_document.dart'; -part 'update_activity_log.dart'; +part 'update_staff_document.dart'; -part 'mark_activity_log_as_read.dart'; - -part 'mark_activity_logs_as_read.dart'; - -part 'delete_activity_log.dart'; - -part 'list_role_categories.dart'; - -part 'get_role_category_by_id.dart'; - -part 'get_role_categories_by_category.dart'; - -part 'get_vendor_by_id.dart'; - -part 'get_vendor_by_user_id.dart'; - -part 'list_vendors.dart'; - -part 'get_workforce_by_id.dart'; - -part 'get_workforce_by_vendor_and_staff.dart'; - -part 'list_workforce_by_vendor_id.dart'; - -part 'list_workforce_by_staff_id.dart'; - -part 'get_workforce_by_vendor_and_number.dart'; - -part 'create_member_task.dart'; - -part 'delete_member_task.dart'; - -part 'create_staff.dart'; - -part 'update_staff.dart'; - -part 'delete_staff.dart'; +part 'delete_staff_document.dart'; part 'list_tasks.dart'; @@ -166,163 +154,11 @@ part 'get_tasks_by_owner_id.dart'; part 'filter_tasks.dart'; -part 'list_users.dart'; +part 'create_vendor.dart'; -part 'get_user_by_id.dart'; +part 'update_vendor.dart'; -part 'filter_users.dart'; - -part 'list_client_feedbacks.dart'; - -part 'get_client_feedback_by_id.dart'; - -part 'list_client_feedbacks_by_business_id.dart'; - -part 'list_client_feedbacks_by_vendor_id.dart'; - -part 'list_client_feedbacks_by_business_and_vendor.dart'; - -part 'filter_client_feedbacks.dart'; - -part 'list_client_feedback_ratings_by_vendor_id.dart'; - -part 'list_custom_rate_cards.dart'; - -part 'get_custom_rate_card_by_id.dart'; - -part 'create_application.dart'; - -part 'update_application_status.dart'; - -part 'delete_application.dart'; - -part 'create_certificate.dart'; - -part 'update_certificate.dart'; - -part 'delete_certificate.dart'; - -part 'create_hub.dart'; - -part 'update_hub.dart'; - -part 'delete_hub.dart'; - -part 'list_staff.dart'; - -part 'get_staff_by_id.dart'; - -part 'get_staff_by_user_id.dart'; - -part 'filter_staff.dart'; - -part 'create_staff_role.dart'; - -part 'delete_staff_role.dart'; - -part 'create_user_conversation.dart'; - -part 'update_user_conversation.dart'; - -part 'mark_conversation_as_read.dart'; - -part 'increment_unread_for_user.dart'; - -part 'delete_user_conversation.dart'; - -part 'create_category.dart'; - -part 'update_category.dart'; - -part 'delete_category.dart'; - -part 'list_categories.dart'; - -part 'get_category_by_id.dart'; - -part 'filter_categories.dart'; - -part 'create_document.dart'; - -part 'update_document.dart'; - -part 'delete_document.dart'; - -part 'list_messages.dart'; - -part 'get_message_by_id.dart'; - -part 'get_messages_by_conversation_id.dart'; - -part 'list_orders.dart'; - -part 'get_order_by_id.dart'; - -part 'get_orders_by_business_id.dart'; - -part 'get_orders_by_vendor_id.dart'; - -part 'get_orders_by_status.dart'; - -part 'get_orders_by_date_range.dart'; - -part 'get_rapid_orders.dart'; - -part 'get_staff_course_by_id.dart'; - -part 'list_staff_courses_by_staff_id.dart'; - -part 'list_staff_courses_by_course_id.dart'; - -part 'get_staff_course_by_staff_and_course.dart'; - -part 'list_tax_forms.dart'; - -part 'get_tax_form_by_id.dart'; - -part 'get_tax_forms_bystaff_id.dart'; - -part 'filter_tax_forms.dart'; - -part 'list_team_members.dart'; - -part 'get_team_member_by_id.dart'; - -part 'get_team_members_by_team_id.dart'; - -part 'list_certificates.dart'; - -part 'get_certificate_by_id.dart'; - -part 'list_certificates_by_staff_id.dart'; - -part 'create_conversation.dart'; - -part 'update_conversation.dart'; - -part 'update_conversation_last_message.dart'; - -part 'delete_conversation.dart'; - -part 'create_order.dart'; - -part 'update_order.dart'; - -part 'delete_order.dart'; - -part 'list_roles.dart'; - -part 'get_role_by_id.dart'; - -part 'list_roles_by_vendor_id.dart'; - -part 'list_roles_byrole_category_id.dart'; - -part 'create_role_category.dart'; - -part 'update_role_category.dart'; - -part 'delete_role_category.dart'; +part 'delete_vendor.dart'; part 'create_shift.dart'; @@ -330,62 +166,6 @@ part 'update_shift.dart'; part 'delete_shift.dart'; -part 'list_staff_availabilities.dart'; - -part 'list_staff_availabilities_by_staff_id.dart'; - -part 'get_staff_availability_by_key.dart'; - -part 'list_staff_availabilities_by_day.dart'; - -part 'create_team.dart'; - -part 'update_team.dart'; - -part 'delete_team.dart'; - -part 'list_conversations.dart'; - -part 'get_conversation_by_id.dart'; - -part 'list_conversations_by_type.dart'; - -part 'list_conversations_by_status.dart'; - -part 'filter_conversations.dart'; - -part 'list_courses.dart'; - -part 'get_course_by_id.dart'; - -part 'filter_courses.dart'; - -part 'get_my_tasks.dart'; - -part 'get_member_task_by_id_key.dart'; - -part 'get_member_tasks_by_task_id.dart'; - -part 'list_shifts.dart'; - -part 'get_shift_by_id.dart'; - -part 'filter_shifts.dart'; - -part 'get_shifts_by_business_id.dart'; - -part 'get_shifts_by_vendor_id.dart'; - -part 'list_staff_roles.dart'; - -part 'get_staff_role_by_key.dart'; - -part 'list_staff_roles_by_staff_id.dart'; - -part 'list_staff_roles_by_role_id.dart'; - -part 'filter_staff_roles.dart'; - part 'list_applications.dart'; part 'get_application_by_id.dart'; @@ -402,31 +182,59 @@ part 'list_accepted_applications_by_business_for_day.dart'; part 'list_staffs_applications_by_business_for_day.dart'; -part 'list_businesses.dart'; +part 'list_benefits_data.dart'; -part 'get_businesses_by_user_id.dart'; +part 'get_benefits_data_by_key.dart'; -part 'get_business_by_id.dart'; +part 'list_benefits_data_by_staff_id.dart'; -part 'list_invoice_templates.dart'; +part 'list_benefits_data_by_vendor_benefit_plan_id.dart'; -part 'get_invoice_template_by_id.dart'; +part 'list_benefits_data_by_vendor_benefit_plan_ids.dart'; -part 'list_invoice_templates_by_owner_id.dart'; +part 'list_certificates.dart'; -part 'list_invoice_templates_by_vendor_id.dart'; +part 'get_certificate_by_id.dart'; -part 'list_invoice_templates_by_business_id.dart'; +part 'list_certificates_by_staff_id.dart'; -part 'list_invoice_templates_by_order_id.dart'; +part 'list_conversations.dart'; -part 'search_invoice_templates_by_owner_and_name.dart'; +part 'get_conversation_by_id.dart'; -part 'list_levels.dart'; +part 'list_conversations_by_type.dart'; -part 'get_level_by_id.dart'; +part 'list_conversations_by_status.dart'; -part 'filter_levels.dart'; +part 'filter_conversations.dart'; + +part 'create_staff_role.dart'; + +part 'delete_staff_role.dart'; + +part 'create_vendor_benefit_plan.dart'; + +part 'update_vendor_benefit_plan.dart'; + +part 'delete_vendor_benefit_plan.dart'; + +part 'create_vendor_rate.dart'; + +part 'update_vendor_rate.dart'; + +part 'delete_vendor_rate.dart'; + +part 'create_faq_data.dart'; + +part 'update_faq_data.dart'; + +part 'delete_faq_data.dart'; + +part 'create_order.dart'; + +part 'update_order.dart'; + +part 'delete_order.dart'; part 'create_role.dart'; @@ -434,17 +242,21 @@ part 'update_role.dart'; part 'delete_role.dart'; -part 'create_team_hub.dart'; +part 'create_user_conversation.dart'; -part 'update_team_hub.dart'; +part 'update_user_conversation.dart'; -part 'delete_team_hub.dart'; +part 'mark_conversation_as_read.dart'; -part 'list_team_hud_departments.dart'; +part 'increment_unread_for_user.dart'; -part 'get_team_hud_department_by_id.dart'; +part 'delete_user_conversation.dart'; -part 'list_team_hud_departments_by_team_hub_id.dart'; +part 'create_staff_course.dart'; + +part 'update_staff_course.dart'; + +part 'delete_staff_course.dart'; part 'list_vendor_benefit_plans.dart'; @@ -456,33 +268,41 @@ part 'list_active_vendor_benefit_plans_by_vendor_id.dart'; part 'filter_vendor_benefit_plans.dart'; -part 'create_assignment.dart'; +part 'list_vendor_rates.dart'; -part 'update_assignment.dart'; +part 'get_vendor_rate_by_id.dart'; -part 'delete_assignment.dart'; +part 'get_workforce_by_id.dart'; -part 'list_attire_options.dart'; +part 'get_workforce_by_vendor_and_staff.dart'; -part 'get_attire_option_by_id.dart'; +part 'list_workforce_by_vendor_id.dart'; -part 'filter_attire_options.dart'; +part 'list_workforce_by_staff_id.dart'; -part 'list_benefits_data.dart'; +part 'get_workforce_by_vendor_and_number.dart'; -part 'get_benefits_data_by_key.dart'; +part 'list_activity_logs.dart'; -part 'list_benefits_data_by_staff_id.dart'; +part 'get_activity_log_by_id.dart'; -part 'list_benefits_data_by_vendor_benefit_plan_id.dart'; +part 'list_activity_logs_by_user_id.dart'; -part 'list_benefits_data_by_vendor_benefit_plan_ids.dart'; +part 'list_unread_activity_logs_by_user_id.dart'; -part 'create_staff_course.dart'; +part 'filter_activity_logs.dart'; -part 'update_staff_course.dart'; +part 'list_businesses.dart'; -part 'delete_staff_course.dart'; +part 'get_businesses_by_user_id.dart'; + +part 'get_business_by_id.dart'; + +part 'create_shift_role.dart'; + +part 'update_shift_role.dart'; + +part 'delete_shift_role.dart'; part 'create_task.dart'; @@ -490,23 +310,141 @@ part 'update_task.dart'; part 'delete_task.dart'; -part 'create_vendor_benefit_plan.dart'; +part 'create_team_hud_department.dart'; -part 'update_vendor_benefit_plan.dart'; +part 'update_team_hud_department.dart'; -part 'delete_vendor_benefit_plan.dart'; +part 'delete_team_hud_department.dart'; -part 'create_course.dart'; +part 'create_workforce.dart'; -part 'update_course.dart'; +part 'update_workforce.dart'; -part 'delete_course.dart'; +part 'deactivate_workforce.dart'; -part 'create_level.dart'; +part 'create_account.dart'; -part 'update_level.dart'; +part 'update_account.dart'; -part 'delete_level.dart'; +part 'delete_account.dart'; + +part 'list_faq_datas.dart'; + +part 'get_faq_data_by_id.dart'; + +part 'filter_faq_datas.dart'; + +part 'create_staff_availability_stats.dart'; + +part 'update_staff_availability_stats.dart'; + +part 'delete_staff_availability_stats.dart'; + +part 'list_team_members.dart'; + +part 'get_team_member_by_id.dart'; + +part 'get_team_members_by_team_id.dart'; + +part 'list_user_conversations.dart'; + +part 'get_user_conversation_by_key.dart'; + +part 'list_user_conversations_by_user_id.dart'; + +part 'list_unread_user_conversations_by_user_id.dart'; + +part 'list_user_conversations_by_conversation_id.dart'; + +part 'filter_user_conversations.dart'; + +part 'get_vendor_by_id.dart'; + +part 'get_vendor_by_user_id.dart'; + +part 'list_vendors.dart'; + +part 'list_courses.dart'; + +part 'get_course_by_id.dart'; + +part 'filter_courses.dart'; + +part 'create_message.dart'; + +part 'update_message.dart'; + +part 'delete_message.dart'; + +part 'list_roles.dart'; + +part 'get_role_by_id.dart'; + +part 'list_roles_by_vendor_id.dart'; + +part 'list_roles_byrole_category_id.dart'; + +part 'create_tax_form.dart'; + +part 'update_tax_form.dart'; + +part 'delete_tax_form.dart'; + +part 'create_application.dart'; + +part 'update_application_status.dart'; + +part 'delete_application.dart'; + +part 'list_assignments.dart'; + +part 'get_assignment_by_id.dart'; + +part 'list_assignments_by_workforce_id.dart'; + +part 'list_assignments_by_workforce_ids.dart'; + +part 'list_assignments_by_shift_role.dart'; + +part 'filter_assignments.dart'; + +part 'create_category.dart'; + +part 'update_category.dart'; + +part 'delete_category.dart'; + +part 'list_levels.dart'; + +part 'get_level_by_id.dart'; + +part 'filter_levels.dart'; + +part 'create_business.dart'; + +part 'update_business.dart'; + +part 'delete_business.dart'; + +part 'create_client_feedback.dart'; + +part 'update_client_feedback.dart'; + +part 'delete_client_feedback.dart'; + +part 'create_hub.dart'; + +part 'update_hub.dart'; + +part 'delete_hub.dart'; + +part 'list_hubs.dart'; + +part 'get_hub_by_id.dart'; + +part 'get_hubs_by_owner_id.dart'; + +part 'filter_hubs.dart'; part 'list_recent_payments.dart'; @@ -524,67 +462,39 @@ part 'list_recent_payments_by_invoice_ids.dart'; part 'list_recent_payments_by_business_id.dart'; -part 'create_staff_document.dart'; +part 'create_role_category.dart'; -part 'update_staff_document.dart'; +part 'update_role_category.dart'; -part 'delete_staff_document.dart'; +part 'delete_role_category.dart'; -part 'create_team_member.dart'; +part 'create_team.dart'; -part 'update_team_member.dart'; +part 'update_team.dart'; -part 'update_team_member_invite_status.dart'; +part 'delete_team.dart'; -part 'accept_invite_by_code.dart'; +part 'list_client_feedbacks.dart'; -part 'cancel_invite_by_code.dart'; +part 'get_client_feedback_by_id.dart'; -part 'delete_team_member.dart'; +part 'list_client_feedbacks_by_business_id.dart'; -part 'list_user_conversations.dart'; +part 'list_client_feedbacks_by_vendor_id.dart'; -part 'get_user_conversation_by_key.dart'; +part 'list_client_feedbacks_by_business_and_vendor.dart'; -part 'list_user_conversations_by_user_id.dart'; +part 'filter_client_feedbacks.dart'; -part 'list_unread_user_conversations_by_user_id.dart'; +part 'list_client_feedback_ratings_by_vendor_id.dart'; -part 'list_user_conversations_by_conversation_id.dart'; +part 'create_conversation.dart'; -part 'filter_user_conversations.dart'; +part 'update_conversation.dart'; -part 'list_vendor_rates.dart'; +part 'update_conversation_last_message.dart'; -part 'get_vendor_rate_by_id.dart'; - -part 'create_business.dart'; - -part 'update_business.dart'; - -part 'delete_business.dart'; - -part 'create_invoice.dart'; - -part 'update_invoice.dart'; - -part 'delete_invoice.dart'; - -part 'list_invoices.dart'; - -part 'get_invoice_by_id.dart'; - -part 'list_invoices_by_vendor_id.dart'; - -part 'list_invoices_by_business_id.dart'; - -part 'list_invoices_by_order_id.dart'; - -part 'list_invoices_by_status.dart'; - -part 'filter_invoices.dart'; - -part 'list_overdue_invoices.dart'; +part 'delete_conversation.dart'; part 'list_shifts_for_coverage.dart'; @@ -624,25 +534,23 @@ part 'list_applications_for_performance.dart'; part 'list_staff_for_performance.dart'; -part 'list_team_hubs.dart'; +part 'create_staff_availability.dart'; -part 'get_team_hub_by_id.dart'; +part 'update_staff_availability.dart'; -part 'get_team_hubs_by_team_id.dart'; +part 'delete_staff_availability.dart'; -part 'list_team_hubs_by_owner_id.dart'; +part 'list_team_hud_departments.dart'; -part 'create_team_hud_department.dart'; +part 'get_team_hud_department_by_id.dart'; -part 'update_team_hud_department.dart'; +part 'list_team_hud_departments_by_team_hub_id.dart'; -part 'delete_team_hud_department.dart'; +part 'list_users.dart'; -part 'create_vendor_rate.dart'; +part 'get_user_by_id.dart'; -part 'update_vendor_rate.dart'; - -part 'delete_vendor_rate.dart'; +part 'filter_users.dart'; part 'list_accounts.dart'; @@ -652,65 +560,39 @@ part 'get_accounts_by_owner_id.dart'; part 'filter_accounts.dart'; -part 'list_activity_logs.dart'; +part 'create_assignment.dart'; -part 'get_activity_log_by_id.dart'; +part 'update_assignment.dart'; -part 'list_activity_logs_by_user_id.dart'; +part 'delete_assignment.dart'; -part 'list_unread_activity_logs_by_user_id.dart'; +part 'list_attire_options.dart'; -part 'filter_activity_logs.dart'; +part 'get_attire_option_by_id.dart'; -part 'create_attire_option.dart'; +part 'filter_attire_options.dart'; -part 'update_attire_option.dart'; +part 'list_invoices.dart'; -part 'delete_attire_option.dart'; +part 'get_invoice_by_id.dart'; -part 'create_client_feedback.dart'; +part 'list_invoices_by_vendor_id.dart'; -part 'update_client_feedback.dart'; +part 'list_invoices_by_business_id.dart'; -part 'delete_client_feedback.dart'; +part 'list_invoices_by_order_id.dart'; -part 'list_faq_datas.dart'; +part 'list_invoices_by_status.dart'; -part 'get_faq_data_by_id.dart'; +part 'filter_invoices.dart'; -part 'filter_faq_datas.dart'; +part 'list_overdue_invoices.dart'; -part 'create_recent_payment.dart'; +part 'list_messages.dart'; -part 'update_recent_payment.dart'; +part 'get_message_by_id.dart'; -part 'delete_recent_payment.dart'; - -part 'create_benefits_data.dart'; - -part 'update_benefits_data.dart'; - -part 'delete_benefits_data.dart'; - -part 'create_emergency_contact.dart'; - -part 'update_emergency_contact.dart'; - -part 'delete_emergency_contact.dart'; - -part 'create_invoice_template.dart'; - -part 'update_invoice_template.dart'; - -part 'delete_invoice_template.dart'; - -part 'get_staff_document_by_key.dart'; - -part 'list_staff_documents_by_staff_id.dart'; - -part 'list_staff_documents_by_document_type.dart'; - -part 'list_staff_documents_by_status.dart'; +part 'get_messages_by_conversation_id.dart'; part 'list_task_comments.dart'; @@ -718,23 +600,89 @@ part 'get_task_comment_by_id.dart'; part 'get_task_comments_by_task_id.dart'; -part 'list_teams.dart'; - -part 'get_team_by_id.dart'; - -part 'get_teams_by_owner_id.dart'; - part 'create_user.dart'; part 'update_user.dart'; part 'delete_user.dart'; -part 'create_workforce.dart'; +part 'list_categories.dart'; -part 'update_workforce.dart'; +part 'get_category_by_id.dart'; -part 'deactivate_workforce.dart'; +part 'filter_categories.dart'; + +part 'list_custom_rate_cards.dart'; + +part 'get_custom_rate_card_by_id.dart'; + +part 'list_documents.dart'; + +part 'get_document_by_id.dart'; + +part 'filter_documents.dart'; + +part 'create_invoice_template.dart'; + +part 'update_invoice_template.dart'; + +part 'delete_invoice_template.dart'; + +part 'list_staff_availability_stats.dart'; + +part 'get_staff_availability_stats_by_staff_id.dart'; + +part 'filter_staff_availability_stats.dart'; + +part 'create_benefits_data.dart'; + +part 'update_benefits_data.dart'; + +part 'delete_benefits_data.dart'; + +part 'create_custom_rate_card.dart'; + +part 'update_custom_rate_card.dart'; + +part 'delete_custom_rate_card.dart'; + +part 'create_emergency_contact.dart'; + +part 'update_emergency_contact.dart'; + +part 'delete_emergency_contact.dart'; + +part 'list_staff_availabilities.dart'; + +part 'list_staff_availabilities_by_staff_id.dart'; + +part 'get_staff_availability_by_key.dart'; + +part 'list_staff_availabilities_by_day.dart'; + +part 'get_staff_course_by_id.dart'; + +part 'list_staff_courses_by_staff_id.dart'; + +part 'list_staff_courses_by_course_id.dart'; + +part 'get_staff_course_by_staff_and_course.dart'; + +part 'list_staff_roles.dart'; + +part 'get_staff_role_by_key.dart'; + +part 'list_staff_roles_by_staff_id.dart'; + +part 'list_staff_roles_by_role_id.dart'; + +part 'filter_staff_roles.dart'; + +part 'create_certificate.dart'; + +part 'update_certificate.dart'; + +part 'delete_certificate.dart'; part 'list_emergency_contacts.dart'; @@ -742,6 +690,60 @@ part 'get_emergency_contact_by_id.dart'; part 'get_emergency_contacts_by_staff_id.dart'; +part 'list_invoice_templates.dart'; + +part 'get_invoice_template_by_id.dart'; + +part 'list_invoice_templates_by_owner_id.dart'; + +part 'list_invoice_templates_by_vendor_id.dart'; + +part 'list_invoice_templates_by_business_id.dart'; + +part 'list_invoice_templates_by_order_id.dart'; + +part 'search_invoice_templates_by_owner_and_name.dart'; + +part 'list_orders.dart'; + +part 'get_order_by_id.dart'; + +part 'get_orders_by_business_id.dart'; + +part 'get_orders_by_vendor_id.dart'; + +part 'get_orders_by_status.dart'; + +part 'get_orders_by_date_range.dart'; + +part 'get_rapid_orders.dart'; + +part 'list_orders_by_business_and_team_hub.dart'; + +part 'list_role_categories.dart'; + +part 'get_role_category_by_id.dart'; + +part 'get_role_categories_by_category.dart'; + +part 'create_task_comment.dart'; + +part 'update_task_comment.dart'; + +part 'delete_task_comment.dart'; + +part 'create_team_hub.dart'; + +part 'update_team_hub.dart'; + +part 'delete_team_hub.dart'; + +part 'create_attire_option.dart'; + +part 'update_attire_option.dart'; + +part 'delete_attire_option.dart'; + enum AccountType { @@ -1401,6 +1403,42 @@ part 'get_emergency_contacts_by_staff_id.dart'; } + enum CitizenshipStatus { + + CITIZEN, + + NONCITIZEN, + + PERMANENT_RESIDENT, + + ALIEN, + + } + + String citizenshipStatusSerializer(EnumValue e) { + return e.stringValue; + } + EnumValue citizenshipStatusDeserializer(dynamic data) { + switch (data) { + + case 'CITIZEN': + return const Known(CitizenshipStatus.CITIZEN); + + case 'NONCITIZEN': + return const Known(CitizenshipStatus.NONCITIZEN); + + case 'PERMANENT_RESIDENT': + return const Known(CitizenshipStatus.PERMANENT_RESIDENT); + + case 'ALIEN': + return const Known(CitizenshipStatus.ALIEN); + + default: + return Unknown(data); + } + } + + enum ComplianceType { BACKGROUND_CHECK, @@ -1933,6 +1971,37 @@ part 'get_emergency_contacts_by_staff_id.dart'; } + enum MaritalStatus { + + SINGLE, + + MARRIED, + + HEAD, + + } + + String maritalStatusSerializer(EnumValue e) { + return e.stringValue; + } + EnumValue maritalStatusDeserializer(dynamic data) { + switch (data) { + + case 'SINGLE': + return const Known(MaritalStatus.SINGLE); + + case 'MARRIED': + return const Known(MaritalStatus.MARRIED); + + case 'HEAD': + return const Known(MaritalStatus.HEAD); + + default: + return Unknown(data); + } + } + + enum OrderDuration { WEEKLY, @@ -2691,233 +2760,293 @@ class Unknown extends EnumValue { class ExampleConnector { - CreateFaqDataVariablesBuilder createFaqData ({required String category, }) { - return CreateFaqDataVariablesBuilder(dataConnect, category: category,); + CreateRecentPaymentVariablesBuilder createRecentPayment ({required String staffId, required String applicationId, required String invoiceId, }) { + return CreateRecentPaymentVariablesBuilder(dataConnect, staffId: staffId,applicationId: applicationId,invoiceId: invoiceId,); } - UpdateFaqDataVariablesBuilder updateFaqData ({required String id, }) { - return UpdateFaqDataVariablesBuilder(dataConnect, id: id,); + UpdateRecentPaymentVariablesBuilder updateRecentPayment ({required String id, }) { + return UpdateRecentPaymentVariablesBuilder(dataConnect, id: id,); } - DeleteFaqDataVariablesBuilder deleteFaqData ({required String id, }) { - return DeleteFaqDataVariablesBuilder(dataConnect, id: id,); + DeleteRecentPaymentVariablesBuilder deleteRecentPayment ({required String id, }) { + return DeleteRecentPaymentVariablesBuilder(dataConnect, id: id,); } - CreateStaffAvailabilityVariablesBuilder createStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { - return CreateStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); + CreateStaffVariablesBuilder createStaff ({required String userId, required String fullName, }) { + return CreateStaffVariablesBuilder(dataConnect, userId: userId,fullName: fullName,); } - UpdateStaffAvailabilityVariablesBuilder updateStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { - return UpdateStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); + UpdateStaffVariablesBuilder updateStaff ({required String id, }) { + return UpdateStaffVariablesBuilder(dataConnect, id: id,); } - DeleteStaffAvailabilityVariablesBuilder deleteStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { - return DeleteStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); + DeleteStaffVariablesBuilder deleteStaff ({required String id, }) { + return DeleteStaffVariablesBuilder(dataConnect, id: id,); } - ListStaffAvailabilityStatsVariablesBuilder listStaffAvailabilityStats () { - return ListStaffAvailabilityStatsVariablesBuilder(dataConnect, ); + GetStaffDocumentByKeyVariablesBuilder getStaffDocumentByKey ({required String staffId, required String documentId, }) { + return GetStaffDocumentByKeyVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); } - GetStaffAvailabilityStatsByStaffIdVariablesBuilder getStaffAvailabilityStatsByStaffId ({required String staffId, }) { - return GetStaffAvailabilityStatsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + ListStaffDocumentsByStaffIdVariablesBuilder listStaffDocumentsByStaffId ({required String staffId, }) { + return ListStaffDocumentsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); } - FilterStaffAvailabilityStatsVariablesBuilder filterStaffAvailabilityStats () { - return FilterStaffAvailabilityStatsVariablesBuilder(dataConnect, ); + ListStaffDocumentsByDocumentTypeVariablesBuilder listStaffDocumentsByDocumentType ({required DocumentType documentType, }) { + return ListStaffDocumentsByDocumentTypeVariablesBuilder(dataConnect, documentType: documentType,); } - CreateTaxFormVariablesBuilder createTaxForm ({required TaxFormType formType, required String title, required String staffId, }) { - return CreateTaxFormVariablesBuilder(dataConnect, formType: formType,title: title,staffId: staffId,); + ListStaffDocumentsByStatusVariablesBuilder listStaffDocumentsByStatus ({required DocumentStatus status, }) { + return ListStaffDocumentsByStatusVariablesBuilder(dataConnect, status: status,); } - UpdateTaxFormVariablesBuilder updateTaxForm ({required String id, }) { - return UpdateTaxFormVariablesBuilder(dataConnect, id: id,); + ListTaxFormsVariablesBuilder listTaxForms () { + return ListTaxFormsVariablesBuilder(dataConnect, ); } - DeleteTaxFormVariablesBuilder deleteTaxForm ({required String id, }) { - return DeleteTaxFormVariablesBuilder(dataConnect, id: id,); + GetTaxFormByIdVariablesBuilder getTaxFormById ({required String id, }) { + return GetTaxFormByIdVariablesBuilder(dataConnect, id: id,); } - ListHubsVariablesBuilder listHubs () { - return ListHubsVariablesBuilder(dataConnect, ); + GetTaxFormsByStaffIdVariablesBuilder getTaxFormsByStaffId ({required String staffId, }) { + return GetTaxFormsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); } - GetHubByIdVariablesBuilder getHubById ({required String id, }) { - return GetHubByIdVariablesBuilder(dataConnect, id: id,); + ListTaxFormsWhereVariablesBuilder listTaxFormsWhere () { + return ListTaxFormsWhereVariablesBuilder(dataConnect, ); } - GetHubsByOwnerIdVariablesBuilder getHubsByOwnerId ({required String ownerId, }) { - return GetHubsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); + ListTeamHubsVariablesBuilder listTeamHubs () { + return ListTeamHubsVariablesBuilder(dataConnect, ); } - FilterHubsVariablesBuilder filterHubs () { - return FilterHubsVariablesBuilder(dataConnect, ); + GetTeamHubByIdVariablesBuilder getTeamHubById ({required String id, }) { + return GetTeamHubByIdVariablesBuilder(dataConnect, id: id,); } - CreateMessageVariablesBuilder createMessage ({required String conversationId, required String senderId, required String content, }) { - return CreateMessageVariablesBuilder(dataConnect, conversationId: conversationId,senderId: senderId,content: content,); + GetTeamHubsByTeamIdVariablesBuilder getTeamHubsByTeamId ({required String teamId, }) { + return GetTeamHubsByTeamIdVariablesBuilder(dataConnect, teamId: teamId,); } - UpdateMessageVariablesBuilder updateMessage ({required String id, }) { - return UpdateMessageVariablesBuilder(dataConnect, id: id,); + ListTeamHubsByOwnerIdVariablesBuilder listTeamHubsByOwnerId ({required String ownerId, }) { + return ListTeamHubsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); } - DeleteMessageVariablesBuilder deleteMessage ({required String id, }) { - return DeleteMessageVariablesBuilder(dataConnect, id: id,); + CreateActivityLogVariablesBuilder createActivityLog ({required String userId, required Timestamp date, required String title, required String description, required ActivityType activityType, }) { + return CreateActivityLogVariablesBuilder(dataConnect, userId: userId,date: date,title: title,description: description,activityType: activityType,); } - CreateVendorVariablesBuilder createVendor ({required String userId, required String companyName, }) { - return CreateVendorVariablesBuilder(dataConnect, userId: userId,companyName: companyName,); + UpdateActivityLogVariablesBuilder updateActivityLog ({required String id, }) { + return UpdateActivityLogVariablesBuilder(dataConnect, id: id,); } - UpdateVendorVariablesBuilder updateVendor ({required String id, }) { - return UpdateVendorVariablesBuilder(dataConnect, id: id,); + MarkActivityLogAsReadVariablesBuilder markActivityLogAsRead ({required String id, }) { + return MarkActivityLogAsReadVariablesBuilder(dataConnect, id: id,); } - DeleteVendorVariablesBuilder deleteVendor ({required String id, }) { - return DeleteVendorVariablesBuilder(dataConnect, id: id,); + MarkActivityLogsAsReadVariablesBuilder markActivityLogsAsRead ({required List ids, }) { + return MarkActivityLogsAsReadVariablesBuilder(dataConnect, ids: ids,); } - CreateAccountVariablesBuilder createAccount ({required String bank, required AccountType type, required String last4, required String ownerId, }) { - return CreateAccountVariablesBuilder(dataConnect, bank: bank,type: type,last4: last4,ownerId: ownerId,); + DeleteActivityLogVariablesBuilder deleteActivityLog ({required String id, }) { + return DeleteActivityLogVariablesBuilder(dataConnect, id: id,); } - UpdateAccountVariablesBuilder updateAccount ({required String id, }) { - return UpdateAccountVariablesBuilder(dataConnect, id: id,); + CreateLevelVariablesBuilder createLevel ({required String name, required int xpRequired, }) { + return CreateLevelVariablesBuilder(dataConnect, name: name,xpRequired: xpRequired,); } - DeleteAccountVariablesBuilder deleteAccount ({required String id, }) { - return DeleteAccountVariablesBuilder(dataConnect, id: id,); + UpdateLevelVariablesBuilder updateLevel ({required String id, }) { + return UpdateLevelVariablesBuilder(dataConnect, id: id,); } - CreateShiftRoleVariablesBuilder createShiftRole ({required String shiftId, required String roleId, required int count, }) { - return CreateShiftRoleVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,count: count,); + DeleteLevelVariablesBuilder deleteLevel ({required String id, }) { + return DeleteLevelVariablesBuilder(dataConnect, id: id,); } - UpdateShiftRoleVariablesBuilder updateShiftRole ({required String shiftId, required String roleId, }) { - return UpdateShiftRoleVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,); + CreateMemberTaskVariablesBuilder createMemberTask ({required String teamMemberId, required String taskId, }) { + return CreateMemberTaskVariablesBuilder(dataConnect, teamMemberId: teamMemberId,taskId: taskId,); } - DeleteShiftRoleVariablesBuilder deleteShiftRole ({required String shiftId, required String roleId, }) { - return DeleteShiftRoleVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,); + DeleteMemberTaskVariablesBuilder deleteMemberTask ({required String teamMemberId, required String taskId, }) { + return DeleteMemberTaskVariablesBuilder(dataConnect, teamMemberId: teamMemberId,taskId: taskId,); } - CreateStaffAvailabilityStatsVariablesBuilder createStaffAvailabilityStats ({required String staffId, }) { - return CreateStaffAvailabilityStatsVariablesBuilder(dataConnect, staffId: staffId,); + ListShiftsVariablesBuilder listShifts () { + return ListShiftsVariablesBuilder(dataConnect, ); } - UpdateStaffAvailabilityStatsVariablesBuilder updateStaffAvailabilityStats ({required String staffId, }) { - return UpdateStaffAvailabilityStatsVariablesBuilder(dataConnect, staffId: staffId,); + GetShiftByIdVariablesBuilder getShiftById ({required String id, }) { + return GetShiftByIdVariablesBuilder(dataConnect, id: id,); } - DeleteStaffAvailabilityStatsVariablesBuilder deleteStaffAvailabilityStats ({required String staffId, }) { - return DeleteStaffAvailabilityStatsVariablesBuilder(dataConnect, staffId: staffId,); + FilterShiftsVariablesBuilder filterShifts () { + return FilterShiftsVariablesBuilder(dataConnect, ); } - CreateTaskCommentVariablesBuilder createTaskComment ({required String taskId, required String teamMemberId, required String comment, }) { - return CreateTaskCommentVariablesBuilder(dataConnect, taskId: taskId,teamMemberId: teamMemberId,comment: comment,); + GetShiftsByBusinessIdVariablesBuilder getShiftsByBusinessId ({required String businessId, }) { + return GetShiftsByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); } - UpdateTaskCommentVariablesBuilder updateTaskComment ({required String id, }) { - return UpdateTaskCommentVariablesBuilder(dataConnect, id: id,); + GetShiftsByVendorIdVariablesBuilder getShiftsByVendorId ({required String vendorId, }) { + return GetShiftsByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); } - DeleteTaskCommentVariablesBuilder deleteTaskComment ({required String id, }) { - return DeleteTaskCommentVariablesBuilder(dataConnect, id: id,); + ListStaffVariablesBuilder listStaff () { + return ListStaffVariablesBuilder(dataConnect, ); } - ListAssignmentsVariablesBuilder listAssignments () { - return ListAssignmentsVariablesBuilder(dataConnect, ); + GetStaffByIdVariablesBuilder getStaffById ({required String id, }) { + return GetStaffByIdVariablesBuilder(dataConnect, id: id,); } - GetAssignmentByIdVariablesBuilder getAssignmentById ({required String id, }) { - return GetAssignmentByIdVariablesBuilder(dataConnect, id: id,); + GetStaffByUserIdVariablesBuilder getStaffByUserId ({required String userId, }) { + return GetStaffByUserIdVariablesBuilder(dataConnect, userId: userId,); } - ListAssignmentsByWorkforceIdVariablesBuilder listAssignmentsByWorkforceId ({required String workforceId, }) { - return ListAssignmentsByWorkforceIdVariablesBuilder(dataConnect, workforceId: workforceId,); + FilterStaffVariablesBuilder filterStaff () { + return FilterStaffVariablesBuilder(dataConnect, ); } - ListAssignmentsByWorkforceIdsVariablesBuilder listAssignmentsByWorkforceIds ({required List workforceIds, }) { - return ListAssignmentsByWorkforceIdsVariablesBuilder(dataConnect, workforceIds: workforceIds,); + ListTeamsVariablesBuilder listTeams () { + return ListTeamsVariablesBuilder(dataConnect, ); } - ListAssignmentsByShiftRoleVariablesBuilder listAssignmentsByShiftRole ({required String shiftId, required String roleId, }) { - return ListAssignmentsByShiftRoleVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,); + GetTeamByIdVariablesBuilder getTeamById ({required String id, }) { + return GetTeamByIdVariablesBuilder(dataConnect, id: id,); } - FilterAssignmentsVariablesBuilder filterAssignments ({required List shiftIds, required List roleIds, }) { - return FilterAssignmentsVariablesBuilder(dataConnect, shiftIds: shiftIds,roleIds: roleIds,); + GetTeamsByOwnerIdVariablesBuilder getTeamsByOwnerId ({required String ownerId, }) { + return GetTeamsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); } - CreateCustomRateCardVariablesBuilder createCustomRateCard ({required String name, }) { - return CreateCustomRateCardVariablesBuilder(dataConnect, name: name,); + CreateTeamMemberVariablesBuilder createTeamMember ({required String teamId, required TeamMemberRole role, required String userId, }) { + return CreateTeamMemberVariablesBuilder(dataConnect, teamId: teamId,role: role,userId: userId,); } - UpdateCustomRateCardVariablesBuilder updateCustomRateCard ({required String id, }) { - return UpdateCustomRateCardVariablesBuilder(dataConnect, id: id,); + UpdateTeamMemberVariablesBuilder updateTeamMember ({required String id, }) { + return UpdateTeamMemberVariablesBuilder(dataConnect, id: id,); } - DeleteCustomRateCardVariablesBuilder deleteCustomRateCard ({required String id, }) { - return DeleteCustomRateCardVariablesBuilder(dataConnect, id: id,); + UpdateTeamMemberInviteStatusVariablesBuilder updateTeamMemberInviteStatus ({required String id, required TeamMemberInviteStatus inviteStatus, }) { + return UpdateTeamMemberInviteStatusVariablesBuilder(dataConnect, id: id,inviteStatus: inviteStatus,); } - ListDocumentsVariablesBuilder listDocuments () { - return ListDocumentsVariablesBuilder(dataConnect, ); + AcceptInviteByCodeVariablesBuilder acceptInviteByCode ({required String inviteCode, }) { + return AcceptInviteByCodeVariablesBuilder(dataConnect, inviteCode: inviteCode,); } - GetDocumentByIdVariablesBuilder getDocumentById ({required String id, }) { - return GetDocumentByIdVariablesBuilder(dataConnect, id: id,); + CancelInviteByCodeVariablesBuilder cancelInviteByCode ({required String inviteCode, }) { + return CancelInviteByCodeVariablesBuilder(dataConnect, inviteCode: inviteCode,); } - FilterDocumentsVariablesBuilder filterDocuments () { - return FilterDocumentsVariablesBuilder(dataConnect, ); + DeleteTeamMemberVariablesBuilder deleteTeamMember ({required String id, }) { + return DeleteTeamMemberVariablesBuilder(dataConnect, id: id,); + } + + + CreateCourseVariablesBuilder createCourse ({required String categoryId, }) { + return CreateCourseVariablesBuilder(dataConnect, categoryId: categoryId,); + } + + + UpdateCourseVariablesBuilder updateCourse ({required String id, required String categoryId, }) { + return UpdateCourseVariablesBuilder(dataConnect, id: id,categoryId: categoryId,); + } + + + DeleteCourseVariablesBuilder deleteCourse ({required String id, }) { + return DeleteCourseVariablesBuilder(dataConnect, id: id,); + } + + + CreateDocumentVariablesBuilder createDocument ({required DocumentType documentType, required String name, }) { + return CreateDocumentVariablesBuilder(dataConnect, documentType: documentType,name: name,); + } + + + UpdateDocumentVariablesBuilder updateDocument ({required String id, }) { + return UpdateDocumentVariablesBuilder(dataConnect, id: id,); + } + + + DeleteDocumentVariablesBuilder deleteDocument ({required String id, }) { + return DeleteDocumentVariablesBuilder(dataConnect, id: id,); + } + + + CreateInvoiceVariablesBuilder createInvoice ({required InvoiceStatus status, required String vendorId, required String businessId, required String orderId, required String invoiceNumber, required Timestamp issueDate, required Timestamp dueDate, required double amount, }) { + return CreateInvoiceVariablesBuilder(dataConnect, status: status,vendorId: vendorId,businessId: businessId,orderId: orderId,invoiceNumber: invoiceNumber,issueDate: issueDate,dueDate: dueDate,amount: amount,); + } + + + UpdateInvoiceVariablesBuilder updateInvoice ({required String id, }) { + return UpdateInvoiceVariablesBuilder(dataConnect, id: id,); + } + + + DeleteInvoiceVariablesBuilder deleteInvoice ({required String id, }) { + return DeleteInvoiceVariablesBuilder(dataConnect, id: id,); + } + + + GetMyTasksVariablesBuilder getMyTasks ({required String teamMemberId, }) { + return GetMyTasksVariablesBuilder(dataConnect, teamMemberId: teamMemberId,); + } + + + GetMemberTaskByIdKeyVariablesBuilder getMemberTaskByIdKey ({required String teamMemberId, required String taskId, }) { + return GetMemberTaskByIdKeyVariablesBuilder(dataConnect, teamMemberId: teamMemberId,taskId: taskId,); + } + + + GetMemberTasksByTaskIdVariablesBuilder getMemberTasksByTaskId ({required String taskId, }) { + return GetMemberTasksByTaskIdVariablesBuilder(dataConnect, taskId: taskId,); } @@ -2971,108 +3100,18 @@ class ExampleConnector { } - CreateActivityLogVariablesBuilder createActivityLog ({required String userId, required Timestamp date, required String title, required String description, required ActivityType activityType, }) { - return CreateActivityLogVariablesBuilder(dataConnect, userId: userId,date: date,title: title,description: description,activityType: activityType,); + CreateStaffDocumentVariablesBuilder createStaffDocument ({required String staffId, required String staffName, required String documentId, required DocumentStatus status, }) { + return CreateStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,staffName: staffName,documentId: documentId,status: status,); } - UpdateActivityLogVariablesBuilder updateActivityLog ({required String id, }) { - return UpdateActivityLogVariablesBuilder(dataConnect, id: id,); + UpdateStaffDocumentVariablesBuilder updateStaffDocument ({required String staffId, required String documentId, }) { + return UpdateStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); } - MarkActivityLogAsReadVariablesBuilder markActivityLogAsRead ({required String id, }) { - return MarkActivityLogAsReadVariablesBuilder(dataConnect, id: id,); - } - - - MarkActivityLogsAsReadVariablesBuilder markActivityLogsAsRead ({required List ids, }) { - return MarkActivityLogsAsReadVariablesBuilder(dataConnect, ids: ids,); - } - - - DeleteActivityLogVariablesBuilder deleteActivityLog ({required String id, }) { - return DeleteActivityLogVariablesBuilder(dataConnect, id: id,); - } - - - ListRoleCategoriesVariablesBuilder listRoleCategories () { - return ListRoleCategoriesVariablesBuilder(dataConnect, ); - } - - - GetRoleCategoryByIdVariablesBuilder getRoleCategoryById ({required String id, }) { - return GetRoleCategoryByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetRoleCategoriesByCategoryVariablesBuilder getRoleCategoriesByCategory ({required RoleCategoryType category, }) { - return GetRoleCategoriesByCategoryVariablesBuilder(dataConnect, category: category,); - } - - - GetVendorByIdVariablesBuilder getVendorById ({required String id, }) { - return GetVendorByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetVendorByUserIdVariablesBuilder getVendorByUserId ({required String userId, }) { - return GetVendorByUserIdVariablesBuilder(dataConnect, userId: userId,); - } - - - ListVendorsVariablesBuilder listVendors () { - return ListVendorsVariablesBuilder(dataConnect, ); - } - - - GetWorkforceByIdVariablesBuilder getWorkforceById ({required String id, }) { - return GetWorkforceByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetWorkforceByVendorAndStaffVariablesBuilder getWorkforceByVendorAndStaff ({required String vendorId, required String staffId, }) { - return GetWorkforceByVendorAndStaffVariablesBuilder(dataConnect, vendorId: vendorId,staffId: staffId,); - } - - - ListWorkforceByVendorIdVariablesBuilder listWorkforceByVendorId ({required String vendorId, }) { - return ListWorkforceByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - ListWorkforceByStaffIdVariablesBuilder listWorkforceByStaffId ({required String staffId, }) { - return ListWorkforceByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - GetWorkforceByVendorAndNumberVariablesBuilder getWorkforceByVendorAndNumber ({required String vendorId, required String workforceNumber, }) { - return GetWorkforceByVendorAndNumberVariablesBuilder(dataConnect, vendorId: vendorId,workforceNumber: workforceNumber,); - } - - - CreateMemberTaskVariablesBuilder createMemberTask ({required String teamMemberId, required String taskId, }) { - return CreateMemberTaskVariablesBuilder(dataConnect, teamMemberId: teamMemberId,taskId: taskId,); - } - - - DeleteMemberTaskVariablesBuilder deleteMemberTask ({required String teamMemberId, required String taskId, }) { - return DeleteMemberTaskVariablesBuilder(dataConnect, teamMemberId: teamMemberId,taskId: taskId,); - } - - - CreateStaffVariablesBuilder createStaff ({required String userId, required String fullName, }) { - return CreateStaffVariablesBuilder(dataConnect, userId: userId,fullName: fullName,); - } - - - UpdateStaffVariablesBuilder updateStaff ({required String id, }) { - return UpdateStaffVariablesBuilder(dataConnect, id: id,); - } - - - DeleteStaffVariablesBuilder deleteStaff ({required String id, }) { - return DeleteStaffVariablesBuilder(dataConnect, id: id,); + DeleteStaffDocumentVariablesBuilder deleteStaffDocument ({required String staffId, required String documentId, }) { + return DeleteStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); } @@ -3096,398 +3135,18 @@ class ExampleConnector { } - ListUsersVariablesBuilder listUsers () { - return ListUsersVariablesBuilder(dataConnect, ); + CreateVendorVariablesBuilder createVendor ({required String userId, required String companyName, }) { + return CreateVendorVariablesBuilder(dataConnect, userId: userId,companyName: companyName,); } - GetUserByIdVariablesBuilder getUserById ({required String id, }) { - return GetUserByIdVariablesBuilder(dataConnect, id: id,); + UpdateVendorVariablesBuilder updateVendor ({required String id, }) { + return UpdateVendorVariablesBuilder(dataConnect, id: id,); } - FilterUsersVariablesBuilder filterUsers () { - return FilterUsersVariablesBuilder(dataConnect, ); - } - - - ListClientFeedbacksVariablesBuilder listClientFeedbacks () { - return ListClientFeedbacksVariablesBuilder(dataConnect, ); - } - - - GetClientFeedbackByIdVariablesBuilder getClientFeedbackById ({required String id, }) { - return GetClientFeedbackByIdVariablesBuilder(dataConnect, id: id,); - } - - - ListClientFeedbacksByBusinessIdVariablesBuilder listClientFeedbacksByBusinessId ({required String businessId, }) { - return ListClientFeedbacksByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); - } - - - ListClientFeedbacksByVendorIdVariablesBuilder listClientFeedbacksByVendorId ({required String vendorId, }) { - return ListClientFeedbacksByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - ListClientFeedbacksByBusinessAndVendorVariablesBuilder listClientFeedbacksByBusinessAndVendor ({required String businessId, required String vendorId, }) { - return ListClientFeedbacksByBusinessAndVendorVariablesBuilder(dataConnect, businessId: businessId,vendorId: vendorId,); - } - - - FilterClientFeedbacksVariablesBuilder filterClientFeedbacks () { - return FilterClientFeedbacksVariablesBuilder(dataConnect, ); - } - - - ListClientFeedbackRatingsByVendorIdVariablesBuilder listClientFeedbackRatingsByVendorId ({required String vendorId, }) { - return ListClientFeedbackRatingsByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - ListCustomRateCardsVariablesBuilder listCustomRateCards () { - return ListCustomRateCardsVariablesBuilder(dataConnect, ); - } - - - GetCustomRateCardByIdVariablesBuilder getCustomRateCardById ({required String id, }) { - return GetCustomRateCardByIdVariablesBuilder(dataConnect, id: id,); - } - - - CreateApplicationVariablesBuilder createApplication ({required String shiftId, required String staffId, required ApplicationStatus status, required ApplicationOrigin origin, required String roleId, }) { - return CreateApplicationVariablesBuilder(dataConnect, shiftId: shiftId,staffId: staffId,status: status,origin: origin,roleId: roleId,); - } - - - UpdateApplicationStatusVariablesBuilder updateApplicationStatus ({required String id, required String roleId, }) { - return UpdateApplicationStatusVariablesBuilder(dataConnect, id: id,roleId: roleId,); - } - - - DeleteApplicationVariablesBuilder deleteApplication ({required String id, }) { - return DeleteApplicationVariablesBuilder(dataConnect, id: id,); - } - - - CreateCertificateVariablesBuilder createCertificate ({required String name, required CertificateStatus status, required String staffId, }) { - return CreateCertificateVariablesBuilder(dataConnect, name: name,status: status,staffId: staffId,); - } - - - UpdateCertificateVariablesBuilder updateCertificate ({required String id, }) { - return UpdateCertificateVariablesBuilder(dataConnect, id: id,); - } - - - DeleteCertificateVariablesBuilder deleteCertificate ({required String id, }) { - return DeleteCertificateVariablesBuilder(dataConnect, id: id,); - } - - - CreateHubVariablesBuilder createHub ({required String name, required String ownerId, }) { - return CreateHubVariablesBuilder(dataConnect, name: name,ownerId: ownerId,); - } - - - UpdateHubVariablesBuilder updateHub ({required String id, }) { - return UpdateHubVariablesBuilder(dataConnect, id: id,); - } - - - DeleteHubVariablesBuilder deleteHub ({required String id, }) { - return DeleteHubVariablesBuilder(dataConnect, id: id,); - } - - - ListStaffVariablesBuilder listStaff () { - return ListStaffVariablesBuilder(dataConnect, ); - } - - - GetStaffByIdVariablesBuilder getStaffById ({required String id, }) { - return GetStaffByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetStaffByUserIdVariablesBuilder getStaffByUserId ({required String userId, }) { - return GetStaffByUserIdVariablesBuilder(dataConnect, userId: userId,); - } - - - FilterStaffVariablesBuilder filterStaff () { - return FilterStaffVariablesBuilder(dataConnect, ); - } - - - CreateStaffRoleVariablesBuilder createStaffRole ({required String staffId, required String roleId, }) { - return CreateStaffRoleVariablesBuilder(dataConnect, staffId: staffId,roleId: roleId,); - } - - - DeleteStaffRoleVariablesBuilder deleteStaffRole ({required String staffId, required String roleId, }) { - return DeleteStaffRoleVariablesBuilder(dataConnect, staffId: staffId,roleId: roleId,); - } - - - CreateUserConversationVariablesBuilder createUserConversation ({required String conversationId, required String userId, }) { - return CreateUserConversationVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); - } - - - UpdateUserConversationVariablesBuilder updateUserConversation ({required String conversationId, required String userId, }) { - return UpdateUserConversationVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); - } - - - MarkConversationAsReadVariablesBuilder markConversationAsRead ({required String conversationId, required String userId, }) { - return MarkConversationAsReadVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); - } - - - IncrementUnreadForUserVariablesBuilder incrementUnreadForUser ({required String conversationId, required String userId, required int unreadCount, }) { - return IncrementUnreadForUserVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,unreadCount: unreadCount,); - } - - - DeleteUserConversationVariablesBuilder deleteUserConversation ({required String conversationId, required String userId, }) { - return DeleteUserConversationVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); - } - - - CreateCategoryVariablesBuilder createCategory ({required String categoryId, required String label, }) { - return CreateCategoryVariablesBuilder(dataConnect, categoryId: categoryId,label: label,); - } - - - UpdateCategoryVariablesBuilder updateCategory ({required String id, }) { - return UpdateCategoryVariablesBuilder(dataConnect, id: id,); - } - - - DeleteCategoryVariablesBuilder deleteCategory ({required String id, }) { - return DeleteCategoryVariablesBuilder(dataConnect, id: id,); - } - - - ListCategoriesVariablesBuilder listCategories () { - return ListCategoriesVariablesBuilder(dataConnect, ); - } - - - GetCategoryByIdVariablesBuilder getCategoryById ({required String id, }) { - return GetCategoryByIdVariablesBuilder(dataConnect, id: id,); - } - - - FilterCategoriesVariablesBuilder filterCategories () { - return FilterCategoriesVariablesBuilder(dataConnect, ); - } - - - CreateDocumentVariablesBuilder createDocument ({required DocumentType documentType, required String name, }) { - return CreateDocumentVariablesBuilder(dataConnect, documentType: documentType,name: name,); - } - - - UpdateDocumentVariablesBuilder updateDocument ({required String id, }) { - return UpdateDocumentVariablesBuilder(dataConnect, id: id,); - } - - - DeleteDocumentVariablesBuilder deleteDocument ({required String id, }) { - return DeleteDocumentVariablesBuilder(dataConnect, id: id,); - } - - - ListMessagesVariablesBuilder listMessages () { - return ListMessagesVariablesBuilder(dataConnect, ); - } - - - GetMessageByIdVariablesBuilder getMessageById ({required String id, }) { - return GetMessageByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetMessagesByConversationIdVariablesBuilder getMessagesByConversationId ({required String conversationId, }) { - return GetMessagesByConversationIdVariablesBuilder(dataConnect, conversationId: conversationId,); - } - - - ListOrdersVariablesBuilder listOrders () { - return ListOrdersVariablesBuilder(dataConnect, ); - } - - - GetOrderByIdVariablesBuilder getOrderById ({required String id, }) { - return GetOrderByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetOrdersByBusinessIdVariablesBuilder getOrdersByBusinessId ({required String businessId, }) { - return GetOrdersByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); - } - - - GetOrdersByVendorIdVariablesBuilder getOrdersByVendorId ({required String vendorId, }) { - return GetOrdersByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - GetOrdersByStatusVariablesBuilder getOrdersByStatus ({required OrderStatus status, }) { - return GetOrdersByStatusVariablesBuilder(dataConnect, status: status,); - } - - - GetOrdersByDateRangeVariablesBuilder getOrdersByDateRange ({required Timestamp start, required Timestamp end, }) { - return GetOrdersByDateRangeVariablesBuilder(dataConnect, start: start,end: end,); - } - - - GetRapidOrdersVariablesBuilder getRapidOrders () { - return GetRapidOrdersVariablesBuilder(dataConnect, ); - } - - - GetStaffCourseByIdVariablesBuilder getStaffCourseById ({required String id, }) { - return GetStaffCourseByIdVariablesBuilder(dataConnect, id: id,); - } - - - ListStaffCoursesByStaffIdVariablesBuilder listStaffCoursesByStaffId ({required String staffId, }) { - return ListStaffCoursesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - ListStaffCoursesByCourseIdVariablesBuilder listStaffCoursesByCourseId ({required String courseId, }) { - return ListStaffCoursesByCourseIdVariablesBuilder(dataConnect, courseId: courseId,); - } - - - GetStaffCourseByStaffAndCourseVariablesBuilder getStaffCourseByStaffAndCourse ({required String staffId, required String courseId, }) { - return GetStaffCourseByStaffAndCourseVariablesBuilder(dataConnect, staffId: staffId,courseId: courseId,); - } - - - ListTaxFormsVariablesBuilder listTaxForms () { - return ListTaxFormsVariablesBuilder(dataConnect, ); - } - - - GetTaxFormByIdVariablesBuilder getTaxFormById ({required String id, }) { - return GetTaxFormByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetTaxFormsBystaffIdVariablesBuilder getTaxFormsBystaffId ({required String staffId, }) { - return GetTaxFormsBystaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - FilterTaxFormsVariablesBuilder filterTaxForms () { - return FilterTaxFormsVariablesBuilder(dataConnect, ); - } - - - ListTeamMembersVariablesBuilder listTeamMembers () { - return ListTeamMembersVariablesBuilder(dataConnect, ); - } - - - GetTeamMemberByIdVariablesBuilder getTeamMemberById ({required String id, }) { - return GetTeamMemberByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetTeamMembersByTeamIdVariablesBuilder getTeamMembersByTeamId ({required String teamId, }) { - return GetTeamMembersByTeamIdVariablesBuilder(dataConnect, teamId: teamId,); - } - - - ListCertificatesVariablesBuilder listCertificates () { - return ListCertificatesVariablesBuilder(dataConnect, ); - } - - - GetCertificateByIdVariablesBuilder getCertificateById ({required String id, }) { - return GetCertificateByIdVariablesBuilder(dataConnect, id: id,); - } - - - ListCertificatesByStaffIdVariablesBuilder listCertificatesByStaffId ({required String staffId, }) { - return ListCertificatesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - CreateConversationVariablesBuilder createConversation () { - return CreateConversationVariablesBuilder(dataConnect, ); - } - - - UpdateConversationVariablesBuilder updateConversation ({required String id, }) { - return UpdateConversationVariablesBuilder(dataConnect, id: id,); - } - - - UpdateConversationLastMessageVariablesBuilder updateConversationLastMessage ({required String id, }) { - return UpdateConversationLastMessageVariablesBuilder(dataConnect, id: id,); - } - - - DeleteConversationVariablesBuilder deleteConversation ({required String id, }) { - return DeleteConversationVariablesBuilder(dataConnect, id: id,); - } - - - CreateOrderVariablesBuilder createOrder ({required String businessId, required OrderType orderType, }) { - return CreateOrderVariablesBuilder(dataConnect, businessId: businessId,orderType: orderType,); - } - - - UpdateOrderVariablesBuilder updateOrder ({required String id, }) { - return UpdateOrderVariablesBuilder(dataConnect, id: id,); - } - - - DeleteOrderVariablesBuilder deleteOrder ({required String id, }) { - return DeleteOrderVariablesBuilder(dataConnect, id: id,); - } - - - ListRolesVariablesBuilder listRoles () { - return ListRolesVariablesBuilder(dataConnect, ); - } - - - GetRoleByIdVariablesBuilder getRoleById ({required String id, }) { - return GetRoleByIdVariablesBuilder(dataConnect, id: id,); - } - - - ListRolesByVendorIdVariablesBuilder listRolesByVendorId ({required String vendorId, }) { - return ListRolesByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - ListRolesByroleCategoryIdVariablesBuilder listRolesByroleCategoryId ({required String roleCategoryId, }) { - return ListRolesByroleCategoryIdVariablesBuilder(dataConnect, roleCategoryId: roleCategoryId,); - } - - - CreateRoleCategoryVariablesBuilder createRoleCategory ({required String roleName, required RoleCategoryType category, }) { - return CreateRoleCategoryVariablesBuilder(dataConnect, roleName: roleName,category: category,); - } - - - UpdateRoleCategoryVariablesBuilder updateRoleCategory ({required String id, }) { - return UpdateRoleCategoryVariablesBuilder(dataConnect, id: id,); - } - - - DeleteRoleCategoryVariablesBuilder deleteRoleCategory ({required String id, }) { - return DeleteRoleCategoryVariablesBuilder(dataConnect, id: id,); + DeleteVendorVariablesBuilder deleteVendor ({required String id, }) { + return DeleteVendorVariablesBuilder(dataConnect, id: id,); } @@ -3506,146 +3165,6 @@ class ExampleConnector { } - ListStaffAvailabilitiesVariablesBuilder listStaffAvailabilities () { - return ListStaffAvailabilitiesVariablesBuilder(dataConnect, ); - } - - - ListStaffAvailabilitiesByStaffIdVariablesBuilder listStaffAvailabilitiesByStaffId ({required String staffId, }) { - return ListStaffAvailabilitiesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - GetStaffAvailabilityByKeyVariablesBuilder getStaffAvailabilityByKey ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { - return GetStaffAvailabilityByKeyVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); - } - - - ListStaffAvailabilitiesByDayVariablesBuilder listStaffAvailabilitiesByDay ({required DayOfWeek day, }) { - return ListStaffAvailabilitiesByDayVariablesBuilder(dataConnect, day: day,); - } - - - CreateTeamVariablesBuilder createTeam ({required String teamName, required String ownerId, required String ownerName, required String ownerRole, }) { - return CreateTeamVariablesBuilder(dataConnect, teamName: teamName,ownerId: ownerId,ownerName: ownerName,ownerRole: ownerRole,); - } - - - UpdateTeamVariablesBuilder updateTeam ({required String id, }) { - return UpdateTeamVariablesBuilder(dataConnect, id: id,); - } - - - DeleteTeamVariablesBuilder deleteTeam ({required String id, }) { - return DeleteTeamVariablesBuilder(dataConnect, id: id,); - } - - - ListConversationsVariablesBuilder listConversations () { - return ListConversationsVariablesBuilder(dataConnect, ); - } - - - GetConversationByIdVariablesBuilder getConversationById ({required String id, }) { - return GetConversationByIdVariablesBuilder(dataConnect, id: id,); - } - - - ListConversationsByTypeVariablesBuilder listConversationsByType ({required ConversationType conversationType, }) { - return ListConversationsByTypeVariablesBuilder(dataConnect, conversationType: conversationType,); - } - - - ListConversationsByStatusVariablesBuilder listConversationsByStatus ({required ConversationStatus status, }) { - return ListConversationsByStatusVariablesBuilder(dataConnect, status: status,); - } - - - FilterConversationsVariablesBuilder filterConversations () { - return FilterConversationsVariablesBuilder(dataConnect, ); - } - - - ListCoursesVariablesBuilder listCourses () { - return ListCoursesVariablesBuilder(dataConnect, ); - } - - - GetCourseByIdVariablesBuilder getCourseById ({required String id, }) { - return GetCourseByIdVariablesBuilder(dataConnect, id: id,); - } - - - FilterCoursesVariablesBuilder filterCourses () { - return FilterCoursesVariablesBuilder(dataConnect, ); - } - - - GetMyTasksVariablesBuilder getMyTasks ({required String teamMemberId, }) { - return GetMyTasksVariablesBuilder(dataConnect, teamMemberId: teamMemberId,); - } - - - GetMemberTaskByIdKeyVariablesBuilder getMemberTaskByIdKey ({required String teamMemberId, required String taskId, }) { - return GetMemberTaskByIdKeyVariablesBuilder(dataConnect, teamMemberId: teamMemberId,taskId: taskId,); - } - - - GetMemberTasksByTaskIdVariablesBuilder getMemberTasksByTaskId ({required String taskId, }) { - return GetMemberTasksByTaskIdVariablesBuilder(dataConnect, taskId: taskId,); - } - - - ListShiftsVariablesBuilder listShifts () { - return ListShiftsVariablesBuilder(dataConnect, ); - } - - - GetShiftByIdVariablesBuilder getShiftById ({required String id, }) { - return GetShiftByIdVariablesBuilder(dataConnect, id: id,); - } - - - FilterShiftsVariablesBuilder filterShifts () { - return FilterShiftsVariablesBuilder(dataConnect, ); - } - - - GetShiftsByBusinessIdVariablesBuilder getShiftsByBusinessId ({required String businessId, }) { - return GetShiftsByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); - } - - - GetShiftsByVendorIdVariablesBuilder getShiftsByVendorId ({required String vendorId, }) { - return GetShiftsByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - ListStaffRolesVariablesBuilder listStaffRoles () { - return ListStaffRolesVariablesBuilder(dataConnect, ); - } - - - GetStaffRoleByKeyVariablesBuilder getStaffRoleByKey ({required String staffId, required String roleId, }) { - return GetStaffRoleByKeyVariablesBuilder(dataConnect, staffId: staffId,roleId: roleId,); - } - - - ListStaffRolesByStaffIdVariablesBuilder listStaffRolesByStaffId ({required String staffId, }) { - return ListStaffRolesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - ListStaffRolesByRoleIdVariablesBuilder listStaffRolesByRoleId ({required String roleId, }) { - return ListStaffRolesByRoleIdVariablesBuilder(dataConnect, roleId: roleId,); - } - - - FilterStaffRolesVariablesBuilder filterStaffRoles () { - return FilterStaffRolesVariablesBuilder(dataConnect, ); - } - - ListApplicationsVariablesBuilder listApplications () { return ListApplicationsVariablesBuilder(dataConnect, ); } @@ -3686,68 +3205,138 @@ class ExampleConnector { } - ListBusinessesVariablesBuilder listBusinesses () { - return ListBusinessesVariablesBuilder(dataConnect, ); + ListBenefitsDataVariablesBuilder listBenefitsData () { + return ListBenefitsDataVariablesBuilder(dataConnect, ); } - GetBusinessesByUserIdVariablesBuilder getBusinessesByUserId ({required String userId, }) { - return GetBusinessesByUserIdVariablesBuilder(dataConnect, userId: userId,); + GetBenefitsDataByKeyVariablesBuilder getBenefitsDataByKey ({required String staffId, required String vendorBenefitPlanId, }) { + return GetBenefitsDataByKeyVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); } - GetBusinessByIdVariablesBuilder getBusinessById ({required String id, }) { - return GetBusinessByIdVariablesBuilder(dataConnect, id: id,); + ListBenefitsDataByStaffIdVariablesBuilder listBenefitsDataByStaffId ({required String staffId, }) { + return ListBenefitsDataByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); } - ListInvoiceTemplatesVariablesBuilder listInvoiceTemplates () { - return ListInvoiceTemplatesVariablesBuilder(dataConnect, ); + ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder listBenefitsDataByVendorBenefitPlanId ({required String vendorBenefitPlanId, }) { + return ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder(dataConnect, vendorBenefitPlanId: vendorBenefitPlanId,); } - GetInvoiceTemplateByIdVariablesBuilder getInvoiceTemplateById ({required String id, }) { - return GetInvoiceTemplateByIdVariablesBuilder(dataConnect, id: id,); + ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder listBenefitsDataByVendorBenefitPlanIds ({required List vendorBenefitPlanIds, }) { + return ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder(dataConnect, vendorBenefitPlanIds: vendorBenefitPlanIds,); } - ListInvoiceTemplatesByOwnerIdVariablesBuilder listInvoiceTemplatesByOwnerId ({required String ownerId, }) { - return ListInvoiceTemplatesByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); + ListCertificatesVariablesBuilder listCertificates () { + return ListCertificatesVariablesBuilder(dataConnect, ); } - ListInvoiceTemplatesByVendorIdVariablesBuilder listInvoiceTemplatesByVendorId ({required String vendorId, }) { - return ListInvoiceTemplatesByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); + GetCertificateByIdVariablesBuilder getCertificateById ({required String id, }) { + return GetCertificateByIdVariablesBuilder(dataConnect, id: id,); } - ListInvoiceTemplatesByBusinessIdVariablesBuilder listInvoiceTemplatesByBusinessId ({required String businessId, }) { - return ListInvoiceTemplatesByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); + ListCertificatesByStaffIdVariablesBuilder listCertificatesByStaffId ({required String staffId, }) { + return ListCertificatesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); } - ListInvoiceTemplatesByOrderIdVariablesBuilder listInvoiceTemplatesByOrderId ({required String orderId, }) { - return ListInvoiceTemplatesByOrderIdVariablesBuilder(dataConnect, orderId: orderId,); + ListConversationsVariablesBuilder listConversations () { + return ListConversationsVariablesBuilder(dataConnect, ); } - SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder searchInvoiceTemplatesByOwnerAndName ({required String ownerId, required String name, }) { - return SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder(dataConnect, ownerId: ownerId,name: name,); + GetConversationByIdVariablesBuilder getConversationById ({required String id, }) { + return GetConversationByIdVariablesBuilder(dataConnect, id: id,); } - ListLevelsVariablesBuilder listLevels () { - return ListLevelsVariablesBuilder(dataConnect, ); + ListConversationsByTypeVariablesBuilder listConversationsByType ({required ConversationType conversationType, }) { + return ListConversationsByTypeVariablesBuilder(dataConnect, conversationType: conversationType,); } - GetLevelByIdVariablesBuilder getLevelById ({required String id, }) { - return GetLevelByIdVariablesBuilder(dataConnect, id: id,); + ListConversationsByStatusVariablesBuilder listConversationsByStatus ({required ConversationStatus status, }) { + return ListConversationsByStatusVariablesBuilder(dataConnect, status: status,); } - FilterLevelsVariablesBuilder filterLevels () { - return FilterLevelsVariablesBuilder(dataConnect, ); + FilterConversationsVariablesBuilder filterConversations () { + return FilterConversationsVariablesBuilder(dataConnect, ); + } + + + CreateStaffRoleVariablesBuilder createStaffRole ({required String staffId, required String roleId, }) { + return CreateStaffRoleVariablesBuilder(dataConnect, staffId: staffId,roleId: roleId,); + } + + + DeleteStaffRoleVariablesBuilder deleteStaffRole ({required String staffId, required String roleId, }) { + return DeleteStaffRoleVariablesBuilder(dataConnect, staffId: staffId,roleId: roleId,); + } + + + CreateVendorBenefitPlanVariablesBuilder createVendorBenefitPlan ({required String vendorId, required String title, }) { + return CreateVendorBenefitPlanVariablesBuilder(dataConnect, vendorId: vendorId,title: title,); + } + + + UpdateVendorBenefitPlanVariablesBuilder updateVendorBenefitPlan ({required String id, }) { + return UpdateVendorBenefitPlanVariablesBuilder(dataConnect, id: id,); + } + + + DeleteVendorBenefitPlanVariablesBuilder deleteVendorBenefitPlan ({required String id, }) { + return DeleteVendorBenefitPlanVariablesBuilder(dataConnect, id: id,); + } + + + CreateVendorRateVariablesBuilder createVendorRate ({required String vendorId, }) { + return CreateVendorRateVariablesBuilder(dataConnect, vendorId: vendorId,); + } + + + UpdateVendorRateVariablesBuilder updateVendorRate ({required String id, }) { + return UpdateVendorRateVariablesBuilder(dataConnect, id: id,); + } + + + DeleteVendorRateVariablesBuilder deleteVendorRate ({required String id, }) { + return DeleteVendorRateVariablesBuilder(dataConnect, id: id,); + } + + + CreateFaqDataVariablesBuilder createFaqData ({required String category, }) { + return CreateFaqDataVariablesBuilder(dataConnect, category: category,); + } + + + UpdateFaqDataVariablesBuilder updateFaqData ({required String id, }) { + return UpdateFaqDataVariablesBuilder(dataConnect, id: id,); + } + + + DeleteFaqDataVariablesBuilder deleteFaqData ({required String id, }) { + return DeleteFaqDataVariablesBuilder(dataConnect, id: id,); + } + + + CreateOrderVariablesBuilder createOrder ({required String businessId, required OrderType orderType, required String teamHubId, }) { + return CreateOrderVariablesBuilder(dataConnect, businessId: businessId,orderType: orderType,teamHubId: teamHubId,); + } + + + UpdateOrderVariablesBuilder updateOrder ({required String id, required String teamHubId, }) { + return UpdateOrderVariablesBuilder(dataConnect, id: id,teamHubId: teamHubId,); + } + + + DeleteOrderVariablesBuilder deleteOrder ({required String id, }) { + return DeleteOrderVariablesBuilder(dataConnect, id: id,); } @@ -3766,33 +3355,43 @@ class ExampleConnector { } - CreateTeamHubVariablesBuilder createTeamHub ({required String teamId, required String hubName, required String address, }) { - return CreateTeamHubVariablesBuilder(dataConnect, teamId: teamId,hubName: hubName,address: address,); + CreateUserConversationVariablesBuilder createUserConversation ({required String conversationId, required String userId, }) { + return CreateUserConversationVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); } - UpdateTeamHubVariablesBuilder updateTeamHub ({required String id, }) { - return UpdateTeamHubVariablesBuilder(dataConnect, id: id,); + UpdateUserConversationVariablesBuilder updateUserConversation ({required String conversationId, required String userId, }) { + return UpdateUserConversationVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); } - DeleteTeamHubVariablesBuilder deleteTeamHub ({required String id, }) { - return DeleteTeamHubVariablesBuilder(dataConnect, id: id,); + MarkConversationAsReadVariablesBuilder markConversationAsRead ({required String conversationId, required String userId, }) { + return MarkConversationAsReadVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); } - ListTeamHudDepartmentsVariablesBuilder listTeamHudDepartments () { - return ListTeamHudDepartmentsVariablesBuilder(dataConnect, ); + IncrementUnreadForUserVariablesBuilder incrementUnreadForUser ({required String conversationId, required String userId, required int unreadCount, }) { + return IncrementUnreadForUserVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,unreadCount: unreadCount,); } - GetTeamHudDepartmentByIdVariablesBuilder getTeamHudDepartmentById ({required String id, }) { - return GetTeamHudDepartmentByIdVariablesBuilder(dataConnect, id: id,); + DeleteUserConversationVariablesBuilder deleteUserConversation ({required String conversationId, required String userId, }) { + return DeleteUserConversationVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); } - ListTeamHudDepartmentsByTeamHubIdVariablesBuilder listTeamHudDepartmentsByTeamHubId ({required String teamHubId, }) { - return ListTeamHudDepartmentsByTeamHubIdVariablesBuilder(dataConnect, teamHubId: teamHubId,); + CreateStaffCourseVariablesBuilder createStaffCourse ({required String staffId, required String courseId, }) { + return CreateStaffCourseVariablesBuilder(dataConnect, staffId: staffId,courseId: courseId,); + } + + + UpdateStaffCourseVariablesBuilder updateStaffCourse ({required String id, }) { + return UpdateStaffCourseVariablesBuilder(dataConnect, id: id,); + } + + + DeleteStaffCourseVariablesBuilder deleteStaffCourse ({required String id, }) { + return DeleteStaffCourseVariablesBuilder(dataConnect, id: id,); } @@ -3821,73 +3420,93 @@ class ExampleConnector { } - CreateAssignmentVariablesBuilder createAssignment ({required String workforceId, required String roleId, required String shiftId, }) { - return CreateAssignmentVariablesBuilder(dataConnect, workforceId: workforceId,roleId: roleId,shiftId: shiftId,); + ListVendorRatesVariablesBuilder listVendorRates () { + return ListVendorRatesVariablesBuilder(dataConnect, ); } - UpdateAssignmentVariablesBuilder updateAssignment ({required String id, required String roleId, required String shiftId, }) { - return UpdateAssignmentVariablesBuilder(dataConnect, id: id,roleId: roleId,shiftId: shiftId,); + GetVendorRateByIdVariablesBuilder getVendorRateById ({required String id, }) { + return GetVendorRateByIdVariablesBuilder(dataConnect, id: id,); } - DeleteAssignmentVariablesBuilder deleteAssignment ({required String id, }) { - return DeleteAssignmentVariablesBuilder(dataConnect, id: id,); + GetWorkforceByIdVariablesBuilder getWorkforceById ({required String id, }) { + return GetWorkforceByIdVariablesBuilder(dataConnect, id: id,); } - ListAttireOptionsVariablesBuilder listAttireOptions () { - return ListAttireOptionsVariablesBuilder(dataConnect, ); + GetWorkforceByVendorAndStaffVariablesBuilder getWorkforceByVendorAndStaff ({required String vendorId, required String staffId, }) { + return GetWorkforceByVendorAndStaffVariablesBuilder(dataConnect, vendorId: vendorId,staffId: staffId,); } - GetAttireOptionByIdVariablesBuilder getAttireOptionById ({required String id, }) { - return GetAttireOptionByIdVariablesBuilder(dataConnect, id: id,); + ListWorkforceByVendorIdVariablesBuilder listWorkforceByVendorId ({required String vendorId, }) { + return ListWorkforceByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); } - FilterAttireOptionsVariablesBuilder filterAttireOptions () { - return FilterAttireOptionsVariablesBuilder(dataConnect, ); + ListWorkforceByStaffIdVariablesBuilder listWorkforceByStaffId ({required String staffId, }) { + return ListWorkforceByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); } - ListBenefitsDataVariablesBuilder listBenefitsData () { - return ListBenefitsDataVariablesBuilder(dataConnect, ); + GetWorkforceByVendorAndNumberVariablesBuilder getWorkforceByVendorAndNumber ({required String vendorId, required String workforceNumber, }) { + return GetWorkforceByVendorAndNumberVariablesBuilder(dataConnect, vendorId: vendorId,workforceNumber: workforceNumber,); } - GetBenefitsDataByKeyVariablesBuilder getBenefitsDataByKey ({required String staffId, required String vendorBenefitPlanId, }) { - return GetBenefitsDataByKeyVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); + ListActivityLogsVariablesBuilder listActivityLogs () { + return ListActivityLogsVariablesBuilder(dataConnect, ); } - ListBenefitsDataByStaffIdVariablesBuilder listBenefitsDataByStaffId ({required String staffId, }) { - return ListBenefitsDataByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + GetActivityLogByIdVariablesBuilder getActivityLogById ({required String id, }) { + return GetActivityLogByIdVariablesBuilder(dataConnect, id: id,); } - ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder listBenefitsDataByVendorBenefitPlanId ({required String vendorBenefitPlanId, }) { - return ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder(dataConnect, vendorBenefitPlanId: vendorBenefitPlanId,); + ListActivityLogsByUserIdVariablesBuilder listActivityLogsByUserId ({required String userId, }) { + return ListActivityLogsByUserIdVariablesBuilder(dataConnect, userId: userId,); } - ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder listBenefitsDataByVendorBenefitPlanIds ({required List vendorBenefitPlanIds, }) { - return ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder(dataConnect, vendorBenefitPlanIds: vendorBenefitPlanIds,); + ListUnreadActivityLogsByUserIdVariablesBuilder listUnreadActivityLogsByUserId ({required String userId, }) { + return ListUnreadActivityLogsByUserIdVariablesBuilder(dataConnect, userId: userId,); } - CreateStaffCourseVariablesBuilder createStaffCourse ({required String staffId, required String courseId, }) { - return CreateStaffCourseVariablesBuilder(dataConnect, staffId: staffId,courseId: courseId,); + FilterActivityLogsVariablesBuilder filterActivityLogs () { + return FilterActivityLogsVariablesBuilder(dataConnect, ); } - UpdateStaffCourseVariablesBuilder updateStaffCourse ({required String id, }) { - return UpdateStaffCourseVariablesBuilder(dataConnect, id: id,); + ListBusinessesVariablesBuilder listBusinesses () { + return ListBusinessesVariablesBuilder(dataConnect, ); } - DeleteStaffCourseVariablesBuilder deleteStaffCourse ({required String id, }) { - return DeleteStaffCourseVariablesBuilder(dataConnect, id: id,); + GetBusinessesByUserIdVariablesBuilder getBusinessesByUserId ({required String userId, }) { + return GetBusinessesByUserIdVariablesBuilder(dataConnect, userId: userId,); + } + + + GetBusinessByIdVariablesBuilder getBusinessById ({required String id, }) { + return GetBusinessByIdVariablesBuilder(dataConnect, id: id,); + } + + + CreateShiftRoleVariablesBuilder createShiftRole ({required String shiftId, required String roleId, required int count, }) { + return CreateShiftRoleVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,count: count,); + } + + + UpdateShiftRoleVariablesBuilder updateShiftRole ({required String shiftId, required String roleId, }) { + return UpdateShiftRoleVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,); + } + + + DeleteShiftRoleVariablesBuilder deleteShiftRole ({required String shiftId, required String roleId, }) { + return DeleteShiftRoleVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,); } @@ -3906,48 +3525,343 @@ class ExampleConnector { } - CreateVendorBenefitPlanVariablesBuilder createVendorBenefitPlan ({required String vendorId, required String title, }) { - return CreateVendorBenefitPlanVariablesBuilder(dataConnect, vendorId: vendorId,title: title,); + CreateTeamHudDepartmentVariablesBuilder createTeamHudDepartment ({required String name, required String teamHubId, }) { + return CreateTeamHudDepartmentVariablesBuilder(dataConnect, name: name,teamHubId: teamHubId,); } - UpdateVendorBenefitPlanVariablesBuilder updateVendorBenefitPlan ({required String id, }) { - return UpdateVendorBenefitPlanVariablesBuilder(dataConnect, id: id,); + UpdateTeamHudDepartmentVariablesBuilder updateTeamHudDepartment ({required String id, }) { + return UpdateTeamHudDepartmentVariablesBuilder(dataConnect, id: id,); } - DeleteVendorBenefitPlanVariablesBuilder deleteVendorBenefitPlan ({required String id, }) { - return DeleteVendorBenefitPlanVariablesBuilder(dataConnect, id: id,); + DeleteTeamHudDepartmentVariablesBuilder deleteTeamHudDepartment ({required String id, }) { + return DeleteTeamHudDepartmentVariablesBuilder(dataConnect, id: id,); } - CreateCourseVariablesBuilder createCourse ({required String categoryId, }) { - return CreateCourseVariablesBuilder(dataConnect, categoryId: categoryId,); + CreateWorkforceVariablesBuilder createWorkforce ({required String vendorId, required String staffId, required String workforceNumber, }) { + return CreateWorkforceVariablesBuilder(dataConnect, vendorId: vendorId,staffId: staffId,workforceNumber: workforceNumber,); } - UpdateCourseVariablesBuilder updateCourse ({required String id, required String categoryId, }) { - return UpdateCourseVariablesBuilder(dataConnect, id: id,categoryId: categoryId,); + UpdateWorkforceVariablesBuilder updateWorkforce ({required String id, }) { + return UpdateWorkforceVariablesBuilder(dataConnect, id: id,); } - DeleteCourseVariablesBuilder deleteCourse ({required String id, }) { - return DeleteCourseVariablesBuilder(dataConnect, id: id,); + DeactivateWorkforceVariablesBuilder deactivateWorkforce ({required String id, }) { + return DeactivateWorkforceVariablesBuilder(dataConnect, id: id,); } - CreateLevelVariablesBuilder createLevel ({required String name, required int xpRequired, }) { - return CreateLevelVariablesBuilder(dataConnect, name: name,xpRequired: xpRequired,); + CreateAccountVariablesBuilder createAccount ({required String bank, required AccountType type, required String last4, required String ownerId, }) { + return CreateAccountVariablesBuilder(dataConnect, bank: bank,type: type,last4: last4,ownerId: ownerId,); } - UpdateLevelVariablesBuilder updateLevel ({required String id, }) { - return UpdateLevelVariablesBuilder(dataConnect, id: id,); + UpdateAccountVariablesBuilder updateAccount ({required String id, }) { + return UpdateAccountVariablesBuilder(dataConnect, id: id,); } - DeleteLevelVariablesBuilder deleteLevel ({required String id, }) { - return DeleteLevelVariablesBuilder(dataConnect, id: id,); + DeleteAccountVariablesBuilder deleteAccount ({required String id, }) { + return DeleteAccountVariablesBuilder(dataConnect, id: id,); + } + + + ListFaqDatasVariablesBuilder listFaqDatas () { + return ListFaqDatasVariablesBuilder(dataConnect, ); + } + + + GetFaqDataByIdVariablesBuilder getFaqDataById ({required String id, }) { + return GetFaqDataByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterFaqDatasVariablesBuilder filterFaqDatas () { + return FilterFaqDatasVariablesBuilder(dataConnect, ); + } + + + CreateStaffAvailabilityStatsVariablesBuilder createStaffAvailabilityStats ({required String staffId, }) { + return CreateStaffAvailabilityStatsVariablesBuilder(dataConnect, staffId: staffId,); + } + + + UpdateStaffAvailabilityStatsVariablesBuilder updateStaffAvailabilityStats ({required String staffId, }) { + return UpdateStaffAvailabilityStatsVariablesBuilder(dataConnect, staffId: staffId,); + } + + + DeleteStaffAvailabilityStatsVariablesBuilder deleteStaffAvailabilityStats ({required String staffId, }) { + return DeleteStaffAvailabilityStatsVariablesBuilder(dataConnect, staffId: staffId,); + } + + + ListTeamMembersVariablesBuilder listTeamMembers () { + return ListTeamMembersVariablesBuilder(dataConnect, ); + } + + + GetTeamMemberByIdVariablesBuilder getTeamMemberById ({required String id, }) { + return GetTeamMemberByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetTeamMembersByTeamIdVariablesBuilder getTeamMembersByTeamId ({required String teamId, }) { + return GetTeamMembersByTeamIdVariablesBuilder(dataConnect, teamId: teamId,); + } + + + ListUserConversationsVariablesBuilder listUserConversations () { + return ListUserConversationsVariablesBuilder(dataConnect, ); + } + + + GetUserConversationByKeyVariablesBuilder getUserConversationByKey ({required String conversationId, required String userId, }) { + return GetUserConversationByKeyVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); + } + + + ListUserConversationsByUserIdVariablesBuilder listUserConversationsByUserId ({required String userId, }) { + return ListUserConversationsByUserIdVariablesBuilder(dataConnect, userId: userId,); + } + + + ListUnreadUserConversationsByUserIdVariablesBuilder listUnreadUserConversationsByUserId ({required String userId, }) { + return ListUnreadUserConversationsByUserIdVariablesBuilder(dataConnect, userId: userId,); + } + + + ListUserConversationsByConversationIdVariablesBuilder listUserConversationsByConversationId ({required String conversationId, }) { + return ListUserConversationsByConversationIdVariablesBuilder(dataConnect, conversationId: conversationId,); + } + + + FilterUserConversationsVariablesBuilder filterUserConversations () { + return FilterUserConversationsVariablesBuilder(dataConnect, ); + } + + + GetVendorByIdVariablesBuilder getVendorById ({required String id, }) { + return GetVendorByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetVendorByUserIdVariablesBuilder getVendorByUserId ({required String userId, }) { + return GetVendorByUserIdVariablesBuilder(dataConnect, userId: userId,); + } + + + ListVendorsVariablesBuilder listVendors () { + return ListVendorsVariablesBuilder(dataConnect, ); + } + + + ListCoursesVariablesBuilder listCourses () { + return ListCoursesVariablesBuilder(dataConnect, ); + } + + + GetCourseByIdVariablesBuilder getCourseById ({required String id, }) { + return GetCourseByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterCoursesVariablesBuilder filterCourses () { + return FilterCoursesVariablesBuilder(dataConnect, ); + } + + + CreateMessageVariablesBuilder createMessage ({required String conversationId, required String senderId, required String content, }) { + return CreateMessageVariablesBuilder(dataConnect, conversationId: conversationId,senderId: senderId,content: content,); + } + + + UpdateMessageVariablesBuilder updateMessage ({required String id, }) { + return UpdateMessageVariablesBuilder(dataConnect, id: id,); + } + + + DeleteMessageVariablesBuilder deleteMessage ({required String id, }) { + return DeleteMessageVariablesBuilder(dataConnect, id: id,); + } + + + ListRolesVariablesBuilder listRoles () { + return ListRolesVariablesBuilder(dataConnect, ); + } + + + GetRoleByIdVariablesBuilder getRoleById ({required String id, }) { + return GetRoleByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListRolesByVendorIdVariablesBuilder listRolesByVendorId ({required String vendorId, }) { + return ListRolesByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); + } + + + ListRolesByroleCategoryIdVariablesBuilder listRolesByroleCategoryId ({required String roleCategoryId, }) { + return ListRolesByroleCategoryIdVariablesBuilder(dataConnect, roleCategoryId: roleCategoryId,); + } + + + CreateTaxFormVariablesBuilder createTaxForm ({required TaxFormType formType, required String firstName, required String lastName, required int socialSN, required String address, required TaxFormStatus status, required String staffId, }) { + return CreateTaxFormVariablesBuilder(dataConnect, formType: formType,firstName: firstName,lastName: lastName,socialSN: socialSN,address: address,status: status,staffId: staffId,); + } + + + UpdateTaxFormVariablesBuilder updateTaxForm ({required String id, }) { + return UpdateTaxFormVariablesBuilder(dataConnect, id: id,); + } + + + DeleteTaxFormVariablesBuilder deleteTaxForm ({required String id, }) { + return DeleteTaxFormVariablesBuilder(dataConnect, id: id,); + } + + + CreateApplicationVariablesBuilder createApplication ({required String shiftId, required String staffId, required ApplicationStatus status, required ApplicationOrigin origin, required String roleId, }) { + return CreateApplicationVariablesBuilder(dataConnect, shiftId: shiftId,staffId: staffId,status: status,origin: origin,roleId: roleId,); + } + + + UpdateApplicationStatusVariablesBuilder updateApplicationStatus ({required String id, required String roleId, }) { + return UpdateApplicationStatusVariablesBuilder(dataConnect, id: id,roleId: roleId,); + } + + + DeleteApplicationVariablesBuilder deleteApplication ({required String id, }) { + return DeleteApplicationVariablesBuilder(dataConnect, id: id,); + } + + + ListAssignmentsVariablesBuilder listAssignments () { + return ListAssignmentsVariablesBuilder(dataConnect, ); + } + + + GetAssignmentByIdVariablesBuilder getAssignmentById ({required String id, }) { + return GetAssignmentByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListAssignmentsByWorkforceIdVariablesBuilder listAssignmentsByWorkforceId ({required String workforceId, }) { + return ListAssignmentsByWorkforceIdVariablesBuilder(dataConnect, workforceId: workforceId,); + } + + + ListAssignmentsByWorkforceIdsVariablesBuilder listAssignmentsByWorkforceIds ({required List workforceIds, }) { + return ListAssignmentsByWorkforceIdsVariablesBuilder(dataConnect, workforceIds: workforceIds,); + } + + + ListAssignmentsByShiftRoleVariablesBuilder listAssignmentsByShiftRole ({required String shiftId, required String roleId, }) { + return ListAssignmentsByShiftRoleVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,); + } + + + FilterAssignmentsVariablesBuilder filterAssignments ({required List shiftIds, required List roleIds, }) { + return FilterAssignmentsVariablesBuilder(dataConnect, shiftIds: shiftIds,roleIds: roleIds,); + } + + + CreateCategoryVariablesBuilder createCategory ({required String categoryId, required String label, }) { + return CreateCategoryVariablesBuilder(dataConnect, categoryId: categoryId,label: label,); + } + + + UpdateCategoryVariablesBuilder updateCategory ({required String id, }) { + return UpdateCategoryVariablesBuilder(dataConnect, id: id,); + } + + + DeleteCategoryVariablesBuilder deleteCategory ({required String id, }) { + return DeleteCategoryVariablesBuilder(dataConnect, id: id,); + } + + + ListLevelsVariablesBuilder listLevels () { + return ListLevelsVariablesBuilder(dataConnect, ); + } + + + GetLevelByIdVariablesBuilder getLevelById ({required String id, }) { + return GetLevelByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterLevelsVariablesBuilder filterLevels () { + return FilterLevelsVariablesBuilder(dataConnect, ); + } + + + CreateBusinessVariablesBuilder createBusiness ({required String businessName, required String userId, required BusinessRateGroup rateGroup, required BusinessStatus status, }) { + return CreateBusinessVariablesBuilder(dataConnect, businessName: businessName,userId: userId,rateGroup: rateGroup,status: status,); + } + + + UpdateBusinessVariablesBuilder updateBusiness ({required String id, }) { + return UpdateBusinessVariablesBuilder(dataConnect, id: id,); + } + + + DeleteBusinessVariablesBuilder deleteBusiness ({required String id, }) { + return DeleteBusinessVariablesBuilder(dataConnect, id: id,); + } + + + CreateClientFeedbackVariablesBuilder createClientFeedback ({required String businessId, required String vendorId, }) { + return CreateClientFeedbackVariablesBuilder(dataConnect, businessId: businessId,vendorId: vendorId,); + } + + + UpdateClientFeedbackVariablesBuilder updateClientFeedback ({required String id, }) { + return UpdateClientFeedbackVariablesBuilder(dataConnect, id: id,); + } + + + DeleteClientFeedbackVariablesBuilder deleteClientFeedback ({required String id, }) { + return DeleteClientFeedbackVariablesBuilder(dataConnect, id: id,); + } + + + CreateHubVariablesBuilder createHub ({required String name, required String ownerId, }) { + return CreateHubVariablesBuilder(dataConnect, name: name,ownerId: ownerId,); + } + + + UpdateHubVariablesBuilder updateHub ({required String id, }) { + return UpdateHubVariablesBuilder(dataConnect, id: id,); + } + + + DeleteHubVariablesBuilder deleteHub ({required String id, }) { + return DeleteHubVariablesBuilder(dataConnect, id: id,); + } + + + ListHubsVariablesBuilder listHubs () { + return ListHubsVariablesBuilder(dataConnect, ); + } + + + GetHubByIdVariablesBuilder getHubById ({required String id, }) { + return GetHubByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetHubsByOwnerIdVariablesBuilder getHubsByOwnerId ({required String ownerId, }) { + return GetHubsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); + } + + + FilterHubsVariablesBuilder filterHubs () { + return FilterHubsVariablesBuilder(dataConnect, ); } @@ -3991,158 +3905,88 @@ class ExampleConnector { } - CreateStaffDocumentVariablesBuilder createStaffDocument ({required String staffId, required String staffName, required String documentId, required DocumentStatus status, }) { - return CreateStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,staffName: staffName,documentId: documentId,status: status,); + CreateRoleCategoryVariablesBuilder createRoleCategory ({required String roleName, required RoleCategoryType category, }) { + return CreateRoleCategoryVariablesBuilder(dataConnect, roleName: roleName,category: category,); } - UpdateStaffDocumentVariablesBuilder updateStaffDocument ({required String staffId, required String documentId, }) { - return UpdateStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); + UpdateRoleCategoryVariablesBuilder updateRoleCategory ({required String id, }) { + return UpdateRoleCategoryVariablesBuilder(dataConnect, id: id,); } - DeleteStaffDocumentVariablesBuilder deleteStaffDocument ({required String staffId, required String documentId, }) { - return DeleteStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); + DeleteRoleCategoryVariablesBuilder deleteRoleCategory ({required String id, }) { + return DeleteRoleCategoryVariablesBuilder(dataConnect, id: id,); } - CreateTeamMemberVariablesBuilder createTeamMember ({required String teamId, required TeamMemberRole role, required String userId, }) { - return CreateTeamMemberVariablesBuilder(dataConnect, teamId: teamId,role: role,userId: userId,); + CreateTeamVariablesBuilder createTeam ({required String teamName, required String ownerId, required String ownerName, required String ownerRole, }) { + return CreateTeamVariablesBuilder(dataConnect, teamName: teamName,ownerId: ownerId,ownerName: ownerName,ownerRole: ownerRole,); } - UpdateTeamMemberVariablesBuilder updateTeamMember ({required String id, }) { - return UpdateTeamMemberVariablesBuilder(dataConnect, id: id,); + UpdateTeamVariablesBuilder updateTeam ({required String id, }) { + return UpdateTeamVariablesBuilder(dataConnect, id: id,); } - UpdateTeamMemberInviteStatusVariablesBuilder updateTeamMemberInviteStatus ({required String id, required TeamMemberInviteStatus inviteStatus, }) { - return UpdateTeamMemberInviteStatusVariablesBuilder(dataConnect, id: id,inviteStatus: inviteStatus,); + DeleteTeamVariablesBuilder deleteTeam ({required String id, }) { + return DeleteTeamVariablesBuilder(dataConnect, id: id,); } - AcceptInviteByCodeVariablesBuilder acceptInviteByCode ({required String inviteCode, }) { - return AcceptInviteByCodeVariablesBuilder(dataConnect, inviteCode: inviteCode,); + ListClientFeedbacksVariablesBuilder listClientFeedbacks () { + return ListClientFeedbacksVariablesBuilder(dataConnect, ); } - CancelInviteByCodeVariablesBuilder cancelInviteByCode ({required String inviteCode, }) { - return CancelInviteByCodeVariablesBuilder(dataConnect, inviteCode: inviteCode,); + GetClientFeedbackByIdVariablesBuilder getClientFeedbackById ({required String id, }) { + return GetClientFeedbackByIdVariablesBuilder(dataConnect, id: id,); } - DeleteTeamMemberVariablesBuilder deleteTeamMember ({required String id, }) { - return DeleteTeamMemberVariablesBuilder(dataConnect, id: id,); + ListClientFeedbacksByBusinessIdVariablesBuilder listClientFeedbacksByBusinessId ({required String businessId, }) { + return ListClientFeedbacksByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); } - ListUserConversationsVariablesBuilder listUserConversations () { - return ListUserConversationsVariablesBuilder(dataConnect, ); + ListClientFeedbacksByVendorIdVariablesBuilder listClientFeedbacksByVendorId ({required String vendorId, }) { + return ListClientFeedbacksByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); } - GetUserConversationByKeyVariablesBuilder getUserConversationByKey ({required String conversationId, required String userId, }) { - return GetUserConversationByKeyVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); + ListClientFeedbacksByBusinessAndVendorVariablesBuilder listClientFeedbacksByBusinessAndVendor ({required String businessId, required String vendorId, }) { + return ListClientFeedbacksByBusinessAndVendorVariablesBuilder(dataConnect, businessId: businessId,vendorId: vendorId,); } - ListUserConversationsByUserIdVariablesBuilder listUserConversationsByUserId ({required String userId, }) { - return ListUserConversationsByUserIdVariablesBuilder(dataConnect, userId: userId,); + FilterClientFeedbacksVariablesBuilder filterClientFeedbacks () { + return FilterClientFeedbacksVariablesBuilder(dataConnect, ); } - ListUnreadUserConversationsByUserIdVariablesBuilder listUnreadUserConversationsByUserId ({required String userId, }) { - return ListUnreadUserConversationsByUserIdVariablesBuilder(dataConnect, userId: userId,); + ListClientFeedbackRatingsByVendorIdVariablesBuilder listClientFeedbackRatingsByVendorId ({required String vendorId, }) { + return ListClientFeedbackRatingsByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); } - ListUserConversationsByConversationIdVariablesBuilder listUserConversationsByConversationId ({required String conversationId, }) { - return ListUserConversationsByConversationIdVariablesBuilder(dataConnect, conversationId: conversationId,); + CreateConversationVariablesBuilder createConversation () { + return CreateConversationVariablesBuilder(dataConnect, ); } - FilterUserConversationsVariablesBuilder filterUserConversations () { - return FilterUserConversationsVariablesBuilder(dataConnect, ); + UpdateConversationVariablesBuilder updateConversation ({required String id, }) { + return UpdateConversationVariablesBuilder(dataConnect, id: id,); } - ListVendorRatesVariablesBuilder listVendorRates () { - return ListVendorRatesVariablesBuilder(dataConnect, ); + UpdateConversationLastMessageVariablesBuilder updateConversationLastMessage ({required String id, }) { + return UpdateConversationLastMessageVariablesBuilder(dataConnect, id: id,); } - GetVendorRateByIdVariablesBuilder getVendorRateById ({required String id, }) { - return GetVendorRateByIdVariablesBuilder(dataConnect, id: id,); - } - - - CreateBusinessVariablesBuilder createBusiness ({required String businessName, required String userId, required BusinessRateGroup rateGroup, required BusinessStatus status, }) { - return CreateBusinessVariablesBuilder(dataConnect, businessName: businessName,userId: userId,rateGroup: rateGroup,status: status,); - } - - - UpdateBusinessVariablesBuilder updateBusiness ({required String id, }) { - return UpdateBusinessVariablesBuilder(dataConnect, id: id,); - } - - - DeleteBusinessVariablesBuilder deleteBusiness ({required String id, }) { - return DeleteBusinessVariablesBuilder(dataConnect, id: id,); - } - - - CreateInvoiceVariablesBuilder createInvoice ({required InvoiceStatus status, required String vendorId, required String businessId, required String orderId, required String invoiceNumber, required Timestamp issueDate, required Timestamp dueDate, required double amount, }) { - return CreateInvoiceVariablesBuilder(dataConnect, status: status,vendorId: vendorId,businessId: businessId,orderId: orderId,invoiceNumber: invoiceNumber,issueDate: issueDate,dueDate: dueDate,amount: amount,); - } - - - UpdateInvoiceVariablesBuilder updateInvoice ({required String id, }) { - return UpdateInvoiceVariablesBuilder(dataConnect, id: id,); - } - - - DeleteInvoiceVariablesBuilder deleteInvoice ({required String id, }) { - return DeleteInvoiceVariablesBuilder(dataConnect, id: id,); - } - - - ListInvoicesVariablesBuilder listInvoices () { - return ListInvoicesVariablesBuilder(dataConnect, ); - } - - - GetInvoiceByIdVariablesBuilder getInvoiceById ({required String id, }) { - return GetInvoiceByIdVariablesBuilder(dataConnect, id: id,); - } - - - ListInvoicesByVendorIdVariablesBuilder listInvoicesByVendorId ({required String vendorId, }) { - return ListInvoicesByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - ListInvoicesByBusinessIdVariablesBuilder listInvoicesByBusinessId ({required String businessId, }) { - return ListInvoicesByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); - } - - - ListInvoicesByOrderIdVariablesBuilder listInvoicesByOrderId ({required String orderId, }) { - return ListInvoicesByOrderIdVariablesBuilder(dataConnect, orderId: orderId,); - } - - - ListInvoicesByStatusVariablesBuilder listInvoicesByStatus ({required InvoiceStatus status, }) { - return ListInvoicesByStatusVariablesBuilder(dataConnect, status: status,); - } - - - FilterInvoicesVariablesBuilder filterInvoices () { - return FilterInvoicesVariablesBuilder(dataConnect, ); - } - - - ListOverdueInvoicesVariablesBuilder listOverdueInvoices ({required Timestamp now, }) { - return ListOverdueInvoicesVariablesBuilder(dataConnect, now: now,); + DeleteConversationVariablesBuilder deleteConversation ({required String id, }) { + return DeleteConversationVariablesBuilder(dataConnect, id: id,); } @@ -4241,53 +4085,48 @@ class ExampleConnector { } - ListTeamHubsVariablesBuilder listTeamHubs () { - return ListTeamHubsVariablesBuilder(dataConnect, ); + CreateStaffAvailabilityVariablesBuilder createStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { + return CreateStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); } - GetTeamHubByIdVariablesBuilder getTeamHubById ({required String id, }) { - return GetTeamHubByIdVariablesBuilder(dataConnect, id: id,); + UpdateStaffAvailabilityVariablesBuilder updateStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { + return UpdateStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); } - GetTeamHubsByTeamIdVariablesBuilder getTeamHubsByTeamId ({required String teamId, }) { - return GetTeamHubsByTeamIdVariablesBuilder(dataConnect, teamId: teamId,); + DeleteStaffAvailabilityVariablesBuilder deleteStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { + return DeleteStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); } - ListTeamHubsByOwnerIdVariablesBuilder listTeamHubsByOwnerId ({required String ownerId, }) { - return ListTeamHubsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); + ListTeamHudDepartmentsVariablesBuilder listTeamHudDepartments () { + return ListTeamHudDepartmentsVariablesBuilder(dataConnect, ); } - CreateTeamHudDepartmentVariablesBuilder createTeamHudDepartment ({required String name, required String teamHubId, }) { - return CreateTeamHudDepartmentVariablesBuilder(dataConnect, name: name,teamHubId: teamHubId,); + GetTeamHudDepartmentByIdVariablesBuilder getTeamHudDepartmentById ({required String id, }) { + return GetTeamHudDepartmentByIdVariablesBuilder(dataConnect, id: id,); } - UpdateTeamHudDepartmentVariablesBuilder updateTeamHudDepartment ({required String id, }) { - return UpdateTeamHudDepartmentVariablesBuilder(dataConnect, id: id,); + ListTeamHudDepartmentsByTeamHubIdVariablesBuilder listTeamHudDepartmentsByTeamHubId ({required String teamHubId, }) { + return ListTeamHudDepartmentsByTeamHubIdVariablesBuilder(dataConnect, teamHubId: teamHubId,); } - DeleteTeamHudDepartmentVariablesBuilder deleteTeamHudDepartment ({required String id, }) { - return DeleteTeamHudDepartmentVariablesBuilder(dataConnect, id: id,); + ListUsersVariablesBuilder listUsers () { + return ListUsersVariablesBuilder(dataConnect, ); } - CreateVendorRateVariablesBuilder createVendorRate ({required String vendorId, }) { - return CreateVendorRateVariablesBuilder(dataConnect, vendorId: vendorId,); + GetUserByIdVariablesBuilder getUserById ({required String id, }) { + return GetUserByIdVariablesBuilder(dataConnect, id: id,); } - UpdateVendorRateVariablesBuilder updateVendorRate ({required String id, }) { - return UpdateVendorRateVariablesBuilder(dataConnect, id: id,); - } - - - DeleteVendorRateVariablesBuilder deleteVendorRate ({required String id, }) { - return DeleteVendorRateVariablesBuilder(dataConnect, id: id,); + FilterUsersVariablesBuilder filterUsers () { + return FilterUsersVariablesBuilder(dataConnect, ); } @@ -4311,153 +4150,88 @@ class ExampleConnector { } - ListActivityLogsVariablesBuilder listActivityLogs () { - return ListActivityLogsVariablesBuilder(dataConnect, ); + CreateAssignmentVariablesBuilder createAssignment ({required String workforceId, required String roleId, required String shiftId, }) { + return CreateAssignmentVariablesBuilder(dataConnect, workforceId: workforceId,roleId: roleId,shiftId: shiftId,); } - GetActivityLogByIdVariablesBuilder getActivityLogById ({required String id, }) { - return GetActivityLogByIdVariablesBuilder(dataConnect, id: id,); + UpdateAssignmentVariablesBuilder updateAssignment ({required String id, required String roleId, required String shiftId, }) { + return UpdateAssignmentVariablesBuilder(dataConnect, id: id,roleId: roleId,shiftId: shiftId,); } - ListActivityLogsByUserIdVariablesBuilder listActivityLogsByUserId ({required String userId, }) { - return ListActivityLogsByUserIdVariablesBuilder(dataConnect, userId: userId,); + DeleteAssignmentVariablesBuilder deleteAssignment ({required String id, }) { + return DeleteAssignmentVariablesBuilder(dataConnect, id: id,); } - ListUnreadActivityLogsByUserIdVariablesBuilder listUnreadActivityLogsByUserId ({required String userId, }) { - return ListUnreadActivityLogsByUserIdVariablesBuilder(dataConnect, userId: userId,); + ListAttireOptionsVariablesBuilder listAttireOptions () { + return ListAttireOptionsVariablesBuilder(dataConnect, ); } - FilterActivityLogsVariablesBuilder filterActivityLogs () { - return FilterActivityLogsVariablesBuilder(dataConnect, ); + GetAttireOptionByIdVariablesBuilder getAttireOptionById ({required String id, }) { + return GetAttireOptionByIdVariablesBuilder(dataConnect, id: id,); } - CreateAttireOptionVariablesBuilder createAttireOption ({required String itemId, required String label, }) { - return CreateAttireOptionVariablesBuilder(dataConnect, itemId: itemId,label: label,); + FilterAttireOptionsVariablesBuilder filterAttireOptions () { + return FilterAttireOptionsVariablesBuilder(dataConnect, ); } - UpdateAttireOptionVariablesBuilder updateAttireOption ({required String id, }) { - return UpdateAttireOptionVariablesBuilder(dataConnect, id: id,); + ListInvoicesVariablesBuilder listInvoices () { + return ListInvoicesVariablesBuilder(dataConnect, ); } - DeleteAttireOptionVariablesBuilder deleteAttireOption ({required String id, }) { - return DeleteAttireOptionVariablesBuilder(dataConnect, id: id,); + GetInvoiceByIdVariablesBuilder getInvoiceById ({required String id, }) { + return GetInvoiceByIdVariablesBuilder(dataConnect, id: id,); } - CreateClientFeedbackVariablesBuilder createClientFeedback ({required String businessId, required String vendorId, }) { - return CreateClientFeedbackVariablesBuilder(dataConnect, businessId: businessId,vendorId: vendorId,); + ListInvoicesByVendorIdVariablesBuilder listInvoicesByVendorId ({required String vendorId, }) { + return ListInvoicesByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); } - UpdateClientFeedbackVariablesBuilder updateClientFeedback ({required String id, }) { - return UpdateClientFeedbackVariablesBuilder(dataConnect, id: id,); + ListInvoicesByBusinessIdVariablesBuilder listInvoicesByBusinessId ({required String businessId, }) { + return ListInvoicesByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); } - DeleteClientFeedbackVariablesBuilder deleteClientFeedback ({required String id, }) { - return DeleteClientFeedbackVariablesBuilder(dataConnect, id: id,); + ListInvoicesByOrderIdVariablesBuilder listInvoicesByOrderId ({required String orderId, }) { + return ListInvoicesByOrderIdVariablesBuilder(dataConnect, orderId: orderId,); } - ListFaqDatasVariablesBuilder listFaqDatas () { - return ListFaqDatasVariablesBuilder(dataConnect, ); + ListInvoicesByStatusVariablesBuilder listInvoicesByStatus ({required InvoiceStatus status, }) { + return ListInvoicesByStatusVariablesBuilder(dataConnect, status: status,); } - GetFaqDataByIdVariablesBuilder getFaqDataById ({required String id, }) { - return GetFaqDataByIdVariablesBuilder(dataConnect, id: id,); + FilterInvoicesVariablesBuilder filterInvoices () { + return FilterInvoicesVariablesBuilder(dataConnect, ); } - FilterFaqDatasVariablesBuilder filterFaqDatas () { - return FilterFaqDatasVariablesBuilder(dataConnect, ); + ListOverdueInvoicesVariablesBuilder listOverdueInvoices ({required Timestamp now, }) { + return ListOverdueInvoicesVariablesBuilder(dataConnect, now: now,); } - CreateRecentPaymentVariablesBuilder createRecentPayment ({required String staffId, required String applicationId, required String invoiceId, }) { - return CreateRecentPaymentVariablesBuilder(dataConnect, staffId: staffId,applicationId: applicationId,invoiceId: invoiceId,); + ListMessagesVariablesBuilder listMessages () { + return ListMessagesVariablesBuilder(dataConnect, ); } - UpdateRecentPaymentVariablesBuilder updateRecentPayment ({required String id, }) { - return UpdateRecentPaymentVariablesBuilder(dataConnect, id: id,); + GetMessageByIdVariablesBuilder getMessageById ({required String id, }) { + return GetMessageByIdVariablesBuilder(dataConnect, id: id,); } - DeleteRecentPaymentVariablesBuilder deleteRecentPayment ({required String id, }) { - return DeleteRecentPaymentVariablesBuilder(dataConnect, id: id,); - } - - - CreateBenefitsDataVariablesBuilder createBenefitsData ({required String vendorBenefitPlanId, required String staffId, required int current, }) { - return CreateBenefitsDataVariablesBuilder(dataConnect, vendorBenefitPlanId: vendorBenefitPlanId,staffId: staffId,current: current,); - } - - - UpdateBenefitsDataVariablesBuilder updateBenefitsData ({required String staffId, required String vendorBenefitPlanId, }) { - return UpdateBenefitsDataVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); - } - - - DeleteBenefitsDataVariablesBuilder deleteBenefitsData ({required String staffId, required String vendorBenefitPlanId, }) { - return DeleteBenefitsDataVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); - } - - - CreateEmergencyContactVariablesBuilder createEmergencyContact ({required String name, required String phone, required RelationshipType relationship, required String staffId, }) { - return CreateEmergencyContactVariablesBuilder(dataConnect, name: name,phone: phone,relationship: relationship,staffId: staffId,); - } - - - UpdateEmergencyContactVariablesBuilder updateEmergencyContact ({required String id, }) { - return UpdateEmergencyContactVariablesBuilder(dataConnect, id: id,); - } - - - DeleteEmergencyContactVariablesBuilder deleteEmergencyContact ({required String id, }) { - return DeleteEmergencyContactVariablesBuilder(dataConnect, id: id,); - } - - - CreateInvoiceTemplateVariablesBuilder createInvoiceTemplate ({required String name, required String ownerId, }) { - return CreateInvoiceTemplateVariablesBuilder(dataConnect, name: name,ownerId: ownerId,); - } - - - UpdateInvoiceTemplateVariablesBuilder updateInvoiceTemplate ({required String id, }) { - return UpdateInvoiceTemplateVariablesBuilder(dataConnect, id: id,); - } - - - DeleteInvoiceTemplateVariablesBuilder deleteInvoiceTemplate ({required String id, }) { - return DeleteInvoiceTemplateVariablesBuilder(dataConnect, id: id,); - } - - - GetStaffDocumentByKeyVariablesBuilder getStaffDocumentByKey ({required String staffId, required String documentId, }) { - return GetStaffDocumentByKeyVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); - } - - - ListStaffDocumentsByStaffIdVariablesBuilder listStaffDocumentsByStaffId ({required String staffId, }) { - return ListStaffDocumentsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - ListStaffDocumentsByDocumentTypeVariablesBuilder listStaffDocumentsByDocumentType ({required DocumentType documentType, }) { - return ListStaffDocumentsByDocumentTypeVariablesBuilder(dataConnect, documentType: documentType,); - } - - - ListStaffDocumentsByStatusVariablesBuilder listStaffDocumentsByStatus ({required DocumentStatus status, }) { - return ListStaffDocumentsByStatusVariablesBuilder(dataConnect, status: status,); + GetMessagesByConversationIdVariablesBuilder getMessagesByConversationId ({required String conversationId, }) { + return GetMessagesByConversationIdVariablesBuilder(dataConnect, conversationId: conversationId,); } @@ -4476,21 +4250,6 @@ class ExampleConnector { } - ListTeamsVariablesBuilder listTeams () { - return ListTeamsVariablesBuilder(dataConnect, ); - } - - - GetTeamByIdVariablesBuilder getTeamById ({required String id, }) { - return GetTeamByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetTeamsByOwnerIdVariablesBuilder getTeamsByOwnerId ({required String ownerId, }) { - return GetTeamsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); - } - - CreateUserVariablesBuilder createUser ({required String id, required UserBaseRole role, }) { return CreateUserVariablesBuilder(dataConnect, id: id,role: role,); } @@ -4506,18 +4265,198 @@ class ExampleConnector { } - CreateWorkforceVariablesBuilder createWorkforce ({required String vendorId, required String staffId, required String workforceNumber, }) { - return CreateWorkforceVariablesBuilder(dataConnect, vendorId: vendorId,staffId: staffId,workforceNumber: workforceNumber,); + ListCategoriesVariablesBuilder listCategories () { + return ListCategoriesVariablesBuilder(dataConnect, ); } - UpdateWorkforceVariablesBuilder updateWorkforce ({required String id, }) { - return UpdateWorkforceVariablesBuilder(dataConnect, id: id,); + GetCategoryByIdVariablesBuilder getCategoryById ({required String id, }) { + return GetCategoryByIdVariablesBuilder(dataConnect, id: id,); } - DeactivateWorkforceVariablesBuilder deactivateWorkforce ({required String id, }) { - return DeactivateWorkforceVariablesBuilder(dataConnect, id: id,); + FilterCategoriesVariablesBuilder filterCategories () { + return FilterCategoriesVariablesBuilder(dataConnect, ); + } + + + ListCustomRateCardsVariablesBuilder listCustomRateCards () { + return ListCustomRateCardsVariablesBuilder(dataConnect, ); + } + + + GetCustomRateCardByIdVariablesBuilder getCustomRateCardById ({required String id, }) { + return GetCustomRateCardByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListDocumentsVariablesBuilder listDocuments () { + return ListDocumentsVariablesBuilder(dataConnect, ); + } + + + GetDocumentByIdVariablesBuilder getDocumentById ({required String id, }) { + return GetDocumentByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterDocumentsVariablesBuilder filterDocuments () { + return FilterDocumentsVariablesBuilder(dataConnect, ); + } + + + CreateInvoiceTemplateVariablesBuilder createInvoiceTemplate ({required String name, required String ownerId, }) { + return CreateInvoiceTemplateVariablesBuilder(dataConnect, name: name,ownerId: ownerId,); + } + + + UpdateInvoiceTemplateVariablesBuilder updateInvoiceTemplate ({required String id, }) { + return UpdateInvoiceTemplateVariablesBuilder(dataConnect, id: id,); + } + + + DeleteInvoiceTemplateVariablesBuilder deleteInvoiceTemplate ({required String id, }) { + return DeleteInvoiceTemplateVariablesBuilder(dataConnect, id: id,); + } + + + ListStaffAvailabilityStatsVariablesBuilder listStaffAvailabilityStats () { + return ListStaffAvailabilityStatsVariablesBuilder(dataConnect, ); + } + + + GetStaffAvailabilityStatsByStaffIdVariablesBuilder getStaffAvailabilityStatsByStaffId ({required String staffId, }) { + return GetStaffAvailabilityStatsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + FilterStaffAvailabilityStatsVariablesBuilder filterStaffAvailabilityStats () { + return FilterStaffAvailabilityStatsVariablesBuilder(dataConnect, ); + } + + + CreateBenefitsDataVariablesBuilder createBenefitsData ({required String vendorBenefitPlanId, required String staffId, required int current, }) { + return CreateBenefitsDataVariablesBuilder(dataConnect, vendorBenefitPlanId: vendorBenefitPlanId,staffId: staffId,current: current,); + } + + + UpdateBenefitsDataVariablesBuilder updateBenefitsData ({required String staffId, required String vendorBenefitPlanId, }) { + return UpdateBenefitsDataVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); + } + + + DeleteBenefitsDataVariablesBuilder deleteBenefitsData ({required String staffId, required String vendorBenefitPlanId, }) { + return DeleteBenefitsDataVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); + } + + + CreateCustomRateCardVariablesBuilder createCustomRateCard ({required String name, }) { + return CreateCustomRateCardVariablesBuilder(dataConnect, name: name,); + } + + + UpdateCustomRateCardVariablesBuilder updateCustomRateCard ({required String id, }) { + return UpdateCustomRateCardVariablesBuilder(dataConnect, id: id,); + } + + + DeleteCustomRateCardVariablesBuilder deleteCustomRateCard ({required String id, }) { + return DeleteCustomRateCardVariablesBuilder(dataConnect, id: id,); + } + + + CreateEmergencyContactVariablesBuilder createEmergencyContact ({required String name, required String phone, required RelationshipType relationship, required String staffId, }) { + return CreateEmergencyContactVariablesBuilder(dataConnect, name: name,phone: phone,relationship: relationship,staffId: staffId,); + } + + + UpdateEmergencyContactVariablesBuilder updateEmergencyContact ({required String id, }) { + return UpdateEmergencyContactVariablesBuilder(dataConnect, id: id,); + } + + + DeleteEmergencyContactVariablesBuilder deleteEmergencyContact ({required String id, }) { + return DeleteEmergencyContactVariablesBuilder(dataConnect, id: id,); + } + + + ListStaffAvailabilitiesVariablesBuilder listStaffAvailabilities () { + return ListStaffAvailabilitiesVariablesBuilder(dataConnect, ); + } + + + ListStaffAvailabilitiesByStaffIdVariablesBuilder listStaffAvailabilitiesByStaffId ({required String staffId, }) { + return ListStaffAvailabilitiesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + GetStaffAvailabilityByKeyVariablesBuilder getStaffAvailabilityByKey ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { + return GetStaffAvailabilityByKeyVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); + } + + + ListStaffAvailabilitiesByDayVariablesBuilder listStaffAvailabilitiesByDay ({required DayOfWeek day, }) { + return ListStaffAvailabilitiesByDayVariablesBuilder(dataConnect, day: day,); + } + + + GetStaffCourseByIdVariablesBuilder getStaffCourseById ({required String id, }) { + return GetStaffCourseByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListStaffCoursesByStaffIdVariablesBuilder listStaffCoursesByStaffId ({required String staffId, }) { + return ListStaffCoursesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + ListStaffCoursesByCourseIdVariablesBuilder listStaffCoursesByCourseId ({required String courseId, }) { + return ListStaffCoursesByCourseIdVariablesBuilder(dataConnect, courseId: courseId,); + } + + + GetStaffCourseByStaffAndCourseVariablesBuilder getStaffCourseByStaffAndCourse ({required String staffId, required String courseId, }) { + return GetStaffCourseByStaffAndCourseVariablesBuilder(dataConnect, staffId: staffId,courseId: courseId,); + } + + + ListStaffRolesVariablesBuilder listStaffRoles () { + return ListStaffRolesVariablesBuilder(dataConnect, ); + } + + + GetStaffRoleByKeyVariablesBuilder getStaffRoleByKey ({required String staffId, required String roleId, }) { + return GetStaffRoleByKeyVariablesBuilder(dataConnect, staffId: staffId,roleId: roleId,); + } + + + ListStaffRolesByStaffIdVariablesBuilder listStaffRolesByStaffId ({required String staffId, }) { + return ListStaffRolesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + ListStaffRolesByRoleIdVariablesBuilder listStaffRolesByRoleId ({required String roleId, }) { + return ListStaffRolesByRoleIdVariablesBuilder(dataConnect, roleId: roleId,); + } + + + FilterStaffRolesVariablesBuilder filterStaffRoles () { + return FilterStaffRolesVariablesBuilder(dataConnect, ); + } + + + CreateCertificateVariablesBuilder createCertificate ({required String name, required CertificateStatus status, required String staffId, }) { + return CreateCertificateVariablesBuilder(dataConnect, name: name,status: status,staffId: staffId,); + } + + + UpdateCertificateVariablesBuilder updateCertificate ({required String id, }) { + return UpdateCertificateVariablesBuilder(dataConnect, id: id,); + } + + + DeleteCertificateVariablesBuilder deleteCertificate ({required String id, }) { + return DeleteCertificateVariablesBuilder(dataConnect, id: id,); } @@ -4535,6 +4474,141 @@ class ExampleConnector { return GetEmergencyContactsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); } + + ListInvoiceTemplatesVariablesBuilder listInvoiceTemplates () { + return ListInvoiceTemplatesVariablesBuilder(dataConnect, ); + } + + + GetInvoiceTemplateByIdVariablesBuilder getInvoiceTemplateById ({required String id, }) { + return GetInvoiceTemplateByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListInvoiceTemplatesByOwnerIdVariablesBuilder listInvoiceTemplatesByOwnerId ({required String ownerId, }) { + return ListInvoiceTemplatesByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); + } + + + ListInvoiceTemplatesByVendorIdVariablesBuilder listInvoiceTemplatesByVendorId ({required String vendorId, }) { + return ListInvoiceTemplatesByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); + } + + + ListInvoiceTemplatesByBusinessIdVariablesBuilder listInvoiceTemplatesByBusinessId ({required String businessId, }) { + return ListInvoiceTemplatesByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); + } + + + ListInvoiceTemplatesByOrderIdVariablesBuilder listInvoiceTemplatesByOrderId ({required String orderId, }) { + return ListInvoiceTemplatesByOrderIdVariablesBuilder(dataConnect, orderId: orderId,); + } + + + SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder searchInvoiceTemplatesByOwnerAndName ({required String ownerId, required String name, }) { + return SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder(dataConnect, ownerId: ownerId,name: name,); + } + + + ListOrdersVariablesBuilder listOrders () { + return ListOrdersVariablesBuilder(dataConnect, ); + } + + + GetOrderByIdVariablesBuilder getOrderById ({required String id, }) { + return GetOrderByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetOrdersByBusinessIdVariablesBuilder getOrdersByBusinessId ({required String businessId, }) { + return GetOrdersByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); + } + + + GetOrdersByVendorIdVariablesBuilder getOrdersByVendorId ({required String vendorId, }) { + return GetOrdersByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); + } + + + GetOrdersByStatusVariablesBuilder getOrdersByStatus ({required OrderStatus status, }) { + return GetOrdersByStatusVariablesBuilder(dataConnect, status: status,); + } + + + GetOrdersByDateRangeVariablesBuilder getOrdersByDateRange ({required Timestamp start, required Timestamp end, }) { + return GetOrdersByDateRangeVariablesBuilder(dataConnect, start: start,end: end,); + } + + + GetRapidOrdersVariablesBuilder getRapidOrders () { + return GetRapidOrdersVariablesBuilder(dataConnect, ); + } + + + ListOrdersByBusinessAndTeamHubVariablesBuilder listOrdersByBusinessAndTeamHub ({required String businessId, required String teamHubId, }) { + return ListOrdersByBusinessAndTeamHubVariablesBuilder(dataConnect, businessId: businessId,teamHubId: teamHubId,); + } + + + ListRoleCategoriesVariablesBuilder listRoleCategories () { + return ListRoleCategoriesVariablesBuilder(dataConnect, ); + } + + + GetRoleCategoryByIdVariablesBuilder getRoleCategoryById ({required String id, }) { + return GetRoleCategoryByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetRoleCategoriesByCategoryVariablesBuilder getRoleCategoriesByCategory ({required RoleCategoryType category, }) { + return GetRoleCategoriesByCategoryVariablesBuilder(dataConnect, category: category,); + } + + + CreateTaskCommentVariablesBuilder createTaskComment ({required String taskId, required String teamMemberId, required String comment, }) { + return CreateTaskCommentVariablesBuilder(dataConnect, taskId: taskId,teamMemberId: teamMemberId,comment: comment,); + } + + + UpdateTaskCommentVariablesBuilder updateTaskComment ({required String id, }) { + return UpdateTaskCommentVariablesBuilder(dataConnect, id: id,); + } + + + DeleteTaskCommentVariablesBuilder deleteTaskComment ({required String id, }) { + return DeleteTaskCommentVariablesBuilder(dataConnect, id: id,); + } + + + CreateTeamHubVariablesBuilder createTeamHub ({required String teamId, required String hubName, required String address, }) { + return CreateTeamHubVariablesBuilder(dataConnect, teamId: teamId,hubName: hubName,address: address,); + } + + + UpdateTeamHubVariablesBuilder updateTeamHub ({required String id, }) { + return UpdateTeamHubVariablesBuilder(dataConnect, id: id,); + } + + + DeleteTeamHubVariablesBuilder deleteTeamHub ({required String id, }) { + return DeleteTeamHubVariablesBuilder(dataConnect, id: id,); + } + + + CreateAttireOptionVariablesBuilder createAttireOption ({required String itemId, required String label, }) { + return CreateAttireOptionVariablesBuilder(dataConnect, itemId: itemId,label: label,); + } + + + UpdateAttireOptionVariablesBuilder updateAttireOption ({required String id, }) { + return UpdateAttireOptionVariablesBuilder(dataConnect, id: id,); + } + + + DeleteAttireOptionVariablesBuilder deleteAttireOption ({required String id, }) { + return DeleteAttireOptionVariablesBuilder(dataConnect, id: id,); + } + static ConnectorConfig connectorConfig = ConnectorConfig( 'us-central1', diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_application_by_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_application_by_id.dart index 2f8bfcb5..d097fb30 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_application_by_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_application_by_id.dart @@ -198,14 +198,14 @@ class GetApplicationByIdApplicationShift { class GetApplicationByIdApplicationShiftOrder { final String id; final String? eventName; - final String? location; + final GetApplicationByIdApplicationShiftOrderTeamHub teamHub; final GetApplicationByIdApplicationShiftOrderBusiness business; final GetApplicationByIdApplicationShiftOrderVendor? vendor; GetApplicationByIdApplicationShiftOrder.fromJson(dynamic json): id = nativeFromJson(json['id']), eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - location = json['location'] == null ? null : nativeFromJson(json['location']), + teamHub = GetApplicationByIdApplicationShiftOrderTeamHub.fromJson(json['teamHub']), business = GetApplicationByIdApplicationShiftOrderBusiness.fromJson(json['business']), vendor = json['vendor'] == null ? null : GetApplicationByIdApplicationShiftOrderVendor.fromJson(json['vendor']); @override @@ -220,13 +220,13 @@ class GetApplicationByIdApplicationShiftOrder { final GetApplicationByIdApplicationShiftOrder otherTyped = other as GetApplicationByIdApplicationShiftOrder; return id == otherTyped.id && eventName == otherTyped.eventName && - location == otherTyped.location && + teamHub == otherTyped.teamHub && business == otherTyped.business && vendor == otherTyped.vendor; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode, business.hashCode, vendor.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, teamHub.hashCode, business.hashCode, vendor.hashCode]); Map toJson() { @@ -235,9 +235,7 @@ class GetApplicationByIdApplicationShiftOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (location != null) { - json['location'] = nativeToJson(location); - } + json['teamHub'] = teamHub.toJson(); json['business'] = business.toJson(); if (vendor != null) { json['vendor'] = vendor!.toJson(); @@ -248,12 +246,58 @@ class GetApplicationByIdApplicationShiftOrder { GetApplicationByIdApplicationShiftOrder({ required this.id, this.eventName, - this.location, + required this.teamHub, required this.business, this.vendor, }); } +@immutable +class GetApplicationByIdApplicationShiftOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + GetApplicationByIdApplicationShiftOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final GetApplicationByIdApplicationShiftOrderTeamHub otherTyped = other as GetApplicationByIdApplicationShiftOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + GetApplicationByIdApplicationShiftOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, + }); +} + @immutable class GetApplicationByIdApplicationShiftOrderBusiness { final String id; diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_applications_by_shift_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_applications_by_shift_id.dart index 69630e56..83b34422 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_applications_by_shift_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_applications_by_shift_id.dart @@ -198,14 +198,14 @@ class GetApplicationsByShiftIdApplicationsShift { class GetApplicationsByShiftIdApplicationsShiftOrder { final String id; final String? eventName; - final String? location; + final GetApplicationsByShiftIdApplicationsShiftOrderTeamHub teamHub; final GetApplicationsByShiftIdApplicationsShiftOrderBusiness business; final GetApplicationsByShiftIdApplicationsShiftOrderVendor? vendor; GetApplicationsByShiftIdApplicationsShiftOrder.fromJson(dynamic json): id = nativeFromJson(json['id']), eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - location = json['location'] == null ? null : nativeFromJson(json['location']), + teamHub = GetApplicationsByShiftIdApplicationsShiftOrderTeamHub.fromJson(json['teamHub']), business = GetApplicationsByShiftIdApplicationsShiftOrderBusiness.fromJson(json['business']), vendor = json['vendor'] == null ? null : GetApplicationsByShiftIdApplicationsShiftOrderVendor.fromJson(json['vendor']); @override @@ -220,13 +220,13 @@ class GetApplicationsByShiftIdApplicationsShiftOrder { final GetApplicationsByShiftIdApplicationsShiftOrder otherTyped = other as GetApplicationsByShiftIdApplicationsShiftOrder; return id == otherTyped.id && eventName == otherTyped.eventName && - location == otherTyped.location && + teamHub == otherTyped.teamHub && business == otherTyped.business && vendor == otherTyped.vendor; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode, business.hashCode, vendor.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, teamHub.hashCode, business.hashCode, vendor.hashCode]); Map toJson() { @@ -235,9 +235,7 @@ class GetApplicationsByShiftIdApplicationsShiftOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (location != null) { - json['location'] = nativeToJson(location); - } + json['teamHub'] = teamHub.toJson(); json['business'] = business.toJson(); if (vendor != null) { json['vendor'] = vendor!.toJson(); @@ -248,12 +246,58 @@ class GetApplicationsByShiftIdApplicationsShiftOrder { GetApplicationsByShiftIdApplicationsShiftOrder({ required this.id, this.eventName, - this.location, + required this.teamHub, required this.business, this.vendor, }); } +@immutable +class GetApplicationsByShiftIdApplicationsShiftOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + GetApplicationsByShiftIdApplicationsShiftOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final GetApplicationsByShiftIdApplicationsShiftOrderTeamHub otherTyped = other as GetApplicationsByShiftIdApplicationsShiftOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + GetApplicationsByShiftIdApplicationsShiftOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, + }); +} + @immutable class GetApplicationsByShiftIdApplicationsShiftOrderBusiness { final String id; diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_applications_by_shift_id_and_status.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_applications_by_shift_id_and_status.dart index f915ffba..68ba5463 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_applications_by_shift_id_and_status.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_applications_by_shift_id_and_status.dart @@ -209,14 +209,14 @@ class GetApplicationsByShiftIdAndStatusApplicationsShift { class GetApplicationsByShiftIdAndStatusApplicationsShiftOrder { final String id; final String? eventName; - final String? location; + final GetApplicationsByShiftIdAndStatusApplicationsShiftOrderTeamHub teamHub; final GetApplicationsByShiftIdAndStatusApplicationsShiftOrderBusiness business; final GetApplicationsByShiftIdAndStatusApplicationsShiftOrderVendor? vendor; GetApplicationsByShiftIdAndStatusApplicationsShiftOrder.fromJson(dynamic json): id = nativeFromJson(json['id']), eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - location = json['location'] == null ? null : nativeFromJson(json['location']), + teamHub = GetApplicationsByShiftIdAndStatusApplicationsShiftOrderTeamHub.fromJson(json['teamHub']), business = GetApplicationsByShiftIdAndStatusApplicationsShiftOrderBusiness.fromJson(json['business']), vendor = json['vendor'] == null ? null : GetApplicationsByShiftIdAndStatusApplicationsShiftOrderVendor.fromJson(json['vendor']); @override @@ -231,13 +231,13 @@ class GetApplicationsByShiftIdAndStatusApplicationsShiftOrder { final GetApplicationsByShiftIdAndStatusApplicationsShiftOrder otherTyped = other as GetApplicationsByShiftIdAndStatusApplicationsShiftOrder; return id == otherTyped.id && eventName == otherTyped.eventName && - location == otherTyped.location && + teamHub == otherTyped.teamHub && business == otherTyped.business && vendor == otherTyped.vendor; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode, business.hashCode, vendor.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, teamHub.hashCode, business.hashCode, vendor.hashCode]); Map toJson() { @@ -246,9 +246,7 @@ class GetApplicationsByShiftIdAndStatusApplicationsShiftOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (location != null) { - json['location'] = nativeToJson(location); - } + json['teamHub'] = teamHub.toJson(); json['business'] = business.toJson(); if (vendor != null) { json['vendor'] = vendor!.toJson(); @@ -259,12 +257,58 @@ class GetApplicationsByShiftIdAndStatusApplicationsShiftOrder { GetApplicationsByShiftIdAndStatusApplicationsShiftOrder({ required this.id, this.eventName, - this.location, + required this.teamHub, required this.business, this.vendor, }); } +@immutable +class GetApplicationsByShiftIdAndStatusApplicationsShiftOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + GetApplicationsByShiftIdAndStatusApplicationsShiftOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final GetApplicationsByShiftIdAndStatusApplicationsShiftOrderTeamHub otherTyped = other as GetApplicationsByShiftIdAndStatusApplicationsShiftOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + GetApplicationsByShiftIdAndStatusApplicationsShiftOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, + }); +} + @immutable class GetApplicationsByShiftIdAndStatusApplicationsShiftOrderBusiness { final String id; diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_applications_by_staff_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_applications_by_staff_id.dart index 257d3b50..d775ed07 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_applications_by_staff_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_applications_by_staff_id.dart @@ -208,14 +208,14 @@ class GetApplicationsByStaffIdApplicationsShift { class GetApplicationsByStaffIdApplicationsShiftOrder { final String id; final String? eventName; - final String? location; + final GetApplicationsByStaffIdApplicationsShiftOrderTeamHub teamHub; final GetApplicationsByStaffIdApplicationsShiftOrderBusiness business; final GetApplicationsByStaffIdApplicationsShiftOrderVendor? vendor; GetApplicationsByStaffIdApplicationsShiftOrder.fromJson(dynamic json): id = nativeFromJson(json['id']), eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - location = json['location'] == null ? null : nativeFromJson(json['location']), + teamHub = GetApplicationsByStaffIdApplicationsShiftOrderTeamHub.fromJson(json['teamHub']), business = GetApplicationsByStaffIdApplicationsShiftOrderBusiness.fromJson(json['business']), vendor = json['vendor'] == null ? null : GetApplicationsByStaffIdApplicationsShiftOrderVendor.fromJson(json['vendor']); @override @@ -230,13 +230,13 @@ class GetApplicationsByStaffIdApplicationsShiftOrder { final GetApplicationsByStaffIdApplicationsShiftOrder otherTyped = other as GetApplicationsByStaffIdApplicationsShiftOrder; return id == otherTyped.id && eventName == otherTyped.eventName && - location == otherTyped.location && + teamHub == otherTyped.teamHub && business == otherTyped.business && vendor == otherTyped.vendor; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode, business.hashCode, vendor.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, teamHub.hashCode, business.hashCode, vendor.hashCode]); Map toJson() { @@ -245,9 +245,7 @@ class GetApplicationsByStaffIdApplicationsShiftOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (location != null) { - json['location'] = nativeToJson(location); - } + json['teamHub'] = teamHub.toJson(); json['business'] = business.toJson(); if (vendor != null) { json['vendor'] = vendor!.toJson(); @@ -258,12 +256,58 @@ class GetApplicationsByStaffIdApplicationsShiftOrder { GetApplicationsByStaffIdApplicationsShiftOrder({ required this.id, this.eventName, - this.location, + required this.teamHub, required this.business, this.vendor, }); } +@immutable +class GetApplicationsByStaffIdApplicationsShiftOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + GetApplicationsByStaffIdApplicationsShiftOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final GetApplicationsByStaffIdApplicationsShiftOrderTeamHub otherTyped = other as GetApplicationsByStaffIdApplicationsShiftOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + GetApplicationsByStaffIdApplicationsShiftOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, + }); +} + @immutable class GetApplicationsByStaffIdApplicationsShiftOrderBusiness { final String id; diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_invoice_by_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_invoice_by_id.dart index f27c8d4c..1e1f2ce7 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_invoice_by_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_invoice_by_id.dart @@ -321,15 +321,15 @@ class GetInvoiceByIdInvoiceBusiness { @immutable class GetInvoiceByIdInvoiceOrder { final String? eventName; - final String? hub; final String? deparment; final String? poReference; + final GetInvoiceByIdInvoiceOrderTeamHub teamHub; GetInvoiceByIdInvoiceOrder.fromJson(dynamic json): eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - hub = json['hub'] == null ? null : nativeFromJson(json['hub']), deparment = json['deparment'] == null ? null : nativeFromJson(json['deparment']), - poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']); + poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']), + teamHub = GetInvoiceByIdInvoiceOrderTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -341,13 +341,13 @@ class GetInvoiceByIdInvoiceOrder { final GetInvoiceByIdInvoiceOrder otherTyped = other as GetInvoiceByIdInvoiceOrder; return eventName == otherTyped.eventName && - hub == otherTyped.hub && deparment == otherTyped.deparment && - poReference == otherTyped.poReference; + poReference == otherTyped.poReference && + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]); + int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode, teamHub.hashCode]); Map toJson() { @@ -355,23 +355,67 @@ class GetInvoiceByIdInvoiceOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (hub != null) { - json['hub'] = nativeToJson(hub); - } if (deparment != null) { json['deparment'] = nativeToJson(deparment); } if (poReference != null) { json['poReference'] = nativeToJson(poReference); } + json['teamHub'] = teamHub.toJson(); return json; } GetInvoiceByIdInvoiceOrder({ this.eventName, - this.hub, this.deparment, this.poReference, + required this.teamHub, + }); +} + +@immutable +class GetInvoiceByIdInvoiceOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + GetInvoiceByIdInvoiceOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final GetInvoiceByIdInvoiceOrderTeamHub otherTyped = other as GetInvoiceByIdInvoiceOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + GetInvoiceByIdInvoiceOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_order_by_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_order_by_id.dart index 24fdb607..d1af2e07 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_order_by_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_order_by_id.dart @@ -24,7 +24,6 @@ class GetOrderByIdOrder { final String? vendorId; final String businessId; final EnumValue orderType; - final String? location; final EnumValue status; final Timestamp? date; final Timestamp? startDate; @@ -35,7 +34,6 @@ class GetOrderByIdOrder { final AnyValue? assignedStaff; final AnyValue? shifts; final int? requested; - final String? hub; final AnyValue? recurringDays; final AnyValue? permanentDays; final String? poReference; @@ -44,6 +42,7 @@ class GetOrderByIdOrder { final Timestamp? createdAt; final GetOrderByIdOrderBusiness business; final GetOrderByIdOrderVendor? vendor; + final GetOrderByIdOrderTeamHub teamHub; GetOrderByIdOrder.fromJson(dynamic json): id = nativeFromJson(json['id']), @@ -51,7 +50,6 @@ class GetOrderByIdOrder { vendorId = json['vendorId'] == null ? null : nativeFromJson(json['vendorId']), businessId = nativeFromJson(json['businessId']), orderType = orderTypeDeserializer(json['orderType']), - location = json['location'] == null ? null : nativeFromJson(json['location']), status = orderStatusDeserializer(json['status']), date = json['date'] == null ? null : Timestamp.fromJson(json['date']), startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']), @@ -62,7 +60,6 @@ class GetOrderByIdOrder { assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']), shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']), requested = json['requested'] == null ? null : nativeFromJson(json['requested']), - hub = json['hub'] == null ? null : nativeFromJson(json['hub']), recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']), permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']), poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']), @@ -70,7 +67,8 @@ class GetOrderByIdOrder { notes = json['notes'] == null ? null : nativeFromJson(json['notes']), createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), business = GetOrderByIdOrderBusiness.fromJson(json['business']), - vendor = json['vendor'] == null ? null : GetOrderByIdOrderVendor.fromJson(json['vendor']); + vendor = json['vendor'] == null ? null : GetOrderByIdOrderVendor.fromJson(json['vendor']), + teamHub = GetOrderByIdOrderTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -86,7 +84,6 @@ class GetOrderByIdOrder { vendorId == otherTyped.vendorId && businessId == otherTyped.businessId && orderType == otherTyped.orderType && - location == otherTyped.location && status == otherTyped.status && date == otherTyped.date && startDate == otherTyped.startDate && @@ -97,7 +94,6 @@ class GetOrderByIdOrder { assignedStaff == otherTyped.assignedStaff && shifts == otherTyped.shifts && requested == otherTyped.requested && - hub == otherTyped.hub && recurringDays == otherTyped.recurringDays && permanentDays == otherTyped.permanentDays && poReference == otherTyped.poReference && @@ -105,11 +101,12 @@ class GetOrderByIdOrder { notes == otherTyped.notes && createdAt == otherTyped.createdAt && business == otherTyped.business && - vendor == otherTyped.vendor; + vendor == otherTyped.vendor && + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode, teamHub.hashCode]); Map toJson() { @@ -125,9 +122,6 @@ class GetOrderByIdOrder { json['orderType'] = orderTypeSerializer(orderType) ; - if (location != null) { - json['location'] = nativeToJson(location); - } json['status'] = orderStatusSerializer(status) ; @@ -160,9 +154,6 @@ class GetOrderByIdOrder { if (requested != null) { json['requested'] = nativeToJson(requested); } - if (hub != null) { - json['hub'] = nativeToJson(hub); - } if (recurringDays != null) { json['recurringDays'] = recurringDays!.toJson(); } @@ -185,6 +176,7 @@ class GetOrderByIdOrder { if (vendor != null) { json['vendor'] = vendor!.toJson(); } + json['teamHub'] = teamHub.toJson(); return json; } @@ -194,7 +186,6 @@ class GetOrderByIdOrder { this.vendorId, required this.businessId, required this.orderType, - this.location, required this.status, this.date, this.startDate, @@ -205,7 +196,6 @@ class GetOrderByIdOrder { this.assignedStaff, this.shifts, this.requested, - this.hub, this.recurringDays, this.permanentDays, this.poReference, @@ -214,6 +204,7 @@ class GetOrderByIdOrder { this.createdAt, required this.business, this.vendor, + required this.teamHub, }); } @@ -309,6 +300,52 @@ class GetOrderByIdOrderVendor { }); } +@immutable +class GetOrderByIdOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + GetOrderByIdOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final GetOrderByIdOrderTeamHub otherTyped = other as GetOrderByIdOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + GetOrderByIdOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, + }); +} + @immutable class GetOrderByIdData { final GetOrderByIdOrder? order; diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_orders_by_business_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_orders_by_business_id.dart index 52795c9b..a118bf0e 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_orders_by_business_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_orders_by_business_id.dart @@ -34,7 +34,6 @@ class GetOrdersByBusinessIdOrders { final String? vendorId; final String businessId; final EnumValue orderType; - final String? location; final EnumValue status; final Timestamp? date; final Timestamp? startDate; @@ -45,7 +44,6 @@ class GetOrdersByBusinessIdOrders { final AnyValue? assignedStaff; final AnyValue? shifts; final int? requested; - final String? hub; final AnyValue? recurringDays; final AnyValue? permanentDays; final String? poReference; @@ -54,6 +52,7 @@ class GetOrdersByBusinessIdOrders { final Timestamp? createdAt; final GetOrdersByBusinessIdOrdersBusiness business; final GetOrdersByBusinessIdOrdersVendor? vendor; + final GetOrdersByBusinessIdOrdersTeamHub teamHub; GetOrdersByBusinessIdOrders.fromJson(dynamic json): id = nativeFromJson(json['id']), @@ -61,7 +60,6 @@ class GetOrdersByBusinessIdOrders { vendorId = json['vendorId'] == null ? null : nativeFromJson(json['vendorId']), businessId = nativeFromJson(json['businessId']), orderType = orderTypeDeserializer(json['orderType']), - location = json['location'] == null ? null : nativeFromJson(json['location']), status = orderStatusDeserializer(json['status']), date = json['date'] == null ? null : Timestamp.fromJson(json['date']), startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']), @@ -72,7 +70,6 @@ class GetOrdersByBusinessIdOrders { assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']), shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']), requested = json['requested'] == null ? null : nativeFromJson(json['requested']), - hub = json['hub'] == null ? null : nativeFromJson(json['hub']), recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']), permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']), poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']), @@ -80,7 +77,8 @@ class GetOrdersByBusinessIdOrders { notes = json['notes'] == null ? null : nativeFromJson(json['notes']), createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), business = GetOrdersByBusinessIdOrdersBusiness.fromJson(json['business']), - vendor = json['vendor'] == null ? null : GetOrdersByBusinessIdOrdersVendor.fromJson(json['vendor']); + vendor = json['vendor'] == null ? null : GetOrdersByBusinessIdOrdersVendor.fromJson(json['vendor']), + teamHub = GetOrdersByBusinessIdOrdersTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -96,7 +94,6 @@ class GetOrdersByBusinessIdOrders { vendorId == otherTyped.vendorId && businessId == otherTyped.businessId && orderType == otherTyped.orderType && - location == otherTyped.location && status == otherTyped.status && date == otherTyped.date && startDate == otherTyped.startDate && @@ -107,7 +104,6 @@ class GetOrdersByBusinessIdOrders { assignedStaff == otherTyped.assignedStaff && shifts == otherTyped.shifts && requested == otherTyped.requested && - hub == otherTyped.hub && recurringDays == otherTyped.recurringDays && permanentDays == otherTyped.permanentDays && poReference == otherTyped.poReference && @@ -115,11 +111,12 @@ class GetOrdersByBusinessIdOrders { notes == otherTyped.notes && createdAt == otherTyped.createdAt && business == otherTyped.business && - vendor == otherTyped.vendor; + vendor == otherTyped.vendor && + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode, teamHub.hashCode]); Map toJson() { @@ -135,9 +132,6 @@ class GetOrdersByBusinessIdOrders { json['orderType'] = orderTypeSerializer(orderType) ; - if (location != null) { - json['location'] = nativeToJson(location); - } json['status'] = orderStatusSerializer(status) ; @@ -170,9 +164,6 @@ class GetOrdersByBusinessIdOrders { if (requested != null) { json['requested'] = nativeToJson(requested); } - if (hub != null) { - json['hub'] = nativeToJson(hub); - } if (recurringDays != null) { json['recurringDays'] = recurringDays!.toJson(); } @@ -195,6 +186,7 @@ class GetOrdersByBusinessIdOrders { if (vendor != null) { json['vendor'] = vendor!.toJson(); } + json['teamHub'] = teamHub.toJson(); return json; } @@ -204,7 +196,6 @@ class GetOrdersByBusinessIdOrders { this.vendorId, required this.businessId, required this.orderType, - this.location, required this.status, this.date, this.startDate, @@ -215,7 +206,6 @@ class GetOrdersByBusinessIdOrders { this.assignedStaff, this.shifts, this.requested, - this.hub, this.recurringDays, this.permanentDays, this.poReference, @@ -224,6 +214,7 @@ class GetOrdersByBusinessIdOrders { this.createdAt, required this.business, this.vendor, + required this.teamHub, }); } @@ -319,6 +310,52 @@ class GetOrdersByBusinessIdOrdersVendor { }); } +@immutable +class GetOrdersByBusinessIdOrdersTeamHub { + final String address; + final String? placeId; + final String hubName; + GetOrdersByBusinessIdOrdersTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final GetOrdersByBusinessIdOrdersTeamHub otherTyped = other as GetOrdersByBusinessIdOrdersTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + GetOrdersByBusinessIdOrdersTeamHub({ + required this.address, + this.placeId, + required this.hubName, + }); +} + @immutable class GetOrdersByBusinessIdData { final List orders; diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_orders_by_date_range.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_orders_by_date_range.dart index f66f3874..f6740c22 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_orders_by_date_range.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_orders_by_date_range.dart @@ -35,7 +35,6 @@ class GetOrdersByDateRangeOrders { final String? vendorId; final String businessId; final EnumValue orderType; - final String? location; final EnumValue status; final Timestamp? date; final Timestamp? startDate; @@ -46,7 +45,6 @@ class GetOrdersByDateRangeOrders { final AnyValue? assignedStaff; final AnyValue? shifts; final int? requested; - final String? hub; final AnyValue? recurringDays; final AnyValue? permanentDays; final String? poReference; @@ -55,6 +53,7 @@ class GetOrdersByDateRangeOrders { final Timestamp? createdAt; final GetOrdersByDateRangeOrdersBusiness business; final GetOrdersByDateRangeOrdersVendor? vendor; + final GetOrdersByDateRangeOrdersTeamHub teamHub; GetOrdersByDateRangeOrders.fromJson(dynamic json): id = nativeFromJson(json['id']), @@ -62,7 +61,6 @@ class GetOrdersByDateRangeOrders { vendorId = json['vendorId'] == null ? null : nativeFromJson(json['vendorId']), businessId = nativeFromJson(json['businessId']), orderType = orderTypeDeserializer(json['orderType']), - location = json['location'] == null ? null : nativeFromJson(json['location']), status = orderStatusDeserializer(json['status']), date = json['date'] == null ? null : Timestamp.fromJson(json['date']), startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']), @@ -73,7 +71,6 @@ class GetOrdersByDateRangeOrders { assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']), shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']), requested = json['requested'] == null ? null : nativeFromJson(json['requested']), - hub = json['hub'] == null ? null : nativeFromJson(json['hub']), recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']), permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']), poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']), @@ -81,7 +78,8 @@ class GetOrdersByDateRangeOrders { notes = json['notes'] == null ? null : nativeFromJson(json['notes']), createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), business = GetOrdersByDateRangeOrdersBusiness.fromJson(json['business']), - vendor = json['vendor'] == null ? null : GetOrdersByDateRangeOrdersVendor.fromJson(json['vendor']); + vendor = json['vendor'] == null ? null : GetOrdersByDateRangeOrdersVendor.fromJson(json['vendor']), + teamHub = GetOrdersByDateRangeOrdersTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -97,7 +95,6 @@ class GetOrdersByDateRangeOrders { vendorId == otherTyped.vendorId && businessId == otherTyped.businessId && orderType == otherTyped.orderType && - location == otherTyped.location && status == otherTyped.status && date == otherTyped.date && startDate == otherTyped.startDate && @@ -108,7 +105,6 @@ class GetOrdersByDateRangeOrders { assignedStaff == otherTyped.assignedStaff && shifts == otherTyped.shifts && requested == otherTyped.requested && - hub == otherTyped.hub && recurringDays == otherTyped.recurringDays && permanentDays == otherTyped.permanentDays && poReference == otherTyped.poReference && @@ -116,11 +112,12 @@ class GetOrdersByDateRangeOrders { notes == otherTyped.notes && createdAt == otherTyped.createdAt && business == otherTyped.business && - vendor == otherTyped.vendor; + vendor == otherTyped.vendor && + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode, teamHub.hashCode]); Map toJson() { @@ -136,9 +133,6 @@ class GetOrdersByDateRangeOrders { json['orderType'] = orderTypeSerializer(orderType) ; - if (location != null) { - json['location'] = nativeToJson(location); - } json['status'] = orderStatusSerializer(status) ; @@ -171,9 +165,6 @@ class GetOrdersByDateRangeOrders { if (requested != null) { json['requested'] = nativeToJson(requested); } - if (hub != null) { - json['hub'] = nativeToJson(hub); - } if (recurringDays != null) { json['recurringDays'] = recurringDays!.toJson(); } @@ -196,6 +187,7 @@ class GetOrdersByDateRangeOrders { if (vendor != null) { json['vendor'] = vendor!.toJson(); } + json['teamHub'] = teamHub.toJson(); return json; } @@ -205,7 +197,6 @@ class GetOrdersByDateRangeOrders { this.vendorId, required this.businessId, required this.orderType, - this.location, required this.status, this.date, this.startDate, @@ -216,7 +207,6 @@ class GetOrdersByDateRangeOrders { this.assignedStaff, this.shifts, this.requested, - this.hub, this.recurringDays, this.permanentDays, this.poReference, @@ -225,6 +215,7 @@ class GetOrdersByDateRangeOrders { this.createdAt, required this.business, this.vendor, + required this.teamHub, }); } @@ -320,6 +311,52 @@ class GetOrdersByDateRangeOrdersVendor { }); } +@immutable +class GetOrdersByDateRangeOrdersTeamHub { + final String address; + final String? placeId; + final String hubName; + GetOrdersByDateRangeOrdersTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final GetOrdersByDateRangeOrdersTeamHub otherTyped = other as GetOrdersByDateRangeOrdersTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + GetOrdersByDateRangeOrdersTeamHub({ + required this.address, + this.placeId, + required this.hubName, + }); +} + @immutable class GetOrdersByDateRangeData { final List orders; diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_orders_by_status.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_orders_by_status.dart index 617b6fa8..a2583754 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_orders_by_status.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_orders_by_status.dart @@ -34,7 +34,6 @@ class GetOrdersByStatusOrders { final String? vendorId; final String businessId; final EnumValue orderType; - final String? location; final EnumValue status; final Timestamp? date; final Timestamp? startDate; @@ -45,7 +44,6 @@ class GetOrdersByStatusOrders { final AnyValue? assignedStaff; final AnyValue? shifts; final int? requested; - final String? hub; final AnyValue? recurringDays; final AnyValue? permanentDays; final String? poReference; @@ -54,6 +52,7 @@ class GetOrdersByStatusOrders { final Timestamp? createdAt; final GetOrdersByStatusOrdersBusiness business; final GetOrdersByStatusOrdersVendor? vendor; + final GetOrdersByStatusOrdersTeamHub teamHub; GetOrdersByStatusOrders.fromJson(dynamic json): id = nativeFromJson(json['id']), @@ -61,7 +60,6 @@ class GetOrdersByStatusOrders { vendorId = json['vendorId'] == null ? null : nativeFromJson(json['vendorId']), businessId = nativeFromJson(json['businessId']), orderType = orderTypeDeserializer(json['orderType']), - location = json['location'] == null ? null : nativeFromJson(json['location']), status = orderStatusDeserializer(json['status']), date = json['date'] == null ? null : Timestamp.fromJson(json['date']), startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']), @@ -72,7 +70,6 @@ class GetOrdersByStatusOrders { assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']), shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']), requested = json['requested'] == null ? null : nativeFromJson(json['requested']), - hub = json['hub'] == null ? null : nativeFromJson(json['hub']), recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']), permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']), poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']), @@ -80,7 +77,8 @@ class GetOrdersByStatusOrders { notes = json['notes'] == null ? null : nativeFromJson(json['notes']), createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), business = GetOrdersByStatusOrdersBusiness.fromJson(json['business']), - vendor = json['vendor'] == null ? null : GetOrdersByStatusOrdersVendor.fromJson(json['vendor']); + vendor = json['vendor'] == null ? null : GetOrdersByStatusOrdersVendor.fromJson(json['vendor']), + teamHub = GetOrdersByStatusOrdersTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -96,7 +94,6 @@ class GetOrdersByStatusOrders { vendorId == otherTyped.vendorId && businessId == otherTyped.businessId && orderType == otherTyped.orderType && - location == otherTyped.location && status == otherTyped.status && date == otherTyped.date && startDate == otherTyped.startDate && @@ -107,7 +104,6 @@ class GetOrdersByStatusOrders { assignedStaff == otherTyped.assignedStaff && shifts == otherTyped.shifts && requested == otherTyped.requested && - hub == otherTyped.hub && recurringDays == otherTyped.recurringDays && permanentDays == otherTyped.permanentDays && poReference == otherTyped.poReference && @@ -115,11 +111,12 @@ class GetOrdersByStatusOrders { notes == otherTyped.notes && createdAt == otherTyped.createdAt && business == otherTyped.business && - vendor == otherTyped.vendor; + vendor == otherTyped.vendor && + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode, teamHub.hashCode]); Map toJson() { @@ -135,9 +132,6 @@ class GetOrdersByStatusOrders { json['orderType'] = orderTypeSerializer(orderType) ; - if (location != null) { - json['location'] = nativeToJson(location); - } json['status'] = orderStatusSerializer(status) ; @@ -170,9 +164,6 @@ class GetOrdersByStatusOrders { if (requested != null) { json['requested'] = nativeToJson(requested); } - if (hub != null) { - json['hub'] = nativeToJson(hub); - } if (recurringDays != null) { json['recurringDays'] = recurringDays!.toJson(); } @@ -195,6 +186,7 @@ class GetOrdersByStatusOrders { if (vendor != null) { json['vendor'] = vendor!.toJson(); } + json['teamHub'] = teamHub.toJson(); return json; } @@ -204,7 +196,6 @@ class GetOrdersByStatusOrders { this.vendorId, required this.businessId, required this.orderType, - this.location, required this.status, this.date, this.startDate, @@ -215,7 +206,6 @@ class GetOrdersByStatusOrders { this.assignedStaff, this.shifts, this.requested, - this.hub, this.recurringDays, this.permanentDays, this.poReference, @@ -224,6 +214,7 @@ class GetOrdersByStatusOrders { this.createdAt, required this.business, this.vendor, + required this.teamHub, }); } @@ -319,6 +310,52 @@ class GetOrdersByStatusOrdersVendor { }); } +@immutable +class GetOrdersByStatusOrdersTeamHub { + final String address; + final String? placeId; + final String hubName; + GetOrdersByStatusOrdersTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final GetOrdersByStatusOrdersTeamHub otherTyped = other as GetOrdersByStatusOrdersTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + GetOrdersByStatusOrdersTeamHub({ + required this.address, + this.placeId, + required this.hubName, + }); +} + @immutable class GetOrdersByStatusData { final List orders; diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_orders_by_vendor_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_orders_by_vendor_id.dart index 3e98668a..69273a65 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_orders_by_vendor_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_orders_by_vendor_id.dart @@ -34,7 +34,6 @@ class GetOrdersByVendorIdOrders { final String? vendorId; final String businessId; final EnumValue orderType; - final String? location; final EnumValue status; final Timestamp? date; final Timestamp? startDate; @@ -45,7 +44,6 @@ class GetOrdersByVendorIdOrders { final AnyValue? assignedStaff; final AnyValue? shifts; final int? requested; - final String? hub; final AnyValue? recurringDays; final AnyValue? permanentDays; final String? poReference; @@ -54,6 +52,7 @@ class GetOrdersByVendorIdOrders { final Timestamp? createdAt; final GetOrdersByVendorIdOrdersBusiness business; final GetOrdersByVendorIdOrdersVendor? vendor; + final GetOrdersByVendorIdOrdersTeamHub teamHub; GetOrdersByVendorIdOrders.fromJson(dynamic json): id = nativeFromJson(json['id']), @@ -61,7 +60,6 @@ class GetOrdersByVendorIdOrders { vendorId = json['vendorId'] == null ? null : nativeFromJson(json['vendorId']), businessId = nativeFromJson(json['businessId']), orderType = orderTypeDeserializer(json['orderType']), - location = json['location'] == null ? null : nativeFromJson(json['location']), status = orderStatusDeserializer(json['status']), date = json['date'] == null ? null : Timestamp.fromJson(json['date']), startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']), @@ -72,7 +70,6 @@ class GetOrdersByVendorIdOrders { assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']), shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']), requested = json['requested'] == null ? null : nativeFromJson(json['requested']), - hub = json['hub'] == null ? null : nativeFromJson(json['hub']), recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']), permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']), poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']), @@ -80,7 +77,8 @@ class GetOrdersByVendorIdOrders { notes = json['notes'] == null ? null : nativeFromJson(json['notes']), createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), business = GetOrdersByVendorIdOrdersBusiness.fromJson(json['business']), - vendor = json['vendor'] == null ? null : GetOrdersByVendorIdOrdersVendor.fromJson(json['vendor']); + vendor = json['vendor'] == null ? null : GetOrdersByVendorIdOrdersVendor.fromJson(json['vendor']), + teamHub = GetOrdersByVendorIdOrdersTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -96,7 +94,6 @@ class GetOrdersByVendorIdOrders { vendorId == otherTyped.vendorId && businessId == otherTyped.businessId && orderType == otherTyped.orderType && - location == otherTyped.location && status == otherTyped.status && date == otherTyped.date && startDate == otherTyped.startDate && @@ -107,7 +104,6 @@ class GetOrdersByVendorIdOrders { assignedStaff == otherTyped.assignedStaff && shifts == otherTyped.shifts && requested == otherTyped.requested && - hub == otherTyped.hub && recurringDays == otherTyped.recurringDays && permanentDays == otherTyped.permanentDays && poReference == otherTyped.poReference && @@ -115,11 +111,12 @@ class GetOrdersByVendorIdOrders { notes == otherTyped.notes && createdAt == otherTyped.createdAt && business == otherTyped.business && - vendor == otherTyped.vendor; + vendor == otherTyped.vendor && + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode, teamHub.hashCode]); Map toJson() { @@ -135,9 +132,6 @@ class GetOrdersByVendorIdOrders { json['orderType'] = orderTypeSerializer(orderType) ; - if (location != null) { - json['location'] = nativeToJson(location); - } json['status'] = orderStatusSerializer(status) ; @@ -170,9 +164,6 @@ class GetOrdersByVendorIdOrders { if (requested != null) { json['requested'] = nativeToJson(requested); } - if (hub != null) { - json['hub'] = nativeToJson(hub); - } if (recurringDays != null) { json['recurringDays'] = recurringDays!.toJson(); } @@ -195,6 +186,7 @@ class GetOrdersByVendorIdOrders { if (vendor != null) { json['vendor'] = vendor!.toJson(); } + json['teamHub'] = teamHub.toJson(); return json; } @@ -204,7 +196,6 @@ class GetOrdersByVendorIdOrders { this.vendorId, required this.businessId, required this.orderType, - this.location, required this.status, this.date, this.startDate, @@ -215,7 +206,6 @@ class GetOrdersByVendorIdOrders { this.assignedStaff, this.shifts, this.requested, - this.hub, this.recurringDays, this.permanentDays, this.poReference, @@ -224,6 +214,7 @@ class GetOrdersByVendorIdOrders { this.createdAt, required this.business, this.vendor, + required this.teamHub, }); } @@ -319,6 +310,52 @@ class GetOrdersByVendorIdOrdersVendor { }); } +@immutable +class GetOrdersByVendorIdOrdersTeamHub { + final String address; + final String? placeId; + final String hubName; + GetOrdersByVendorIdOrdersTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final GetOrdersByVendorIdOrdersTeamHub otherTyped = other as GetOrdersByVendorIdOrdersTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + GetOrdersByVendorIdOrdersTeamHub({ + required this.address, + this.placeId, + required this.hubName, + }); +} + @immutable class GetOrdersByVendorIdData { final List orders; diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_rapid_orders.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_rapid_orders.dart index 22fe43be..ab582cee 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_rapid_orders.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_rapid_orders.dart @@ -34,7 +34,6 @@ class GetRapidOrdersOrders { final String? vendorId; final String businessId; final EnumValue orderType; - final String? location; final EnumValue status; final Timestamp? date; final Timestamp? startDate; @@ -45,7 +44,6 @@ class GetRapidOrdersOrders { final AnyValue? assignedStaff; final AnyValue? shifts; final int? requested; - final String? hub; final AnyValue? recurringDays; final AnyValue? permanentDays; final String? poReference; @@ -54,6 +52,7 @@ class GetRapidOrdersOrders { final Timestamp? createdAt; final GetRapidOrdersOrdersBusiness business; final GetRapidOrdersOrdersVendor? vendor; + final GetRapidOrdersOrdersTeamHub teamHub; GetRapidOrdersOrders.fromJson(dynamic json): id = nativeFromJson(json['id']), @@ -61,7 +60,6 @@ class GetRapidOrdersOrders { vendorId = json['vendorId'] == null ? null : nativeFromJson(json['vendorId']), businessId = nativeFromJson(json['businessId']), orderType = orderTypeDeserializer(json['orderType']), - location = json['location'] == null ? null : nativeFromJson(json['location']), status = orderStatusDeserializer(json['status']), date = json['date'] == null ? null : Timestamp.fromJson(json['date']), startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']), @@ -72,7 +70,6 @@ class GetRapidOrdersOrders { assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']), shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']), requested = json['requested'] == null ? null : nativeFromJson(json['requested']), - hub = json['hub'] == null ? null : nativeFromJson(json['hub']), recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']), permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']), poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']), @@ -80,7 +77,8 @@ class GetRapidOrdersOrders { notes = json['notes'] == null ? null : nativeFromJson(json['notes']), createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), business = GetRapidOrdersOrdersBusiness.fromJson(json['business']), - vendor = json['vendor'] == null ? null : GetRapidOrdersOrdersVendor.fromJson(json['vendor']); + vendor = json['vendor'] == null ? null : GetRapidOrdersOrdersVendor.fromJson(json['vendor']), + teamHub = GetRapidOrdersOrdersTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -96,7 +94,6 @@ class GetRapidOrdersOrders { vendorId == otherTyped.vendorId && businessId == otherTyped.businessId && orderType == otherTyped.orderType && - location == otherTyped.location && status == otherTyped.status && date == otherTyped.date && startDate == otherTyped.startDate && @@ -107,7 +104,6 @@ class GetRapidOrdersOrders { assignedStaff == otherTyped.assignedStaff && shifts == otherTyped.shifts && requested == otherTyped.requested && - hub == otherTyped.hub && recurringDays == otherTyped.recurringDays && permanentDays == otherTyped.permanentDays && poReference == otherTyped.poReference && @@ -115,11 +111,12 @@ class GetRapidOrdersOrders { notes == otherTyped.notes && createdAt == otherTyped.createdAt && business == otherTyped.business && - vendor == otherTyped.vendor; + vendor == otherTyped.vendor && + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode, teamHub.hashCode]); Map toJson() { @@ -135,9 +132,6 @@ class GetRapidOrdersOrders { json['orderType'] = orderTypeSerializer(orderType) ; - if (location != null) { - json['location'] = nativeToJson(location); - } json['status'] = orderStatusSerializer(status) ; @@ -170,9 +164,6 @@ class GetRapidOrdersOrders { if (requested != null) { json['requested'] = nativeToJson(requested); } - if (hub != null) { - json['hub'] = nativeToJson(hub); - } if (recurringDays != null) { json['recurringDays'] = recurringDays!.toJson(); } @@ -195,6 +186,7 @@ class GetRapidOrdersOrders { if (vendor != null) { json['vendor'] = vendor!.toJson(); } + json['teamHub'] = teamHub.toJson(); return json; } @@ -204,7 +196,6 @@ class GetRapidOrdersOrders { this.vendorId, required this.businessId, required this.orderType, - this.location, required this.status, this.date, this.startDate, @@ -215,7 +206,6 @@ class GetRapidOrdersOrders { this.assignedStaff, this.shifts, this.requested, - this.hub, this.recurringDays, this.permanentDays, this.poReference, @@ -224,6 +214,7 @@ class GetRapidOrdersOrders { this.createdAt, required this.business, this.vendor, + required this.teamHub, }); } @@ -319,6 +310,52 @@ class GetRapidOrdersOrdersVendor { }); } +@immutable +class GetRapidOrdersOrdersTeamHub { + final String address; + final String? placeId; + final String hubName; + GetRapidOrdersOrdersTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final GetRapidOrdersOrdersTeamHub otherTyped = other as GetRapidOrdersOrdersTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + GetRapidOrdersOrdersTeamHub({ + required this.address, + this.placeId, + required this.hubName, + }); +} + @immutable class GetRapidOrdersData { final List orders; diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_shift_by_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_shift_by_id.dart index 30277381..0342fc2d 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_shift_by_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_shift_by_id.dart @@ -31,6 +31,11 @@ class GetShiftByIdShift { final String? locationAddress; final double? latitude; final double? longitude; + final String? placeId; + final String? city; + final String? state; + final String? street; + final String? country; final String? description; final EnumValue? status; final int? workersNeeded; @@ -56,6 +61,11 @@ class GetShiftByIdShift { locationAddress = json['locationAddress'] == null ? null : nativeFromJson(json['locationAddress']), latitude = json['latitude'] == null ? null : nativeFromJson(json['latitude']), longitude = json['longitude'] == null ? null : nativeFromJson(json['longitude']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + city = json['city'] == null ? null : nativeFromJson(json['city']), + state = json['state'] == null ? null : nativeFromJson(json['state']), + street = json['street'] == null ? null : nativeFromJson(json['street']), + country = json['country'] == null ? null : nativeFromJson(json['country']), description = json['description'] == null ? null : nativeFromJson(json['description']), status = json['status'] == null ? null : shiftStatusDeserializer(json['status']), workersNeeded = json['workersNeeded'] == null ? null : nativeFromJson(json['workersNeeded']), @@ -91,6 +101,11 @@ class GetShiftByIdShift { locationAddress == otherTyped.locationAddress && latitude == otherTyped.latitude && longitude == otherTyped.longitude && + placeId == otherTyped.placeId && + city == otherTyped.city && + state == otherTyped.state && + street == otherTyped.street && + country == otherTyped.country && description == otherTyped.description && status == otherTyped.status && workersNeeded == otherTyped.workersNeeded && @@ -105,7 +120,7 @@ class GetShiftByIdShift { } @override - int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, placeId.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]); Map toJson() { @@ -140,6 +155,21 @@ class GetShiftByIdShift { if (longitude != null) { json['longitude'] = nativeToJson(longitude); } + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + if (city != null) { + json['city'] = nativeToJson(city); + } + if (state != null) { + json['state'] = nativeToJson(state); + } + if (street != null) { + json['street'] = nativeToJson(street); + } + if (country != null) { + json['country'] = nativeToJson(country); + } if (description != null) { json['description'] = nativeToJson(description); } @@ -189,6 +219,11 @@ class GetShiftByIdShift { this.locationAddress, this.latitude, this.longitude, + this.placeId, + this.city, + this.state, + this.street, + this.country, this.description, this.status, this.workersNeeded, diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_shifts_by_business_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_shifts_by_business_id.dart index fd6f1b1f..847b12a2 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_shifts_by_business_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_shifts_by_business_id.dart @@ -51,6 +51,11 @@ class GetShiftsByBusinessIdShifts { final String? locationAddress; final double? latitude; final double? longitude; + final String? placeId; + final String? city; + final String? state; + final String? street; + final String? country; final String? description; final EnumValue? status; final int? workersNeeded; @@ -76,6 +81,11 @@ class GetShiftsByBusinessIdShifts { locationAddress = json['locationAddress'] == null ? null : nativeFromJson(json['locationAddress']), latitude = json['latitude'] == null ? null : nativeFromJson(json['latitude']), longitude = json['longitude'] == null ? null : nativeFromJson(json['longitude']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + city = json['city'] == null ? null : nativeFromJson(json['city']), + state = json['state'] == null ? null : nativeFromJson(json['state']), + street = json['street'] == null ? null : nativeFromJson(json['street']), + country = json['country'] == null ? null : nativeFromJson(json['country']), description = json['description'] == null ? null : nativeFromJson(json['description']), status = json['status'] == null ? null : shiftStatusDeserializer(json['status']), workersNeeded = json['workersNeeded'] == null ? null : nativeFromJson(json['workersNeeded']), @@ -111,6 +121,11 @@ class GetShiftsByBusinessIdShifts { locationAddress == otherTyped.locationAddress && latitude == otherTyped.latitude && longitude == otherTyped.longitude && + placeId == otherTyped.placeId && + city == otherTyped.city && + state == otherTyped.state && + street == otherTyped.street && + country == otherTyped.country && description == otherTyped.description && status == otherTyped.status && workersNeeded == otherTyped.workersNeeded && @@ -125,7 +140,7 @@ class GetShiftsByBusinessIdShifts { } @override - int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, placeId.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]); Map toJson() { @@ -160,6 +175,21 @@ class GetShiftsByBusinessIdShifts { if (longitude != null) { json['longitude'] = nativeToJson(longitude); } + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + if (city != null) { + json['city'] = nativeToJson(city); + } + if (state != null) { + json['state'] = nativeToJson(state); + } + if (street != null) { + json['street'] = nativeToJson(street); + } + if (country != null) { + json['country'] = nativeToJson(country); + } if (description != null) { json['description'] = nativeToJson(description); } @@ -209,6 +239,11 @@ class GetShiftsByBusinessIdShifts { this.locationAddress, this.latitude, this.longitude, + this.placeId, + this.city, + this.state, + this.street, + this.country, this.description, this.status, this.workersNeeded, diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_shifts_by_vendor_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_shifts_by_vendor_id.dart index 1228ab5f..d3f7532e 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_shifts_by_vendor_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_shifts_by_vendor_id.dart @@ -51,6 +51,11 @@ class GetShiftsByVendorIdShifts { final String? locationAddress; final double? latitude; final double? longitude; + final String? placeId; + final String? city; + final String? state; + final String? street; + final String? country; final String? description; final EnumValue? status; final int? workersNeeded; @@ -76,6 +81,11 @@ class GetShiftsByVendorIdShifts { locationAddress = json['locationAddress'] == null ? null : nativeFromJson(json['locationAddress']), latitude = json['latitude'] == null ? null : nativeFromJson(json['latitude']), longitude = json['longitude'] == null ? null : nativeFromJson(json['longitude']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + city = json['city'] == null ? null : nativeFromJson(json['city']), + state = json['state'] == null ? null : nativeFromJson(json['state']), + street = json['street'] == null ? null : nativeFromJson(json['street']), + country = json['country'] == null ? null : nativeFromJson(json['country']), description = json['description'] == null ? null : nativeFromJson(json['description']), status = json['status'] == null ? null : shiftStatusDeserializer(json['status']), workersNeeded = json['workersNeeded'] == null ? null : nativeFromJson(json['workersNeeded']), @@ -111,6 +121,11 @@ class GetShiftsByVendorIdShifts { locationAddress == otherTyped.locationAddress && latitude == otherTyped.latitude && longitude == otherTyped.longitude && + placeId == otherTyped.placeId && + city == otherTyped.city && + state == otherTyped.state && + street == otherTyped.street && + country == otherTyped.country && description == otherTyped.description && status == otherTyped.status && workersNeeded == otherTyped.workersNeeded && @@ -125,7 +140,7 @@ class GetShiftsByVendorIdShifts { } @override - int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, placeId.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]); Map toJson() { @@ -160,6 +175,21 @@ class GetShiftsByVendorIdShifts { if (longitude != null) { json['longitude'] = nativeToJson(longitude); } + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + if (city != null) { + json['city'] = nativeToJson(city); + } + if (state != null) { + json['state'] = nativeToJson(state); + } + if (street != null) { + json['street'] = nativeToJson(street); + } + if (country != null) { + json['country'] = nativeToJson(country); + } if (description != null) { json['description'] = nativeToJson(description); } @@ -209,6 +239,11 @@ class GetShiftsByVendorIdShifts { this.locationAddress, this.latitude, this.longitude, + this.placeId, + this.city, + this.state, + this.street, + this.country, this.description, this.status, this.workersNeeded, diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_tax_form_by_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_tax_form_by_id.dart index 83d40b89..ba3eeb0e 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_tax_form_by_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_tax_form_by_id.dart @@ -21,12 +21,36 @@ class GetTaxFormByIdVariablesBuilder { class GetTaxFormByIdTaxForm { final String id; final EnumValue formType; - final String title; - final String? subtitle; - final String? description; + final String firstName; + final String lastName; + final String? mInitial; + final String? oLastName; + final Timestamp? dob; + final int socialSN; + final String? email; + final String? phone; + final String address; + final String? city; + final String? apt; + final String? state; + final String? zipCode; + final EnumValue? marital; + final bool? multipleJob; + final int? childrens; + final int? otherDeps; + final double? totalCredits; + final double? otherInconme; + final double? deductions; + final double? extraWithholding; + final EnumValue? citizen; + final String? uscis; + final String? passportNumber; + final String? countryIssue; + final bool? prepartorOrTranslator; + final String? signature; + final Timestamp? date; final EnumValue status; final String staffId; - final AnyValue? formData; final Timestamp? createdAt; final Timestamp? updatedAt; final String? createdBy; @@ -34,12 +58,36 @@ class GetTaxFormByIdTaxForm { id = nativeFromJson(json['id']), formType = taxFormTypeDeserializer(json['formType']), - title = nativeFromJson(json['title']), - subtitle = json['subtitle'] == null ? null : nativeFromJson(json['subtitle']), - description = json['description'] == null ? null : nativeFromJson(json['description']), + firstName = nativeFromJson(json['firstName']), + lastName = nativeFromJson(json['lastName']), + mInitial = json['mInitial'] == null ? null : nativeFromJson(json['mInitial']), + oLastName = json['oLastName'] == null ? null : nativeFromJson(json['oLastName']), + dob = json['dob'] == null ? null : Timestamp.fromJson(json['dob']), + socialSN = nativeFromJson(json['socialSN']), + email = json['email'] == null ? null : nativeFromJson(json['email']), + phone = json['phone'] == null ? null : nativeFromJson(json['phone']), + address = nativeFromJson(json['address']), + city = json['city'] == null ? null : nativeFromJson(json['city']), + apt = json['apt'] == null ? null : nativeFromJson(json['apt']), + state = json['state'] == null ? null : nativeFromJson(json['state']), + zipCode = json['zipCode'] == null ? null : nativeFromJson(json['zipCode']), + marital = json['marital'] == null ? null : maritalStatusDeserializer(json['marital']), + multipleJob = json['multipleJob'] == null ? null : nativeFromJson(json['multipleJob']), + childrens = json['childrens'] == null ? null : nativeFromJson(json['childrens']), + otherDeps = json['otherDeps'] == null ? null : nativeFromJson(json['otherDeps']), + totalCredits = json['totalCredits'] == null ? null : nativeFromJson(json['totalCredits']), + otherInconme = json['otherInconme'] == null ? null : nativeFromJson(json['otherInconme']), + deductions = json['deductions'] == null ? null : nativeFromJson(json['deductions']), + extraWithholding = json['extraWithholding'] == null ? null : nativeFromJson(json['extraWithholding']), + citizen = json['citizen'] == null ? null : citizenshipStatusDeserializer(json['citizen']), + uscis = json['uscis'] == null ? null : nativeFromJson(json['uscis']), + passportNumber = json['passportNumber'] == null ? null : nativeFromJson(json['passportNumber']), + countryIssue = json['countryIssue'] == null ? null : nativeFromJson(json['countryIssue']), + prepartorOrTranslator = json['prepartorOrTranslator'] == null ? null : nativeFromJson(json['prepartorOrTranslator']), + signature = json['signature'] == null ? null : nativeFromJson(json['signature']), + date = json['date'] == null ? null : Timestamp.fromJson(json['date']), status = taxFormStatusDeserializer(json['status']), staffId = nativeFromJson(json['staffId']), - formData = json['formData'] == null ? null : AnyValue.fromJson(json['formData']), createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']), createdBy = json['createdBy'] == null ? null : nativeFromJson(json['createdBy']); @@ -55,19 +103,43 @@ class GetTaxFormByIdTaxForm { final GetTaxFormByIdTaxForm otherTyped = other as GetTaxFormByIdTaxForm; return id == otherTyped.id && formType == otherTyped.formType && - title == otherTyped.title && - subtitle == otherTyped.subtitle && - description == otherTyped.description && + firstName == otherTyped.firstName && + lastName == otherTyped.lastName && + mInitial == otherTyped.mInitial && + oLastName == otherTyped.oLastName && + dob == otherTyped.dob && + socialSN == otherTyped.socialSN && + email == otherTyped.email && + phone == otherTyped.phone && + address == otherTyped.address && + city == otherTyped.city && + apt == otherTyped.apt && + state == otherTyped.state && + zipCode == otherTyped.zipCode && + marital == otherTyped.marital && + multipleJob == otherTyped.multipleJob && + childrens == otherTyped.childrens && + otherDeps == otherTyped.otherDeps && + totalCredits == otherTyped.totalCredits && + otherInconme == otherTyped.otherInconme && + deductions == otherTyped.deductions && + extraWithholding == otherTyped.extraWithholding && + citizen == otherTyped.citizen && + uscis == otherTyped.uscis && + passportNumber == otherTyped.passportNumber && + countryIssue == otherTyped.countryIssue && + prepartorOrTranslator == otherTyped.prepartorOrTranslator && + signature == otherTyped.signature && + date == otherTyped.date && status == otherTyped.status && staffId == otherTyped.staffId && - formData == otherTyped.formData && createdAt == otherTyped.createdAt && updatedAt == otherTyped.updatedAt && createdBy == otherTyped.createdBy; } @override - int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, title.hashCode, subtitle.hashCode, description.hashCode, status.hashCode, staffId.hashCode, formData.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, firstName.hashCode, lastName.hashCode, mInitial.hashCode, oLastName.hashCode, dob.hashCode, socialSN.hashCode, email.hashCode, phone.hashCode, address.hashCode, city.hashCode, apt.hashCode, state.hashCode, zipCode.hashCode, marital.hashCode, multipleJob.hashCode, childrens.hashCode, otherDeps.hashCode, totalCredits.hashCode, otherInconme.hashCode, deductions.hashCode, extraWithholding.hashCode, citizen.hashCode, uscis.hashCode, passportNumber.hashCode, countryIssue.hashCode, prepartorOrTranslator.hashCode, signature.hashCode, date.hashCode, status.hashCode, staffId.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]); Map toJson() { @@ -76,20 +148,90 @@ class GetTaxFormByIdTaxForm { json['formType'] = taxFormTypeSerializer(formType) ; - json['title'] = nativeToJson(title); - if (subtitle != null) { - json['subtitle'] = nativeToJson(subtitle); + json['firstName'] = nativeToJson(firstName); + json['lastName'] = nativeToJson(lastName); + if (mInitial != null) { + json['mInitial'] = nativeToJson(mInitial); } - if (description != null) { - json['description'] = nativeToJson(description); + if (oLastName != null) { + json['oLastName'] = nativeToJson(oLastName); + } + if (dob != null) { + json['dob'] = dob!.toJson(); + } + json['socialSN'] = nativeToJson(socialSN); + if (email != null) { + json['email'] = nativeToJson(email); + } + if (phone != null) { + json['phone'] = nativeToJson(phone); + } + json['address'] = nativeToJson(address); + if (city != null) { + json['city'] = nativeToJson(city); + } + if (apt != null) { + json['apt'] = nativeToJson(apt); + } + if (state != null) { + json['state'] = nativeToJson(state); + } + if (zipCode != null) { + json['zipCode'] = nativeToJson(zipCode); + } + if (marital != null) { + json['marital'] = + maritalStatusSerializer(marital!) + ; + } + if (multipleJob != null) { + json['multipleJob'] = nativeToJson(multipleJob); + } + if (childrens != null) { + json['childrens'] = nativeToJson(childrens); + } + if (otherDeps != null) { + json['otherDeps'] = nativeToJson(otherDeps); + } + if (totalCredits != null) { + json['totalCredits'] = nativeToJson(totalCredits); + } + if (otherInconme != null) { + json['otherInconme'] = nativeToJson(otherInconme); + } + if (deductions != null) { + json['deductions'] = nativeToJson(deductions); + } + if (extraWithholding != null) { + json['extraWithholding'] = nativeToJson(extraWithholding); + } + if (citizen != null) { + json['citizen'] = + citizenshipStatusSerializer(citizen!) + ; + } + if (uscis != null) { + json['uscis'] = nativeToJson(uscis); + } + if (passportNumber != null) { + json['passportNumber'] = nativeToJson(passportNumber); + } + if (countryIssue != null) { + json['countryIssue'] = nativeToJson(countryIssue); + } + if (prepartorOrTranslator != null) { + json['prepartorOrTranslator'] = nativeToJson(prepartorOrTranslator); + } + if (signature != null) { + json['signature'] = nativeToJson(signature); + } + if (date != null) { + json['date'] = date!.toJson(); } json['status'] = taxFormStatusSerializer(status) ; json['staffId'] = nativeToJson(staffId); - if (formData != null) { - json['formData'] = formData!.toJson(); - } if (createdAt != null) { json['createdAt'] = createdAt!.toJson(); } @@ -105,12 +247,36 @@ class GetTaxFormByIdTaxForm { GetTaxFormByIdTaxForm({ required this.id, required this.formType, - required this.title, - this.subtitle, - this.description, + required this.firstName, + required this.lastName, + this.mInitial, + this.oLastName, + this.dob, + required this.socialSN, + this.email, + this.phone, + required this.address, + this.city, + this.apt, + this.state, + this.zipCode, + this.marital, + this.multipleJob, + this.childrens, + this.otherDeps, + this.totalCredits, + this.otherInconme, + this.deductions, + this.extraWithholding, + this.citizen, + this.uscis, + this.passportNumber, + this.countryIssue, + this.prepartorOrTranslator, + this.signature, + this.date, required this.status, required this.staffId, - this.formData, this.createdAt, this.updatedAt, this.createdBy, diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_tax_forms_by_staff_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_tax_forms_by_staff_id.dart new file mode 100644 index 00000000..f3faaf0d --- /dev/null +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_tax_forms_by_staff_id.dart @@ -0,0 +1,389 @@ +part of 'generated.dart'; + +class GetTaxFormsByStaffIdVariablesBuilder { + String staffId; + Optional _offset = Optional.optional(nativeFromJson, nativeToJson); + Optional _limit = Optional.optional(nativeFromJson, nativeToJson); + + final FirebaseDataConnect _dataConnect; GetTaxFormsByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetTaxFormsByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + GetTaxFormsByStaffIdVariablesBuilder(this._dataConnect, {required this.staffId,}); + Deserializer dataDeserializer = (dynamic json) => GetTaxFormsByStaffIdData.fromJson(jsonDecode(json)); + Serializer varsSerializer = (GetTaxFormsByStaffIdVariables vars) => jsonEncode(vars.toJson()); + Future> execute() { + return ref().execute(); + } + + QueryRef ref() { + GetTaxFormsByStaffIdVariables vars= GetTaxFormsByStaffIdVariables(staffId: staffId,offset: _offset,limit: _limit,); + return _dataConnect.query("getTaxFormsByStaffId", dataDeserializer, varsSerializer, vars); + } +} + +@immutable +class GetTaxFormsByStaffIdTaxForms { + final String id; + final EnumValue formType; + final String firstName; + final String lastName; + final String? mInitial; + final String? oLastName; + final Timestamp? dob; + final int socialSN; + final String? email; + final String? phone; + final String address; + final String? city; + final String? apt; + final String? state; + final String? zipCode; + final EnumValue? marital; + final bool? multipleJob; + final int? childrens; + final int? otherDeps; + final double? totalCredits; + final double? otherInconme; + final double? deductions; + final double? extraWithholding; + final EnumValue? citizen; + final String? uscis; + final String? passportNumber; + final String? countryIssue; + final bool? prepartorOrTranslator; + final String? signature; + final Timestamp? date; + final EnumValue status; + final String staffId; + final Timestamp? createdAt; + final Timestamp? updatedAt; + final String? createdBy; + GetTaxFormsByStaffIdTaxForms.fromJson(dynamic json): + + id = nativeFromJson(json['id']), + formType = taxFormTypeDeserializer(json['formType']), + firstName = nativeFromJson(json['firstName']), + lastName = nativeFromJson(json['lastName']), + mInitial = json['mInitial'] == null ? null : nativeFromJson(json['mInitial']), + oLastName = json['oLastName'] == null ? null : nativeFromJson(json['oLastName']), + dob = json['dob'] == null ? null : Timestamp.fromJson(json['dob']), + socialSN = nativeFromJson(json['socialSN']), + email = json['email'] == null ? null : nativeFromJson(json['email']), + phone = json['phone'] == null ? null : nativeFromJson(json['phone']), + address = nativeFromJson(json['address']), + city = json['city'] == null ? null : nativeFromJson(json['city']), + apt = json['apt'] == null ? null : nativeFromJson(json['apt']), + state = json['state'] == null ? null : nativeFromJson(json['state']), + zipCode = json['zipCode'] == null ? null : nativeFromJson(json['zipCode']), + marital = json['marital'] == null ? null : maritalStatusDeserializer(json['marital']), + multipleJob = json['multipleJob'] == null ? null : nativeFromJson(json['multipleJob']), + childrens = json['childrens'] == null ? null : nativeFromJson(json['childrens']), + otherDeps = json['otherDeps'] == null ? null : nativeFromJson(json['otherDeps']), + totalCredits = json['totalCredits'] == null ? null : nativeFromJson(json['totalCredits']), + otherInconme = json['otherInconme'] == null ? null : nativeFromJson(json['otherInconme']), + deductions = json['deductions'] == null ? null : nativeFromJson(json['deductions']), + extraWithholding = json['extraWithholding'] == null ? null : nativeFromJson(json['extraWithholding']), + citizen = json['citizen'] == null ? null : citizenshipStatusDeserializer(json['citizen']), + uscis = json['uscis'] == null ? null : nativeFromJson(json['uscis']), + passportNumber = json['passportNumber'] == null ? null : nativeFromJson(json['passportNumber']), + countryIssue = json['countryIssue'] == null ? null : nativeFromJson(json['countryIssue']), + prepartorOrTranslator = json['prepartorOrTranslator'] == null ? null : nativeFromJson(json['prepartorOrTranslator']), + signature = json['signature'] == null ? null : nativeFromJson(json['signature']), + date = json['date'] == null ? null : Timestamp.fromJson(json['date']), + status = taxFormStatusDeserializer(json['status']), + staffId = nativeFromJson(json['staffId']), + createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), + updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']), + createdBy = json['createdBy'] == null ? null : nativeFromJson(json['createdBy']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final GetTaxFormsByStaffIdTaxForms otherTyped = other as GetTaxFormsByStaffIdTaxForms; + return id == otherTyped.id && + formType == otherTyped.formType && + firstName == otherTyped.firstName && + lastName == otherTyped.lastName && + mInitial == otherTyped.mInitial && + oLastName == otherTyped.oLastName && + dob == otherTyped.dob && + socialSN == otherTyped.socialSN && + email == otherTyped.email && + phone == otherTyped.phone && + address == otherTyped.address && + city == otherTyped.city && + apt == otherTyped.apt && + state == otherTyped.state && + zipCode == otherTyped.zipCode && + marital == otherTyped.marital && + multipleJob == otherTyped.multipleJob && + childrens == otherTyped.childrens && + otherDeps == otherTyped.otherDeps && + totalCredits == otherTyped.totalCredits && + otherInconme == otherTyped.otherInconme && + deductions == otherTyped.deductions && + extraWithholding == otherTyped.extraWithholding && + citizen == otherTyped.citizen && + uscis == otherTyped.uscis && + passportNumber == otherTyped.passportNumber && + countryIssue == otherTyped.countryIssue && + prepartorOrTranslator == otherTyped.prepartorOrTranslator && + signature == otherTyped.signature && + date == otherTyped.date && + status == otherTyped.status && + staffId == otherTyped.staffId && + createdAt == otherTyped.createdAt && + updatedAt == otherTyped.updatedAt && + createdBy == otherTyped.createdBy; + + } + @override + int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, firstName.hashCode, lastName.hashCode, mInitial.hashCode, oLastName.hashCode, dob.hashCode, socialSN.hashCode, email.hashCode, phone.hashCode, address.hashCode, city.hashCode, apt.hashCode, state.hashCode, zipCode.hashCode, marital.hashCode, multipleJob.hashCode, childrens.hashCode, otherDeps.hashCode, totalCredits.hashCode, otherInconme.hashCode, deductions.hashCode, extraWithholding.hashCode, citizen.hashCode, uscis.hashCode, passportNumber.hashCode, countryIssue.hashCode, prepartorOrTranslator.hashCode, signature.hashCode, date.hashCode, status.hashCode, staffId.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]); + + + Map toJson() { + Map json = {}; + json['id'] = nativeToJson(id); + json['formType'] = + taxFormTypeSerializer(formType) + ; + json['firstName'] = nativeToJson(firstName); + json['lastName'] = nativeToJson(lastName); + if (mInitial != null) { + json['mInitial'] = nativeToJson(mInitial); + } + if (oLastName != null) { + json['oLastName'] = nativeToJson(oLastName); + } + if (dob != null) { + json['dob'] = dob!.toJson(); + } + json['socialSN'] = nativeToJson(socialSN); + if (email != null) { + json['email'] = nativeToJson(email); + } + if (phone != null) { + json['phone'] = nativeToJson(phone); + } + json['address'] = nativeToJson(address); + if (city != null) { + json['city'] = nativeToJson(city); + } + if (apt != null) { + json['apt'] = nativeToJson(apt); + } + if (state != null) { + json['state'] = nativeToJson(state); + } + if (zipCode != null) { + json['zipCode'] = nativeToJson(zipCode); + } + if (marital != null) { + json['marital'] = + maritalStatusSerializer(marital!) + ; + } + if (multipleJob != null) { + json['multipleJob'] = nativeToJson(multipleJob); + } + if (childrens != null) { + json['childrens'] = nativeToJson(childrens); + } + if (otherDeps != null) { + json['otherDeps'] = nativeToJson(otherDeps); + } + if (totalCredits != null) { + json['totalCredits'] = nativeToJson(totalCredits); + } + if (otherInconme != null) { + json['otherInconme'] = nativeToJson(otherInconme); + } + if (deductions != null) { + json['deductions'] = nativeToJson(deductions); + } + if (extraWithholding != null) { + json['extraWithholding'] = nativeToJson(extraWithholding); + } + if (citizen != null) { + json['citizen'] = + citizenshipStatusSerializer(citizen!) + ; + } + if (uscis != null) { + json['uscis'] = nativeToJson(uscis); + } + if (passportNumber != null) { + json['passportNumber'] = nativeToJson(passportNumber); + } + if (countryIssue != null) { + json['countryIssue'] = nativeToJson(countryIssue); + } + if (prepartorOrTranslator != null) { + json['prepartorOrTranslator'] = nativeToJson(prepartorOrTranslator); + } + if (signature != null) { + json['signature'] = nativeToJson(signature); + } + if (date != null) { + json['date'] = date!.toJson(); + } + json['status'] = + taxFormStatusSerializer(status) + ; + json['staffId'] = nativeToJson(staffId); + if (createdAt != null) { + json['createdAt'] = createdAt!.toJson(); + } + if (updatedAt != null) { + json['updatedAt'] = updatedAt!.toJson(); + } + if (createdBy != null) { + json['createdBy'] = nativeToJson(createdBy); + } + return json; + } + + GetTaxFormsByStaffIdTaxForms({ + required this.id, + required this.formType, + required this.firstName, + required this.lastName, + this.mInitial, + this.oLastName, + this.dob, + required this.socialSN, + this.email, + this.phone, + required this.address, + this.city, + this.apt, + this.state, + this.zipCode, + this.marital, + this.multipleJob, + this.childrens, + this.otherDeps, + this.totalCredits, + this.otherInconme, + this.deductions, + this.extraWithholding, + this.citizen, + this.uscis, + this.passportNumber, + this.countryIssue, + this.prepartorOrTranslator, + this.signature, + this.date, + required this.status, + required this.staffId, + this.createdAt, + this.updatedAt, + this.createdBy, + }); +} + +@immutable +class GetTaxFormsByStaffIdData { + final List taxForms; + GetTaxFormsByStaffIdData.fromJson(dynamic json): + + taxForms = (json['taxForms'] as List) + .map((e) => GetTaxFormsByStaffIdTaxForms.fromJson(e)) + .toList(); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final GetTaxFormsByStaffIdData otherTyped = other as GetTaxFormsByStaffIdData; + return taxForms == otherTyped.taxForms; + + } + @override + int get hashCode => taxForms.hashCode; + + + Map toJson() { + Map json = {}; + json['taxForms'] = taxForms.map((e) => e.toJson()).toList(); + return json; + } + + GetTaxFormsByStaffIdData({ + required this.taxForms, + }); +} + +@immutable +class GetTaxFormsByStaffIdVariables { + final String staffId; + late final Optionaloffset; + late final Optionallimit; + @Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.') + GetTaxFormsByStaffIdVariables.fromJson(Map json): + + staffId = nativeFromJson(json['staffId']) { + + + + offset = Optional.optional(nativeFromJson, nativeToJson); + offset.value = json['offset'] == null ? null : nativeFromJson(json['offset']); + + + limit = Optional.optional(nativeFromJson, nativeToJson); + limit.value = json['limit'] == null ? null : nativeFromJson(json['limit']); + + } + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final GetTaxFormsByStaffIdVariables otherTyped = other as GetTaxFormsByStaffIdVariables; + return staffId == otherTyped.staffId && + offset == otherTyped.offset && + limit == otherTyped.limit; + + } + @override + int get hashCode => Object.hashAll([staffId.hashCode, offset.hashCode, limit.hashCode]); + + + Map toJson() { + Map json = {}; + json['staffId'] = nativeToJson(staffId); + if(offset.state == OptionalState.set) { + json['offset'] = offset.toJson(); + } + if(limit.state == OptionalState.set) { + json['limit'] = limit.toJson(); + } + return json; + } + + GetTaxFormsByStaffIdVariables({ + required this.staffId, + required this.offset, + required this.limit, + }); +} + diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_tax_forms_bystaff_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_tax_forms_bystaff_id.dart deleted file mode 100644 index c9be080e..00000000 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_tax_forms_bystaff_id.dart +++ /dev/null @@ -1,190 +0,0 @@ -part of 'generated.dart'; - -class GetTaxFormsBystaffIdVariablesBuilder { - String staffId; - - final FirebaseDataConnect _dataConnect; - GetTaxFormsBystaffIdVariablesBuilder(this._dataConnect, {required this.staffId,}); - Deserializer dataDeserializer = (dynamic json) => GetTaxFormsBystaffIdData.fromJson(jsonDecode(json)); - Serializer varsSerializer = (GetTaxFormsBystaffIdVariables vars) => jsonEncode(vars.toJson()); - Future> execute() { - return ref().execute(); - } - - QueryRef ref() { - GetTaxFormsBystaffIdVariables vars= GetTaxFormsBystaffIdVariables(staffId: staffId,); - return _dataConnect.query("getTaxFormsBystaffId", dataDeserializer, varsSerializer, vars); - } -} - -@immutable -class GetTaxFormsBystaffIdTaxForms { - final String id; - final EnumValue formType; - final String title; - final String? subtitle; - final String? description; - final EnumValue status; - final String staffId; - final AnyValue? formData; - final Timestamp? createdAt; - final Timestamp? updatedAt; - final String? createdBy; - GetTaxFormsBystaffIdTaxForms.fromJson(dynamic json): - - id = nativeFromJson(json['id']), - formType = taxFormTypeDeserializer(json['formType']), - title = nativeFromJson(json['title']), - subtitle = json['subtitle'] == null ? null : nativeFromJson(json['subtitle']), - description = json['description'] == null ? null : nativeFromJson(json['description']), - status = taxFormStatusDeserializer(json['status']), - staffId = nativeFromJson(json['staffId']), - formData = json['formData'] == null ? null : AnyValue.fromJson(json['formData']), - createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), - updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']), - createdBy = json['createdBy'] == null ? null : nativeFromJson(json['createdBy']); - @override - bool operator ==(Object other) { - if(identical(this, other)) { - return true; - } - if(other.runtimeType != runtimeType) { - return false; - } - - final GetTaxFormsBystaffIdTaxForms otherTyped = other as GetTaxFormsBystaffIdTaxForms; - return id == otherTyped.id && - formType == otherTyped.formType && - title == otherTyped.title && - subtitle == otherTyped.subtitle && - description == otherTyped.description && - status == otherTyped.status && - staffId == otherTyped.staffId && - formData == otherTyped.formData && - createdAt == otherTyped.createdAt && - updatedAt == otherTyped.updatedAt && - createdBy == otherTyped.createdBy; - - } - @override - int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, title.hashCode, subtitle.hashCode, description.hashCode, status.hashCode, staffId.hashCode, formData.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]); - - - Map toJson() { - Map json = {}; - json['id'] = nativeToJson(id); - json['formType'] = - taxFormTypeSerializer(formType) - ; - json['title'] = nativeToJson(title); - if (subtitle != null) { - json['subtitle'] = nativeToJson(subtitle); - } - if (description != null) { - json['description'] = nativeToJson(description); - } - json['status'] = - taxFormStatusSerializer(status) - ; - json['staffId'] = nativeToJson(staffId); - if (formData != null) { - json['formData'] = formData!.toJson(); - } - if (createdAt != null) { - json['createdAt'] = createdAt!.toJson(); - } - if (updatedAt != null) { - json['updatedAt'] = updatedAt!.toJson(); - } - if (createdBy != null) { - json['createdBy'] = nativeToJson(createdBy); - } - return json; - } - - GetTaxFormsBystaffIdTaxForms({ - required this.id, - required this.formType, - required this.title, - this.subtitle, - this.description, - required this.status, - required this.staffId, - this.formData, - this.createdAt, - this.updatedAt, - this.createdBy, - }); -} - -@immutable -class GetTaxFormsBystaffIdData { - final List taxForms; - GetTaxFormsBystaffIdData.fromJson(dynamic json): - - taxForms = (json['taxForms'] as List) - .map((e) => GetTaxFormsBystaffIdTaxForms.fromJson(e)) - .toList(); - @override - bool operator ==(Object other) { - if(identical(this, other)) { - return true; - } - if(other.runtimeType != runtimeType) { - return false; - } - - final GetTaxFormsBystaffIdData otherTyped = other as GetTaxFormsBystaffIdData; - return taxForms == otherTyped.taxForms; - - } - @override - int get hashCode => taxForms.hashCode; - - - Map toJson() { - Map json = {}; - json['taxForms'] = taxForms.map((e) => e.toJson()).toList(); - return json; - } - - GetTaxFormsBystaffIdData({ - required this.taxForms, - }); -} - -@immutable -class GetTaxFormsBystaffIdVariables { - final String staffId; - @Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.') - GetTaxFormsBystaffIdVariables.fromJson(Map json): - - staffId = nativeFromJson(json['staffId']); - @override - bool operator ==(Object other) { - if(identical(this, other)) { - return true; - } - if(other.runtimeType != runtimeType) { - return false; - } - - final GetTaxFormsBystaffIdVariables otherTyped = other as GetTaxFormsBystaffIdVariables; - return staffId == otherTyped.staffId; - - } - @override - int get hashCode => staffId.hashCode; - - - Map toJson() { - Map json = {}; - json['staffId'] = nativeToJson(staffId); - return json; - } - - GetTaxFormsBystaffIdVariables({ - required this.staffId, - }); -} - diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_team_hub_by_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_team_hub_by_id.dart index 39e1fa0b..b401de52 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_team_hub_by_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_team_hub_by_id.dart @@ -23,30 +23,34 @@ class GetTeamHubByIdTeamHub { final String teamId; final String hubName; final String address; + final String? placeId; + final double? latitude; + final double? longitude; final String? city; final String? state; + final String? street; + final String? country; final String? zipCode; final String? managerName; final bool isActive; final AnyValue? departments; - final Timestamp? createdAt; - final Timestamp? updatedAt; - final String? createdBy; GetTeamHubByIdTeamHub.fromJson(dynamic json): id = nativeFromJson(json['id']), teamId = nativeFromJson(json['teamId']), hubName = nativeFromJson(json['hubName']), address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + latitude = json['latitude'] == null ? null : nativeFromJson(json['latitude']), + longitude = json['longitude'] == null ? null : nativeFromJson(json['longitude']), city = json['city'] == null ? null : nativeFromJson(json['city']), state = json['state'] == null ? null : nativeFromJson(json['state']), + street = json['street'] == null ? null : nativeFromJson(json['street']), + country = json['country'] == null ? null : nativeFromJson(json['country']), zipCode = json['zipCode'] == null ? null : nativeFromJson(json['zipCode']), managerName = json['managerName'] == null ? null : nativeFromJson(json['managerName']), isActive = nativeFromJson(json['isActive']), - departments = json['departments'] == null ? null : AnyValue.fromJson(json['departments']), - createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), - updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']), - createdBy = json['createdBy'] == null ? null : nativeFromJson(json['createdBy']); + departments = json['departments'] == null ? null : AnyValue.fromJson(json['departments']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -61,19 +65,21 @@ class GetTeamHubByIdTeamHub { teamId == otherTyped.teamId && hubName == otherTyped.hubName && address == otherTyped.address && + placeId == otherTyped.placeId && + latitude == otherTyped.latitude && + longitude == otherTyped.longitude && city == otherTyped.city && state == otherTyped.state && + street == otherTyped.street && + country == otherTyped.country && zipCode == otherTyped.zipCode && managerName == otherTyped.managerName && isActive == otherTyped.isActive && - departments == otherTyped.departments && - createdAt == otherTyped.createdAt && - updatedAt == otherTyped.updatedAt && - createdBy == otherTyped.createdBy; + departments == otherTyped.departments; } @override - int get hashCode => Object.hashAll([id.hashCode, teamId.hashCode, hubName.hashCode, address.hashCode, city.hashCode, state.hashCode, zipCode.hashCode, managerName.hashCode, isActive.hashCode, departments.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, teamId.hashCode, hubName.hashCode, address.hashCode, placeId.hashCode, latitude.hashCode, longitude.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, zipCode.hashCode, managerName.hashCode, isActive.hashCode, departments.hashCode]); Map toJson() { @@ -82,12 +88,27 @@ class GetTeamHubByIdTeamHub { json['teamId'] = nativeToJson(teamId); json['hubName'] = nativeToJson(hubName); json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + if (latitude != null) { + json['latitude'] = nativeToJson(latitude); + } + if (longitude != null) { + json['longitude'] = nativeToJson(longitude); + } if (city != null) { json['city'] = nativeToJson(city); } if (state != null) { json['state'] = nativeToJson(state); } + if (street != null) { + json['street'] = nativeToJson(street); + } + if (country != null) { + json['country'] = nativeToJson(country); + } if (zipCode != null) { json['zipCode'] = nativeToJson(zipCode); } @@ -98,15 +119,6 @@ class GetTeamHubByIdTeamHub { if (departments != null) { json['departments'] = departments!.toJson(); } - if (createdAt != null) { - json['createdAt'] = createdAt!.toJson(); - } - if (updatedAt != null) { - json['updatedAt'] = updatedAt!.toJson(); - } - if (createdBy != null) { - json['createdBy'] = nativeToJson(createdBy); - } return json; } @@ -115,15 +127,17 @@ class GetTeamHubByIdTeamHub { required this.teamId, required this.hubName, required this.address, + this.placeId, + this.latitude, + this.longitude, this.city, this.state, + this.street, + this.country, this.zipCode, this.managerName, required this.isActive, this.departments, - this.createdAt, - this.updatedAt, - this.createdBy, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_team_hubs_by_team_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_team_hubs_by_team_id.dart index c0534c24..dd55484b 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_team_hubs_by_team_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/get_team_hubs_by_team_id.dart @@ -2,8 +2,18 @@ part of 'generated.dart'; class GetTeamHubsByTeamIdVariablesBuilder { String teamId; + Optional _offset = Optional.optional(nativeFromJson, nativeToJson); + Optional _limit = Optional.optional(nativeFromJson, nativeToJson); + + final FirebaseDataConnect _dataConnect; GetTeamHubsByTeamIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetTeamHubsByTeamIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } - final FirebaseDataConnect _dataConnect; GetTeamHubsByTeamIdVariablesBuilder(this._dataConnect, {required this.teamId,}); Deserializer dataDeserializer = (dynamic json) => GetTeamHubsByTeamIdData.fromJson(jsonDecode(json)); Serializer varsSerializer = (GetTeamHubsByTeamIdVariables vars) => jsonEncode(vars.toJson()); @@ -12,7 +22,7 @@ class GetTeamHubsByTeamIdVariablesBuilder { } QueryRef ref() { - GetTeamHubsByTeamIdVariables vars= GetTeamHubsByTeamIdVariables(teamId: teamId,); + GetTeamHubsByTeamIdVariables vars= GetTeamHubsByTeamIdVariables(teamId: teamId,offset: _offset,limit: _limit,); return _dataConnect.query("getTeamHubsByTeamId", dataDeserializer, varsSerializer, vars); } } @@ -23,30 +33,34 @@ class GetTeamHubsByTeamIdTeamHubs { final String teamId; final String hubName; final String address; + final String? placeId; + final double? latitude; + final double? longitude; final String? city; final String? state; + final String? street; + final String? country; final String? zipCode; final String? managerName; final bool isActive; final AnyValue? departments; - final Timestamp? createdAt; - final Timestamp? updatedAt; - final String? createdBy; GetTeamHubsByTeamIdTeamHubs.fromJson(dynamic json): id = nativeFromJson(json['id']), teamId = nativeFromJson(json['teamId']), hubName = nativeFromJson(json['hubName']), address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + latitude = json['latitude'] == null ? null : nativeFromJson(json['latitude']), + longitude = json['longitude'] == null ? null : nativeFromJson(json['longitude']), city = json['city'] == null ? null : nativeFromJson(json['city']), state = json['state'] == null ? null : nativeFromJson(json['state']), + street = json['street'] == null ? null : nativeFromJson(json['street']), + country = json['country'] == null ? null : nativeFromJson(json['country']), zipCode = json['zipCode'] == null ? null : nativeFromJson(json['zipCode']), managerName = json['managerName'] == null ? null : nativeFromJson(json['managerName']), isActive = nativeFromJson(json['isActive']), - departments = json['departments'] == null ? null : AnyValue.fromJson(json['departments']), - createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), - updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']), - createdBy = json['createdBy'] == null ? null : nativeFromJson(json['createdBy']); + departments = json['departments'] == null ? null : AnyValue.fromJson(json['departments']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -61,19 +75,21 @@ class GetTeamHubsByTeamIdTeamHubs { teamId == otherTyped.teamId && hubName == otherTyped.hubName && address == otherTyped.address && + placeId == otherTyped.placeId && + latitude == otherTyped.latitude && + longitude == otherTyped.longitude && city == otherTyped.city && state == otherTyped.state && + street == otherTyped.street && + country == otherTyped.country && zipCode == otherTyped.zipCode && managerName == otherTyped.managerName && isActive == otherTyped.isActive && - departments == otherTyped.departments && - createdAt == otherTyped.createdAt && - updatedAt == otherTyped.updatedAt && - createdBy == otherTyped.createdBy; + departments == otherTyped.departments; } @override - int get hashCode => Object.hashAll([id.hashCode, teamId.hashCode, hubName.hashCode, address.hashCode, city.hashCode, state.hashCode, zipCode.hashCode, managerName.hashCode, isActive.hashCode, departments.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, teamId.hashCode, hubName.hashCode, address.hashCode, placeId.hashCode, latitude.hashCode, longitude.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, zipCode.hashCode, managerName.hashCode, isActive.hashCode, departments.hashCode]); Map toJson() { @@ -82,12 +98,27 @@ class GetTeamHubsByTeamIdTeamHubs { json['teamId'] = nativeToJson(teamId); json['hubName'] = nativeToJson(hubName); json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + if (latitude != null) { + json['latitude'] = nativeToJson(latitude); + } + if (longitude != null) { + json['longitude'] = nativeToJson(longitude); + } if (city != null) { json['city'] = nativeToJson(city); } if (state != null) { json['state'] = nativeToJson(state); } + if (street != null) { + json['street'] = nativeToJson(street); + } + if (country != null) { + json['country'] = nativeToJson(country); + } if (zipCode != null) { json['zipCode'] = nativeToJson(zipCode); } @@ -98,15 +129,6 @@ class GetTeamHubsByTeamIdTeamHubs { if (departments != null) { json['departments'] = departments!.toJson(); } - if (createdAt != null) { - json['createdAt'] = createdAt!.toJson(); - } - if (updatedAt != null) { - json['updatedAt'] = updatedAt!.toJson(); - } - if (createdBy != null) { - json['createdBy'] = nativeToJson(createdBy); - } return json; } @@ -115,15 +137,17 @@ class GetTeamHubsByTeamIdTeamHubs { required this.teamId, required this.hubName, required this.address, + this.placeId, + this.latitude, + this.longitude, this.city, this.state, + this.street, + this.country, this.zipCode, this.managerName, required this.isActive, this.departments, - this.createdAt, - this.updatedAt, - this.createdBy, }); } @@ -166,10 +190,23 @@ class GetTeamHubsByTeamIdData { @immutable class GetTeamHubsByTeamIdVariables { final String teamId; + late final Optionaloffset; + late final Optionallimit; @Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.') GetTeamHubsByTeamIdVariables.fromJson(Map json): - teamId = nativeFromJson(json['teamId']); + teamId = nativeFromJson(json['teamId']) { + + + + offset = Optional.optional(nativeFromJson, nativeToJson); + offset.value = json['offset'] == null ? null : nativeFromJson(json['offset']); + + + limit = Optional.optional(nativeFromJson, nativeToJson); + limit.value = json['limit'] == null ? null : nativeFromJson(json['limit']); + + } @override bool operator ==(Object other) { if(identical(this, other)) { @@ -180,21 +217,31 @@ class GetTeamHubsByTeamIdVariables { } final GetTeamHubsByTeamIdVariables otherTyped = other as GetTeamHubsByTeamIdVariables; - return teamId == otherTyped.teamId; + return teamId == otherTyped.teamId && + offset == otherTyped.offset && + limit == otherTyped.limit; } @override - int get hashCode => teamId.hashCode; + int get hashCode => Object.hashAll([teamId.hashCode, offset.hashCode, limit.hashCode]); Map toJson() { Map json = {}; json['teamId'] = nativeToJson(teamId); + if(offset.state == OptionalState.set) { + json['offset'] = offset.toJson(); + } + if(limit.state == OptionalState.set) { + json['limit'] = limit.toJson(); + } return json; } GetTeamHubsByTeamIdVariables({ required this.teamId, + required this.offset, + required this.limit, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_accepted_applications_by_business_for_day.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_accepted_applications_by_business_for_day.dart index a6b3ae54..2635c776 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_accepted_applications_by_business_for_day.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_accepted_applications_by_business_for_day.dart @@ -106,13 +106,15 @@ class ListAcceptedApplicationsByBusinessForDayApplicationsStaff { final String? email; final String? phone; final String? photoUrl; + final double? averageRating; ListAcceptedApplicationsByBusinessForDayApplicationsStaff.fromJson(dynamic json): id = nativeFromJson(json['id']), fullName = nativeFromJson(json['fullName']), email = json['email'] == null ? null : nativeFromJson(json['email']), phone = json['phone'] == null ? null : nativeFromJson(json['phone']), - photoUrl = json['photoUrl'] == null ? null : nativeFromJson(json['photoUrl']); + photoUrl = json['photoUrl'] == null ? null : nativeFromJson(json['photoUrl']), + averageRating = json['averageRating'] == null ? null : nativeFromJson(json['averageRating']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -127,11 +129,12 @@ class ListAcceptedApplicationsByBusinessForDayApplicationsStaff { fullName == otherTyped.fullName && email == otherTyped.email && phone == otherTyped.phone && - photoUrl == otherTyped.photoUrl; + photoUrl == otherTyped.photoUrl && + averageRating == otherTyped.averageRating; } @override - int get hashCode => Object.hashAll([id.hashCode, fullName.hashCode, email.hashCode, phone.hashCode, photoUrl.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, fullName.hashCode, email.hashCode, phone.hashCode, photoUrl.hashCode, averageRating.hashCode]); Map toJson() { @@ -147,6 +150,9 @@ class ListAcceptedApplicationsByBusinessForDayApplicationsStaff { if (photoUrl != null) { json['photoUrl'] = nativeToJson(photoUrl); } + if (averageRating != null) { + json['averageRating'] = nativeToJson(averageRating); + } return json; } @@ -156,6 +162,7 @@ class ListAcceptedApplicationsByBusinessForDayApplicationsStaff { this.email, this.phone, this.photoUrl, + this.averageRating, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_applications.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_applications.dart index 2c86d4a5..ac50e62b 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_applications.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_applications.dart @@ -197,14 +197,14 @@ class ListApplicationsApplicationsShift { class ListApplicationsApplicationsShiftOrder { final String id; final String? eventName; - final String? location; + final ListApplicationsApplicationsShiftOrderTeamHub teamHub; final ListApplicationsApplicationsShiftOrderBusiness business; final ListApplicationsApplicationsShiftOrderVendor? vendor; ListApplicationsApplicationsShiftOrder.fromJson(dynamic json): id = nativeFromJson(json['id']), eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - location = json['location'] == null ? null : nativeFromJson(json['location']), + teamHub = ListApplicationsApplicationsShiftOrderTeamHub.fromJson(json['teamHub']), business = ListApplicationsApplicationsShiftOrderBusiness.fromJson(json['business']), vendor = json['vendor'] == null ? null : ListApplicationsApplicationsShiftOrderVendor.fromJson(json['vendor']); @override @@ -219,13 +219,13 @@ class ListApplicationsApplicationsShiftOrder { final ListApplicationsApplicationsShiftOrder otherTyped = other as ListApplicationsApplicationsShiftOrder; return id == otherTyped.id && eventName == otherTyped.eventName && - location == otherTyped.location && + teamHub == otherTyped.teamHub && business == otherTyped.business && vendor == otherTyped.vendor; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode, business.hashCode, vendor.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, teamHub.hashCode, business.hashCode, vendor.hashCode]); Map toJson() { @@ -234,9 +234,7 @@ class ListApplicationsApplicationsShiftOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (location != null) { - json['location'] = nativeToJson(location); - } + json['teamHub'] = teamHub.toJson(); json['business'] = business.toJson(); if (vendor != null) { json['vendor'] = vendor!.toJson(); @@ -247,12 +245,58 @@ class ListApplicationsApplicationsShiftOrder { ListApplicationsApplicationsShiftOrder({ required this.id, this.eventName, - this.location, + required this.teamHub, required this.business, this.vendor, }); } +@immutable +class ListApplicationsApplicationsShiftOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + ListApplicationsApplicationsShiftOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListApplicationsApplicationsShiftOrderTeamHub otherTyped = other as ListApplicationsApplicationsShiftOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + ListApplicationsApplicationsShiftOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, + }); +} + @immutable class ListApplicationsApplicationsShiftOrderBusiness { final String id; diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices.dart index 74c1ebe9..a0ea3522 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices.dart @@ -331,15 +331,15 @@ class ListInvoicesInvoicesBusiness { @immutable class ListInvoicesInvoicesOrder { final String? eventName; - final String? hub; final String? deparment; final String? poReference; + final ListInvoicesInvoicesOrderTeamHub teamHub; ListInvoicesInvoicesOrder.fromJson(dynamic json): eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - hub = json['hub'] == null ? null : nativeFromJson(json['hub']), deparment = json['deparment'] == null ? null : nativeFromJson(json['deparment']), - poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']); + poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']), + teamHub = ListInvoicesInvoicesOrderTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -351,13 +351,13 @@ class ListInvoicesInvoicesOrder { final ListInvoicesInvoicesOrder otherTyped = other as ListInvoicesInvoicesOrder; return eventName == otherTyped.eventName && - hub == otherTyped.hub && deparment == otherTyped.deparment && - poReference == otherTyped.poReference; + poReference == otherTyped.poReference && + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]); + int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode, teamHub.hashCode]); Map toJson() { @@ -365,23 +365,67 @@ class ListInvoicesInvoicesOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (hub != null) { - json['hub'] = nativeToJson(hub); - } if (deparment != null) { json['deparment'] = nativeToJson(deparment); } if (poReference != null) { json['poReference'] = nativeToJson(poReference); } + json['teamHub'] = teamHub.toJson(); return json; } ListInvoicesInvoicesOrder({ this.eventName, - this.hub, this.deparment, this.poReference, + required this.teamHub, + }); +} + +@immutable +class ListInvoicesInvoicesOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + ListInvoicesInvoicesOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListInvoicesInvoicesOrderTeamHub otherTyped = other as ListInvoicesInvoicesOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + ListInvoicesInvoicesOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices_by_business_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices_by_business_id.dart index 0b3dd14c..5aa3de7d 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices_by_business_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices_by_business_id.dart @@ -331,15 +331,15 @@ class ListInvoicesByBusinessIdInvoicesBusiness { @immutable class ListInvoicesByBusinessIdInvoicesOrder { final String? eventName; - final String? hub; final String? deparment; final String? poReference; + final ListInvoicesByBusinessIdInvoicesOrderTeamHub teamHub; ListInvoicesByBusinessIdInvoicesOrder.fromJson(dynamic json): eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - hub = json['hub'] == null ? null : nativeFromJson(json['hub']), deparment = json['deparment'] == null ? null : nativeFromJson(json['deparment']), - poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']); + poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']), + teamHub = ListInvoicesByBusinessIdInvoicesOrderTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -351,13 +351,13 @@ class ListInvoicesByBusinessIdInvoicesOrder { final ListInvoicesByBusinessIdInvoicesOrder otherTyped = other as ListInvoicesByBusinessIdInvoicesOrder; return eventName == otherTyped.eventName && - hub == otherTyped.hub && deparment == otherTyped.deparment && - poReference == otherTyped.poReference; + poReference == otherTyped.poReference && + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]); + int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode, teamHub.hashCode]); Map toJson() { @@ -365,23 +365,67 @@ class ListInvoicesByBusinessIdInvoicesOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (hub != null) { - json['hub'] = nativeToJson(hub); - } if (deparment != null) { json['deparment'] = nativeToJson(deparment); } if (poReference != null) { json['poReference'] = nativeToJson(poReference); } + json['teamHub'] = teamHub.toJson(); return json; } ListInvoicesByBusinessIdInvoicesOrder({ this.eventName, - this.hub, this.deparment, this.poReference, + required this.teamHub, + }); +} + +@immutable +class ListInvoicesByBusinessIdInvoicesOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + ListInvoicesByBusinessIdInvoicesOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListInvoicesByBusinessIdInvoicesOrderTeamHub otherTyped = other as ListInvoicesByBusinessIdInvoicesOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + ListInvoicesByBusinessIdInvoicesOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices_by_order_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices_by_order_id.dart index 6217a941..7ff7f913 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices_by_order_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices_by_order_id.dart @@ -331,15 +331,15 @@ class ListInvoicesByOrderIdInvoicesBusiness { @immutable class ListInvoicesByOrderIdInvoicesOrder { final String? eventName; - final String? hub; final String? deparment; final String? poReference; + final ListInvoicesByOrderIdInvoicesOrderTeamHub teamHub; ListInvoicesByOrderIdInvoicesOrder.fromJson(dynamic json): eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - hub = json['hub'] == null ? null : nativeFromJson(json['hub']), deparment = json['deparment'] == null ? null : nativeFromJson(json['deparment']), - poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']); + poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']), + teamHub = ListInvoicesByOrderIdInvoicesOrderTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -351,13 +351,13 @@ class ListInvoicesByOrderIdInvoicesOrder { final ListInvoicesByOrderIdInvoicesOrder otherTyped = other as ListInvoicesByOrderIdInvoicesOrder; return eventName == otherTyped.eventName && - hub == otherTyped.hub && deparment == otherTyped.deparment && - poReference == otherTyped.poReference; + poReference == otherTyped.poReference && + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]); + int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode, teamHub.hashCode]); Map toJson() { @@ -365,23 +365,67 @@ class ListInvoicesByOrderIdInvoicesOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (hub != null) { - json['hub'] = nativeToJson(hub); - } if (deparment != null) { json['deparment'] = nativeToJson(deparment); } if (poReference != null) { json['poReference'] = nativeToJson(poReference); } + json['teamHub'] = teamHub.toJson(); return json; } ListInvoicesByOrderIdInvoicesOrder({ this.eventName, - this.hub, this.deparment, this.poReference, + required this.teamHub, + }); +} + +@immutable +class ListInvoicesByOrderIdInvoicesOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + ListInvoicesByOrderIdInvoicesOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListInvoicesByOrderIdInvoicesOrderTeamHub otherTyped = other as ListInvoicesByOrderIdInvoicesOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + ListInvoicesByOrderIdInvoicesOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices_by_status.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices_by_status.dart index 7a04a11e..ee907313 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices_by_status.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices_by_status.dart @@ -331,15 +331,15 @@ class ListInvoicesByStatusInvoicesBusiness { @immutable class ListInvoicesByStatusInvoicesOrder { final String? eventName; - final String? hub; final String? deparment; final String? poReference; + final ListInvoicesByStatusInvoicesOrderTeamHub teamHub; ListInvoicesByStatusInvoicesOrder.fromJson(dynamic json): eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - hub = json['hub'] == null ? null : nativeFromJson(json['hub']), deparment = json['deparment'] == null ? null : nativeFromJson(json['deparment']), - poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']); + poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']), + teamHub = ListInvoicesByStatusInvoicesOrderTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -351,13 +351,13 @@ class ListInvoicesByStatusInvoicesOrder { final ListInvoicesByStatusInvoicesOrder otherTyped = other as ListInvoicesByStatusInvoicesOrder; return eventName == otherTyped.eventName && - hub == otherTyped.hub && deparment == otherTyped.deparment && - poReference == otherTyped.poReference; + poReference == otherTyped.poReference && + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]); + int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode, teamHub.hashCode]); Map toJson() { @@ -365,23 +365,67 @@ class ListInvoicesByStatusInvoicesOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (hub != null) { - json['hub'] = nativeToJson(hub); - } if (deparment != null) { json['deparment'] = nativeToJson(deparment); } if (poReference != null) { json['poReference'] = nativeToJson(poReference); } + json['teamHub'] = teamHub.toJson(); return json; } ListInvoicesByStatusInvoicesOrder({ this.eventName, - this.hub, this.deparment, this.poReference, + required this.teamHub, + }); +} + +@immutable +class ListInvoicesByStatusInvoicesOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + ListInvoicesByStatusInvoicesOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListInvoicesByStatusInvoicesOrderTeamHub otherTyped = other as ListInvoicesByStatusInvoicesOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + ListInvoicesByStatusInvoicesOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices_by_vendor_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices_by_vendor_id.dart index 373c5622..1d9ded10 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices_by_vendor_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_invoices_by_vendor_id.dart @@ -331,15 +331,15 @@ class ListInvoicesByVendorIdInvoicesBusiness { @immutable class ListInvoicesByVendorIdInvoicesOrder { final String? eventName; - final String? hub; final String? deparment; final String? poReference; + final ListInvoicesByVendorIdInvoicesOrderTeamHub teamHub; ListInvoicesByVendorIdInvoicesOrder.fromJson(dynamic json): eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - hub = json['hub'] == null ? null : nativeFromJson(json['hub']), deparment = json['deparment'] == null ? null : nativeFromJson(json['deparment']), - poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']); + poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']), + teamHub = ListInvoicesByVendorIdInvoicesOrderTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -351,13 +351,13 @@ class ListInvoicesByVendorIdInvoicesOrder { final ListInvoicesByVendorIdInvoicesOrder otherTyped = other as ListInvoicesByVendorIdInvoicesOrder; return eventName == otherTyped.eventName && - hub == otherTyped.hub && deparment == otherTyped.deparment && - poReference == otherTyped.poReference; + poReference == otherTyped.poReference && + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]); + int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode, teamHub.hashCode]); Map toJson() { @@ -365,23 +365,67 @@ class ListInvoicesByVendorIdInvoicesOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (hub != null) { - json['hub'] = nativeToJson(hub); - } if (deparment != null) { json['deparment'] = nativeToJson(deparment); } if (poReference != null) { json['poReference'] = nativeToJson(poReference); } + json['teamHub'] = teamHub.toJson(); return json; } ListInvoicesByVendorIdInvoicesOrder({ this.eventName, - this.hub, this.deparment, this.poReference, + required this.teamHub, + }); +} + +@immutable +class ListInvoicesByVendorIdInvoicesOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + ListInvoicesByVendorIdInvoicesOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListInvoicesByVendorIdInvoicesOrderTeamHub otherTyped = other as ListInvoicesByVendorIdInvoicesOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + ListInvoicesByVendorIdInvoicesOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_orders.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_orders.dart index 8ba465b5..2a3434ec 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_orders.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_orders.dart @@ -34,7 +34,6 @@ class ListOrdersOrders { final String? vendorId; final String businessId; final EnumValue orderType; - final String? location; final EnumValue status; final Timestamp? date; final Timestamp? startDate; @@ -45,7 +44,6 @@ class ListOrdersOrders { final AnyValue? assignedStaff; final AnyValue? shifts; final int? requested; - final String? hub; final AnyValue? recurringDays; final AnyValue? permanentDays; final String? poReference; @@ -54,6 +52,7 @@ class ListOrdersOrders { final Timestamp? createdAt; final ListOrdersOrdersBusiness business; final ListOrdersOrdersVendor? vendor; + final ListOrdersOrdersTeamHub teamHub; ListOrdersOrders.fromJson(dynamic json): id = nativeFromJson(json['id']), @@ -61,7 +60,6 @@ class ListOrdersOrders { vendorId = json['vendorId'] == null ? null : nativeFromJson(json['vendorId']), businessId = nativeFromJson(json['businessId']), orderType = orderTypeDeserializer(json['orderType']), - location = json['location'] == null ? null : nativeFromJson(json['location']), status = orderStatusDeserializer(json['status']), date = json['date'] == null ? null : Timestamp.fromJson(json['date']), startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']), @@ -72,7 +70,6 @@ class ListOrdersOrders { assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']), shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']), requested = json['requested'] == null ? null : nativeFromJson(json['requested']), - hub = json['hub'] == null ? null : nativeFromJson(json['hub']), recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']), permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']), poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']), @@ -80,7 +77,8 @@ class ListOrdersOrders { notes = json['notes'] == null ? null : nativeFromJson(json['notes']), createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), business = ListOrdersOrdersBusiness.fromJson(json['business']), - vendor = json['vendor'] == null ? null : ListOrdersOrdersVendor.fromJson(json['vendor']); + vendor = json['vendor'] == null ? null : ListOrdersOrdersVendor.fromJson(json['vendor']), + teamHub = ListOrdersOrdersTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -96,7 +94,6 @@ class ListOrdersOrders { vendorId == otherTyped.vendorId && businessId == otherTyped.businessId && orderType == otherTyped.orderType && - location == otherTyped.location && status == otherTyped.status && date == otherTyped.date && startDate == otherTyped.startDate && @@ -107,7 +104,6 @@ class ListOrdersOrders { assignedStaff == otherTyped.assignedStaff && shifts == otherTyped.shifts && requested == otherTyped.requested && - hub == otherTyped.hub && recurringDays == otherTyped.recurringDays && permanentDays == otherTyped.permanentDays && poReference == otherTyped.poReference && @@ -115,11 +111,12 @@ class ListOrdersOrders { notes == otherTyped.notes && createdAt == otherTyped.createdAt && business == otherTyped.business && - vendor == otherTyped.vendor; + vendor == otherTyped.vendor && + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode, teamHub.hashCode]); Map toJson() { @@ -135,9 +132,6 @@ class ListOrdersOrders { json['orderType'] = orderTypeSerializer(orderType) ; - if (location != null) { - json['location'] = nativeToJson(location); - } json['status'] = orderStatusSerializer(status) ; @@ -170,9 +164,6 @@ class ListOrdersOrders { if (requested != null) { json['requested'] = nativeToJson(requested); } - if (hub != null) { - json['hub'] = nativeToJson(hub); - } if (recurringDays != null) { json['recurringDays'] = recurringDays!.toJson(); } @@ -195,6 +186,7 @@ class ListOrdersOrders { if (vendor != null) { json['vendor'] = vendor!.toJson(); } + json['teamHub'] = teamHub.toJson(); return json; } @@ -204,7 +196,6 @@ class ListOrdersOrders { this.vendorId, required this.businessId, required this.orderType, - this.location, required this.status, this.date, this.startDate, @@ -215,7 +206,6 @@ class ListOrdersOrders { this.assignedStaff, this.shifts, this.requested, - this.hub, this.recurringDays, this.permanentDays, this.poReference, @@ -224,6 +214,7 @@ class ListOrdersOrders { this.createdAt, required this.business, this.vendor, + required this.teamHub, }); } @@ -319,6 +310,52 @@ class ListOrdersOrdersVendor { }); } +@immutable +class ListOrdersOrdersTeamHub { + final String address; + final String? placeId; + final String hubName; + ListOrdersOrdersTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListOrdersOrdersTeamHub otherTyped = other as ListOrdersOrdersTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + ListOrdersOrdersTeamHub({ + required this.address, + this.placeId, + required this.hubName, + }); +} + @immutable class ListOrdersData { final List orders; diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_orders_by_business_and_team_hub.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_orders_by_business_and_team_hub.dart new file mode 100644 index 00000000..bf8b0661 --- /dev/null +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_orders_by_business_and_team_hub.dart @@ -0,0 +1,274 @@ +part of 'generated.dart'; + +class ListOrdersByBusinessAndTeamHubVariablesBuilder { + String businessId; + String teamHubId; + Optional _offset = Optional.optional(nativeFromJson, nativeToJson); + Optional _limit = Optional.optional(nativeFromJson, nativeToJson); + + final FirebaseDataConnect _dataConnect; ListOrdersByBusinessAndTeamHubVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListOrdersByBusinessAndTeamHubVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ListOrdersByBusinessAndTeamHubVariablesBuilder(this._dataConnect, {required this.businessId,required this.teamHubId,}); + Deserializer dataDeserializer = (dynamic json) => ListOrdersByBusinessAndTeamHubData.fromJson(jsonDecode(json)); + Serializer varsSerializer = (ListOrdersByBusinessAndTeamHubVariables vars) => jsonEncode(vars.toJson()); + Future> execute() { + return ref().execute(); + } + + QueryRef ref() { + ListOrdersByBusinessAndTeamHubVariables vars= ListOrdersByBusinessAndTeamHubVariables(businessId: businessId,teamHubId: teamHubId,offset: _offset,limit: _limit,); + return _dataConnect.query("listOrdersByBusinessAndTeamHub", dataDeserializer, varsSerializer, vars); + } +} + +@immutable +class ListOrdersByBusinessAndTeamHubOrders { + final String id; + final String? eventName; + final EnumValue orderType; + final EnumValue status; + final EnumValue? duration; + final String businessId; + final String? vendorId; + final String teamHubId; + final Timestamp? date; + final Timestamp? startDate; + final Timestamp? endDate; + final int? requested; + final double? total; + final String? notes; + final Timestamp? createdAt; + final Timestamp? updatedAt; + final String? createdBy; + ListOrdersByBusinessAndTeamHubOrders.fromJson(dynamic json): + + id = nativeFromJson(json['id']), + eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), + orderType = orderTypeDeserializer(json['orderType']), + status = orderStatusDeserializer(json['status']), + duration = json['duration'] == null ? null : orderDurationDeserializer(json['duration']), + businessId = nativeFromJson(json['businessId']), + vendorId = json['vendorId'] == null ? null : nativeFromJson(json['vendorId']), + teamHubId = nativeFromJson(json['teamHubId']), + date = json['date'] == null ? null : Timestamp.fromJson(json['date']), + startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']), + endDate = json['endDate'] == null ? null : Timestamp.fromJson(json['endDate']), + requested = json['requested'] == null ? null : nativeFromJson(json['requested']), + total = json['total'] == null ? null : nativeFromJson(json['total']), + notes = json['notes'] == null ? null : nativeFromJson(json['notes']), + createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), + updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']), + createdBy = json['createdBy'] == null ? null : nativeFromJson(json['createdBy']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListOrdersByBusinessAndTeamHubOrders otherTyped = other as ListOrdersByBusinessAndTeamHubOrders; + return id == otherTyped.id && + eventName == otherTyped.eventName && + orderType == otherTyped.orderType && + status == otherTyped.status && + duration == otherTyped.duration && + businessId == otherTyped.businessId && + vendorId == otherTyped.vendorId && + teamHubId == otherTyped.teamHubId && + date == otherTyped.date && + startDate == otherTyped.startDate && + endDate == otherTyped.endDate && + requested == otherTyped.requested && + total == otherTyped.total && + notes == otherTyped.notes && + createdAt == otherTyped.createdAt && + updatedAt == otherTyped.updatedAt && + createdBy == otherTyped.createdBy; + + } + @override + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, orderType.hashCode, status.hashCode, duration.hashCode, businessId.hashCode, vendorId.hashCode, teamHubId.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, requested.hashCode, total.hashCode, notes.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]); + + + Map toJson() { + Map json = {}; + json['id'] = nativeToJson(id); + if (eventName != null) { + json['eventName'] = nativeToJson(eventName); + } + json['orderType'] = + orderTypeSerializer(orderType) + ; + json['status'] = + orderStatusSerializer(status) + ; + if (duration != null) { + json['duration'] = + orderDurationSerializer(duration!) + ; + } + json['businessId'] = nativeToJson(businessId); + if (vendorId != null) { + json['vendorId'] = nativeToJson(vendorId); + } + json['teamHubId'] = nativeToJson(teamHubId); + if (date != null) { + json['date'] = date!.toJson(); + } + if (startDate != null) { + json['startDate'] = startDate!.toJson(); + } + if (endDate != null) { + json['endDate'] = endDate!.toJson(); + } + if (requested != null) { + json['requested'] = nativeToJson(requested); + } + if (total != null) { + json['total'] = nativeToJson(total); + } + if (notes != null) { + json['notes'] = nativeToJson(notes); + } + if (createdAt != null) { + json['createdAt'] = createdAt!.toJson(); + } + if (updatedAt != null) { + json['updatedAt'] = updatedAt!.toJson(); + } + if (createdBy != null) { + json['createdBy'] = nativeToJson(createdBy); + } + return json; + } + + ListOrdersByBusinessAndTeamHubOrders({ + required this.id, + this.eventName, + required this.orderType, + required this.status, + this.duration, + required this.businessId, + this.vendorId, + required this.teamHubId, + this.date, + this.startDate, + this.endDate, + this.requested, + this.total, + this.notes, + this.createdAt, + this.updatedAt, + this.createdBy, + }); +} + +@immutable +class ListOrdersByBusinessAndTeamHubData { + final List orders; + ListOrdersByBusinessAndTeamHubData.fromJson(dynamic json): + + orders = (json['orders'] as List) + .map((e) => ListOrdersByBusinessAndTeamHubOrders.fromJson(e)) + .toList(); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListOrdersByBusinessAndTeamHubData otherTyped = other as ListOrdersByBusinessAndTeamHubData; + return orders == otherTyped.orders; + + } + @override + int get hashCode => orders.hashCode; + + + Map toJson() { + Map json = {}; + json['orders'] = orders.map((e) => e.toJson()).toList(); + return json; + } + + ListOrdersByBusinessAndTeamHubData({ + required this.orders, + }); +} + +@immutable +class ListOrdersByBusinessAndTeamHubVariables { + final String businessId; + final String teamHubId; + late final Optionaloffset; + late final Optionallimit; + @Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.') + ListOrdersByBusinessAndTeamHubVariables.fromJson(Map json): + + businessId = nativeFromJson(json['businessId']), + teamHubId = nativeFromJson(json['teamHubId']) { + + + + + offset = Optional.optional(nativeFromJson, nativeToJson); + offset.value = json['offset'] == null ? null : nativeFromJson(json['offset']); + + + limit = Optional.optional(nativeFromJson, nativeToJson); + limit.value = json['limit'] == null ? null : nativeFromJson(json['limit']); + + } + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListOrdersByBusinessAndTeamHubVariables otherTyped = other as ListOrdersByBusinessAndTeamHubVariables; + return businessId == otherTyped.businessId && + teamHubId == otherTyped.teamHubId && + offset == otherTyped.offset && + limit == otherTyped.limit; + + } + @override + int get hashCode => Object.hashAll([businessId.hashCode, teamHubId.hashCode, offset.hashCode, limit.hashCode]); + + + Map toJson() { + Map json = {}; + json['businessId'] = nativeToJson(businessId); + json['teamHubId'] = nativeToJson(teamHubId); + if(offset.state == OptionalState.set) { + json['offset'] = offset.toJson(); + } + if(limit.state == OptionalState.set) { + json['limit'] = limit.toJson(); + } + return json; + } + + ListOrdersByBusinessAndTeamHubVariables({ + required this.businessId, + required this.teamHubId, + required this.offset, + required this.limit, + }); +} + diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_overdue_invoices.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_overdue_invoices.dart index 6c439434..be008a21 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_overdue_invoices.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_overdue_invoices.dart @@ -331,15 +331,15 @@ class ListOverdueInvoicesInvoicesBusiness { @immutable class ListOverdueInvoicesInvoicesOrder { final String? eventName; - final String? hub; final String? deparment; final String? poReference; + final ListOverdueInvoicesInvoicesOrderTeamHub teamHub; ListOverdueInvoicesInvoicesOrder.fromJson(dynamic json): eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - hub = json['hub'] == null ? null : nativeFromJson(json['hub']), deparment = json['deparment'] == null ? null : nativeFromJson(json['deparment']), - poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']); + poReference = json['poReference'] == null ? null : nativeFromJson(json['poReference']), + teamHub = ListOverdueInvoicesInvoicesOrderTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -351,13 +351,13 @@ class ListOverdueInvoicesInvoicesOrder { final ListOverdueInvoicesInvoicesOrder otherTyped = other as ListOverdueInvoicesInvoicesOrder; return eventName == otherTyped.eventName && - hub == otherTyped.hub && deparment == otherTyped.deparment && - poReference == otherTyped.poReference; + poReference == otherTyped.poReference && + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]); + int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode, teamHub.hashCode]); Map toJson() { @@ -365,23 +365,67 @@ class ListOverdueInvoicesInvoicesOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (hub != null) { - json['hub'] = nativeToJson(hub); - } if (deparment != null) { json['deparment'] = nativeToJson(deparment); } if (poReference != null) { json['poReference'] = nativeToJson(poReference); } + json['teamHub'] = teamHub.toJson(); return json; } ListOverdueInvoicesInvoicesOrder({ this.eventName, - this.hub, this.deparment, this.poReference, + required this.teamHub, + }); +} + +@immutable +class ListOverdueInvoicesInvoicesOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + ListOverdueInvoicesInvoicesOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListOverdueInvoicesInvoicesOrderTeamHub otherTyped = other as ListOverdueInvoicesInvoicesOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + ListOverdueInvoicesInvoicesOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_application_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_application_id.dart index da902a94..6edf040b 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_application_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_application_id.dart @@ -467,12 +467,12 @@ class ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceVendor { class ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder { final String id; final String? eventName; - final String? location; + final ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrderTeamHub teamHub; ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder.fromJson(dynamic json): id = nativeFromJson(json['id']), eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - location = json['location'] == null ? null : nativeFromJson(json['location']); + teamHub = ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrderTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -485,11 +485,11 @@ class ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder { final ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder; return id == otherTyped.id && eventName == otherTyped.eventName && - location == otherTyped.location; + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, teamHub.hashCode]); Map toJson() { @@ -498,16 +498,60 @@ class ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (location != null) { - json['location'] = nativeToJson(location); - } + json['teamHub'] = teamHub.toJson(); return json; } ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder({ required this.id, this.eventName, - this.location, + required this.teamHub, + }); +} + +@immutable +class ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrderTeamHub otherTyped = other as ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_business_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_business_id.dart index bbe69db2..f4e62c6a 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_business_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_business_id.dart @@ -517,12 +517,12 @@ class ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceVendor { class ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder { final String id; final String? eventName; - final String? location; + final ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrderTeamHub teamHub; ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder.fromJson(dynamic json): id = nativeFromJson(json['id']), eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - location = json['location'] == null ? null : nativeFromJson(json['location']); + teamHub = ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrderTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -535,11 +535,11 @@ class ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder { final ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder; return id == otherTyped.id && eventName == otherTyped.eventName && - location == otherTyped.location; + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, teamHub.hashCode]); Map toJson() { @@ -548,16 +548,60 @@ class ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (location != null) { - json['location'] = nativeToJson(location); - } + json['teamHub'] = teamHub.toJson(); return json; } ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder({ required this.id, this.eventName, - this.location, + required this.teamHub, + }); +} + +@immutable +class ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrderTeamHub otherTyped = other as ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_invoice_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_invoice_id.dart index 2989392a..ede786ad 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_invoice_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_invoice_id.dart @@ -465,12 +465,12 @@ class ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceVendor { class ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder { final String id; final String? eventName; - final String? location; + final ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrderTeamHub teamHub; ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder.fromJson(dynamic json): id = nativeFromJson(json['id']), eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - location = json['location'] == null ? null : nativeFromJson(json['location']); + teamHub = ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrderTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -483,11 +483,11 @@ class ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder { final ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder; return id == otherTyped.id && eventName == otherTyped.eventName && - location == otherTyped.location; + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, teamHub.hashCode]); Map toJson() { @@ -496,16 +496,60 @@ class ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (location != null) { - json['location'] = nativeToJson(location); - } + json['teamHub'] = teamHub.toJson(); return json; } ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder({ required this.id, this.eventName, - this.location, + required this.teamHub, + }); +} + +@immutable +class ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrderTeamHub otherTyped = other as ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_invoice_ids.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_invoice_ids.dart index 4bb711d1..8d34ace8 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_invoice_ids.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_invoice_ids.dart @@ -460,12 +460,12 @@ class ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceVendor { class ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder { final String id; final String? eventName; - final String? location; + final ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrderTeamHub teamHub; ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder.fromJson(dynamic json): id = nativeFromJson(json['id']), eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - location = json['location'] == null ? null : nativeFromJson(json['location']); + teamHub = ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrderTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -478,11 +478,11 @@ class ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder { final ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder; return id == otherTyped.id && eventName == otherTyped.eventName && - location == otherTyped.location; + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, teamHub.hashCode]); Map toJson() { @@ -491,16 +491,60 @@ class ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (location != null) { - json['location'] = nativeToJson(location); - } + json['teamHub'] = teamHub.toJson(); return json; } ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder({ required this.id, this.eventName, - this.location, + required this.teamHub, + }); +} + +@immutable +class ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrderTeamHub otherTyped = other as ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_staff_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_staff_id.dart index de171230..7d2ca879 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_staff_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_staff_id.dart @@ -491,12 +491,12 @@ class ListRecentPaymentsByStaffIdRecentPaymentsInvoiceVendor { class ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder { final String id; final String? eventName; - final String? location; + final ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrderTeamHub teamHub; ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder.fromJson(dynamic json): id = nativeFromJson(json['id']), eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - location = json['location'] == null ? null : nativeFromJson(json['location']); + teamHub = ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrderTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -509,11 +509,11 @@ class ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder { final ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder; return id == otherTyped.id && eventName == otherTyped.eventName && - location == otherTyped.location; + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, teamHub.hashCode]); Map toJson() { @@ -522,16 +522,60 @@ class ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (location != null) { - json['location'] = nativeToJson(location); - } + json['teamHub'] = teamHub.toJson(); return json; } ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder({ required this.id, this.eventName, - this.location, + required this.teamHub, + }); +} + +@immutable +class ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrderTeamHub otherTyped = other as ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_status.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_status.dart index 716e335e..4ca8f672 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_status.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_recent_payments_by_status.dart @@ -460,12 +460,12 @@ class ListRecentPaymentsByStatusRecentPaymentsInvoiceVendor { class ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder { final String id; final String? eventName; - final String? location; + final ListRecentPaymentsByStatusRecentPaymentsInvoiceOrderTeamHub teamHub; ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder.fromJson(dynamic json): id = nativeFromJson(json['id']), eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), - location = json['location'] == null ? null : nativeFromJson(json['location']); + teamHub = ListRecentPaymentsByStatusRecentPaymentsInvoiceOrderTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -478,11 +478,11 @@ class ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder { final ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder; return id == otherTyped.id && eventName == otherTyped.eventName && - location == otherTyped.location; + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, teamHub.hashCode]); Map toJson() { @@ -491,16 +491,60 @@ class ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder { if (eventName != null) { json['eventName'] = nativeToJson(eventName); } - if (location != null) { - json['location'] = nativeToJson(location); - } + json['teamHub'] = teamHub.toJson(); return json; } ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder({ required this.id, this.eventName, - this.location, + required this.teamHub, + }); +} + +@immutable +class ListRecentPaymentsByStatusRecentPaymentsInvoiceOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + ListRecentPaymentsByStatusRecentPaymentsInvoiceOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListRecentPaymentsByStatusRecentPaymentsInvoiceOrderTeamHub otherTyped = other as ListRecentPaymentsByStatusRecentPaymentsInvoiceOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + ListRecentPaymentsByStatusRecentPaymentsInvoiceOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_shift_roles_by_business_and_date_range.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_shift_roles_by_business_and_date_range.dart index 741c67d5..cd393b3f 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_shift_roles_by_business_and_date_range.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_shift_roles_by_business_and_date_range.dart @@ -239,9 +239,11 @@ class ListShiftRolesByBusinessAndDateRangeShiftRolesShift { @immutable class ListShiftRolesByBusinessAndDateRangeShiftRolesShiftOrder { final String id; + final String? eventName; ListShiftRolesByBusinessAndDateRangeShiftRolesShiftOrder.fromJson(dynamic json): - id = nativeFromJson(json['id']); + id = nativeFromJson(json['id']), + eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -252,21 +254,26 @@ class ListShiftRolesByBusinessAndDateRangeShiftRolesShiftOrder { } final ListShiftRolesByBusinessAndDateRangeShiftRolesShiftOrder otherTyped = other as ListShiftRolesByBusinessAndDateRangeShiftRolesShiftOrder; - return id == otherTyped.id; + return id == otherTyped.id && + eventName == otherTyped.eventName; } @override - int get hashCode => id.hashCode; + int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode]); Map toJson() { Map json = {}; json['id'] = nativeToJson(id); + if (eventName != null) { + json['eventName'] = nativeToJson(eventName); + } return json; } ListShiftRolesByBusinessAndDateRangeShiftRolesShiftOrder({ required this.id, + this.eventName, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_shift_roles_by_business_and_order.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_shift_roles_by_business_and_order.dart index 0893e2ba..ad7b8ab9 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_shift_roles_by_business_and_order.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_shift_roles_by_business_and_order.dart @@ -255,13 +255,15 @@ class ListShiftRolesByBusinessAndOrderShiftRolesShift { @immutable class ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder { final String? vendorId; + final String? eventName; final Timestamp? date; - final String? location; + final ListShiftRolesByBusinessAndOrderShiftRolesShiftOrderTeamHub teamHub; ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder.fromJson(dynamic json): vendorId = json['vendorId'] == null ? null : nativeFromJson(json['vendorId']), + eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), date = json['date'] == null ? null : Timestamp.fromJson(json['date']), - location = json['location'] == null ? null : nativeFromJson(json['location']); + teamHub = ListShiftRolesByBusinessAndOrderShiftRolesShiftOrderTeamHub.fromJson(json['teamHub']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -273,12 +275,13 @@ class ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder { final ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder otherTyped = other as ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder; return vendorId == otherTyped.vendorId && + eventName == otherTyped.eventName && date == otherTyped.date && - location == otherTyped.location; + teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([vendorId.hashCode, date.hashCode, location.hashCode]); + int get hashCode => Object.hashAll([vendorId.hashCode, eventName.hashCode, date.hashCode, teamHub.hashCode]); Map toJson() { @@ -286,19 +289,67 @@ class ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder { if (vendorId != null) { json['vendorId'] = nativeToJson(vendorId); } + if (eventName != null) { + json['eventName'] = nativeToJson(eventName); + } if (date != null) { json['date'] = date!.toJson(); } - if (location != null) { - json['location'] = nativeToJson(location); - } + json['teamHub'] = teamHub.toJson(); return json; } ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder({ this.vendorId, + this.eventName, this.date, - this.location, + required this.teamHub, + }); +} + +@immutable +class ListShiftRolesByBusinessAndOrderShiftRolesShiftOrderTeamHub { + final String address; + final String? placeId; + final String hubName; + ListShiftRolesByBusinessAndOrderShiftRolesShiftOrderTeamHub.fromJson(dynamic json): + + address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + hubName = nativeFromJson(json['hubName']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListShiftRolesByBusinessAndOrderShiftRolesShiftOrderTeamHub otherTyped = other as ListShiftRolesByBusinessAndOrderShiftRolesShiftOrderTeamHub; + return address == otherTyped.address && + placeId == otherTyped.placeId && + hubName == otherTyped.hubName; + + } + @override + int get hashCode => Object.hashAll([address.hashCode, placeId.hashCode, hubName.hashCode]); + + + Map toJson() { + Map json = {}; + json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + json['hubName'] = nativeToJson(hubName); + return json; + } + + ListShiftRolesByBusinessAndOrderShiftRolesShiftOrderTeamHub({ + required this.address, + this.placeId, + required this.hubName, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_shifts.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_shifts.dart index ae16b741..b2cb7b25 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_shifts.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_shifts.dart @@ -41,6 +41,11 @@ class ListShiftsShifts { final String? locationAddress; final double? latitude; final double? longitude; + final String? placeId; + final String? city; + final String? state; + final String? street; + final String? country; final String? description; final EnumValue? status; final int? workersNeeded; @@ -66,6 +71,11 @@ class ListShiftsShifts { locationAddress = json['locationAddress'] == null ? null : nativeFromJson(json['locationAddress']), latitude = json['latitude'] == null ? null : nativeFromJson(json['latitude']), longitude = json['longitude'] == null ? null : nativeFromJson(json['longitude']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + city = json['city'] == null ? null : nativeFromJson(json['city']), + state = json['state'] == null ? null : nativeFromJson(json['state']), + street = json['street'] == null ? null : nativeFromJson(json['street']), + country = json['country'] == null ? null : nativeFromJson(json['country']), description = json['description'] == null ? null : nativeFromJson(json['description']), status = json['status'] == null ? null : shiftStatusDeserializer(json['status']), workersNeeded = json['workersNeeded'] == null ? null : nativeFromJson(json['workersNeeded']), @@ -101,6 +111,11 @@ class ListShiftsShifts { locationAddress == otherTyped.locationAddress && latitude == otherTyped.latitude && longitude == otherTyped.longitude && + placeId == otherTyped.placeId && + city == otherTyped.city && + state == otherTyped.state && + street == otherTyped.street && + country == otherTyped.country && description == otherTyped.description && status == otherTyped.status && workersNeeded == otherTyped.workersNeeded && @@ -115,7 +130,7 @@ class ListShiftsShifts { } @override - int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, placeId.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]); Map toJson() { @@ -150,6 +165,21 @@ class ListShiftsShifts { if (longitude != null) { json['longitude'] = nativeToJson(longitude); } + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + if (city != null) { + json['city'] = nativeToJson(city); + } + if (state != null) { + json['state'] = nativeToJson(state); + } + if (street != null) { + json['street'] = nativeToJson(street); + } + if (country != null) { + json['country'] = nativeToJson(country); + } if (description != null) { json['description'] = nativeToJson(description); } @@ -199,6 +229,11 @@ class ListShiftsShifts { this.locationAddress, this.latitude, this.longitude, + this.placeId, + this.city, + this.state, + this.street, + this.country, this.description, this.status, this.workersNeeded, diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_staffs_applications_by_business_for_day.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_staffs_applications_by_business_for_day.dart index 7c4ed250..0470e1fe 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_staffs_applications_by_business_for_day.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_staffs_applications_by_business_for_day.dart @@ -116,12 +116,14 @@ class ListStaffsApplicationsByBusinessForDayApplicationsShiftRole { final ListStaffsApplicationsByBusinessForDayApplicationsShiftRoleShift shift; final int count; final int? assigned; + final double? hours; final ListStaffsApplicationsByBusinessForDayApplicationsShiftRoleRole role; ListStaffsApplicationsByBusinessForDayApplicationsShiftRole.fromJson(dynamic json): shift = ListStaffsApplicationsByBusinessForDayApplicationsShiftRoleShift.fromJson(json['shift']), count = nativeFromJson(json['count']), assigned = json['assigned'] == null ? null : nativeFromJson(json['assigned']), + hours = json['hours'] == null ? null : nativeFromJson(json['hours']), role = ListStaffsApplicationsByBusinessForDayApplicationsShiftRoleRole.fromJson(json['role']); @override bool operator ==(Object other) { @@ -136,11 +138,12 @@ class ListStaffsApplicationsByBusinessForDayApplicationsShiftRole { return shift == otherTyped.shift && count == otherTyped.count && assigned == otherTyped.assigned && + hours == otherTyped.hours && role == otherTyped.role; } @override - int get hashCode => Object.hashAll([shift.hashCode, count.hashCode, assigned.hashCode, role.hashCode]); + int get hashCode => Object.hashAll([shift.hashCode, count.hashCode, assigned.hashCode, hours.hashCode, role.hashCode]); Map toJson() { @@ -150,6 +153,9 @@ class ListStaffsApplicationsByBusinessForDayApplicationsShiftRole { if (assigned != null) { json['assigned'] = nativeToJson(assigned); } + if (hours != null) { + json['hours'] = nativeToJson(hours); + } json['role'] = role.toJson(); return json; } @@ -158,6 +164,7 @@ class ListStaffsApplicationsByBusinessForDayApplicationsShiftRole { required this.shift, required this.count, this.assigned, + this.hours, required this.role, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_tax_forms.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_tax_forms.dart index 3884f7cd..8a5d0f41 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_tax_forms.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_tax_forms.dart @@ -1,18 +1,29 @@ part of 'generated.dart'; class ListTaxFormsVariablesBuilder { - + Optional _offset = Optional.optional(nativeFromJson, nativeToJson); + Optional _limit = Optional.optional(nativeFromJson, nativeToJson); + final FirebaseDataConnect _dataConnect; + ListTaxFormsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListTaxFormsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + ListTaxFormsVariablesBuilder(this._dataConnect, ); Deserializer dataDeserializer = (dynamic json) => ListTaxFormsData.fromJson(jsonDecode(json)); - - Future> execute() { + Serializer varsSerializer = (ListTaxFormsVariables vars) => jsonEncode(vars.toJson()); + Future> execute() { return ref().execute(); } - QueryRef ref() { - - return _dataConnect.query("listTaxForms", dataDeserializer, emptySerializer, null); + QueryRef ref() { + ListTaxFormsVariables vars= ListTaxFormsVariables(offset: _offset,limit: _limit,); + return _dataConnect.query("listTaxForms", dataDeserializer, varsSerializer, vars); } } @@ -20,12 +31,36 @@ class ListTaxFormsVariablesBuilder { class ListTaxFormsTaxForms { final String id; final EnumValue formType; - final String title; - final String? subtitle; - final String? description; + final String firstName; + final String lastName; + final String? mInitial; + final String? oLastName; + final Timestamp? dob; + final int socialSN; + final String? email; + final String? phone; + final String address; + final String? city; + final String? apt; + final String? state; + final String? zipCode; + final EnumValue? marital; + final bool? multipleJob; + final int? childrens; + final int? otherDeps; + final double? totalCredits; + final double? otherInconme; + final double? deductions; + final double? extraWithholding; + final EnumValue? citizen; + final String? uscis; + final String? passportNumber; + final String? countryIssue; + final bool? prepartorOrTranslator; + final String? signature; + final Timestamp? date; final EnumValue status; final String staffId; - final AnyValue? formData; final Timestamp? createdAt; final Timestamp? updatedAt; final String? createdBy; @@ -33,12 +68,36 @@ class ListTaxFormsTaxForms { id = nativeFromJson(json['id']), formType = taxFormTypeDeserializer(json['formType']), - title = nativeFromJson(json['title']), - subtitle = json['subtitle'] == null ? null : nativeFromJson(json['subtitle']), - description = json['description'] == null ? null : nativeFromJson(json['description']), + firstName = nativeFromJson(json['firstName']), + lastName = nativeFromJson(json['lastName']), + mInitial = json['mInitial'] == null ? null : nativeFromJson(json['mInitial']), + oLastName = json['oLastName'] == null ? null : nativeFromJson(json['oLastName']), + dob = json['dob'] == null ? null : Timestamp.fromJson(json['dob']), + socialSN = nativeFromJson(json['socialSN']), + email = json['email'] == null ? null : nativeFromJson(json['email']), + phone = json['phone'] == null ? null : nativeFromJson(json['phone']), + address = nativeFromJson(json['address']), + city = json['city'] == null ? null : nativeFromJson(json['city']), + apt = json['apt'] == null ? null : nativeFromJson(json['apt']), + state = json['state'] == null ? null : nativeFromJson(json['state']), + zipCode = json['zipCode'] == null ? null : nativeFromJson(json['zipCode']), + marital = json['marital'] == null ? null : maritalStatusDeserializer(json['marital']), + multipleJob = json['multipleJob'] == null ? null : nativeFromJson(json['multipleJob']), + childrens = json['childrens'] == null ? null : nativeFromJson(json['childrens']), + otherDeps = json['otherDeps'] == null ? null : nativeFromJson(json['otherDeps']), + totalCredits = json['totalCredits'] == null ? null : nativeFromJson(json['totalCredits']), + otherInconme = json['otherInconme'] == null ? null : nativeFromJson(json['otherInconme']), + deductions = json['deductions'] == null ? null : nativeFromJson(json['deductions']), + extraWithholding = json['extraWithholding'] == null ? null : nativeFromJson(json['extraWithholding']), + citizen = json['citizen'] == null ? null : citizenshipStatusDeserializer(json['citizen']), + uscis = json['uscis'] == null ? null : nativeFromJson(json['uscis']), + passportNumber = json['passportNumber'] == null ? null : nativeFromJson(json['passportNumber']), + countryIssue = json['countryIssue'] == null ? null : nativeFromJson(json['countryIssue']), + prepartorOrTranslator = json['prepartorOrTranslator'] == null ? null : nativeFromJson(json['prepartorOrTranslator']), + signature = json['signature'] == null ? null : nativeFromJson(json['signature']), + date = json['date'] == null ? null : Timestamp.fromJson(json['date']), status = taxFormStatusDeserializer(json['status']), staffId = nativeFromJson(json['staffId']), - formData = json['formData'] == null ? null : AnyValue.fromJson(json['formData']), createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']), createdBy = json['createdBy'] == null ? null : nativeFromJson(json['createdBy']); @@ -54,19 +113,43 @@ class ListTaxFormsTaxForms { final ListTaxFormsTaxForms otherTyped = other as ListTaxFormsTaxForms; return id == otherTyped.id && formType == otherTyped.formType && - title == otherTyped.title && - subtitle == otherTyped.subtitle && - description == otherTyped.description && + firstName == otherTyped.firstName && + lastName == otherTyped.lastName && + mInitial == otherTyped.mInitial && + oLastName == otherTyped.oLastName && + dob == otherTyped.dob && + socialSN == otherTyped.socialSN && + email == otherTyped.email && + phone == otherTyped.phone && + address == otherTyped.address && + city == otherTyped.city && + apt == otherTyped.apt && + state == otherTyped.state && + zipCode == otherTyped.zipCode && + marital == otherTyped.marital && + multipleJob == otherTyped.multipleJob && + childrens == otherTyped.childrens && + otherDeps == otherTyped.otherDeps && + totalCredits == otherTyped.totalCredits && + otherInconme == otherTyped.otherInconme && + deductions == otherTyped.deductions && + extraWithholding == otherTyped.extraWithholding && + citizen == otherTyped.citizen && + uscis == otherTyped.uscis && + passportNumber == otherTyped.passportNumber && + countryIssue == otherTyped.countryIssue && + prepartorOrTranslator == otherTyped.prepartorOrTranslator && + signature == otherTyped.signature && + date == otherTyped.date && status == otherTyped.status && staffId == otherTyped.staffId && - formData == otherTyped.formData && createdAt == otherTyped.createdAt && updatedAt == otherTyped.updatedAt && createdBy == otherTyped.createdBy; } @override - int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, title.hashCode, subtitle.hashCode, description.hashCode, status.hashCode, staffId.hashCode, formData.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, firstName.hashCode, lastName.hashCode, mInitial.hashCode, oLastName.hashCode, dob.hashCode, socialSN.hashCode, email.hashCode, phone.hashCode, address.hashCode, city.hashCode, apt.hashCode, state.hashCode, zipCode.hashCode, marital.hashCode, multipleJob.hashCode, childrens.hashCode, otherDeps.hashCode, totalCredits.hashCode, otherInconme.hashCode, deductions.hashCode, extraWithholding.hashCode, citizen.hashCode, uscis.hashCode, passportNumber.hashCode, countryIssue.hashCode, prepartorOrTranslator.hashCode, signature.hashCode, date.hashCode, status.hashCode, staffId.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]); Map toJson() { @@ -75,20 +158,90 @@ class ListTaxFormsTaxForms { json['formType'] = taxFormTypeSerializer(formType) ; - json['title'] = nativeToJson(title); - if (subtitle != null) { - json['subtitle'] = nativeToJson(subtitle); + json['firstName'] = nativeToJson(firstName); + json['lastName'] = nativeToJson(lastName); + if (mInitial != null) { + json['mInitial'] = nativeToJson(mInitial); } - if (description != null) { - json['description'] = nativeToJson(description); + if (oLastName != null) { + json['oLastName'] = nativeToJson(oLastName); + } + if (dob != null) { + json['dob'] = dob!.toJson(); + } + json['socialSN'] = nativeToJson(socialSN); + if (email != null) { + json['email'] = nativeToJson(email); + } + if (phone != null) { + json['phone'] = nativeToJson(phone); + } + json['address'] = nativeToJson(address); + if (city != null) { + json['city'] = nativeToJson(city); + } + if (apt != null) { + json['apt'] = nativeToJson(apt); + } + if (state != null) { + json['state'] = nativeToJson(state); + } + if (zipCode != null) { + json['zipCode'] = nativeToJson(zipCode); + } + if (marital != null) { + json['marital'] = + maritalStatusSerializer(marital!) + ; + } + if (multipleJob != null) { + json['multipleJob'] = nativeToJson(multipleJob); + } + if (childrens != null) { + json['childrens'] = nativeToJson(childrens); + } + if (otherDeps != null) { + json['otherDeps'] = nativeToJson(otherDeps); + } + if (totalCredits != null) { + json['totalCredits'] = nativeToJson(totalCredits); + } + if (otherInconme != null) { + json['otherInconme'] = nativeToJson(otherInconme); + } + if (deductions != null) { + json['deductions'] = nativeToJson(deductions); + } + if (extraWithholding != null) { + json['extraWithholding'] = nativeToJson(extraWithholding); + } + if (citizen != null) { + json['citizen'] = + citizenshipStatusSerializer(citizen!) + ; + } + if (uscis != null) { + json['uscis'] = nativeToJson(uscis); + } + if (passportNumber != null) { + json['passportNumber'] = nativeToJson(passportNumber); + } + if (countryIssue != null) { + json['countryIssue'] = nativeToJson(countryIssue); + } + if (prepartorOrTranslator != null) { + json['prepartorOrTranslator'] = nativeToJson(prepartorOrTranslator); + } + if (signature != null) { + json['signature'] = nativeToJson(signature); + } + if (date != null) { + json['date'] = date!.toJson(); } json['status'] = taxFormStatusSerializer(status) ; json['staffId'] = nativeToJson(staffId); - if (formData != null) { - json['formData'] = formData!.toJson(); - } if (createdAt != null) { json['createdAt'] = createdAt!.toJson(); } @@ -104,12 +257,36 @@ class ListTaxFormsTaxForms { ListTaxFormsTaxForms({ required this.id, required this.formType, - required this.title, - this.subtitle, - this.description, + required this.firstName, + required this.lastName, + this.mInitial, + this.oLastName, + this.dob, + required this.socialSN, + this.email, + this.phone, + required this.address, + this.city, + this.apt, + this.state, + this.zipCode, + this.marital, + this.multipleJob, + this.childrens, + this.otherDeps, + this.totalCredits, + this.otherInconme, + this.deductions, + this.extraWithholding, + this.citizen, + this.uscis, + this.passportNumber, + this.countryIssue, + this.prepartorOrTranslator, + this.signature, + this.date, required this.status, required this.staffId, - this.formData, this.createdAt, this.updatedAt, this.createdBy, @@ -152,3 +329,54 @@ class ListTaxFormsData { }); } +@immutable +class ListTaxFormsVariables { + late final Optionaloffset; + late final Optionallimit; + @Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.') + ListTaxFormsVariables.fromJson(Map json) { + + + offset = Optional.optional(nativeFromJson, nativeToJson); + offset.value = json['offset'] == null ? null : nativeFromJson(json['offset']); + + + limit = Optional.optional(nativeFromJson, nativeToJson); + limit.value = json['limit'] == null ? null : nativeFromJson(json['limit']); + + } + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListTaxFormsVariables otherTyped = other as ListTaxFormsVariables; + return offset == otherTyped.offset && + limit == otherTyped.limit; + + } + @override + int get hashCode => Object.hashAll([offset.hashCode, limit.hashCode]); + + + Map toJson() { + Map json = {}; + if(offset.state == OptionalState.set) { + json['offset'] = offset.toJson(); + } + if(limit.state == OptionalState.set) { + json['limit'] = limit.toJson(); + } + return json; + } + + ListTaxFormsVariables({ + required this.offset, + required this.limit, + }); +} + diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_tax_forms_where.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_tax_forms_where.dart new file mode 100644 index 00000000..c34a7b38 --- /dev/null +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_tax_forms_where.dart @@ -0,0 +1,427 @@ +part of 'generated.dart'; + +class ListTaxFormsWhereVariablesBuilder { + Optional _formType = Optional.optional((data) => TaxFormType.values.byName(data), enumSerializer); + Optional _status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer); + Optional _staffId = Optional.optional(nativeFromJson, nativeToJson); + Optional _offset = Optional.optional(nativeFromJson, nativeToJson); + Optional _limit = Optional.optional(nativeFromJson, nativeToJson); + + final FirebaseDataConnect _dataConnect; + ListTaxFormsWhereVariablesBuilder formType(TaxFormType? t) { + _formType.value = t; + return this; + } + ListTaxFormsWhereVariablesBuilder status(TaxFormStatus? t) { + _status.value = t; + return this; + } + ListTaxFormsWhereVariablesBuilder staffId(String? t) { + _staffId.value = t; + return this; + } + ListTaxFormsWhereVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListTaxFormsWhereVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ListTaxFormsWhereVariablesBuilder(this._dataConnect, ); + Deserializer dataDeserializer = (dynamic json) => ListTaxFormsWhereData.fromJson(jsonDecode(json)); + Serializer varsSerializer = (ListTaxFormsWhereVariables vars) => jsonEncode(vars.toJson()); + Future> execute() { + return ref().execute(); + } + + QueryRef ref() { + ListTaxFormsWhereVariables vars= ListTaxFormsWhereVariables(formType: _formType,status: _status,staffId: _staffId,offset: _offset,limit: _limit,); + return _dataConnect.query("listTaxFormsWhere", dataDeserializer, varsSerializer, vars); + } +} + +@immutable +class ListTaxFormsWhereTaxForms { + final String id; + final EnumValue formType; + final String firstName; + final String lastName; + final String? mInitial; + final String? oLastName; + final Timestamp? dob; + final int socialSN; + final String? email; + final String? phone; + final String address; + final String? city; + final String? apt; + final String? state; + final String? zipCode; + final EnumValue? marital; + final bool? multipleJob; + final int? childrens; + final int? otherDeps; + final double? totalCredits; + final double? otherInconme; + final double? deductions; + final double? extraWithholding; + final EnumValue? citizen; + final String? uscis; + final String? passportNumber; + final String? countryIssue; + final bool? prepartorOrTranslator; + final String? signature; + final Timestamp? date; + final EnumValue status; + final String staffId; + final Timestamp? createdAt; + final Timestamp? updatedAt; + final String? createdBy; + ListTaxFormsWhereTaxForms.fromJson(dynamic json): + + id = nativeFromJson(json['id']), + formType = taxFormTypeDeserializer(json['formType']), + firstName = nativeFromJson(json['firstName']), + lastName = nativeFromJson(json['lastName']), + mInitial = json['mInitial'] == null ? null : nativeFromJson(json['mInitial']), + oLastName = json['oLastName'] == null ? null : nativeFromJson(json['oLastName']), + dob = json['dob'] == null ? null : Timestamp.fromJson(json['dob']), + socialSN = nativeFromJson(json['socialSN']), + email = json['email'] == null ? null : nativeFromJson(json['email']), + phone = json['phone'] == null ? null : nativeFromJson(json['phone']), + address = nativeFromJson(json['address']), + city = json['city'] == null ? null : nativeFromJson(json['city']), + apt = json['apt'] == null ? null : nativeFromJson(json['apt']), + state = json['state'] == null ? null : nativeFromJson(json['state']), + zipCode = json['zipCode'] == null ? null : nativeFromJson(json['zipCode']), + marital = json['marital'] == null ? null : maritalStatusDeserializer(json['marital']), + multipleJob = json['multipleJob'] == null ? null : nativeFromJson(json['multipleJob']), + childrens = json['childrens'] == null ? null : nativeFromJson(json['childrens']), + otherDeps = json['otherDeps'] == null ? null : nativeFromJson(json['otherDeps']), + totalCredits = json['totalCredits'] == null ? null : nativeFromJson(json['totalCredits']), + otherInconme = json['otherInconme'] == null ? null : nativeFromJson(json['otherInconme']), + deductions = json['deductions'] == null ? null : nativeFromJson(json['deductions']), + extraWithholding = json['extraWithholding'] == null ? null : nativeFromJson(json['extraWithholding']), + citizen = json['citizen'] == null ? null : citizenshipStatusDeserializer(json['citizen']), + uscis = json['uscis'] == null ? null : nativeFromJson(json['uscis']), + passportNumber = json['passportNumber'] == null ? null : nativeFromJson(json['passportNumber']), + countryIssue = json['countryIssue'] == null ? null : nativeFromJson(json['countryIssue']), + prepartorOrTranslator = json['prepartorOrTranslator'] == null ? null : nativeFromJson(json['prepartorOrTranslator']), + signature = json['signature'] == null ? null : nativeFromJson(json['signature']), + date = json['date'] == null ? null : Timestamp.fromJson(json['date']), + status = taxFormStatusDeserializer(json['status']), + staffId = nativeFromJson(json['staffId']), + createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), + updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']), + createdBy = json['createdBy'] == null ? null : nativeFromJson(json['createdBy']); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListTaxFormsWhereTaxForms otherTyped = other as ListTaxFormsWhereTaxForms; + return id == otherTyped.id && + formType == otherTyped.formType && + firstName == otherTyped.firstName && + lastName == otherTyped.lastName && + mInitial == otherTyped.mInitial && + oLastName == otherTyped.oLastName && + dob == otherTyped.dob && + socialSN == otherTyped.socialSN && + email == otherTyped.email && + phone == otherTyped.phone && + address == otherTyped.address && + city == otherTyped.city && + apt == otherTyped.apt && + state == otherTyped.state && + zipCode == otherTyped.zipCode && + marital == otherTyped.marital && + multipleJob == otherTyped.multipleJob && + childrens == otherTyped.childrens && + otherDeps == otherTyped.otherDeps && + totalCredits == otherTyped.totalCredits && + otherInconme == otherTyped.otherInconme && + deductions == otherTyped.deductions && + extraWithholding == otherTyped.extraWithholding && + citizen == otherTyped.citizen && + uscis == otherTyped.uscis && + passportNumber == otherTyped.passportNumber && + countryIssue == otherTyped.countryIssue && + prepartorOrTranslator == otherTyped.prepartorOrTranslator && + signature == otherTyped.signature && + date == otherTyped.date && + status == otherTyped.status && + staffId == otherTyped.staffId && + createdAt == otherTyped.createdAt && + updatedAt == otherTyped.updatedAt && + createdBy == otherTyped.createdBy; + + } + @override + int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, firstName.hashCode, lastName.hashCode, mInitial.hashCode, oLastName.hashCode, dob.hashCode, socialSN.hashCode, email.hashCode, phone.hashCode, address.hashCode, city.hashCode, apt.hashCode, state.hashCode, zipCode.hashCode, marital.hashCode, multipleJob.hashCode, childrens.hashCode, otherDeps.hashCode, totalCredits.hashCode, otherInconme.hashCode, deductions.hashCode, extraWithholding.hashCode, citizen.hashCode, uscis.hashCode, passportNumber.hashCode, countryIssue.hashCode, prepartorOrTranslator.hashCode, signature.hashCode, date.hashCode, status.hashCode, staffId.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]); + + + Map toJson() { + Map json = {}; + json['id'] = nativeToJson(id); + json['formType'] = + taxFormTypeSerializer(formType) + ; + json['firstName'] = nativeToJson(firstName); + json['lastName'] = nativeToJson(lastName); + if (mInitial != null) { + json['mInitial'] = nativeToJson(mInitial); + } + if (oLastName != null) { + json['oLastName'] = nativeToJson(oLastName); + } + if (dob != null) { + json['dob'] = dob!.toJson(); + } + json['socialSN'] = nativeToJson(socialSN); + if (email != null) { + json['email'] = nativeToJson(email); + } + if (phone != null) { + json['phone'] = nativeToJson(phone); + } + json['address'] = nativeToJson(address); + if (city != null) { + json['city'] = nativeToJson(city); + } + if (apt != null) { + json['apt'] = nativeToJson(apt); + } + if (state != null) { + json['state'] = nativeToJson(state); + } + if (zipCode != null) { + json['zipCode'] = nativeToJson(zipCode); + } + if (marital != null) { + json['marital'] = + maritalStatusSerializer(marital!) + ; + } + if (multipleJob != null) { + json['multipleJob'] = nativeToJson(multipleJob); + } + if (childrens != null) { + json['childrens'] = nativeToJson(childrens); + } + if (otherDeps != null) { + json['otherDeps'] = nativeToJson(otherDeps); + } + if (totalCredits != null) { + json['totalCredits'] = nativeToJson(totalCredits); + } + if (otherInconme != null) { + json['otherInconme'] = nativeToJson(otherInconme); + } + if (deductions != null) { + json['deductions'] = nativeToJson(deductions); + } + if (extraWithholding != null) { + json['extraWithholding'] = nativeToJson(extraWithholding); + } + if (citizen != null) { + json['citizen'] = + citizenshipStatusSerializer(citizen!) + ; + } + if (uscis != null) { + json['uscis'] = nativeToJson(uscis); + } + if (passportNumber != null) { + json['passportNumber'] = nativeToJson(passportNumber); + } + if (countryIssue != null) { + json['countryIssue'] = nativeToJson(countryIssue); + } + if (prepartorOrTranslator != null) { + json['prepartorOrTranslator'] = nativeToJson(prepartorOrTranslator); + } + if (signature != null) { + json['signature'] = nativeToJson(signature); + } + if (date != null) { + json['date'] = date!.toJson(); + } + json['status'] = + taxFormStatusSerializer(status) + ; + json['staffId'] = nativeToJson(staffId); + if (createdAt != null) { + json['createdAt'] = createdAt!.toJson(); + } + if (updatedAt != null) { + json['updatedAt'] = updatedAt!.toJson(); + } + if (createdBy != null) { + json['createdBy'] = nativeToJson(createdBy); + } + return json; + } + + ListTaxFormsWhereTaxForms({ + required this.id, + required this.formType, + required this.firstName, + required this.lastName, + this.mInitial, + this.oLastName, + this.dob, + required this.socialSN, + this.email, + this.phone, + required this.address, + this.city, + this.apt, + this.state, + this.zipCode, + this.marital, + this.multipleJob, + this.childrens, + this.otherDeps, + this.totalCredits, + this.otherInconme, + this.deductions, + this.extraWithholding, + this.citizen, + this.uscis, + this.passportNumber, + this.countryIssue, + this.prepartorOrTranslator, + this.signature, + this.date, + required this.status, + required this.staffId, + this.createdAt, + this.updatedAt, + this.createdBy, + }); +} + +@immutable +class ListTaxFormsWhereData { + final List taxForms; + ListTaxFormsWhereData.fromJson(dynamic json): + + taxForms = (json['taxForms'] as List) + .map((e) => ListTaxFormsWhereTaxForms.fromJson(e)) + .toList(); + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListTaxFormsWhereData otherTyped = other as ListTaxFormsWhereData; + return taxForms == otherTyped.taxForms; + + } + @override + int get hashCode => taxForms.hashCode; + + + Map toJson() { + Map json = {}; + json['taxForms'] = taxForms.map((e) => e.toJson()).toList(); + return json; + } + + ListTaxFormsWhereData({ + required this.taxForms, + }); +} + +@immutable +class ListTaxFormsWhereVariables { + late final OptionalformType; + late final Optionalstatus; + late final OptionalstaffId; + late final Optionaloffset; + late final Optionallimit; + @Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.') + ListTaxFormsWhereVariables.fromJson(Map json) { + + + formType = Optional.optional((data) => TaxFormType.values.byName(data), enumSerializer); + formType.value = json['formType'] == null ? null : TaxFormType.values.byName(json['formType']); + + + status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer); + status.value = json['status'] == null ? null : TaxFormStatus.values.byName(json['status']); + + + staffId = Optional.optional(nativeFromJson, nativeToJson); + staffId.value = json['staffId'] == null ? null : nativeFromJson(json['staffId']); + + + offset = Optional.optional(nativeFromJson, nativeToJson); + offset.value = json['offset'] == null ? null : nativeFromJson(json['offset']); + + + limit = Optional.optional(nativeFromJson, nativeToJson); + limit.value = json['limit'] == null ? null : nativeFromJson(json['limit']); + + } + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListTaxFormsWhereVariables otherTyped = other as ListTaxFormsWhereVariables; + return formType == otherTyped.formType && + status == otherTyped.status && + staffId == otherTyped.staffId && + offset == otherTyped.offset && + limit == otherTyped.limit; + + } + @override + int get hashCode => Object.hashAll([formType.hashCode, status.hashCode, staffId.hashCode, offset.hashCode, limit.hashCode]); + + + Map toJson() { + Map json = {}; + if(formType.state == OptionalState.set) { + json['formType'] = formType.toJson(); + } + if(status.state == OptionalState.set) { + json['status'] = status.toJson(); + } + if(staffId.state == OptionalState.set) { + json['staffId'] = staffId.toJson(); + } + if(offset.state == OptionalState.set) { + json['offset'] = offset.toJson(); + } + if(limit.state == OptionalState.set) { + json['limit'] = limit.toJson(); + } + return json; + } + + ListTaxFormsWhereVariables({ + required this.formType, + required this.status, + required this.staffId, + required this.offset, + required this.limit, + }); +} + diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_team_hubs.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_team_hubs.dart index 4c6a91c1..672e1bbf 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_team_hubs.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_team_hubs.dart @@ -1,18 +1,29 @@ part of 'generated.dart'; class ListTeamHubsVariablesBuilder { - + Optional _offset = Optional.optional(nativeFromJson, nativeToJson); + Optional _limit = Optional.optional(nativeFromJson, nativeToJson); + final FirebaseDataConnect _dataConnect; + ListTeamHubsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListTeamHubsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + ListTeamHubsVariablesBuilder(this._dataConnect, ); Deserializer dataDeserializer = (dynamic json) => ListTeamHubsData.fromJson(jsonDecode(json)); - - Future> execute() { + Serializer varsSerializer = (ListTeamHubsVariables vars) => jsonEncode(vars.toJson()); + Future> execute() { return ref().execute(); } - QueryRef ref() { - - return _dataConnect.query("listTeamHubs", dataDeserializer, emptySerializer, null); + QueryRef ref() { + ListTeamHubsVariables vars= ListTeamHubsVariables(offset: _offset,limit: _limit,); + return _dataConnect.query("listTeamHubs", dataDeserializer, varsSerializer, vars); } } @@ -22,30 +33,34 @@ class ListTeamHubsTeamHubs { final String teamId; final String hubName; final String address; + final String? placeId; + final double? latitude; + final double? longitude; final String? city; final String? state; + final String? street; + final String? country; final String? zipCode; final String? managerName; final bool isActive; final AnyValue? departments; - final Timestamp? createdAt; - final Timestamp? updatedAt; - final String? createdBy; ListTeamHubsTeamHubs.fromJson(dynamic json): id = nativeFromJson(json['id']), teamId = nativeFromJson(json['teamId']), hubName = nativeFromJson(json['hubName']), address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + latitude = json['latitude'] == null ? null : nativeFromJson(json['latitude']), + longitude = json['longitude'] == null ? null : nativeFromJson(json['longitude']), city = json['city'] == null ? null : nativeFromJson(json['city']), state = json['state'] == null ? null : nativeFromJson(json['state']), + street = json['street'] == null ? null : nativeFromJson(json['street']), + country = json['country'] == null ? null : nativeFromJson(json['country']), zipCode = json['zipCode'] == null ? null : nativeFromJson(json['zipCode']), managerName = json['managerName'] == null ? null : nativeFromJson(json['managerName']), isActive = nativeFromJson(json['isActive']), - departments = json['departments'] == null ? null : AnyValue.fromJson(json['departments']), - createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), - updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']), - createdBy = json['createdBy'] == null ? null : nativeFromJson(json['createdBy']); + departments = json['departments'] == null ? null : AnyValue.fromJson(json['departments']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -60,19 +75,21 @@ class ListTeamHubsTeamHubs { teamId == otherTyped.teamId && hubName == otherTyped.hubName && address == otherTyped.address && + placeId == otherTyped.placeId && + latitude == otherTyped.latitude && + longitude == otherTyped.longitude && city == otherTyped.city && state == otherTyped.state && + street == otherTyped.street && + country == otherTyped.country && zipCode == otherTyped.zipCode && managerName == otherTyped.managerName && isActive == otherTyped.isActive && - departments == otherTyped.departments && - createdAt == otherTyped.createdAt && - updatedAt == otherTyped.updatedAt && - createdBy == otherTyped.createdBy; + departments == otherTyped.departments; } @override - int get hashCode => Object.hashAll([id.hashCode, teamId.hashCode, hubName.hashCode, address.hashCode, city.hashCode, state.hashCode, zipCode.hashCode, managerName.hashCode, isActive.hashCode, departments.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, teamId.hashCode, hubName.hashCode, address.hashCode, placeId.hashCode, latitude.hashCode, longitude.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, zipCode.hashCode, managerName.hashCode, isActive.hashCode, departments.hashCode]); Map toJson() { @@ -81,12 +98,27 @@ class ListTeamHubsTeamHubs { json['teamId'] = nativeToJson(teamId); json['hubName'] = nativeToJson(hubName); json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + if (latitude != null) { + json['latitude'] = nativeToJson(latitude); + } + if (longitude != null) { + json['longitude'] = nativeToJson(longitude); + } if (city != null) { json['city'] = nativeToJson(city); } if (state != null) { json['state'] = nativeToJson(state); } + if (street != null) { + json['street'] = nativeToJson(street); + } + if (country != null) { + json['country'] = nativeToJson(country); + } if (zipCode != null) { json['zipCode'] = nativeToJson(zipCode); } @@ -97,15 +129,6 @@ class ListTeamHubsTeamHubs { if (departments != null) { json['departments'] = departments!.toJson(); } - if (createdAt != null) { - json['createdAt'] = createdAt!.toJson(); - } - if (updatedAt != null) { - json['updatedAt'] = updatedAt!.toJson(); - } - if (createdBy != null) { - json['createdBy'] = nativeToJson(createdBy); - } return json; } @@ -114,15 +137,17 @@ class ListTeamHubsTeamHubs { required this.teamId, required this.hubName, required this.address, + this.placeId, + this.latitude, + this.longitude, this.city, this.state, + this.street, + this.country, this.zipCode, this.managerName, required this.isActive, this.departments, - this.createdAt, - this.updatedAt, - this.createdBy, }); } @@ -162,3 +187,54 @@ class ListTeamHubsData { }); } +@immutable +class ListTeamHubsVariables { + late final Optionaloffset; + late final Optionallimit; + @Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.') + ListTeamHubsVariables.fromJson(Map json) { + + + offset = Optional.optional(nativeFromJson, nativeToJson); + offset.value = json['offset'] == null ? null : nativeFromJson(json['offset']); + + + limit = Optional.optional(nativeFromJson, nativeToJson); + limit.value = json['limit'] == null ? null : nativeFromJson(json['limit']); + + } + @override + bool operator ==(Object other) { + if(identical(this, other)) { + return true; + } + if(other.runtimeType != runtimeType) { + return false; + } + + final ListTeamHubsVariables otherTyped = other as ListTeamHubsVariables; + return offset == otherTyped.offset && + limit == otherTyped.limit; + + } + @override + int get hashCode => Object.hashAll([offset.hashCode, limit.hashCode]); + + + Map toJson() { + Map json = {}; + if(offset.state == OptionalState.set) { + json['offset'] = offset.toJson(); + } + if(limit.state == OptionalState.set) { + json['limit'] = limit.toJson(); + } + return json; + } + + ListTeamHubsVariables({ + required this.offset, + required this.limit, + }); +} + diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_team_hubs_by_owner_id.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_team_hubs_by_owner_id.dart index 23c9d218..860197ab 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_team_hubs_by_owner_id.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_team_hubs_by_owner_id.dart @@ -2,8 +2,18 @@ part of 'generated.dart'; class ListTeamHubsByOwnerIdVariablesBuilder { String ownerId; + Optional _offset = Optional.optional(nativeFromJson, nativeToJson); + Optional _limit = Optional.optional(nativeFromJson, nativeToJson); + + final FirebaseDataConnect _dataConnect; ListTeamHubsByOwnerIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListTeamHubsByOwnerIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } - final FirebaseDataConnect _dataConnect; ListTeamHubsByOwnerIdVariablesBuilder(this._dataConnect, {required this.ownerId,}); Deserializer dataDeserializer = (dynamic json) => ListTeamHubsByOwnerIdData.fromJson(jsonDecode(json)); Serializer varsSerializer = (ListTeamHubsByOwnerIdVariables vars) => jsonEncode(vars.toJson()); @@ -12,7 +22,7 @@ class ListTeamHubsByOwnerIdVariablesBuilder { } QueryRef ref() { - ListTeamHubsByOwnerIdVariables vars= ListTeamHubsByOwnerIdVariables(ownerId: ownerId,); + ListTeamHubsByOwnerIdVariables vars= ListTeamHubsByOwnerIdVariables(ownerId: ownerId,offset: _offset,limit: _limit,); return _dataConnect.query("listTeamHubsByOwnerId", dataDeserializer, varsSerializer, vars); } } @@ -23,26 +33,34 @@ class ListTeamHubsByOwnerIdTeamHubs { final String teamId; final String hubName; final String address; + final String? placeId; + final double? latitude; + final double? longitude; final String? city; final String? state; + final String? street; + final String? country; final String? zipCode; final String? managerName; final bool isActive; final AnyValue? departments; - final Timestamp? createdAt; ListTeamHubsByOwnerIdTeamHubs.fromJson(dynamic json): id = nativeFromJson(json['id']), teamId = nativeFromJson(json['teamId']), hubName = nativeFromJson(json['hubName']), address = nativeFromJson(json['address']), + placeId = json['placeId'] == null ? null : nativeFromJson(json['placeId']), + latitude = json['latitude'] == null ? null : nativeFromJson(json['latitude']), + longitude = json['longitude'] == null ? null : nativeFromJson(json['longitude']), city = json['city'] == null ? null : nativeFromJson(json['city']), state = json['state'] == null ? null : nativeFromJson(json['state']), + street = json['street'] == null ? null : nativeFromJson(json['street']), + country = json['country'] == null ? null : nativeFromJson(json['country']), zipCode = json['zipCode'] == null ? null : nativeFromJson(json['zipCode']), managerName = json['managerName'] == null ? null : nativeFromJson(json['managerName']), isActive = nativeFromJson(json['isActive']), - departments = json['departments'] == null ? null : AnyValue.fromJson(json['departments']), - createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']); + departments = json['departments'] == null ? null : AnyValue.fromJson(json['departments']); @override bool operator ==(Object other) { if(identical(this, other)) { @@ -57,17 +75,21 @@ class ListTeamHubsByOwnerIdTeamHubs { teamId == otherTyped.teamId && hubName == otherTyped.hubName && address == otherTyped.address && + placeId == otherTyped.placeId && + latitude == otherTyped.latitude && + longitude == otherTyped.longitude && city == otherTyped.city && state == otherTyped.state && + street == otherTyped.street && + country == otherTyped.country && zipCode == otherTyped.zipCode && managerName == otherTyped.managerName && isActive == otherTyped.isActive && - departments == otherTyped.departments && - createdAt == otherTyped.createdAt; + departments == otherTyped.departments; } @override - int get hashCode => Object.hashAll([id.hashCode, teamId.hashCode, hubName.hashCode, address.hashCode, city.hashCode, state.hashCode, zipCode.hashCode, managerName.hashCode, isActive.hashCode, departments.hashCode, createdAt.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, teamId.hashCode, hubName.hashCode, address.hashCode, placeId.hashCode, latitude.hashCode, longitude.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, zipCode.hashCode, managerName.hashCode, isActive.hashCode, departments.hashCode]); Map toJson() { @@ -76,12 +98,27 @@ class ListTeamHubsByOwnerIdTeamHubs { json['teamId'] = nativeToJson(teamId); json['hubName'] = nativeToJson(hubName); json['address'] = nativeToJson(address); + if (placeId != null) { + json['placeId'] = nativeToJson(placeId); + } + if (latitude != null) { + json['latitude'] = nativeToJson(latitude); + } + if (longitude != null) { + json['longitude'] = nativeToJson(longitude); + } if (city != null) { json['city'] = nativeToJson(city); } if (state != null) { json['state'] = nativeToJson(state); } + if (street != null) { + json['street'] = nativeToJson(street); + } + if (country != null) { + json['country'] = nativeToJson(country); + } if (zipCode != null) { json['zipCode'] = nativeToJson(zipCode); } @@ -92,9 +129,6 @@ class ListTeamHubsByOwnerIdTeamHubs { if (departments != null) { json['departments'] = departments!.toJson(); } - if (createdAt != null) { - json['createdAt'] = createdAt!.toJson(); - } return json; } @@ -103,13 +137,17 @@ class ListTeamHubsByOwnerIdTeamHubs { required this.teamId, required this.hubName, required this.address, + this.placeId, + this.latitude, + this.longitude, this.city, this.state, + this.street, + this.country, this.zipCode, this.managerName, required this.isActive, this.departments, - this.createdAt, }); } @@ -152,10 +190,23 @@ class ListTeamHubsByOwnerIdData { @immutable class ListTeamHubsByOwnerIdVariables { final String ownerId; + late final Optionaloffset; + late final Optionallimit; @Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.') ListTeamHubsByOwnerIdVariables.fromJson(Map json): - ownerId = nativeFromJson(json['ownerId']); + ownerId = nativeFromJson(json['ownerId']) { + + + + offset = Optional.optional(nativeFromJson, nativeToJson); + offset.value = json['offset'] == null ? null : nativeFromJson(json['offset']); + + + limit = Optional.optional(nativeFromJson, nativeToJson); + limit.value = json['limit'] == null ? null : nativeFromJson(json['limit']); + + } @override bool operator ==(Object other) { if(identical(this, other)) { @@ -166,21 +217,31 @@ class ListTeamHubsByOwnerIdVariables { } final ListTeamHubsByOwnerIdVariables otherTyped = other as ListTeamHubsByOwnerIdVariables; - return ownerId == otherTyped.ownerId; + return ownerId == otherTyped.ownerId && + offset == otherTyped.offset && + limit == otherTyped.limit; } @override - int get hashCode => ownerId.hashCode; + int get hashCode => Object.hashAll([ownerId.hashCode, offset.hashCode, limit.hashCode]); Map toJson() { Map json = {}; json['ownerId'] = nativeToJson(ownerId); + if(offset.state == OptionalState.set) { + json['offset'] = offset.toJson(); + } + if(limit.state == OptionalState.set) { + json['limit'] = limit.toJson(); + } return json; } ListTeamHubsByOwnerIdVariables({ required this.ownerId, + required this.offset, + required this.limit, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/update_order.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/update_order.dart index 3caecfea..5f718bb0 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/update_order.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/update_order.dart @@ -4,7 +4,6 @@ class UpdateOrderVariablesBuilder { String id; Optional _vendorId = Optional.optional(nativeFromJson, nativeToJson); Optional _businessId = Optional.optional(nativeFromJson, nativeToJson); - Optional _location = Optional.optional(nativeFromJson, nativeToJson); Optional _status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer); Optional _date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer); Optional _startDate = Optional.optional((json) => json['startDate'] = Timestamp.fromJson(json['startDate']), defaultSerializer); @@ -14,7 +13,7 @@ class UpdateOrderVariablesBuilder { Optional _assignedStaff = Optional.optional(AnyValue.fromJson, defaultSerializer); Optional _shifts = Optional.optional(AnyValue.fromJson, defaultSerializer); Optional _requested = Optional.optional(nativeFromJson, nativeToJson); - Optional _hub = Optional.optional(nativeFromJson, nativeToJson); + String teamHubId; Optional _recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer); Optional _permanentDays = Optional.optional(AnyValue.fromJson, defaultSerializer); Optional _notes = Optional.optional(nativeFromJson, nativeToJson); @@ -29,10 +28,6 @@ class UpdateOrderVariablesBuilder { _businessId.value = t; return this; } - UpdateOrderVariablesBuilder location(String? t) { - _location.value = t; - return this; - } UpdateOrderVariablesBuilder status(OrderStatus? t) { _status.value = t; return this; @@ -69,10 +64,6 @@ class UpdateOrderVariablesBuilder { _requested.value = t; return this; } - UpdateOrderVariablesBuilder hub(String? t) { - _hub.value = t; - return this; - } UpdateOrderVariablesBuilder recurringDays(AnyValue? t) { _recurringDays.value = t; return this; @@ -94,7 +85,7 @@ class UpdateOrderVariablesBuilder { return this; } - UpdateOrderVariablesBuilder(this._dataConnect, {required this.id,}); + UpdateOrderVariablesBuilder(this._dataConnect, {required this.id,required this.teamHubId,}); Deserializer dataDeserializer = (dynamic json) => UpdateOrderData.fromJson(jsonDecode(json)); Serializer varsSerializer = (UpdateOrderVariables vars) => jsonEncode(vars.toJson()); Future> execute() { @@ -102,7 +93,7 @@ class UpdateOrderVariablesBuilder { } MutationRef ref() { - UpdateOrderVariables vars= UpdateOrderVariables(id: id,vendorId: _vendorId,businessId: _businessId,location: _location,status: _status,date: _date,startDate: _startDate,endDate: _endDate,total: _total,eventName: _eventName,assignedStaff: _assignedStaff,shifts: _shifts,requested: _requested,hub: _hub,recurringDays: _recurringDays,permanentDays: _permanentDays,notes: _notes,detectedConflicts: _detectedConflicts,poReference: _poReference,); + UpdateOrderVariables vars= UpdateOrderVariables(id: id,vendorId: _vendorId,businessId: _businessId,status: _status,date: _date,startDate: _startDate,endDate: _endDate,total: _total,eventName: _eventName,assignedStaff: _assignedStaff,shifts: _shifts,requested: _requested,teamHubId: teamHubId,recurringDays: _recurringDays,permanentDays: _permanentDays,notes: _notes,detectedConflicts: _detectedConflicts,poReference: _poReference,); return _dataConnect.mutation("updateOrder", dataDeserializer, varsSerializer, vars); } } @@ -182,7 +173,6 @@ class UpdateOrderVariables { final String id; late final OptionalvendorId; late final OptionalbusinessId; - late final Optionallocation; late final Optionalstatus; late final Optionaldate; late final OptionalstartDate; @@ -192,7 +182,7 @@ class UpdateOrderVariables { late final OptionalassignedStaff; late final Optionalshifts; late final Optionalrequested; - late final Optionalhub; + final String teamHubId; late final OptionalrecurringDays; late final OptionalpermanentDays; late final Optionalnotes; @@ -201,7 +191,8 @@ class UpdateOrderVariables { @Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.') UpdateOrderVariables.fromJson(Map json): - id = nativeFromJson(json['id']) { + id = nativeFromJson(json['id']), + teamHubId = nativeFromJson(json['teamHubId']) { @@ -213,10 +204,6 @@ class UpdateOrderVariables { businessId.value = json['businessId'] == null ? null : nativeFromJson(json['businessId']); - location = Optional.optional(nativeFromJson, nativeToJson); - location.value = json['location'] == null ? null : nativeFromJson(json['location']); - - status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer); status.value = json['status'] == null ? null : OrderStatus.values.byName(json['status']); @@ -253,9 +240,6 @@ class UpdateOrderVariables { requested.value = json['requested'] == null ? null : nativeFromJson(json['requested']); - hub = Optional.optional(nativeFromJson, nativeToJson); - hub.value = json['hub'] == null ? null : nativeFromJson(json['hub']); - recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer); recurringDays.value = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']); @@ -290,7 +274,6 @@ class UpdateOrderVariables { return id == otherTyped.id && vendorId == otherTyped.vendorId && businessId == otherTyped.businessId && - location == otherTyped.location && status == otherTyped.status && date == otherTyped.date && startDate == otherTyped.startDate && @@ -300,7 +283,7 @@ class UpdateOrderVariables { assignedStaff == otherTyped.assignedStaff && shifts == otherTyped.shifts && requested == otherTyped.requested && - hub == otherTyped.hub && + teamHubId == otherTyped.teamHubId && recurringDays == otherTyped.recurringDays && permanentDays == otherTyped.permanentDays && notes == otherTyped.notes && @@ -309,7 +292,7 @@ class UpdateOrderVariables { } @override - int get hashCode => Object.hashAll([id.hashCode, vendorId.hashCode, businessId.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, total.hashCode, eventName.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, notes.hashCode, detectedConflicts.hashCode, poReference.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, vendorId.hashCode, businessId.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, total.hashCode, eventName.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, teamHubId.hashCode, recurringDays.hashCode, permanentDays.hashCode, notes.hashCode, detectedConflicts.hashCode, poReference.hashCode]); Map toJson() { @@ -321,9 +304,6 @@ class UpdateOrderVariables { if(businessId.state == OptionalState.set) { json['businessId'] = businessId.toJson(); } - if(location.state == OptionalState.set) { - json['location'] = location.toJson(); - } if(status.state == OptionalState.set) { json['status'] = status.toJson(); } @@ -351,9 +331,7 @@ class UpdateOrderVariables { if(requested.state == OptionalState.set) { json['requested'] = requested.toJson(); } - if(hub.state == OptionalState.set) { - json['hub'] = hub.toJson(); - } + json['teamHubId'] = nativeToJson(teamHubId); if(recurringDays.state == OptionalState.set) { json['recurringDays'] = recurringDays.toJson(); } @@ -376,7 +354,6 @@ class UpdateOrderVariables { required this.id, required this.vendorId, required this.businessId, - required this.location, required this.status, required this.date, required this.startDate, @@ -386,7 +363,7 @@ class UpdateOrderVariables { required this.assignedStaff, required this.shifts, required this.requested, - required this.hub, + required this.teamHubId, required this.recurringDays, required this.permanentDays, required this.notes, diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/update_shift.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/update_shift.dart index 8739955f..aae53821 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/update_shift.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/update_shift.dart @@ -13,6 +13,11 @@ class UpdateShiftVariablesBuilder { Optional _locationAddress = Optional.optional(nativeFromJson, nativeToJson); Optional _latitude = Optional.optional(nativeFromJson, nativeToJson); Optional _longitude = Optional.optional(nativeFromJson, nativeToJson); + Optional _placeId = Optional.optional(nativeFromJson, nativeToJson); + Optional _city = Optional.optional(nativeFromJson, nativeToJson); + Optional _state = Optional.optional(nativeFromJson, nativeToJson); + Optional _street = Optional.optional(nativeFromJson, nativeToJson); + Optional _country = Optional.optional(nativeFromJson, nativeToJson); Optional _description = Optional.optional(nativeFromJson, nativeToJson); Optional _status = Optional.optional((data) => ShiftStatus.values.byName(data), enumSerializer); Optional _workersNeeded = Optional.optional(nativeFromJson, nativeToJson); @@ -65,6 +70,26 @@ class UpdateShiftVariablesBuilder { _longitude.value = t; return this; } + UpdateShiftVariablesBuilder placeId(String? t) { + _placeId.value = t; + return this; + } + UpdateShiftVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + UpdateShiftVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + UpdateShiftVariablesBuilder street(String? t) { + _street.value = t; + return this; + } + UpdateShiftVariablesBuilder country(String? t) { + _country.value = t; + return this; + } UpdateShiftVariablesBuilder description(String? t) { _description.value = t; return this; @@ -102,7 +127,7 @@ class UpdateShiftVariablesBuilder { } MutationRef ref() { - UpdateShiftVariables vars= UpdateShiftVariables(id: id,title: _title,orderId: _orderId,date: _date,startTime: _startTime,endTime: _endTime,hours: _hours,cost: _cost,location: _location,locationAddress: _locationAddress,latitude: _latitude,longitude: _longitude,description: _description,status: _status,workersNeeded: _workersNeeded,filled: _filled,filledAt: _filledAt,managers: _managers,durationDays: _durationDays,); + UpdateShiftVariables vars= UpdateShiftVariables(id: id,title: _title,orderId: _orderId,date: _date,startTime: _startTime,endTime: _endTime,hours: _hours,cost: _cost,location: _location,locationAddress: _locationAddress,latitude: _latitude,longitude: _longitude,placeId: _placeId,city: _city,state: _state,street: _street,country: _country,description: _description,status: _status,workersNeeded: _workersNeeded,filled: _filled,filledAt: _filledAt,managers: _managers,durationDays: _durationDays,); return _dataConnect.mutation("updateShift", dataDeserializer, varsSerializer, vars); } } @@ -191,6 +216,11 @@ class UpdateShiftVariables { late final OptionallocationAddress; late final Optionallatitude; late final Optionallongitude; + late final OptionalplaceId; + late final Optionalcity; + late final Optionalstate; + late final Optionalstreet; + late final Optionalcountry; late final Optionaldescription; late final Optionalstatus; late final OptionalworkersNeeded; @@ -249,6 +279,26 @@ class UpdateShiftVariables { longitude.value = json['longitude'] == null ? null : nativeFromJson(json['longitude']); + placeId = Optional.optional(nativeFromJson, nativeToJson); + placeId.value = json['placeId'] == null ? null : nativeFromJson(json['placeId']); + + + city = Optional.optional(nativeFromJson, nativeToJson); + city.value = json['city'] == null ? null : nativeFromJson(json['city']); + + + state = Optional.optional(nativeFromJson, nativeToJson); + state.value = json['state'] == null ? null : nativeFromJson(json['state']); + + + street = Optional.optional(nativeFromJson, nativeToJson); + street.value = json['street'] == null ? null : nativeFromJson(json['street']); + + + country = Optional.optional(nativeFromJson, nativeToJson); + country.value = json['country'] == null ? null : nativeFromJson(json['country']); + + description = Optional.optional(nativeFromJson, nativeToJson); description.value = json['description'] == null ? null : nativeFromJson(json['description']); @@ -301,6 +351,11 @@ class UpdateShiftVariables { locationAddress == otherTyped.locationAddress && latitude == otherTyped.latitude && longitude == otherTyped.longitude && + placeId == otherTyped.placeId && + city == otherTyped.city && + state == otherTyped.state && + street == otherTyped.street && + country == otherTyped.country && description == otherTyped.description && status == otherTyped.status && workersNeeded == otherTyped.workersNeeded && @@ -311,7 +366,7 @@ class UpdateShiftVariables { } @override - int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, placeId.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode]); Map toJson() { @@ -350,6 +405,21 @@ class UpdateShiftVariables { if(longitude.state == OptionalState.set) { json['longitude'] = longitude.toJson(); } + if(placeId.state == OptionalState.set) { + json['placeId'] = placeId.toJson(); + } + if(city.state == OptionalState.set) { + json['city'] = city.toJson(); + } + if(state.state == OptionalState.set) { + json['state'] = state.toJson(); + } + if(street.state == OptionalState.set) { + json['street'] = street.toJson(); + } + if(country.state == OptionalState.set) { + json['country'] = country.toJson(); + } if(description.state == OptionalState.set) { json['description'] = description.toJson(); } @@ -387,6 +457,11 @@ class UpdateShiftVariables { required this.locationAddress, required this.latitude, required this.longitude, + required this.placeId, + required this.city, + required this.state, + required this.street, + required this.country, required this.description, required this.status, required this.workersNeeded, diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/update_tax_form.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/update_tax_form.dart index abef65fc..aeb37938 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/update_tax_form.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/update_tax_form.dart @@ -2,32 +2,157 @@ part of 'generated.dart'; class UpdateTaxFormVariablesBuilder { String id; + Optional _formType = Optional.optional((data) => TaxFormType.values.byName(data), enumSerializer); + Optional _firstName = Optional.optional(nativeFromJson, nativeToJson); + Optional _lastName = Optional.optional(nativeFromJson, nativeToJson); + Optional _mInitial = Optional.optional(nativeFromJson, nativeToJson); + Optional _oLastName = Optional.optional(nativeFromJson, nativeToJson); + Optional _dob = Optional.optional((json) => json['dob'] = Timestamp.fromJson(json['dob']), defaultSerializer); + Optional _socialSN = Optional.optional(nativeFromJson, nativeToJson); + Optional _email = Optional.optional(nativeFromJson, nativeToJson); + Optional _phone = Optional.optional(nativeFromJson, nativeToJson); + Optional _address = Optional.optional(nativeFromJson, nativeToJson); + Optional _city = Optional.optional(nativeFromJson, nativeToJson); + Optional _apt = Optional.optional(nativeFromJson, nativeToJson); + Optional _state = Optional.optional(nativeFromJson, nativeToJson); + Optional _zipCode = Optional.optional(nativeFromJson, nativeToJson); + Optional _marital = Optional.optional((data) => MaritalStatus.values.byName(data), enumSerializer); + Optional _multipleJob = Optional.optional(nativeFromJson, nativeToJson); + Optional _childrens = Optional.optional(nativeFromJson, nativeToJson); + Optional _otherDeps = Optional.optional(nativeFromJson, nativeToJson); + Optional _totalCredits = Optional.optional(nativeFromJson, nativeToJson); + Optional _otherInconme = Optional.optional(nativeFromJson, nativeToJson); + Optional _deductions = Optional.optional(nativeFromJson, nativeToJson); + Optional _extraWithholding = Optional.optional(nativeFromJson, nativeToJson); + Optional _citizen = Optional.optional((data) => CitizenshipStatus.values.byName(data), enumSerializer); + Optional _uscis = Optional.optional(nativeFromJson, nativeToJson); + Optional _passportNumber = Optional.optional(nativeFromJson, nativeToJson); + Optional _countryIssue = Optional.optional(nativeFromJson, nativeToJson); + Optional _prepartorOrTranslator = Optional.optional(nativeFromJson, nativeToJson); + Optional _signature = Optional.optional(nativeFromJson, nativeToJson); + Optional _date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer); Optional _status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer); - Optional _formData = Optional.optional(AnyValue.fromJson, defaultSerializer); - Optional _title = Optional.optional(nativeFromJson, nativeToJson); - Optional _subtitle = Optional.optional(nativeFromJson, nativeToJson); - Optional _description = Optional.optional(nativeFromJson, nativeToJson); - final FirebaseDataConnect _dataConnect; UpdateTaxFormVariablesBuilder status(TaxFormStatus? t) { + final FirebaseDataConnect _dataConnect; UpdateTaxFormVariablesBuilder formType(TaxFormType? t) { + _formType.value = t; + return this; + } + UpdateTaxFormVariablesBuilder firstName(String? t) { + _firstName.value = t; + return this; + } + UpdateTaxFormVariablesBuilder lastName(String? t) { + _lastName.value = t; + return this; + } + UpdateTaxFormVariablesBuilder mInitial(String? t) { + _mInitial.value = t; + return this; + } + UpdateTaxFormVariablesBuilder oLastName(String? t) { + _oLastName.value = t; + return this; + } + UpdateTaxFormVariablesBuilder dob(Timestamp? t) { + _dob.value = t; + return this; + } + UpdateTaxFormVariablesBuilder socialSN(int? t) { + _socialSN.value = t; + return this; + } + UpdateTaxFormVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + UpdateTaxFormVariablesBuilder phone(String? t) { + _phone.value = t; + return this; + } + UpdateTaxFormVariablesBuilder address(String? t) { + _address.value = t; + return this; + } + UpdateTaxFormVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + UpdateTaxFormVariablesBuilder apt(String? t) { + _apt.value = t; + return this; + } + UpdateTaxFormVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + UpdateTaxFormVariablesBuilder zipCode(String? t) { + _zipCode.value = t; + return this; + } + UpdateTaxFormVariablesBuilder marital(MaritalStatus? t) { + _marital.value = t; + return this; + } + UpdateTaxFormVariablesBuilder multipleJob(bool? t) { + _multipleJob.value = t; + return this; + } + UpdateTaxFormVariablesBuilder childrens(int? t) { + _childrens.value = t; + return this; + } + UpdateTaxFormVariablesBuilder otherDeps(int? t) { + _otherDeps.value = t; + return this; + } + UpdateTaxFormVariablesBuilder totalCredits(double? t) { + _totalCredits.value = t; + return this; + } + UpdateTaxFormVariablesBuilder otherInconme(double? t) { + _otherInconme.value = t; + return this; + } + UpdateTaxFormVariablesBuilder deductions(double? t) { + _deductions.value = t; + return this; + } + UpdateTaxFormVariablesBuilder extraWithholding(double? t) { + _extraWithholding.value = t; + return this; + } + UpdateTaxFormVariablesBuilder citizen(CitizenshipStatus? t) { + _citizen.value = t; + return this; + } + UpdateTaxFormVariablesBuilder uscis(String? t) { + _uscis.value = t; + return this; + } + UpdateTaxFormVariablesBuilder passportNumber(String? t) { + _passportNumber.value = t; + return this; + } + UpdateTaxFormVariablesBuilder countryIssue(String? t) { + _countryIssue.value = t; + return this; + } + UpdateTaxFormVariablesBuilder prepartorOrTranslator(bool? t) { + _prepartorOrTranslator.value = t; + return this; + } + UpdateTaxFormVariablesBuilder signature(String? t) { + _signature.value = t; + return this; + } + UpdateTaxFormVariablesBuilder date(Timestamp? t) { + _date.value = t; + return this; + } + UpdateTaxFormVariablesBuilder status(TaxFormStatus? t) { _status.value = t; return this; } - UpdateTaxFormVariablesBuilder formData(AnyValue? t) { - _formData.value = t; - return this; - } - UpdateTaxFormVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - UpdateTaxFormVariablesBuilder subtitle(String? t) { - _subtitle.value = t; - return this; - } - UpdateTaxFormVariablesBuilder description(String? t) { - _description.value = t; - return this; - } UpdateTaxFormVariablesBuilder(this._dataConnect, {required this.id,}); Deserializer dataDeserializer = (dynamic json) => UpdateTaxFormData.fromJson(jsonDecode(json)); @@ -37,7 +162,7 @@ class UpdateTaxFormVariablesBuilder { } MutationRef ref() { - UpdateTaxFormVariables vars= UpdateTaxFormVariables(id: id,status: _status,formData: _formData,title: _title,subtitle: _subtitle,description: _description,); + UpdateTaxFormVariables vars= UpdateTaxFormVariables(id: id,formType: _formType,firstName: _firstName,lastName: _lastName,mInitial: _mInitial,oLastName: _oLastName,dob: _dob,socialSN: _socialSN,email: _email,phone: _phone,address: _address,city: _city,apt: _apt,state: _state,zipCode: _zipCode,marital: _marital,multipleJob: _multipleJob,childrens: _childrens,otherDeps: _otherDeps,totalCredits: _totalCredits,otherInconme: _otherInconme,deductions: _deductions,extraWithholding: _extraWithholding,citizen: _citizen,uscis: _uscis,passportNumber: _passportNumber,countryIssue: _countryIssue,prepartorOrTranslator: _prepartorOrTranslator,signature: _signature,date: _date,status: _status,); return _dataConnect.mutation("updateTaxForm", dataDeserializer, varsSerializer, vars); } } @@ -115,11 +240,36 @@ class UpdateTaxFormData { @immutable class UpdateTaxFormVariables { final String id; + late final OptionalformType; + late final OptionalfirstName; + late final OptionallastName; + late final OptionalmInitial; + late final OptionaloLastName; + late final Optionaldob; + late final OptionalsocialSN; + late final Optionalemail; + late final Optionalphone; + late final Optionaladdress; + late final Optionalcity; + late final Optionalapt; + late final Optionalstate; + late final OptionalzipCode; + late final Optionalmarital; + late final OptionalmultipleJob; + late final Optionalchildrens; + late final OptionalotherDeps; + late final OptionaltotalCredits; + late final OptionalotherInconme; + late final Optionaldeductions; + late final OptionalextraWithholding; + late final Optionalcitizen; + late final Optionaluscis; + late final OptionalpassportNumber; + late final OptionalcountryIssue; + late final OptionalprepartorOrTranslator; + late final Optionalsignature; + late final Optionaldate; late final Optionalstatus; - late final OptionalformData; - late final Optionaltitle; - late final Optionalsubtitle; - late final Optionaldescription; @Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.') UpdateTaxFormVariables.fromJson(Map json): @@ -127,25 +277,125 @@ class UpdateTaxFormVariables { + formType = Optional.optional((data) => TaxFormType.values.byName(data), enumSerializer); + formType.value = json['formType'] == null ? null : TaxFormType.values.byName(json['formType']); + + + firstName = Optional.optional(nativeFromJson, nativeToJson); + firstName.value = json['firstName'] == null ? null : nativeFromJson(json['firstName']); + + + lastName = Optional.optional(nativeFromJson, nativeToJson); + lastName.value = json['lastName'] == null ? null : nativeFromJson(json['lastName']); + + + mInitial = Optional.optional(nativeFromJson, nativeToJson); + mInitial.value = json['mInitial'] == null ? null : nativeFromJson(json['mInitial']); + + + oLastName = Optional.optional(nativeFromJson, nativeToJson); + oLastName.value = json['oLastName'] == null ? null : nativeFromJson(json['oLastName']); + + + dob = Optional.optional((json) => json['dob'] = Timestamp.fromJson(json['dob']), defaultSerializer); + dob.value = json['dob'] == null ? null : Timestamp.fromJson(json['dob']); + + + socialSN = Optional.optional(nativeFromJson, nativeToJson); + socialSN.value = json['socialSN'] == null ? null : nativeFromJson(json['socialSN']); + + + email = Optional.optional(nativeFromJson, nativeToJson); + email.value = json['email'] == null ? null : nativeFromJson(json['email']); + + + phone = Optional.optional(nativeFromJson, nativeToJson); + phone.value = json['phone'] == null ? null : nativeFromJson(json['phone']); + + + address = Optional.optional(nativeFromJson, nativeToJson); + address.value = json['address'] == null ? null : nativeFromJson(json['address']); + + + city = Optional.optional(nativeFromJson, nativeToJson); + city.value = json['city'] == null ? null : nativeFromJson(json['city']); + + + apt = Optional.optional(nativeFromJson, nativeToJson); + apt.value = json['apt'] == null ? null : nativeFromJson(json['apt']); + + + state = Optional.optional(nativeFromJson, nativeToJson); + state.value = json['state'] == null ? null : nativeFromJson(json['state']); + + + zipCode = Optional.optional(nativeFromJson, nativeToJson); + zipCode.value = json['zipCode'] == null ? null : nativeFromJson(json['zipCode']); + + + marital = Optional.optional((data) => MaritalStatus.values.byName(data), enumSerializer); + marital.value = json['marital'] == null ? null : MaritalStatus.values.byName(json['marital']); + + + multipleJob = Optional.optional(nativeFromJson, nativeToJson); + multipleJob.value = json['multipleJob'] == null ? null : nativeFromJson(json['multipleJob']); + + + childrens = Optional.optional(nativeFromJson, nativeToJson); + childrens.value = json['childrens'] == null ? null : nativeFromJson(json['childrens']); + + + otherDeps = Optional.optional(nativeFromJson, nativeToJson); + otherDeps.value = json['otherDeps'] == null ? null : nativeFromJson(json['otherDeps']); + + + totalCredits = Optional.optional(nativeFromJson, nativeToJson); + totalCredits.value = json['totalCredits'] == null ? null : nativeFromJson(json['totalCredits']); + + + otherInconme = Optional.optional(nativeFromJson, nativeToJson); + otherInconme.value = json['otherInconme'] == null ? null : nativeFromJson(json['otherInconme']); + + + deductions = Optional.optional(nativeFromJson, nativeToJson); + deductions.value = json['deductions'] == null ? null : nativeFromJson(json['deductions']); + + + extraWithholding = Optional.optional(nativeFromJson, nativeToJson); + extraWithholding.value = json['extraWithholding'] == null ? null : nativeFromJson(json['extraWithholding']); + + + citizen = Optional.optional((data) => CitizenshipStatus.values.byName(data), enumSerializer); + citizen.value = json['citizen'] == null ? null : CitizenshipStatus.values.byName(json['citizen']); + + + uscis = Optional.optional(nativeFromJson, nativeToJson); + uscis.value = json['uscis'] == null ? null : nativeFromJson(json['uscis']); + + + passportNumber = Optional.optional(nativeFromJson, nativeToJson); + passportNumber.value = json['passportNumber'] == null ? null : nativeFromJson(json['passportNumber']); + + + countryIssue = Optional.optional(nativeFromJson, nativeToJson); + countryIssue.value = json['countryIssue'] == null ? null : nativeFromJson(json['countryIssue']); + + + prepartorOrTranslator = Optional.optional(nativeFromJson, nativeToJson); + prepartorOrTranslator.value = json['prepartorOrTranslator'] == null ? null : nativeFromJson(json['prepartorOrTranslator']); + + + signature = Optional.optional(nativeFromJson, nativeToJson); + signature.value = json['signature'] == null ? null : nativeFromJson(json['signature']); + + + date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer); + date.value = json['date'] == null ? null : Timestamp.fromJson(json['date']); + + status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer); status.value = json['status'] == null ? null : TaxFormStatus.values.byName(json['status']); - - formData = Optional.optional(AnyValue.fromJson, defaultSerializer); - formData.value = json['formData'] == null ? null : AnyValue.fromJson(json['formData']); - - - title = Optional.optional(nativeFromJson, nativeToJson); - title.value = json['title'] == null ? null : nativeFromJson(json['title']); - - - subtitle = Optional.optional(nativeFromJson, nativeToJson); - subtitle.value = json['subtitle'] == null ? null : nativeFromJson(json['subtitle']); - - - description = Optional.optional(nativeFromJson, nativeToJson); - description.value = json['description'] == null ? null : nativeFromJson(json['description']); - } @override bool operator ==(Object other) { @@ -158,45 +408,170 @@ class UpdateTaxFormVariables { final UpdateTaxFormVariables otherTyped = other as UpdateTaxFormVariables; return id == otherTyped.id && - status == otherTyped.status && - formData == otherTyped.formData && - title == otherTyped.title && - subtitle == otherTyped.subtitle && - description == otherTyped.description; + formType == otherTyped.formType && + firstName == otherTyped.firstName && + lastName == otherTyped.lastName && + mInitial == otherTyped.mInitial && + oLastName == otherTyped.oLastName && + dob == otherTyped.dob && + socialSN == otherTyped.socialSN && + email == otherTyped.email && + phone == otherTyped.phone && + address == otherTyped.address && + city == otherTyped.city && + apt == otherTyped.apt && + state == otherTyped.state && + zipCode == otherTyped.zipCode && + marital == otherTyped.marital && + multipleJob == otherTyped.multipleJob && + childrens == otherTyped.childrens && + otherDeps == otherTyped.otherDeps && + totalCredits == otherTyped.totalCredits && + otherInconme == otherTyped.otherInconme && + deductions == otherTyped.deductions && + extraWithholding == otherTyped.extraWithholding && + citizen == otherTyped.citizen && + uscis == otherTyped.uscis && + passportNumber == otherTyped.passportNumber && + countryIssue == otherTyped.countryIssue && + prepartorOrTranslator == otherTyped.prepartorOrTranslator && + signature == otherTyped.signature && + date == otherTyped.date && + status == otherTyped.status; } @override - int get hashCode => Object.hashAll([id.hashCode, status.hashCode, formData.hashCode, title.hashCode, subtitle.hashCode, description.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, firstName.hashCode, lastName.hashCode, mInitial.hashCode, oLastName.hashCode, dob.hashCode, socialSN.hashCode, email.hashCode, phone.hashCode, address.hashCode, city.hashCode, apt.hashCode, state.hashCode, zipCode.hashCode, marital.hashCode, multipleJob.hashCode, childrens.hashCode, otherDeps.hashCode, totalCredits.hashCode, otherInconme.hashCode, deductions.hashCode, extraWithholding.hashCode, citizen.hashCode, uscis.hashCode, passportNumber.hashCode, countryIssue.hashCode, prepartorOrTranslator.hashCode, signature.hashCode, date.hashCode, status.hashCode]); Map toJson() { Map json = {}; json['id'] = nativeToJson(id); + if(formType.state == OptionalState.set) { + json['formType'] = formType.toJson(); + } + if(firstName.state == OptionalState.set) { + json['firstName'] = firstName.toJson(); + } + if(lastName.state == OptionalState.set) { + json['lastName'] = lastName.toJson(); + } + if(mInitial.state == OptionalState.set) { + json['mInitial'] = mInitial.toJson(); + } + if(oLastName.state == OptionalState.set) { + json['oLastName'] = oLastName.toJson(); + } + if(dob.state == OptionalState.set) { + json['dob'] = dob.toJson(); + } + if(socialSN.state == OptionalState.set) { + json['socialSN'] = socialSN.toJson(); + } + if(email.state == OptionalState.set) { + json['email'] = email.toJson(); + } + if(phone.state == OptionalState.set) { + json['phone'] = phone.toJson(); + } + if(address.state == OptionalState.set) { + json['address'] = address.toJson(); + } + if(city.state == OptionalState.set) { + json['city'] = city.toJson(); + } + if(apt.state == OptionalState.set) { + json['apt'] = apt.toJson(); + } + if(state.state == OptionalState.set) { + json['state'] = state.toJson(); + } + if(zipCode.state == OptionalState.set) { + json['zipCode'] = zipCode.toJson(); + } + if(marital.state == OptionalState.set) { + json['marital'] = marital.toJson(); + } + if(multipleJob.state == OptionalState.set) { + json['multipleJob'] = multipleJob.toJson(); + } + if(childrens.state == OptionalState.set) { + json['childrens'] = childrens.toJson(); + } + if(otherDeps.state == OptionalState.set) { + json['otherDeps'] = otherDeps.toJson(); + } + if(totalCredits.state == OptionalState.set) { + json['totalCredits'] = totalCredits.toJson(); + } + if(otherInconme.state == OptionalState.set) { + json['otherInconme'] = otherInconme.toJson(); + } + if(deductions.state == OptionalState.set) { + json['deductions'] = deductions.toJson(); + } + if(extraWithholding.state == OptionalState.set) { + json['extraWithholding'] = extraWithholding.toJson(); + } + if(citizen.state == OptionalState.set) { + json['citizen'] = citizen.toJson(); + } + if(uscis.state == OptionalState.set) { + json['uscis'] = uscis.toJson(); + } + if(passportNumber.state == OptionalState.set) { + json['passportNumber'] = passportNumber.toJson(); + } + if(countryIssue.state == OptionalState.set) { + json['countryIssue'] = countryIssue.toJson(); + } + if(prepartorOrTranslator.state == OptionalState.set) { + json['prepartorOrTranslator'] = prepartorOrTranslator.toJson(); + } + if(signature.state == OptionalState.set) { + json['signature'] = signature.toJson(); + } + if(date.state == OptionalState.set) { + json['date'] = date.toJson(); + } if(status.state == OptionalState.set) { json['status'] = status.toJson(); } - if(formData.state == OptionalState.set) { - json['formData'] = formData.toJson(); - } - if(title.state == OptionalState.set) { - json['title'] = title.toJson(); - } - if(subtitle.state == OptionalState.set) { - json['subtitle'] = subtitle.toJson(); - } - if(description.state == OptionalState.set) { - json['description'] = description.toJson(); - } return json; } UpdateTaxFormVariables({ required this.id, + required this.formType, + required this.firstName, + required this.lastName, + required this.mInitial, + required this.oLastName, + required this.dob, + required this.socialSN, + required this.email, + required this.phone, + required this.address, + required this.city, + required this.apt, + required this.state, + required this.zipCode, + required this.marital, + required this.multipleJob, + required this.childrens, + required this.otherDeps, + required this.totalCredits, + required this.otherInconme, + required this.deductions, + required this.extraWithholding, + required this.citizen, + required this.uscis, + required this.passportNumber, + required this.countryIssue, + required this.prepartorOrTranslator, + required this.signature, + required this.date, required this.status, - required this.formData, - required this.title, - required this.subtitle, - required this.description, }); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/update_team_hub.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/update_team_hub.dart index a1b41ac2..44898f49 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/update_team_hub.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/update_team_hub.dart @@ -2,16 +2,26 @@ part of 'generated.dart'; class UpdateTeamHubVariablesBuilder { String id; + Optional _teamId = Optional.optional(nativeFromJson, nativeToJson); Optional _hubName = Optional.optional(nativeFromJson, nativeToJson); Optional _address = Optional.optional(nativeFromJson, nativeToJson); + Optional _placeId = Optional.optional(nativeFromJson, nativeToJson); + Optional _latitude = Optional.optional(nativeFromJson, nativeToJson); + Optional _longitude = Optional.optional(nativeFromJson, nativeToJson); Optional _city = Optional.optional(nativeFromJson, nativeToJson); Optional _state = Optional.optional(nativeFromJson, nativeToJson); + Optional _street = Optional.optional(nativeFromJson, nativeToJson); + Optional _country = Optional.optional(nativeFromJson, nativeToJson); Optional _zipCode = Optional.optional(nativeFromJson, nativeToJson); Optional _managerName = Optional.optional(nativeFromJson, nativeToJson); Optional _isActive = Optional.optional(nativeFromJson, nativeToJson); Optional _departments = Optional.optional(AnyValue.fromJson, defaultSerializer); - final FirebaseDataConnect _dataConnect; UpdateTeamHubVariablesBuilder hubName(String? t) { + final FirebaseDataConnect _dataConnect; UpdateTeamHubVariablesBuilder teamId(String? t) { + _teamId.value = t; + return this; + } + UpdateTeamHubVariablesBuilder hubName(String? t) { _hubName.value = t; return this; } @@ -19,6 +29,18 @@ class UpdateTeamHubVariablesBuilder { _address.value = t; return this; } + UpdateTeamHubVariablesBuilder placeId(String? t) { + _placeId.value = t; + return this; + } + UpdateTeamHubVariablesBuilder latitude(double? t) { + _latitude.value = t; + return this; + } + UpdateTeamHubVariablesBuilder longitude(double? t) { + _longitude.value = t; + return this; + } UpdateTeamHubVariablesBuilder city(String? t) { _city.value = t; return this; @@ -27,6 +49,14 @@ class UpdateTeamHubVariablesBuilder { _state.value = t; return this; } + UpdateTeamHubVariablesBuilder street(String? t) { + _street.value = t; + return this; + } + UpdateTeamHubVariablesBuilder country(String? t) { + _country.value = t; + return this; + } UpdateTeamHubVariablesBuilder zipCode(String? t) { _zipCode.value = t; return this; @@ -52,7 +82,7 @@ class UpdateTeamHubVariablesBuilder { } MutationRef ref() { - UpdateTeamHubVariables vars= UpdateTeamHubVariables(id: id,hubName: _hubName,address: _address,city: _city,state: _state,zipCode: _zipCode,managerName: _managerName,isActive: _isActive,departments: _departments,); + UpdateTeamHubVariables vars= UpdateTeamHubVariables(id: id,teamId: _teamId,hubName: _hubName,address: _address,placeId: _placeId,latitude: _latitude,longitude: _longitude,city: _city,state: _state,street: _street,country: _country,zipCode: _zipCode,managerName: _managerName,isActive: _isActive,departments: _departments,); return _dataConnect.mutation("updateTeamHub", dataDeserializer, varsSerializer, vars); } } @@ -130,10 +160,16 @@ class UpdateTeamHubData { @immutable class UpdateTeamHubVariables { final String id; + late final OptionalteamId; late final OptionalhubName; late final Optionaladdress; + late final OptionalplaceId; + late final Optionallatitude; + late final Optionallongitude; late final Optionalcity; late final Optionalstate; + late final Optionalstreet; + late final Optionalcountry; late final OptionalzipCode; late final OptionalmanagerName; late final OptionalisActive; @@ -145,6 +181,10 @@ class UpdateTeamHubVariables { + teamId = Optional.optional(nativeFromJson, nativeToJson); + teamId.value = json['teamId'] == null ? null : nativeFromJson(json['teamId']); + + hubName = Optional.optional(nativeFromJson, nativeToJson); hubName.value = json['hubName'] == null ? null : nativeFromJson(json['hubName']); @@ -153,6 +193,18 @@ class UpdateTeamHubVariables { address.value = json['address'] == null ? null : nativeFromJson(json['address']); + placeId = Optional.optional(nativeFromJson, nativeToJson); + placeId.value = json['placeId'] == null ? null : nativeFromJson(json['placeId']); + + + latitude = Optional.optional(nativeFromJson, nativeToJson); + latitude.value = json['latitude'] == null ? null : nativeFromJson(json['latitude']); + + + longitude = Optional.optional(nativeFromJson, nativeToJson); + longitude.value = json['longitude'] == null ? null : nativeFromJson(json['longitude']); + + city = Optional.optional(nativeFromJson, nativeToJson); city.value = json['city'] == null ? null : nativeFromJson(json['city']); @@ -161,6 +213,14 @@ class UpdateTeamHubVariables { state.value = json['state'] == null ? null : nativeFromJson(json['state']); + street = Optional.optional(nativeFromJson, nativeToJson); + street.value = json['street'] == null ? null : nativeFromJson(json['street']); + + + country = Optional.optional(nativeFromJson, nativeToJson); + country.value = json['country'] == null ? null : nativeFromJson(json['country']); + + zipCode = Optional.optional(nativeFromJson, nativeToJson); zipCode.value = json['zipCode'] == null ? null : nativeFromJson(json['zipCode']); @@ -188,10 +248,16 @@ class UpdateTeamHubVariables { final UpdateTeamHubVariables otherTyped = other as UpdateTeamHubVariables; return id == otherTyped.id && + teamId == otherTyped.teamId && hubName == otherTyped.hubName && address == otherTyped.address && + placeId == otherTyped.placeId && + latitude == otherTyped.latitude && + longitude == otherTyped.longitude && city == otherTyped.city && state == otherTyped.state && + street == otherTyped.street && + country == otherTyped.country && zipCode == otherTyped.zipCode && managerName == otherTyped.managerName && isActive == otherTyped.isActive && @@ -199,24 +265,42 @@ class UpdateTeamHubVariables { } @override - int get hashCode => Object.hashAll([id.hashCode, hubName.hashCode, address.hashCode, city.hashCode, state.hashCode, zipCode.hashCode, managerName.hashCode, isActive.hashCode, departments.hashCode]); + int get hashCode => Object.hashAll([id.hashCode, teamId.hashCode, hubName.hashCode, address.hashCode, placeId.hashCode, latitude.hashCode, longitude.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, zipCode.hashCode, managerName.hashCode, isActive.hashCode, departments.hashCode]); Map toJson() { Map json = {}; json['id'] = nativeToJson(id); + if(teamId.state == OptionalState.set) { + json['teamId'] = teamId.toJson(); + } if(hubName.state == OptionalState.set) { json['hubName'] = hubName.toJson(); } if(address.state == OptionalState.set) { json['address'] = address.toJson(); } + if(placeId.state == OptionalState.set) { + json['placeId'] = placeId.toJson(); + } + if(latitude.state == OptionalState.set) { + json['latitude'] = latitude.toJson(); + } + if(longitude.state == OptionalState.set) { + json['longitude'] = longitude.toJson(); + } if(city.state == OptionalState.set) { json['city'] = city.toJson(); } if(state.state == OptionalState.set) { json['state'] = state.toJson(); } + if(street.state == OptionalState.set) { + json['street'] = street.toJson(); + } + if(country.state == OptionalState.set) { + json['country'] = country.toJson(); + } if(zipCode.state == OptionalState.set) { json['zipCode'] = zipCode.toJson(); } @@ -234,10 +318,16 @@ class UpdateTeamHubVariables { UpdateTeamHubVariables({ required this.id, + required this.teamId, required this.hubName, required this.address, + required this.placeId, + required this.latitude, + required this.longitude, required this.city, required this.state, + required this.street, + required this.country, required this.zipCode, required this.managerName, required this.isActive, diff --git a/apps/mobile/packages/design_system/lib/src/ui_constants.dart b/apps/mobile/packages/design_system/lib/src/ui_constants.dart index 819699b1..a13a28c9 100644 --- a/apps/mobile/packages/design_system/lib/src/ui_constants.dart +++ b/apps/mobile/packages/design_system/lib/src/ui_constants.dart @@ -37,4 +37,7 @@ class UiConstants { static const double space12 = 48.0; static const double space14 = 56.0; static const double space16 = 64.0; + static const double space20 = 80.0; + static const double space24 = 96.0; + static const double space32 = 128.0; } diff --git a/apps/mobile/packages/domain/lib/src/adapters/profile/tax_form_adapter.dart b/apps/mobile/packages/domain/lib/src/adapters/profile/tax_form_adapter.dart index 41f85479..8c070da4 100644 --- a/apps/mobile/packages/domain/lib/src/adapters/profile/tax_form_adapter.dart +++ b/apps/mobile/packages/domain/lib/src/adapters/profile/tax_form_adapter.dart @@ -15,18 +15,36 @@ class TaxFormAdapter { DateTime? createdAt, DateTime? updatedAt, }) { - return TaxForm( - id: id, - type: _stringToType(type), - title: title, - subtitle: subtitle, - description: description, - status: _stringToStatus(status), - staffId: staffId, - formData: formData is Map ? Map.from(formData) : null, - createdAt: createdAt, - updatedAt: updatedAt, - ); + final TaxFormType formType = _stringToType(type); + final TaxFormStatus formStatus = _stringToStatus(status); + final Map formDetails = + formData is Map ? Map.from(formData as Map) : {}; + + if (formType == TaxFormType.i9) { + return I9TaxForm( + id: id, + title: title, + subtitle: subtitle, + description: description, + status: formStatus, + staffId: staffId, + formData: formDetails, + createdAt: createdAt, + updatedAt: updatedAt, + ); + } else { + return W4TaxForm( + id: id, + title: title, + subtitle: subtitle, + description: description, + status: formStatus, + staffId: staffId, + formData: formDetails, + createdAt: createdAt, + updatedAt: updatedAt, + ); + } } static TaxFormType _stringToType(String? value) { diff --git a/apps/mobile/packages/domain/lib/src/entities/orders/one_time_order.dart b/apps/mobile/packages/domain/lib/src/entities/orders/one_time_order.dart index 1e035a49..e0e7ca67 100644 --- a/apps/mobile/packages/domain/lib/src/entities/orders/one_time_order.dart +++ b/apps/mobile/packages/domain/lib/src/entities/orders/one_time_order.dart @@ -10,6 +10,8 @@ class OneTimeOrder extends Equatable { required this.date, required this.location, required this.positions, + this.hub, + this.eventName, this.vendorId, this.roleRates = const {}, }); @@ -22,6 +24,12 @@ class OneTimeOrder extends Equatable { /// The list of positions and headcounts required for this order. final List positions; + /// Selected hub details for this order. + final OneTimeOrderHubDetails? hub; + + /// Optional order name. + final String? eventName; + /// Selected vendor id for this order. final String? vendorId; @@ -33,7 +41,53 @@ class OneTimeOrder extends Equatable { date, location, positions, + hub, + eventName, vendorId, roleRates, ]; } + +/// Minimal hub details used during order creation. +class OneTimeOrderHubDetails extends Equatable { + const OneTimeOrderHubDetails({ + required this.id, + required this.name, + required this.address, + this.placeId, + this.latitude, + this.longitude, + this.city, + this.state, + this.street, + this.country, + this.zipCode, + }); + + final String id; + final String name; + final String address; + final String? placeId; + final double? latitude; + final double? longitude; + final String? city; + final String? state; + final String? street; + final String? country; + final String? zipCode; + + @override + List get props => [ + id, + name, + address, + placeId, + latitude, + longitude, + city, + state, + street, + country, + zipCode, + ]; +} diff --git a/apps/mobile/packages/domain/lib/src/entities/profile/tax_form.dart b/apps/mobile/packages/domain/lib/src/entities/profile/tax_form.dart index 096380c5..bdb07d7b 100644 --- a/apps/mobile/packages/domain/lib/src/entities/profile/tax_form.dart +++ b/apps/mobile/packages/domain/lib/src/entities/profile/tax_form.dart @@ -4,27 +4,26 @@ enum TaxFormType { i9, w4 } enum TaxFormStatus { notStarted, inProgress, submitted, approved, rejected } -class TaxForm extends Equatable { +abstract class TaxForm extends Equatable { final String id; - final TaxFormType type; + TaxFormType get type; final String title; final String? subtitle; final String? description; final TaxFormStatus status; final String? staffId; - final Map? formData; + final Map formData; final DateTime? createdAt; final DateTime? updatedAt; const TaxForm({ required this.id, - required this.type, required this.title, this.subtitle, this.description, this.status = TaxFormStatus.notStarted, this.staffId, - this.formData, + this.formData = const {}, this.createdAt, this.updatedAt, }); @@ -43,3 +42,37 @@ class TaxForm extends Equatable { updatedAt, ]; } + +class I9TaxForm extends TaxForm { + const I9TaxForm({ + required super.id, + required super.title, + super.subtitle, + super.description, + super.status, + super.staffId, + super.formData, + super.createdAt, + super.updatedAt, + }); + + @override + TaxFormType get type => TaxFormType.i9; +} + +class W4TaxForm extends TaxForm { + const W4TaxForm({ + required super.id, + required super.title, + super.subtitle, + super.description, + super.status, + super.staffId, + super.formData, + super.createdAt, + super.updatedAt, + }); + + @override + TaxFormType get type => TaxFormType.w4; +} diff --git a/apps/mobile/packages/features/client/billing/lib/src/data/repositories_impl/billing_repository_impl.dart b/apps/mobile/packages/features/client/billing/lib/src/data/repositories_impl/billing_repository_impl.dart index 4006f92c..9fa8d5cb 100644 --- a/apps/mobile/packages/features/client/billing/lib/src/data/repositories_impl/billing_repository_impl.dart +++ b/apps/mobile/packages/features/client/billing/lib/src/data/repositories_impl/billing_repository_impl.dart @@ -166,9 +166,10 @@ class BillingRepositoryImpl implements BillingRepository { } fdc.Timestamp _toTimestamp(DateTime dateTime) { - final int seconds = dateTime.millisecondsSinceEpoch ~/ 1000; + final DateTime utc = dateTime.toUtc(); + final int seconds = utc.millisecondsSinceEpoch ~/ 1000; final int nanoseconds = - (dateTime.millisecondsSinceEpoch % 1000) * 1000000; + (utc.millisecondsSinceEpoch % 1000) * 1000000; return fdc.Timestamp(nanoseconds, seconds); } diff --git a/apps/mobile/packages/features/client/billing/lib/src/presentation/pages/billing_page.dart b/apps/mobile/packages/features/client/billing/lib/src/presentation/pages/billing_page.dart index 8fb39115..c51f0007 100644 --- a/apps/mobile/packages/features/client/billing/lib/src/presentation/pages/billing_page.dart +++ b/apps/mobile/packages/features/client/billing/lib/src/presentation/pages/billing_page.dart @@ -2,16 +2,16 @@ import 'package:design_system/design_system.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_modular/flutter_modular.dart'; + import '../blocs/billing_bloc.dart'; import '../blocs/billing_event.dart'; import '../blocs/billing_state.dart'; import '../widgets/billing_header.dart'; -import '../widgets/pending_invoices_section.dart'; -import '../widgets/payment_method_card.dart'; -import '../widgets/spending_breakdown_card.dart'; -import '../widgets/savings_card.dart'; import '../widgets/invoice_history_section.dart'; -import '../widgets/export_invoices_button.dart'; +import '../widgets/payment_method_card.dart'; +import '../widgets/pending_invoices_section.dart'; +import '../widgets/savings_card.dart'; +import '../widgets/spending_breakdown_card.dart'; /// The entry point page for the client billing feature. /// @@ -43,7 +43,6 @@ class BillingView extends StatelessWidget { return BlocBuilder( builder: (BuildContext context, BillingState state) { return Scaffold( - backgroundColor: UiColors.bgPrimary, body: Column( children: [ BillingHeader( @@ -89,9 +88,7 @@ class BillingView extends StatelessWidget { SavingsCard(savings: state.savings), const SizedBox(height: UiConstants.space6), InvoiceHistorySection(invoices: state.invoiceHistory), - const SizedBox(height: UiConstants.space6), - const ExportInvoicesButton(), - const SizedBox(height: UiConstants.space6), + const SizedBox(height: UiConstants.space24), ], ), ); diff --git a/apps/mobile/packages/features/client/billing/pubspec.yaml b/apps/mobile/packages/features/client/billing/pubspec.yaml index d8165fe9..74ec711f 100644 --- a/apps/mobile/packages/features/client/billing/pubspec.yaml +++ b/apps/mobile/packages/features/client/billing/pubspec.yaml @@ -1,7 +1,7 @@ name: billing description: Client Billing feature package publish_to: 'none' -version: 1.0.0+1 +version: 0.0.1 resolution: workspace environment: diff --git a/apps/mobile/packages/features/client/client_coverage/lib/src/data/repositories_impl/coverage_repository_impl.dart b/apps/mobile/packages/features/client/client_coverage/lib/src/data/repositories_impl/coverage_repository_impl.dart index fa29d536..e6ae4e35 100644 --- a/apps/mobile/packages/features/client/client_coverage/lib/src/data/repositories_impl/coverage_repository_impl.dart +++ b/apps/mobile/packages/features/client/client_coverage/lib/src/data/repositories_impl/coverage_repository_impl.dart @@ -100,9 +100,10 @@ class CoverageRepositoryImpl implements CoverageRepository { } fdc.Timestamp _toTimestamp(DateTime dateTime) { - final int seconds = dateTime.millisecondsSinceEpoch ~/ 1000; + final DateTime utc = dateTime.toUtc(); + final int seconds = utc.millisecondsSinceEpoch ~/ 1000; final int nanoseconds = - (dateTime.millisecondsSinceEpoch % 1000) * 1000000; + (utc.millisecondsSinceEpoch % 1000) * 1000000; return fdc.Timestamp(nanoseconds, seconds); } @@ -195,7 +196,7 @@ class CoverageRepositoryImpl implements CoverageRepository { if (timestamp == null) { return null; } - final DateTime date = timestamp.toDateTime(); + final DateTime date = timestamp.toDateTime().toLocal(); final String hour = date.hour.toString().padLeft(2, '0'); final String minute = date.minute.toString().padLeft(2, '0'); return '$hour:$minute'; diff --git a/apps/mobile/packages/features/client/client_coverage/lib/src/domain/ui_entities/coverage_entities.dart b/apps/mobile/packages/features/client/client_coverage/lib/src/domain/ui_entities/coverage_entities.dart index 50758e8c..bb9249c9 100644 --- a/apps/mobile/packages/features/client/client_coverage/lib/src/domain/ui_entities/coverage_entities.dart +++ b/apps/mobile/packages/features/client/client_coverage/lib/src/domain/ui_entities/coverage_entities.dart @@ -39,7 +39,7 @@ class CoverageShift extends Equatable { /// Calculates the coverage percentage for this shift. int get coveragePercent { - if (workersNeeded == 0) return 100; + if (workersNeeded == 0) return 0; return ((workers.length / workersNeeded) * 100).round(); } @@ -118,7 +118,7 @@ class CoverageStats extends Equatable { /// Calculates the overall coverage percentage. int get coveragePercent { - if (totalNeeded == 0) return 100; + if (totalNeeded == 0) return 0; return ((totalConfirmed / totalNeeded) * 100).round(); } diff --git a/apps/mobile/packages/features/client/client_coverage/lib/src/presentation/pages/coverage_page.dart b/apps/mobile/packages/features/client/client_coverage/lib/src/presentation/pages/coverage_page.dart index 441c6040..6559945d 100644 --- a/apps/mobile/packages/features/client/client_coverage/lib/src/presentation/pages/coverage_page.dart +++ b/apps/mobile/packages/features/client/client_coverage/lib/src/presentation/pages/coverage_page.dart @@ -24,7 +24,6 @@ class CoveragePage extends StatelessWidget { create: (BuildContext context) => Modular.get() ..add(CoverageLoadRequested(date: DateTime.now())), child: Scaffold( - backgroundColor: UiColors.background, body: BlocBuilder( builder: (BuildContext context, CoverageState state) { return Column( @@ -114,13 +113,14 @@ class CoveragePage extends StatelessWidget { const SizedBox(height: UiConstants.space5), ], Text( - 'Shifts', + 'Shifts (${state.shifts.length})', style: UiTypography.title2b.copyWith( color: UiColors.textPrimary, ), ), const SizedBox(height: UiConstants.space3), CoverageShiftList(shifts: state.shifts), + const SizedBox(height: 100), ], ), ); diff --git a/apps/mobile/packages/features/client/client_coverage/lib/src/presentation/widgets/coverage_shift_list.dart b/apps/mobile/packages/features/client/client_coverage/lib/src/presentation/widgets/coverage_shift_list.dart index 0732c389..7ec0c0c5 100644 --- a/apps/mobile/packages/features/client/client_coverage/lib/src/presentation/widgets/coverage_shift_list.dart +++ b/apps/mobile/packages/features/client/client_coverage/lib/src/presentation/widgets/coverage_shift_list.dart @@ -35,24 +35,23 @@ class CoverageShiftList extends StatelessWidget { if (shifts.isEmpty) { return Container( padding: const EdgeInsets.all(UiConstants.space8), + width: double.infinity, decoration: BoxDecoration( color: UiColors.bgPopup, borderRadius: UiConstants.radiusLg, border: Border.all(color: UiColors.border), ), child: Column( + spacing: UiConstants.space4, children: [ const Icon( UiIcons.users, size: UiConstants.space12, - color: UiColors.mutedForeground, + color: UiColors.textSecondary, ), - const SizedBox(height: UiConstants.space3), Text( 'No shifts scheduled for this day', - style: UiTypography.body2r.copyWith( - color: UiColors.mutedForeground, - ), + style: UiTypography.body2r.textSecondary, ), ], ), @@ -160,12 +159,15 @@ class _ShiftHeader extends StatelessWidget { ), ), child: Row( + spacing: UiConstants.space4, children: [ Expanded( child: Column( crossAxisAlignment: CrossAxisAlignment.start, + spacing: UiConstants.space2, children: [ Row( + spacing: UiConstants.space2, children: [ Container( width: UiConstants.space2, @@ -175,42 +177,43 @@ class _ShiftHeader extends StatelessWidget { shape: BoxShape.circle, ), ), - const SizedBox(width: UiConstants.space2), Text( title, - style: UiTypography.body1b.copyWith( - color: UiColors.textPrimary, - ), + style: UiTypography.body1b.textPrimary, ), ], ), - const SizedBox(height: UiConstants.space2), - Row( + Column( + crossAxisAlignment: CrossAxisAlignment.start, children: [ - const Icon( - UiIcons.mapPin, - size: UiConstants.space3, - color: UiColors.mutedForeground, + Row( + spacing: UiConstants.space1, + children: [ + const Icon( + UiIcons.mapPin, + size: UiConstants.space3, + color: UiColors.iconSecondary, + ), + Expanded(child: Text( + location, + style: UiTypography.body3r.textSecondary, + overflow: TextOverflow.ellipsis, + )), + ], ), - const SizedBox(width: UiConstants.space1), - Text( - location, - style: UiTypography.body3r.copyWith( - color: UiColors.mutedForeground, - ), - ), - const SizedBox(width: UiConstants.space3), - const Icon( - UiIcons.clock, - size: UiConstants.space3, - color: UiColors.mutedForeground, - ), - const SizedBox(width: UiConstants.space1), - Text( - startTime, - style: UiTypography.body3r.copyWith( - color: UiColors.mutedForeground, - ), + Row( + spacing: UiConstants.space1, + children: [ + const Icon( + UiIcons.clock, + size: UiConstants.space3, + color: UiColors.iconSecondary, + ), + Text( + startTime, + style: UiTypography.body3r.textSecondary, + ), + ], ), ], ), diff --git a/apps/mobile/packages/features/client/client_coverage/pubspec.lock b/apps/mobile/packages/features/client/client_coverage/pubspec.lock deleted file mode 100644 index 6dd6fbaf..00000000 --- a/apps/mobile/packages/features/client/client_coverage/pubspec.lock +++ /dev/null @@ -1,650 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - async: - dependency: transitive - description: - name: async - sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb" - url: "https://pub.dev" - source: hosted - version: "2.13.0" - auto_injector: - dependency: transitive - description: - name: auto_injector - sha256: "1fc2624898e92485122eb2b1698dd42511d7ff6574f84a3a8606fc4549a1e8f8" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - bloc: - dependency: transitive - description: - name: bloc - sha256: "106842ad6569f0b60297619e9e0b1885c2fb9bf84812935490e6c5275777804e" - url: "https://pub.dev" - source: hosted - version: "8.1.4" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - characters: - dependency: transitive - description: - name: characters - sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 - url: "https://pub.dev" - source: hosted - version: "1.4.0" - clock: - dependency: transitive - description: - name: clock - sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b - url: "https://pub.dev" - source: hosted - version: "1.1.2" - code_assets: - dependency: transitive - description: - name: code_assets - sha256: "83ccdaa064c980b5596c35dd64a8d3ecc68620174ab9b90b6343b753aa721687" - url: "https://pub.dev" - source: hosted - version: "1.0.0" - collection: - dependency: transitive - description: - name: collection - sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" - url: "https://pub.dev" - source: hosted - version: "1.19.1" - core_localization: - dependency: "direct main" - description: - path: "../../../core_localization" - relative: true - source: path - version: "0.0.1" - crypto: - dependency: transitive - description: - name: crypto - sha256: c8ea0233063ba03258fbcf2ca4d6dadfefe14f02fab57702265467a19f27fadf - url: "https://pub.dev" - source: hosted - version: "3.0.7" - csv: - dependency: transitive - description: - name: csv - sha256: c6aa2679b2a18cb57652920f674488d89712efaf4d3fdf2e537215b35fc19d6c - url: "https://pub.dev" - source: hosted - version: "6.0.0" - design_system: - dependency: "direct main" - description: - path: "../../../design_system" - relative: true - source: path - version: "0.0.1" - equatable: - dependency: "direct main" - description: - name: equatable - sha256: "3e0141505477fd8ad55d6eb4e7776d3fe8430be8e497ccb1521370c3f21a3e2b" - url: "https://pub.dev" - source: hosted - version: "2.0.8" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" - url: "https://pub.dev" - source: hosted - version: "1.3.3" - ffi: - dependency: transitive - description: - name: ffi - sha256: d07d37192dbf97461359c1518788f203b0c9102cfd2c35a716b823741219542c - url: "https://pub.dev" - source: hosted - version: "2.1.5" - file: - dependency: transitive - description: - name: file - sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 - url: "https://pub.dev" - source: hosted - version: "7.0.1" - fixnum: - dependency: transitive - description: - name: fixnum - sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be - url: "https://pub.dev" - source: hosted - version: "1.1.1" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_bloc: - dependency: "direct main" - description: - name: flutter_bloc - sha256: b594505eac31a0518bdcb4b5b79573b8d9117b193cc80cc12e17d639b10aa27a - url: "https://pub.dev" - source: hosted - version: "8.1.6" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1" - url: "https://pub.dev" - source: hosted - version: "5.0.0" - flutter_localizations: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - flutter_modular: - dependency: "direct main" - description: - name: flutter_modular - sha256: "33a63d9fe61429d12b3dfa04795ed890f17d179d3d38e988ba7969651fcd5586" - url: "https://pub.dev" - source: hosted - version: "6.4.1" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - flutter_web_plugins: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - font_awesome_flutter: - dependency: transitive - description: - name: font_awesome_flutter - sha256: b9011df3a1fa02993630b8fb83526368cf2206a711259830325bab2f1d2a4eb0 - url: "https://pub.dev" - source: hosted - version: "10.12.0" - glob: - dependency: transitive - description: - name: glob - sha256: c3f1ee72c96f8f78935e18aa8cecced9ab132419e8625dc187e1c2408efc20de - url: "https://pub.dev" - source: hosted - version: "2.1.3" - google_fonts: - dependency: transitive - description: - name: google_fonts - sha256: "6996212014b996eaa17074e02b1b925b212f5e053832d9048970dc27255a8fb3" - url: "https://pub.dev" - source: hosted - version: "7.1.0" - hooks: - dependency: transitive - description: - name: hooks - sha256: "5d309c86e7ce34cd8e37aa71cb30cb652d3829b900ab145e4d9da564b31d59f7" - url: "https://pub.dev" - source: hosted - version: "1.0.0" - http: - dependency: transitive - description: - name: http - sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412" - url: "https://pub.dev" - source: hosted - version: "1.6.0" - http_parser: - dependency: transitive - description: - name: http_parser - sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571" - url: "https://pub.dev" - source: hosted - version: "4.1.2" - intl: - dependency: "direct main" - description: - name: intl - sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5" - url: "https://pub.dev" - source: hosted - version: "0.20.2" - krow_core: - dependency: "direct main" - description: - path: "../../../core" - relative: true - source: path - version: "0.0.1" - krow_data_connect: - dependency: "direct main" - description: - path: "../../../data_connect" - relative: true - source: path - version: "0.0.1" - krow_domain: - dependency: "direct main" - description: - path: "../../../domain" - relative: true - source: path - version: "0.0.1" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" - url: "https://pub.dev" - source: hosted - version: "11.0.2" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" - url: "https://pub.dev" - source: hosted - version: "3.0.10" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" - url: "https://pub.dev" - source: hosted - version: "3.0.2" - lints: - dependency: transitive - description: - name: lints - sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7 - url: "https://pub.dev" - source: hosted - version: "5.1.1" - logging: - dependency: transitive - description: - name: logging - sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 - url: "https://pub.dev" - source: hosted - version: "1.3.0" - lucide_icons: - dependency: transitive - description: - name: lucide_icons - sha256: ad24d0fd65707e48add30bebada7d90bff2a1bba0a72d6e9b19d44246b0e83c4 - url: "https://pub.dev" - source: hosted - version: "0.257.0" - matcher: - dependency: transitive - description: - name: matcher - sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 - url: "https://pub.dev" - source: hosted - version: "0.12.17" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec - url: "https://pub.dev" - source: hosted - version: "0.11.1" - meta: - dependency: transitive - description: - name: meta - sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394" - url: "https://pub.dev" - source: hosted - version: "1.17.0" - modular_core: - dependency: transitive - description: - name: modular_core - sha256: "1db0420a0dfb8a2c6dca846e7cbaa4ffeb778e247916dbcb27fb25aa566e5436" - url: "https://pub.dev" - source: hosted - version: "3.4.1" - native_toolchain_c: - dependency: transitive - description: - name: native_toolchain_c - sha256: "89e83885ba09da5fdf2cdacc8002a712ca238c28b7f717910b34bcd27b0d03ac" - url: "https://pub.dev" - source: hosted - version: "0.17.4" - nested: - dependency: transitive - description: - name: nested - sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20" - url: "https://pub.dev" - source: hosted - version: "1.0.0" - objective_c: - dependency: transitive - description: - name: objective_c - sha256: "7fd0c4d8ac8980011753b9bdaed2bf15111365924cdeeeaeb596214ea2b03537" - url: "https://pub.dev" - source: hosted - version: "9.2.4" - path: - dependency: transitive - description: - name: path - sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" - url: "https://pub.dev" - source: hosted - version: "1.9.1" - path_provider: - dependency: transitive - description: - name: path_provider - sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd" - url: "https://pub.dev" - source: hosted - version: "2.1.5" - path_provider_android: - dependency: transitive - description: - name: path_provider_android - sha256: f2c65e21139ce2c3dad46922be8272bb5963516045659e71bb16e151c93b580e - url: "https://pub.dev" - source: hosted - version: "2.2.22" - path_provider_foundation: - dependency: transitive - description: - name: path_provider_foundation - sha256: "2a376b7d6392d80cd3705782d2caa734ca4727776db0b6ec36ef3f1855197699" - url: "https://pub.dev" - source: hosted - version: "2.6.0" - path_provider_linux: - dependency: transitive - description: - name: path_provider_linux - sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 - url: "https://pub.dev" - source: hosted - version: "2.2.1" - path_provider_platform_interface: - dependency: transitive - description: - name: path_provider_platform_interface - sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - path_provider_windows: - dependency: transitive - description: - name: path_provider_windows - sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 - url: "https://pub.dev" - source: hosted - version: "2.3.0" - platform: - dependency: transitive - description: - name: platform - sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" - url: "https://pub.dev" - source: hosted - version: "3.1.6" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" - url: "https://pub.dev" - source: hosted - version: "2.1.8" - provider: - dependency: transitive - description: - name: provider - sha256: "4e82183fa20e5ca25703ead7e05de9e4cceed1fbd1eadc1ac3cb6f565a09f272" - url: "https://pub.dev" - source: hosted - version: "6.1.5+1" - pub_semver: - dependency: transitive - description: - name: pub_semver - sha256: "5bfcf68ca79ef689f8990d1160781b4bad40a3bd5e5218ad4076ddb7f4081585" - url: "https://pub.dev" - source: hosted - version: "2.2.0" - result_dart: - dependency: transitive - description: - name: result_dart - sha256: "0666b21fbdf697b3bdd9986348a380aa204b3ebe7c146d8e4cdaa7ce735e6054" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - shared_preferences: - dependency: transitive - description: - name: shared_preferences - sha256: "2939ae520c9024cb197fc20dee269cd8cdbf564c8b5746374ec6cacdc5169e64" - url: "https://pub.dev" - source: hosted - version: "2.5.4" - shared_preferences_android: - dependency: transitive - description: - name: shared_preferences_android - sha256: "83af5c682796c0f7719c2bbf74792d113e40ae97981b8f266fa84574573556bc" - url: "https://pub.dev" - source: hosted - version: "2.4.18" - shared_preferences_foundation: - dependency: transitive - description: - name: shared_preferences_foundation - sha256: "4e7eaffc2b17ba398759f1151415869a34771ba11ebbccd1b0145472a619a64f" - url: "https://pub.dev" - source: hosted - version: "2.5.6" - shared_preferences_linux: - dependency: transitive - description: - name: shared_preferences_linux - sha256: "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - shared_preferences_platform_interface: - dependency: transitive - description: - name: shared_preferences_platform_interface - sha256: "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - shared_preferences_web: - dependency: transitive - description: - name: shared_preferences_web - sha256: c49bd060261c9a3f0ff445892695d6212ff603ef3115edbb448509d407600019 - url: "https://pub.dev" - source: hosted - version: "2.4.3" - shared_preferences_windows: - dependency: transitive - description: - name: shared_preferences_windows - sha256: "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - slang: - dependency: transitive - description: - name: slang - sha256: "13e3b6f07adc51ab751e7889647774d294cbce7a3382f81d9e5029acfe9c37b2" - url: "https://pub.dev" - source: hosted - version: "4.12.0" - slang_flutter: - dependency: transitive - description: - name: slang_flutter - sha256: "0a4545cca5404d6b7487cf61cf1fe56c52daeb08de56a7574ee8381fbad035a0" - url: "https://pub.dev" - source: hosted - version: "4.12.0" - source_span: - dependency: transitive - description: - name: source_span - sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" - url: "https://pub.dev" - source: hosted - version: "1.10.1" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" - url: "https://pub.dev" - source: hosted - version: "1.12.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" - url: "https://pub.dev" - source: hosted - version: "1.4.1" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" - url: "https://pub.dev" - source: hosted - version: "1.2.2" - test_api: - dependency: transitive - description: - name: test_api - sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55 - url: "https://pub.dev" - source: hosted - version: "0.7.7" - typed_data: - dependency: transitive - description: - name: typed_data - sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 - url: "https://pub.dev" - source: hosted - version: "1.4.0" - uuid: - dependency: transitive - description: - name: uuid - sha256: a11b666489b1954e01d992f3d601b1804a33937b5a8fe677bd26b8a9f96f96e8 - url: "https://pub.dev" - source: hosted - version: "4.5.2" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b - url: "https://pub.dev" - source: hosted - version: "2.2.0" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60" - url: "https://pub.dev" - source: hosted - version: "15.0.2" - watcher: - dependency: transitive - description: - name: watcher - sha256: "1398c9f081a753f9226febe8900fce8f7d0a67163334e1c94a2438339d79d635" - url: "https://pub.dev" - source: hosted - version: "1.2.1" - web: - dependency: transitive - description: - name: web - sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a" - url: "https://pub.dev" - source: hosted - version: "1.1.1" - xdg_directories: - dependency: transitive - description: - name: xdg_directories - sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - yaml: - dependency: transitive - description: - name: yaml - sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce - url: "https://pub.dev" - source: hosted - version: "3.1.3" -sdks: - dart: ">=3.10.7 <4.0.0" - flutter: ">=3.38.4" diff --git a/apps/mobile/packages/features/client/client_coverage/pubspec.yaml b/apps/mobile/packages/features/client/client_coverage/pubspec.yaml index 35422870..107ef9bf 100644 --- a/apps/mobile/packages/features/client/client_coverage/pubspec.yaml +++ b/apps/mobile/packages/features/client/client_coverage/pubspec.yaml @@ -1,7 +1,8 @@ name: client_coverage description: Client coverage feature for tracking daily shift coverage and worker status -version: 1.0.0 +version: 0.0.1 publish_to: none +resolution: workspace environment: sdk: ^3.6.0 @@ -26,9 +27,10 @@ dependencies: flutter_modular: ^6.3.4 flutter_bloc: ^8.1.6 equatable: ^2.0.7 - intl: ^0.20.1 + intl: ^0.20.0 + firebase_data_connect: ^0.2.2+1 dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^5.0.0 + flutter_lints: ^6.0.0 diff --git a/apps/mobile/packages/features/client/client_main/lib/src/presentation/pages/client_main_page.dart b/apps/mobile/packages/features/client/client_main/lib/src/presentation/pages/client_main_page.dart index 1429a78f..b01d1c9b 100644 --- a/apps/mobile/packages/features/client/client_main/lib/src/presentation/pages/client_main_page.dart +++ b/apps/mobile/packages/features/client/client_main/lib/src/presentation/pages/client_main_page.dart @@ -30,7 +30,7 @@ class ClientMainPage extends StatelessWidget { BlocProvider.of(context).navigateToTab(index); }, ); - }, + }, ), ), ); diff --git a/apps/mobile/packages/features/client/client_main/lib/src/presentation/widgets/client_main_bottom_bar.dart b/apps/mobile/packages/features/client/client_main/lib/src/presentation/widgets/client_main_bottom_bar.dart index e59987cf..d7d18428 100644 --- a/apps/mobile/packages/features/client/client_main/lib/src/presentation/widgets/client_main_bottom_bar.dart +++ b/apps/mobile/packages/features/client/client_main/lib/src/presentation/widgets/client_main_bottom_bar.dart @@ -99,13 +99,6 @@ class ClientMainBottomBar extends StatelessWidget { activeColor: activeColor, inactiveColor: inactiveColor, ), - _buildNavItem( - index: 4, - icon: UiIcons.chart, - label: t.client_main.tabs.reports, - activeColor: activeColor, - inactiveColor: inactiveColor, - ), ], ), ), diff --git a/apps/mobile/packages/features/client/create_order/lib/src/data/repositories_impl/client_create_order_repository_impl.dart b/apps/mobile/packages/features/client/create_order/lib/src/data/repositories_impl/client_create_order_repository_impl.dart index 0318b8b7..25b962a4 100644 --- a/apps/mobile/packages/features/client/create_order/lib/src/data/repositories_impl/client_create_order_repository_impl.dart +++ b/apps/mobile/packages/features/client/create_order/lib/src/data/repositories_impl/client_create_order_repository_impl.dart @@ -27,26 +27,28 @@ class ClientCreateOrderRepositoryImpl @override Future> getOrderTypes() { return Future.value(const [ - domain.OrderType( - id: 'rapid', - titleKey: 'client_create_order.types.rapid', - descriptionKey: 'client_create_order.types.rapid_desc', - ), domain.OrderType( id: 'one-time', titleKey: 'client_create_order.types.one_time', descriptionKey: 'client_create_order.types.one_time_desc', ), - domain.OrderType( - id: 'recurring', - titleKey: 'client_create_order.types.recurring', - descriptionKey: 'client_create_order.types.recurring_desc', - ), - domain.OrderType( - id: 'permanent', - titleKey: 'client_create_order.types.permanent', - descriptionKey: 'client_create_order.types.permanent_desc', - ), + + /// TODO: FEATURE_NOT_YET_IMPLEMENTED + // domain.OrderType( + // id: 'rapid', + // titleKey: 'client_create_order.types.rapid', + // descriptionKey: 'client_create_order.types.rapid_desc', + // ), + // domain.OrderType( + // id: 'recurring', + // titleKey: 'client_create_order.types.recurring', + // descriptionKey: 'client_create_order.types.recurring_desc', + // ), + // domain.OrderType( + // id: 'permanent', + // titleKey: 'client_create_order.types.permanent', + // descriptionKey: 'client_create_order.types.permanent_desc', + // ), ]); } @@ -61,12 +63,25 @@ class ClientCreateOrderRepositoryImpl if (vendorId == null || vendorId.isEmpty) { throw Exception('Vendor is missing.'); } + final domain.OneTimeOrderHubDetails? hub = order.hub; + if (hub == null || hub.id.isEmpty) { + throw Exception('Hub is missing.'); + } - final fdc.Timestamp orderTimestamp = _toTimestamp(order.date); + final DateTime orderDateOnly = DateTime( + order.date.year, + order.date.month, + order.date.day, + ); + final fdc.Timestamp orderTimestamp = _toTimestamp(orderDateOnly); final fdc.OperationResult orderResult = await _dataConnect - .createOrder(businessId: businessId, orderType: dc.OrderType.ONE_TIME) + .createOrder( + businessId: businessId, + orderType: dc.OrderType.ONE_TIME, + teamHubId: hub.id, + ) .vendorId(vendorId) - .location(order.location) + .eventName(order.eventName) .status(dc.OrderStatus.POSTED) .date(orderTimestamp) .execute(); @@ -86,8 +101,15 @@ class ClientCreateOrderRepositoryImpl final fdc.OperationResult shiftResult = await _dataConnect .createShift(title: shiftTitle, orderId: orderId) .date(orderTimestamp) - .location(order.location) - .locationAddress(order.location) + .location(hub.name) + .locationAddress(hub.address) + .latitude(hub.latitude) + .longitude(hub.longitude) + .placeId(hub.placeId) + .city(hub.city) + .state(hub.state) + .street(hub.street) + .country(hub.country) .status(dc.ShiftStatus.PENDING) .workersNeeded(workersNeeded) .filled(0) @@ -109,6 +131,10 @@ class ClientCreateOrderRepositoryImpl final double rate = order.roleRates[position.role] ?? 0; final double totalValue = rate * hours * position.count; + print( + 'CreateOneTimeOrder shiftRole: start=${start.toIso8601String()} end=${normalizedEnd.toIso8601String()}', + ); + await _dataConnect .createShiftRole( shiftId: shiftId, @@ -124,7 +150,7 @@ class ClientCreateOrderRepositoryImpl } await _dataConnect - .updateOrder(id: orderId) + .updateOrder(id: orderId, teamHubId: hub.id) .shifts(fdc.AnyValue([shiftId])) .execute(); } diff --git a/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_bloc.dart b/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_bloc.dart index 20d7fea4..65822ff3 100644 --- a/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_bloc.dart +++ b/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_bloc.dart @@ -13,14 +13,17 @@ class OneTimeOrderBloc extends Bloc { : super(OneTimeOrderState.initial()) { on(_onVendorsLoaded); on(_onVendorChanged); + on(_onHubsLoaded); + on(_onHubChanged); + on(_onEventNameChanged); on(_onDateChanged); - on(_onLocationChanged); on(_onPositionAdded); on(_onPositionRemoved); on(_onPositionUpdated); on(_onSubmitted); _loadVendors(); + _loadHubs(); } final CreateOneTimeOrderUseCase _createOneTimeOrderUseCase; final dc.ExampleConnector _dataConnect; @@ -63,6 +66,38 @@ class OneTimeOrderBloc extends Bloc { } } + Future _loadHubs() async { + try { + final String? businessId = dc.ClientSessionStore.instance.session?.business?.id; + if (businessId == null || businessId.isEmpty) { + add(const OneTimeOrderHubsLoaded([])); + return; + } + final QueryResult + result = await _dataConnect.listTeamHubsByOwnerId(ownerId: businessId).execute(); + final List hubs = result.data.teamHubs + .map( + (dc.ListTeamHubsByOwnerIdTeamHubs hub) => OneTimeOrderHubOption( + id: hub.id, + name: hub.hubName, + address: hub.address, + placeId: hub.placeId, + latitude: hub.latitude, + longitude: hub.longitude, + city: hub.city, + state: hub.state, + street: hub.street, + country: hub.country, + zipCode: hub.zipCode, + ), + ) + .toList(); + add(OneTimeOrderHubsLoaded(hubs)); + } catch (_) { + add(const OneTimeOrderHubsLoaded([])); + } + } + void _onVendorsLoaded( OneTimeOrderVendorsLoaded event, Emitter emit, @@ -88,6 +123,40 @@ class OneTimeOrderBloc extends Bloc { _loadRolesForVendor(event.vendor.id); } + void _onHubsLoaded( + OneTimeOrderHubsLoaded event, + Emitter emit, + ) { + final OneTimeOrderHubOption? selectedHub = + event.hubs.isNotEmpty ? event.hubs.first : null; + emit( + state.copyWith( + hubs: event.hubs, + selectedHub: selectedHub, + location: selectedHub?.name ?? '', + ), + ); + } + + void _onHubChanged( + OneTimeOrderHubChanged event, + Emitter emit, + ) { + emit( + state.copyWith( + selectedHub: event.hub, + location: event.hub.name, + ), + ); + } + + void _onEventNameChanged( + OneTimeOrderEventNameChanged event, + Emitter emit, + ) { + emit(state.copyWith(eventName: event.eventName)); + } + void _onDateChanged( OneTimeOrderDateChanged event, Emitter emit, @@ -95,13 +164,6 @@ class OneTimeOrderBloc extends Bloc { emit(state.copyWith(date: event.date)); } - void _onLocationChanged( - OneTimeOrderLocationChanged event, - Emitter emit, - ) { - emit(state.copyWith(location: event.location)); - } - void _onPositionAdded( OneTimeOrderPositionAdded event, Emitter emit, @@ -149,10 +211,28 @@ class OneTimeOrderBloc extends Bloc { final Map roleRates = { for (final OneTimeOrderRoleOption role in state.roles) role.id: role.costPerHour, }; + final OneTimeOrderHubOption? selectedHub = state.selectedHub; + if (selectedHub == null) { + throw Exception('Hub is missing.'); + } final OneTimeOrder order = OneTimeOrder( date: state.date, - location: state.location, + location: selectedHub.name, positions: state.positions, + hub: OneTimeOrderHubDetails( + id: selectedHub.id, + name: selectedHub.name, + address: selectedHub.address, + placeId: selectedHub.placeId, + latitude: selectedHub.latitude, + longitude: selectedHub.longitude, + city: selectedHub.city, + state: selectedHub.state, + street: selectedHub.street, + country: selectedHub.country, + zipCode: selectedHub.zipCode, + ), + eventName: state.eventName, vendorId: state.selectedVendor?.id, roleRates: roleRates, ); diff --git a/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_event.dart b/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_event.dart index ec9d4fcd..7258c2d0 100644 --- a/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_event.dart +++ b/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_event.dart @@ -1,5 +1,6 @@ import 'package:equatable/equatable.dart'; import 'package:krow_domain/krow_domain.dart'; +import 'one_time_order_state.dart'; abstract class OneTimeOrderEvent extends Equatable { const OneTimeOrderEvent(); @@ -24,6 +25,30 @@ class OneTimeOrderVendorChanged extends OneTimeOrderEvent { List get props => [vendor]; } +class OneTimeOrderHubsLoaded extends OneTimeOrderEvent { + const OneTimeOrderHubsLoaded(this.hubs); + final List hubs; + + @override + List get props => [hubs]; +} + +class OneTimeOrderHubChanged extends OneTimeOrderEvent { + const OneTimeOrderHubChanged(this.hub); + final OneTimeOrderHubOption hub; + + @override + List get props => [hub]; +} + +class OneTimeOrderEventNameChanged extends OneTimeOrderEvent { + const OneTimeOrderEventNameChanged(this.eventName); + final String eventName; + + @override + List get props => [eventName]; +} + class OneTimeOrderDateChanged extends OneTimeOrderEvent { const OneTimeOrderDateChanged(this.date); final DateTime date; @@ -32,14 +57,6 @@ class OneTimeOrderDateChanged extends OneTimeOrderEvent { List get props => [date]; } -class OneTimeOrderLocationChanged extends OneTimeOrderEvent { - const OneTimeOrderLocationChanged(this.location); - final String location; - - @override - List get props => [location]; -} - class OneTimeOrderPositionAdded extends OneTimeOrderEvent { const OneTimeOrderPositionAdded(); } diff --git a/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_state.dart b/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_state.dart index a6d7a06d..872723bc 100644 --- a/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_state.dart +++ b/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_state.dart @@ -7,11 +7,14 @@ class OneTimeOrderState extends Equatable { const OneTimeOrderState({ required this.date, required this.location, + required this.eventName, required this.positions, this.status = OneTimeOrderStatus.initial, this.errorMessage, this.vendors = const [], this.selectedVendor, + this.hubs = const [], + this.selectedHub, this.roles = const [], }); @@ -19,40 +22,51 @@ class OneTimeOrderState extends Equatable { return OneTimeOrderState( date: DateTime.now(), location: '', + eventName: '', positions: const [ OneTimeOrderPosition(role: '', count: 1, startTime: '', endTime: ''), ], vendors: const [], + hubs: const [], roles: const [], ); } final DateTime date; final String location; + final String eventName; final List positions; final OneTimeOrderStatus status; final String? errorMessage; final List vendors; final Vendor? selectedVendor; + final List hubs; + final OneTimeOrderHubOption? selectedHub; final List roles; OneTimeOrderState copyWith({ DateTime? date, String? location, + String? eventName, List? positions, OneTimeOrderStatus? status, String? errorMessage, List? vendors, Vendor? selectedVendor, + List? hubs, + OneTimeOrderHubOption? selectedHub, List? roles, }) { return OneTimeOrderState( date: date ?? this.date, location: location ?? this.location, + eventName: eventName ?? this.eventName, positions: positions ?? this.positions, status: status ?? this.status, errorMessage: errorMessage ?? this.errorMessage, vendors: vendors ?? this.vendors, selectedVendor: selectedVendor ?? this.selectedVendor, + hubs: hubs ?? this.hubs, + selectedHub: selectedHub ?? this.selectedHub, roles: roles ?? this.roles, ); } @@ -61,15 +75,61 @@ class OneTimeOrderState extends Equatable { List get props => [ date, location, + eventName, positions, status, errorMessage, vendors, selectedVendor, + hubs, + selectedHub, roles, ]; } +class OneTimeOrderHubOption extends Equatable { + const OneTimeOrderHubOption({ + required this.id, + required this.name, + required this.address, + this.placeId, + this.latitude, + this.longitude, + this.city, + this.state, + this.street, + this.country, + this.zipCode, + }); + + final String id; + final String name; + final String address; + final String? placeId; + final double? latitude; + final double? longitude; + final String? city; + final String? state; + final String? street; + final String? country; + final String? zipCode; + + @override + List get props => [ + id, + name, + address, + placeId, + latitude, + longitude, + city, + state, + street, + country, + zipCode, + ]; +} + class OneTimeOrderRoleOption extends Equatable { const OneTimeOrderRoleOption({ required this.id, diff --git a/apps/mobile/packages/features/client/create_order/lib/src/presentation/widgets/one_time_order/one_time_order_event_name_input.dart b/apps/mobile/packages/features/client/create_order/lib/src/presentation/widgets/one_time_order/one_time_order_event_name_input.dart new file mode 100644 index 00000000..2fe608d0 --- /dev/null +++ b/apps/mobile/packages/features/client/create_order/lib/src/presentation/widgets/one_time_order/one_time_order_event_name_input.dart @@ -0,0 +1,56 @@ +import 'package:design_system/design_system.dart'; +import 'package:flutter/material.dart'; + +/// A text input for the order name in the one-time order form. +class OneTimeOrderEventNameInput extends StatefulWidget { + const OneTimeOrderEventNameInput({ + required this.label, + required this.value, + required this.onChanged, + super.key, + }); + + final String label; + final String value; + final ValueChanged onChanged; + + @override + State createState() => + _OneTimeOrderEventNameInputState(); +} + +class _OneTimeOrderEventNameInputState + extends State { + late final TextEditingController _controller; + + @override + void initState() { + super.initState(); + _controller = TextEditingController(text: widget.value); + } + + @override + void didUpdateWidget(OneTimeOrderEventNameInput oldWidget) { + super.didUpdateWidget(oldWidget); + if (widget.value != _controller.text) { + _controller.text = widget.value; + } + } + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return UiTextField( + label: widget.label, + controller: _controller, + onChanged: widget.onChanged, + hintText: 'Order name', + prefixIcon: UiIcons.briefcase, + ); + } +} diff --git a/apps/mobile/packages/features/client/create_order/lib/src/presentation/widgets/one_time_order/one_time_order_view.dart b/apps/mobile/packages/features/client/create_order/lib/src/presentation/widgets/one_time_order/one_time_order_view.dart index f2fba146..e36f6100 100644 --- a/apps/mobile/packages/features/client/create_order/lib/src/presentation/widgets/one_time_order/one_time_order_view.dart +++ b/apps/mobile/packages/features/client/create_order/lib/src/presentation/widgets/one_time_order/one_time_order_view.dart @@ -8,8 +8,8 @@ import '../../blocs/one_time_order_bloc.dart'; import '../../blocs/one_time_order_event.dart'; import '../../blocs/one_time_order_state.dart'; import 'one_time_order_date_picker.dart'; +import 'one_time_order_event_name_input.dart'; import 'one_time_order_header.dart'; -import 'one_time_order_location_input.dart'; import 'one_time_order_position_card.dart'; import 'one_time_order_section_header.dart'; import 'one_time_order_success_view.dart'; @@ -31,7 +31,12 @@ class OneTimeOrderView extends StatelessWidget { title: labels.success_title, message: labels.success_message, buttonLabel: labels.back_to_orders, - onDone: () => Modular.to.pop(), + onDone: () => Modular.to.navigate( + '/client-main/orders/', + arguments: { + 'initialDate': state.date.toIso8601String(), + }, + ), ); } @@ -129,6 +134,15 @@ class _OneTimeOrderForm extends StatelessWidget { ), const SizedBox(height: UiConstants.space4), + OneTimeOrderEventNameInput( + label: 'ORDER NAME', + value: state.eventName, + onChanged: (String value) => BlocProvider.of( + context, + ).add(OneTimeOrderEventNameChanged(value)), + ), + const SizedBox(height: UiConstants.space4), + // Vendor Selection Text('SELECT VENDOR', style: UiTypography.footnote2r.textSecondary), const SizedBox(height: 8), @@ -179,12 +193,43 @@ class _OneTimeOrderForm extends StatelessWidget { ), const SizedBox(height: UiConstants.space4), - OneTimeOrderLocationInput( - label: labels.location_label, - value: state.location, - onChanged: (String location) => BlocProvider.of( - context, - ).add(OneTimeOrderLocationChanged(location)), + Text('HUB', style: UiTypography.footnote2r.textSecondary), + const SizedBox(height: 8), + Container( + padding: const EdgeInsets.symmetric(horizontal: UiConstants.space3), + height: 48, + decoration: BoxDecoration( + color: UiColors.white, + borderRadius: UiConstants.radiusMd, + border: Border.all(color: UiColors.border), + ), + child: DropdownButtonHideUnderline( + child: DropdownButton( + isExpanded: true, + value: state.selectedHub, + icon: const Icon( + UiIcons.chevronDown, + size: 18, + color: UiColors.iconSecondary, + ), + onChanged: (OneTimeOrderHubOption? hub) { + if (hub != null) { + BlocProvider.of( + context, + ).add(OneTimeOrderHubChanged(hub)); + } + }, + items: state.hubs.map((OneTimeOrderHubOption hub) { + return DropdownMenuItem( + value: hub, + child: Text( + hub.name, + style: UiTypography.body2m.textPrimary, + ), + ); + }).toList(), + ), + ), ), const SizedBox(height: UiConstants.space6), diff --git a/apps/mobile/packages/features/client/create_order/pubspec.yaml b/apps/mobile/packages/features/client/create_order/pubspec.yaml index bf4c9bc4..b1091732 100644 --- a/apps/mobile/packages/features/client/create_order/pubspec.yaml +++ b/apps/mobile/packages/features/client/create_order/pubspec.yaml @@ -25,6 +25,7 @@ dependencies: krow_data_connect: path: ../../../data_connect firebase_data_connect: ^0.2.2+2 + firebase_auth: ^6.1.4 dev_dependencies: flutter_test: diff --git a/apps/mobile/packages/features/client/home/lib/client_home.dart b/apps/mobile/packages/features/client/home/lib/client_home.dart index 5f75c860..ce9dfa18 100644 --- a/apps/mobile/packages/features/client/home/lib/client_home.dart +++ b/apps/mobile/packages/features/client/home/lib/client_home.dart @@ -1,5 +1,3 @@ -library client_home; - import 'package:flutter_modular/flutter_modular.dart'; import 'package:krow_data_connect/krow_data_connect.dart'; import 'src/data/repositories_impl/home_repository_impl.dart'; diff --git a/apps/mobile/packages/features/client/home/lib/src/data/repositories_impl/home_repository_impl.dart b/apps/mobile/packages/features/client/home/lib/src/data/repositories_impl/home_repository_impl.dart index 19b08b29..7c014fc2 100644 --- a/apps/mobile/packages/features/client/home/lib/src/data/repositories_impl/home_repository_impl.dart +++ b/apps/mobile/packages/features/client/home/lib/src/data/repositories_impl/home_repository_impl.dart @@ -89,6 +89,14 @@ class HomeRepositoryImpl implements HomeRepositoryInterface { end: _toTimestamp(end), ) .execute(); + print( + 'Home coverage: businessId=$businessId ' + 'startLocal=${start.toIso8601String()} ' + 'endLocal=${end.toIso8601String()} ' + 'startUtc=${_toTimestamp(start).toJson()} ' + 'endUtc=${_toTimestamp(end).toJson()} ' + 'shiftRoles=${result.data.shiftRoles.length}', + ); int totalNeeded = 0; int totalFilled = 0; @@ -169,7 +177,8 @@ class HomeRepositoryImpl implements HomeRepositoryInterface { } fdc.Timestamp _toTimestamp(DateTime date) { - final int millis = date.millisecondsSinceEpoch; + final DateTime utc = date.toUtc(); + final int millis = utc.millisecondsSinceEpoch; final int seconds = millis ~/ 1000; final int nanos = (millis % 1000) * 1000000; return fdc.Timestamp(nanos, seconds); diff --git a/apps/mobile/packages/features/client/home/lib/src/presentation/blocs/client_home_bloc.dart b/apps/mobile/packages/features/client/home/lib/src/presentation/blocs/client_home_bloc.dart index 23ff6846..24e96bb3 100644 --- a/apps/mobile/packages/features/client/home/lib/src/presentation/blocs/client_home_bloc.dart +++ b/apps/mobile/packages/features/client/home/lib/src/presentation/blocs/client_home_bloc.dart @@ -26,6 +26,8 @@ class ClientHomeBloc extends Bloc { on(_onWidgetVisibilityToggled); on(_onWidgetReordered); on(_onLayoutReset); + + add(ClientHomeStarted()); } Future _onStarted( diff --git a/apps/mobile/packages/features/client/home/lib/src/presentation/blocs/client_home_state.dart b/apps/mobile/packages/features/client/home/lib/src/presentation/blocs/client_home_state.dart index f92cc85d..e86bd5f7 100644 --- a/apps/mobile/packages/features/client/home/lib/src/presentation/blocs/client_home_state.dart +++ b/apps/mobile/packages/features/client/home/lib/src/presentation/blocs/client_home_state.dart @@ -35,12 +35,12 @@ class ClientHomeState extends Equatable { this.isEditMode = false, this.errorMessage, this.dashboardData = const HomeDashboardData( - weeklySpending: 4250.0, - next7DaysSpending: 6100.0, - weeklyShifts: 12, - next7DaysScheduled: 18, - totalNeeded: 10, - totalFilled: 8, + weeklySpending: 0.0, + next7DaysSpending: 0.0, + weeklyShifts: 0, + next7DaysScheduled: 0, + totalNeeded: 0, + totalFilled: 0, ), this.reorderItems = const [], this.businessName = 'Your Company', diff --git a/apps/mobile/packages/features/client/home/lib/src/presentation/navigation/client_home_navigator.dart b/apps/mobile/packages/features/client/home/lib/src/presentation/navigation/client_home_navigator.dart index 1c421a36..afb166e3 100644 --- a/apps/mobile/packages/features/client/home/lib/src/presentation/navigation/client_home_navigator.dart +++ b/apps/mobile/packages/features/client/home/lib/src/presentation/navigation/client_home_navigator.dart @@ -34,10 +34,7 @@ class ClientHomeSheets { builder: (BuildContext context) { return ShiftOrderFormSheet( initialData: initialData, - onSubmit: (Map data) { - Navigator.pop(context); - onSubmit(data); - }, + onSubmit: onSubmit, ); }, ); diff --git a/apps/mobile/packages/features/client/home/lib/src/presentation/pages/client_home_page.dart b/apps/mobile/packages/features/client/home/lib/src/presentation/pages/client_home_page.dart index e4e30728..ee5a22b2 100644 --- a/apps/mobile/packages/features/client/home/lib/src/presentation/pages/client_home_page.dart +++ b/apps/mobile/packages/features/client/home/lib/src/presentation/pages/client_home_page.dart @@ -24,8 +24,7 @@ class ClientHomePage extends StatelessWidget { final TranslationsClientHomeEn i18n = t.client_home; return BlocProvider( - create: (BuildContext context) => - Modular.get()..add(ClientHomeStarted()), + create: (BuildContext context) => Modular.get(), child: Scaffold( body: SafeArea( child: Column( @@ -59,19 +58,15 @@ class ClientHomePage extends StatelessWidget { 100, ), onReorder: (int oldIndex, int newIndex) { - BlocProvider.of(context).add( - ClientHomeWidgetReordered(oldIndex, newIndex), - ); + BlocProvider.of( + context, + ).add(ClientHomeWidgetReordered(oldIndex, newIndex)); }, children: state.widgetOrder.map((String id) { return Container( - key: ValueKey(id), + key: ValueKey(id), margin: const EdgeInsets.only(bottom: UiConstants.space4), - child: DashboardWidgetBuilder( - id: id, - state: state, - isEditMode: true, - ), + child: DashboardWidgetBuilder(id: id, state: state, isEditMode: true), ); }).toList(), ); diff --git a/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/actions_widget.dart b/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/actions_widget.dart index eeebff38..4298a37d 100644 --- a/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/actions_widget.dart +++ b/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/actions_widget.dart @@ -24,21 +24,22 @@ class ActionsWidget extends StatelessWidget { return Row( children: [ - Expanded( - child: _ActionCard( - title: i18n.rapid, - subtitle: i18n.rapid_subtitle, - icon: UiIcons.zap, - color: const Color(0xFFFEF2F2), - borderColor: const Color(0xFFFECACA), - iconBgColor: const Color(0xFFFEE2E2), - iconColor: const Color(0xFFDC2626), - textColor: const Color(0xFF7F1D1D), - subtitleColor: const Color(0xFFB91C1C), - onTap: onRapidPressed, - ), - ), - const SizedBox(width: UiConstants.space2), + /// TODO: FEATURE_NOT_YET_IMPLEMENTED + // Expanded( + // child: _ActionCard( + // title: i18n.rapid, + // subtitle: i18n.rapid_subtitle, + // icon: UiIcons.zap, + // color: const Color(0xFFFEF2F2), + // borderColor: const Color(0xFFFECACA), + // iconBgColor: const Color(0xFFFEE2E2), + // iconColor: const Color(0xFFDC2626), + // textColor: const Color(0xFF7F1D1D), + // subtitleColor: const Color(0xFFB91C1C), + // onTap: onRapidPressed, + // ), + // ), + // const SizedBox(width: UiConstants.space2), Expanded( child: _ActionCard( title: i18n.create_order, diff --git a/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/coverage_dashboard.dart b/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/coverage_dashboard.dart index c40f0202..6bd4565d 100644 --- a/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/coverage_dashboard.dart +++ b/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/coverage_dashboard.dart @@ -25,11 +25,12 @@ class CoverageDashboard extends StatelessWidget { for (final s in shifts) { final int needed = s['workersNeeded'] as int? ?? 0; final int confirmed = s['filled'] as int? ?? 0; - final double rate = s['hourlyRate'] as double? ?? 20.0; + final double rate = s['hourlyRate'] as double? ?? 0.0; + final double hours = s['hours'] as double? ?? 0.0; totalNeeded += needed; totalConfirmed += confirmed; - todayCost += rate * 8 * confirmed; + todayCost += rate * hours; } final int coveragePercent = totalNeeded > 0 @@ -104,15 +105,13 @@ class CoverageDashboard extends StatelessWidget { icon: UiIcons.warning, isWarning: unfilledPositions > 0, ), - if (lateWorkersCount > 0) ...[ - const SizedBox(height: UiConstants.space2), - _StatusCard( - label: 'Running Late', - value: '$lateWorkersCount', - icon: UiIcons.error, - isError: true, - ), - ], + const SizedBox(height: UiConstants.space2), + _StatusCard( + label: 'Running Late', + value: '$lateWorkersCount', + icon: UiIcons.error, + isError: true, + ), ], ), ), @@ -122,7 +121,7 @@ class CoverageDashboard extends StatelessWidget { children: [ _StatusCard( label: 'Checked In', - value: '$checkedInCount/$totalConfirmed', + value: '$checkedInCount/$totalNeeded', icon: UiIcons.success, isInfo: true, ), diff --git a/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/coverage_widget.dart b/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/coverage_widget.dart index 9e812804..03ac041d 100644 --- a/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/coverage_widget.dart +++ b/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/coverage_widget.dart @@ -15,9 +15,9 @@ class CoverageWidget extends StatelessWidget { /// Creates a [CoverageWidget]. const CoverageWidget({ super.key, - this.totalNeeded = 10, - this.totalConfirmed = 8, - this.coveragePercent = 80, + this.totalNeeded = 0, + this.totalConfirmed = 0, + this.coveragePercent = 0, }); @override diff --git a/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/dashboard_widget_builder.dart b/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/dashboard_widget_builder.dart index 83a333d7..2fc51657 100644 --- a/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/dashboard_widget_builder.dart +++ b/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/dashboard_widget_builder.dart @@ -70,7 +70,21 @@ class DashboardWidgetBuilder extends StatelessWidget { context, data, onSubmit: (Map submittedData) { - // Handle form submission if needed + final String? dateStr = + submittedData['date']?.toString(); + if (dateStr == null || dateStr.isEmpty) { + return; + } + final DateTime? initialDate = DateTime.tryParse(dateStr); + if (initialDate == null) { + return; + } + Modular.to.navigate( + '/client-main/orders/', + arguments: { + 'initialDate': initialDate.toIso8601String(), + }, + ); }, ); }, diff --git a/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/live_activity_widget.dart b/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/live_activity_widget.dart index 1c91a655..7b442cf6 100644 --- a/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/live_activity_widget.dart +++ b/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/live_activity_widget.dart @@ -31,6 +31,15 @@ class _LiveActivityWidgetState extends State { final DateTime now = DateTime.now(); final DateTime start = DateTime(now.year, now.month, now.day); final DateTime end = DateTime(now.year, now.month, now.day, 23, 59, 59, 999); + final fdc.QueryResult shiftRolesResult = + await dc.ExampleConnector.instance + .listShiftRolesByBusinessAndDateRange( + businessId: businessId, + start: _toTimestamp(start), + end: _toTimestamp(end), + ) + .execute(); final fdc.QueryResult result = await dc.ExampleConnector.instance @@ -41,33 +50,20 @@ class _LiveActivityWidgetState extends State { ) .execute(); - if (result.data.applications.isEmpty) { + if (shiftRolesResult.data.shiftRoles.isEmpty && + result.data.applications.isEmpty) { return _LiveActivityData.empty(); } - final Map aggregates = - {}; - for (final dc.ListStaffsApplicationsByBusinessForDayApplications app - in result.data.applications) { - final String key = '${app.shiftId}:${app.roleId}'; - final _LiveShiftAggregate aggregate = aggregates[key] ?? - _LiveShiftAggregate( - workersNeeded: app.shiftRole.count, - assigned: app.shiftRole.assigned ?? 0, - cost: app.shiftRole.shift.cost ?? 0, - ); - aggregates[key] = aggregate; - } - int totalNeeded = 0; - int totalAssigned = 0; double totalCost = 0; - for (final _LiveShiftAggregate aggregate in aggregates.values) { - totalNeeded += aggregate.workersNeeded; - totalAssigned += aggregate.assigned; - totalCost += aggregate.cost; + for (final dc.ListShiftRolesByBusinessAndDateRangeShiftRoles shiftRole + in shiftRolesResult.data.shiftRoles) { + totalNeeded += shiftRole.count; + totalCost += shiftRole.totalValue ?? 0; } + final int totalAssigned = result.data.applications.length; int lateCount = 0; int checkedInCount = 0; for (final dc.ListStaffsApplicationsByBusinessForDayApplications app @@ -92,9 +88,10 @@ class _LiveActivityWidgetState extends State { } fdc.Timestamp _toTimestamp(DateTime dateTime) { - final int seconds = dateTime.millisecondsSinceEpoch ~/ 1000; + final DateTime utc = dateTime.toUtc(); + final int seconds = utc.millisecondsSinceEpoch ~/ 1000; final int nanoseconds = - (dateTime.millisecondsSinceEpoch % 1000) * 1000000; + (utc.millisecondsSinceEpoch % 1000) * 1000000; return fdc.Timestamp(nanoseconds, seconds); } @@ -136,9 +133,8 @@ class _LiveActivityWidgetState extends State { { 'workersNeeded': data.totalNeeded, 'filled': data.totalAssigned, - 'hourlyRate': data.totalAssigned == 0 - ? 0.0 - : data.totalCost / data.totalAssigned, + 'hourlyRate': 1.0, + 'hours': data.totalCost, 'status': 'OPEN', 'date': DateTime.now().toIso8601String().split('T')[0], }, @@ -192,15 +188,3 @@ class _LiveActivityData { ); } } - -class _LiveShiftAggregate { - _LiveShiftAggregate({ - required this.workersNeeded, - required this.assigned, - required this.cost, - }); - - final int workersNeeded; - final int assigned; - final double cost; -} diff --git a/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/shift_order_form_sheet.dart b/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/shift_order_form_sheet.dart index 7df94dfd..5fbb81f0 100644 --- a/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/shift_order_form_sheet.dart +++ b/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/shift_order_form_sheet.dart @@ -1,3 +1,4 @@ +import 'package:core_localization/core_localization.dart'; import 'package:design_system/design_system.dart'; import 'package:firebase_data_connect/firebase_data_connect.dart' as fdc; import 'package:flutter/material.dart'; @@ -52,6 +53,7 @@ class ShiftOrderFormSheet extends StatefulWidget { class _ShiftOrderFormSheetState extends State { late TextEditingController _dateController; late TextEditingController _globalLocationController; + late TextEditingController _orderNameController; late List> _positions; @@ -59,6 +61,10 @@ class _ShiftOrderFormSheetState extends State { List<_VendorOption> _vendors = const <_VendorOption>[]; List<_RoleOption> _roles = const <_RoleOption>[]; String? _selectedVendorId; + List _hubs = const []; + dc.ListTeamHubsByOwnerIdTeamHubs? _selectedHub; + bool _showSuccess = false; + Map? _submitData; @override void initState() { @@ -75,6 +81,9 @@ class _ShiftOrderFormSheetState extends State { widget.initialData?['locationAddress'] ?? '', ); + _orderNameController = TextEditingController( + text: widget.initialData?['eventName']?.toString() ?? '', + ); // Initialize positions _positions = >[ @@ -96,6 +105,7 @@ class _ShiftOrderFormSheetState extends State { ]; _loadVendors(); + _loadHubs(); _loadOrderDetails(); } @@ -103,6 +113,7 @@ class _ShiftOrderFormSheetState extends State { void dispose() { _dateController.dispose(); _globalLocationController.dispose(); + _orderNameController.dispose(); super.dispose(); } @@ -187,9 +198,14 @@ class _ShiftOrderFormSheetState extends State { if (businessId == null || businessId.isEmpty) { return; } + final dc.ListTeamHubsByOwnerIdTeamHubs? selectedHub = _selectedHub; + if (selectedHub == null) { + return; + } final DateTime date = DateTime.parse(_dateController.text); - final fdc.Timestamp orderTimestamp = _toTimestamp(date); + final DateTime dateOnly = DateTime.utc(date.year, date.month, date.day); + final fdc.Timestamp orderTimestamp = _toTimestamp(dateOnly); final dc.OrderType orderType = _orderTypeFromValue(widget.initialData?['type']?.toString()); @@ -198,9 +214,10 @@ class _ShiftOrderFormSheetState extends State { .createOrder( businessId: businessId, orderType: orderType, + teamHubId: selectedHub.id, ) .vendorId(_selectedVendorId) - .location(_globalLocationController.text) + .eventName(_orderNameController.text) .status(dc.OrderStatus.POSTED) .date(orderTimestamp) .execute(); @@ -222,8 +239,15 @@ class _ShiftOrderFormSheetState extends State { shiftResult = await _dataConnect .createShift(title: shiftTitle, orderId: orderId) .date(orderTimestamp) - .location(_globalLocationController.text) - .locationAddress(_globalLocationController.text) + .location(selectedHub.hubName) + .locationAddress(selectedHub.address) + .latitude(selectedHub.latitude) + .longitude(selectedHub.longitude) + .placeId(selectedHub.placeId) + .city(selectedHub.city) + .state(selectedHub.state) + .street(selectedHub.street) + .country(selectedHub.country) .status(dc.ShiftStatus.PENDING) .workersNeeded(workersNeeded) .filled(0) @@ -266,12 +290,17 @@ class _ShiftOrderFormSheetState extends State { } await _dataConnect - .updateOrder(id: orderId) + .updateOrder(id: orderId, teamHubId: selectedHub.id) .shifts(fdc.AnyValue([shiftId])) .execute(); - widget.onSubmit({ - 'orderId': orderId, + if (!mounted) return; + setState(() { + _submitData = { + 'orderId': orderId, + 'date': _dateController.text, + }; + _showSuccess = true; }); } @@ -306,6 +335,35 @@ class _ShiftOrderFormSheetState extends State { } } + Future _loadHubs() async { + final String? businessId = dc.ClientSessionStore.instance.session?.business?.id; + if (businessId == null || businessId.isEmpty) { + return; + } + + try { + final fdc.QueryResult< + dc.ListTeamHubsByOwnerIdData, + dc.ListTeamHubsByOwnerIdVariables> result = + await _dataConnect.listTeamHubsByOwnerId(ownerId: businessId).execute(); + final List hubs = result.data.teamHubs; + if (!mounted) return; + setState(() { + _hubs = hubs; + _selectedHub = hubs.isNotEmpty ? hubs.first : null; + if (_selectedHub != null) { + _globalLocationController.text = _selectedHub!.address; + } + }); + } catch (_) { + if (!mounted) return; + setState(() { + _hubs = const []; + _selectedHub = null; + }); + } + } + Future _loadRolesForVendor(String vendorId) async { try { final fdc.QueryResult @@ -357,10 +415,14 @@ class _ShiftOrderFormSheetState extends State { final dc.ListShiftRolesByBusinessAndOrderShiftRolesShift firstShift = shiftRoles.first.shift; - _globalLocationController.text = firstShift.order.location ?? - firstShift.locationAddress ?? - firstShift.location ?? - _globalLocationController.text; + final dc.ListShiftRolesByBusinessAndOrderShiftRolesShiftOrderTeamHub? + teamHub = firstShift.order.teamHub; + await _loadHubsAndSelect( + placeId: teamHub?.placeId, + hubName: teamHub?.hubName, + address: teamHub?.address, + ); + _orderNameController.text = firstShift.order.eventName ?? ''; final String? vendorId = firstShift.order.vendorId; if (mounted) { @@ -394,6 +456,70 @@ class _ShiftOrderFormSheetState extends State { } } + Future _loadHubsAndSelect({ + String? placeId, + String? hubName, + String? address, + }) async { + final String? businessId = dc.ClientSessionStore.instance.session?.business?.id; + if (businessId == null || businessId.isEmpty) { + return; + } + + try { + final fdc.QueryResult< + dc.ListTeamHubsByOwnerIdData, + dc.ListTeamHubsByOwnerIdVariables> result = + await _dataConnect.listTeamHubsByOwnerId(ownerId: businessId).execute(); + final List hubs = result.data.teamHubs; + dc.ListTeamHubsByOwnerIdTeamHubs? selected; + + if (placeId != null && placeId.isNotEmpty) { + for (final dc.ListTeamHubsByOwnerIdTeamHubs hub in hubs) { + if (hub.placeId == placeId) { + selected = hub; + break; + } + } + } + + if (selected == null && hubName != null && hubName.isNotEmpty) { + for (final dc.ListTeamHubsByOwnerIdTeamHubs hub in hubs) { + if (hub.hubName == hubName) { + selected = hub; + break; + } + } + } + + if (selected == null && address != null && address.isNotEmpty) { + for (final dc.ListTeamHubsByOwnerIdTeamHubs hub in hubs) { + if (hub.address == address) { + selected = hub; + break; + } + } + } + + selected ??= hubs.isNotEmpty ? hubs.first : null; + + if (!mounted) return; + setState(() { + _hubs = hubs; + _selectedHub = selected; + if (selected != null) { + _globalLocationController.text = selected.address; + } + }); + } catch (_) { + if (!mounted) return; + setState(() { + _hubs = const []; + _selectedHub = null; + }); + } + } + String _formatTimeForField(fdc.Timestamp? value) { if (value == null) return ''; try { @@ -472,7 +598,8 @@ class _ShiftOrderFormSheetState extends State { } fdc.Timestamp _toTimestamp(DateTime date) { - final int millis = date.millisecondsSinceEpoch; + final DateTime utc = date.toUtc(); + final int millis = utc.millisecondsSinceEpoch; final int seconds = millis ~/ 1000; final int nanos = (millis % 1000) * 1000000; return fdc.Timestamp(nanos, seconds); @@ -480,6 +607,16 @@ class _ShiftOrderFormSheetState extends State { @override Widget build(BuildContext context) { + if (_showSuccess) { + final TranslationsClientCreateOrderOneTimeEn labels = + t.client_create_order.one_time; + return _buildSuccessView( + title: labels.success_title, + message: labels.success_message, + buttonLabel: labels.back_to_orders, + ); + } + return Container( height: MediaQuery.of(context).size.height * 0.95, decoration: const BoxDecoration( @@ -546,12 +683,16 @@ class _ShiftOrderFormSheetState extends State { _buildVendorDropdown(), const SizedBox(height: UiConstants.space4), + _buildSectionHeader('ORDER NAME'), + _buildOrderNameField(), + const SizedBox(height: UiConstants.space4), + _buildSectionHeader('DATE'), _buildDateField(), const SizedBox(height: UiConstants.space4), - _buildSectionHeader('LOCATION'), - _buildLocationField(), + _buildSectionHeader('HUB'), + _buildHubField(), const SizedBox(height: UiConstants.space5), Row( @@ -783,7 +924,7 @@ class _ShiftOrderFormSheetState extends State { ); } - Widget _buildLocationField() { + Widget _buildHubField() { return Container( padding: const EdgeInsets.symmetric(horizontal: UiConstants.space3), decoration: BoxDecoration( @@ -791,21 +932,52 @@ class _ShiftOrderFormSheetState extends State { borderRadius: UiConstants.radiusMd, border: Border.all(color: UiColors.border), ), - child: Row( - children: [ - const Icon(UiIcons.mapPin, size: 20, color: UiColors.iconSecondary), - const SizedBox(width: UiConstants.space2), - Expanded( - child: TextField( - controller: _globalLocationController, - decoration: const InputDecoration( - hintText: 'Enter location address', - border: InputBorder.none, - ), - style: UiTypography.body2r.textPrimary, - ), + child: DropdownButtonHideUnderline( + child: DropdownButton( + isExpanded: true, + value: _selectedHub, + icon: const Icon( + UiIcons.chevronDown, + size: 18, + color: UiColors.iconSecondary, ), - ], + onChanged: (dc.ListTeamHubsByOwnerIdTeamHubs? hub) { + if (hub != null) { + setState(() { + _selectedHub = hub; + _globalLocationController.text = hub.address; + }); + } + }, + items: _hubs.map((dc.ListTeamHubsByOwnerIdTeamHubs hub) { + return DropdownMenuItem( + value: hub, + child: Text( + hub.hubName, + style: UiTypography.body2r.textPrimary, + ), + ); + }).toList(), + ), + ), + ); + } + + Widget _buildOrderNameField() { + return Container( + padding: const EdgeInsets.symmetric(horizontal: UiConstants.space3), + decoration: BoxDecoration( + color: UiColors.white, + borderRadius: UiConstants.radiusMd, + border: Border.all(color: UiColors.border), + ), + child: TextField( + controller: _orderNameController, + decoration: const InputDecoration( + hintText: 'Order name', + border: InputBorder.none, + ), + style: UiTypography.body2r.textPrimary, ), ); } @@ -1109,6 +1281,90 @@ class _ShiftOrderFormSheetState extends State { ); } + Widget _buildSuccessView({ + required String title, + required String message, + required String buttonLabel, + }) { + return Container( + width: double.infinity, + height: MediaQuery.of(context).size.height * 0.95, + decoration: const BoxDecoration( + gradient: LinearGradient( + begin: Alignment.topCenter, + end: Alignment.bottomCenter, + colors: [UiColors.primary, UiColors.buttonPrimaryHover], + ), + borderRadius: BorderRadius.vertical(top: Radius.circular(24)), + ), + child: SafeArea( + child: Center( + child: Container( + margin: const EdgeInsets.symmetric(horizontal: 40), + padding: const EdgeInsets.all(UiConstants.space8), + decoration: BoxDecoration( + color: UiColors.white, + borderRadius: UiConstants.radiusLg * 1.5, + boxShadow: [ + BoxShadow( + color: Colors.black.withValues(alpha: 0.2), + blurRadius: 20, + offset: const Offset(0, 10), + ), + ], + ), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Container( + width: 64, + height: 64, + decoration: const BoxDecoration( + color: UiColors.accent, + shape: BoxShape.circle, + ), + child: const Center( + child: Icon( + UiIcons.check, + color: UiColors.black, + size: 32, + ), + ), + ), + const SizedBox(height: UiConstants.space6), + Text( + title, + style: UiTypography.headline2m.textPrimary, + textAlign: TextAlign.center, + ), + const SizedBox(height: UiConstants.space3), + Text( + message, + textAlign: TextAlign.center, + style: UiTypography.body2r.textSecondary.copyWith( + height: 1.5, + ), + ), + const SizedBox(height: UiConstants.space8), + SizedBox( + width: double.infinity, + child: UiButton.primary( + text: buttonLabel, + onPressed: () { + widget.onSubmit(_submitData ?? {}); + Navigator.pop(context); + }, + size: UiButtonSize.large, + ), + ), + ], + ), + ), + ), + ), + ); + } + Widget _buildInlineTimeInput({ required String label, required String value, diff --git a/apps/mobile/packages/features/client/home/pubspec.yaml b/apps/mobile/packages/features/client/home/pubspec.yaml index 7566f837..e75de091 100644 --- a/apps/mobile/packages/features/client/home/pubspec.yaml +++ b/apps/mobile/packages/features/client/home/pubspec.yaml @@ -22,6 +22,7 @@ dependencies: core_localization: path: ../../../core_localization krow_domain: ^0.0.1 + krow_data_connect: ^0.0.1 dev_dependencies: flutter_test: diff --git a/apps/mobile/packages/features/client/hubs/lib/src/data/repositories_impl/hub_repository_impl.dart b/apps/mobile/packages/features/client/hubs/lib/src/data/repositories_impl/hub_repository_impl.dart index 190bc0ad..fdfec83d 100644 --- a/apps/mobile/packages/features/client/hubs/lib/src/data/repositories_impl/hub_repository_impl.dart +++ b/apps/mobile/packages/features/client/hubs/lib/src/data/repositories_impl/hub_repository_impl.dart @@ -1,9 +1,13 @@ +import 'dart:convert'; + import 'package:firebase_auth/firebase_auth.dart' as firebase; import 'package:firebase_data_connect/firebase_data_connect.dart'; +import 'package:http/http.dart' as http; import 'package:krow_data_connect/krow_data_connect.dart' as dc; import 'package:krow_domain/krow_domain.dart' as domain; import '../../domain/repositories/hub_repository_interface.dart'; +import '../../util/hubs_constants.dart'; /// Implementation of [HubRepositoryInterface] backed by Data Connect. class HubRepositoryImpl implements HubRepositoryInterface { @@ -27,10 +31,24 @@ class HubRepositoryImpl implements HubRepositoryInterface { Future createHub({ required String name, required String address, + String? placeId, + double? latitude, + double? longitude, + String? city, + String? state, + String? street, + String? country, + String? zipCode, }) async { final dc.GetBusinessesByUserIdBusinesses business = await _getBusinessForCurrentUser(); final String teamId = await _getOrCreateTeamId(business); - final String? city = business.city; + final _PlaceAddress? placeAddress = + placeId == null || placeId.isEmpty ? null : await _fetchPlaceAddress(placeId); + final String? cityValue = city ?? placeAddress?.city ?? business.city; + final String? stateValue = state ?? placeAddress?.state; + final String? streetValue = street ?? placeAddress?.street; + final String? countryValue = country ?? placeAddress?.country; + final String? zipCodeValue = zipCode ?? placeAddress?.zipCode; final OperationResult result = await _dataConnect .createTeamHub( @@ -38,7 +56,14 @@ class HubRepositoryImpl implements HubRepositoryInterface { hubName: name, address: address, ) - .city(city?.isNotEmpty == true ? city : '') + .placeId(placeId) + .latitude(latitude) + .longitude(longitude) + .city(cityValue?.isNotEmpty == true ? cityValue : '') + .state(stateValue) + .street(streetValue) + .country(countryValue) + .zipCode(zipCodeValue) .execute(); final String? createdId = result.data?.teamHub_insert.id; if (createdId == null) { @@ -69,6 +94,25 @@ class HubRepositoryImpl implements HubRepositoryInterface { @override Future deleteHub(String id) async { + final String? businessId = dc.ClientSessionStore.instance.session?.business?.id; + if (businessId == null || businessId.isEmpty) { + await _firebaseAuth.signOut(); + throw Exception('Business is missing. Please sign in again.'); + } + + final QueryResult< + dc.ListOrdersByBusinessAndTeamHubData, + dc.ListOrdersByBusinessAndTeamHubVariables> result = await _dataConnect + .listOrdersByBusinessAndTeamHub( + businessId: businessId, + teamHubId: id, + ) + .execute(); + + if (result.data.orders.isNotEmpty) { + throw Exception("Sorry this hub has orders, it can't be deleted."); + } + await _dataConnect.deleteTeamHub(id: id).execute(); } @@ -192,4 +236,99 @@ class HubRepositoryImpl implements HubRepositoryInterface { ) .toList(); } + + Future<_PlaceAddress?> _fetchPlaceAddress(String placeId) async { + final Uri uri = Uri.https( + 'maps.googleapis.com', + '/maps/api/place/details/json', + { + 'place_id': placeId, + 'fields': 'address_component', + 'key': HubsConstants.googlePlacesApiKey, + }, + ); + try { + final http.Response response = await http.get(uri); + if (response.statusCode != 200) { + return null; + } + + final Map payload = + json.decode(response.body) as Map; + if (payload['status'] != 'OK') { + return null; + } + + final Map? result = + payload['result'] as Map?; + final List? components = + result?['address_components'] as List?; + if (components == null || components.isEmpty) { + return null; + } + + String? streetNumber; + String? route; + String? city; + String? state; + String? country; + String? zipCode; + + for (final dynamic entry in components) { + final Map component = entry as Map; + final List types = component['types'] as List? ?? []; + final String? longName = component['long_name'] as String?; + final String? shortName = component['short_name'] as String?; + + if (types.contains('street_number')) { + streetNumber = longName; + } else if (types.contains('route')) { + route = longName; + } else if (types.contains('locality')) { + city = longName; + } else if (types.contains('postal_town')) { + city ??= longName; + } else if (types.contains('administrative_area_level_2')) { + city ??= longName; + } else if (types.contains('administrative_area_level_1')) { + state = shortName ?? longName; + } else if (types.contains('country')) { + country = shortName ?? longName; + } else if (types.contains('postal_code')) { + zipCode = longName; + } + } + + final String? streetValue = [streetNumber, route] + .where((String? value) => value != null && value!.isNotEmpty) + .join(' ') + .trim(); + + return _PlaceAddress( + street: streetValue?.isEmpty == true ? null : streetValue, + city: city, + state: state, + country: country, + zipCode: zipCode, + ); + } catch (_) { + return null; + } + } +} + +class _PlaceAddress { + const _PlaceAddress({ + this.street, + this.city, + this.state, + this.country, + this.zipCode, + }); + + final String? street; + final String? city; + final String? state; + final String? country; + final String? zipCode; } diff --git a/apps/mobile/packages/features/client/hubs/lib/src/domain/arguments/create_hub_arguments.dart b/apps/mobile/packages/features/client/hubs/lib/src/domain/arguments/create_hub_arguments.dart index a978f3a2..8518d9f0 100644 --- a/apps/mobile/packages/features/client/hubs/lib/src/domain/arguments/create_hub_arguments.dart +++ b/apps/mobile/packages/features/client/hubs/lib/src/domain/arguments/create_hub_arguments.dart @@ -10,11 +10,42 @@ class CreateHubArguments extends UseCaseArgument { /// The physical address of the hub. final String address; + final String? placeId; + final double? latitude; + final double? longitude; + final String? city; + final String? state; + final String? street; + final String? country; + final String? zipCode; + /// Creates a [CreateHubArguments] instance. /// /// Both [name] and [address] are required. - const CreateHubArguments({required this.name, required this.address}); + const CreateHubArguments({ + required this.name, + required this.address, + this.placeId, + this.latitude, + this.longitude, + this.city, + this.state, + this.street, + this.country, + this.zipCode, + }); @override - List get props => [name, address]; + List get props => [ + name, + address, + placeId, + latitude, + longitude, + city, + state, + street, + country, + zipCode, + ]; } diff --git a/apps/mobile/packages/features/client/hubs/lib/src/domain/repositories/hub_repository_interface.dart b/apps/mobile/packages/features/client/hubs/lib/src/domain/repositories/hub_repository_interface.dart index 5b03fced..5580e6e4 100644 --- a/apps/mobile/packages/features/client/hubs/lib/src/domain/repositories/hub_repository_interface.dart +++ b/apps/mobile/packages/features/client/hubs/lib/src/domain/repositories/hub_repository_interface.dart @@ -15,7 +15,18 @@ abstract interface class HubRepositoryInterface { /// /// Takes the [name] and [address] of the new hub. /// Returns the created [Hub] entity. - Future createHub({required String name, required String address}); + Future createHub({ + required String name, + required String address, + String? placeId, + double? latitude, + double? longitude, + String? city, + String? state, + String? street, + String? country, + String? zipCode, + }); /// Deletes a hub by its [id]. Future deleteHub(String id); diff --git a/apps/mobile/packages/features/client/hubs/lib/src/domain/usecases/create_hub_usecase.dart b/apps/mobile/packages/features/client/hubs/lib/src/domain/usecases/create_hub_usecase.dart index bbfc1403..50550bc1 100644 --- a/apps/mobile/packages/features/client/hubs/lib/src/domain/usecases/create_hub_usecase.dart +++ b/apps/mobile/packages/features/client/hubs/lib/src/domain/usecases/create_hub_usecase.dart @@ -21,6 +21,14 @@ class CreateHubUseCase implements UseCase { return _repository.createHub( name: arguments.name, address: arguments.address, + placeId: arguments.placeId, + latitude: arguments.latitude, + longitude: arguments.longitude, + city: arguments.city, + state: arguments.state, + street: arguments.street, + country: arguments.country, + zipCode: arguments.zipCode, ); } } diff --git a/apps/mobile/packages/features/client/hubs/lib/src/presentation/blocs/client_hubs_bloc.dart b/apps/mobile/packages/features/client/hubs/lib/src/presentation/blocs/client_hubs_bloc.dart index be1ecc42..2359f296 100644 --- a/apps/mobile/packages/features/client/hubs/lib/src/presentation/blocs/client_hubs_bloc.dart +++ b/apps/mobile/packages/features/client/hubs/lib/src/presentation/blocs/client_hubs_bloc.dart @@ -84,7 +84,18 @@ class ClientHubsBloc extends Bloc emit(state.copyWith(status: ClientHubsStatus.actionInProgress)); try { await _createHubUseCase( - CreateHubArguments(name: event.name, address: event.address), + CreateHubArguments( + name: event.name, + address: event.address, + placeId: event.placeId, + latitude: event.latitude, + longitude: event.longitude, + city: event.city, + state: event.state, + street: event.street, + country: event.country, + zipCode: event.zipCode, + ), ); final List hubs = await _getHubsUseCase(); emit( diff --git a/apps/mobile/packages/features/client/hubs/lib/src/presentation/blocs/client_hubs_event.dart b/apps/mobile/packages/features/client/hubs/lib/src/presentation/blocs/client_hubs_event.dart index a42a4843..428eb774 100644 --- a/apps/mobile/packages/features/client/hubs/lib/src/presentation/blocs/client_hubs_event.dart +++ b/apps/mobile/packages/features/client/hubs/lib/src/presentation/blocs/client_hubs_event.dart @@ -18,11 +18,41 @@ class ClientHubsFetched extends ClientHubsEvent { class ClientHubsAddRequested extends ClientHubsEvent { final String name; final String address; + final String? placeId; + final double? latitude; + final double? longitude; + final String? city; + final String? state; + final String? street; + final String? country; + final String? zipCode; - const ClientHubsAddRequested({required this.name, required this.address}); + const ClientHubsAddRequested({ + required this.name, + required this.address, + this.placeId, + this.latitude, + this.longitude, + this.city, + this.state, + this.street, + this.country, + this.zipCode, + }); @override - List get props => [name, address]; + List get props => [ + name, + address, + placeId, + latitude, + longitude, + city, + state, + street, + country, + zipCode, + ]; } /// Event triggered to delete a hub. diff --git a/apps/mobile/packages/features/client/hubs/lib/src/presentation/pages/client_hubs_page.dart b/apps/mobile/packages/features/client/hubs/lib/src/presentation/pages/client_hubs_page.dart index 67e84b41..76d7c8cd 100644 --- a/apps/mobile/packages/features/client/hubs/lib/src/presentation/pages/client_hubs_page.dart +++ b/apps/mobile/packages/features/client/hubs/lib/src/presentation/pages/client_hubs_page.dart @@ -27,8 +27,12 @@ class ClientHubsPage extends StatelessWidget { create: (BuildContext context) => Modular.get()..add(const ClientHubsFetched()), child: BlocConsumer( + listenWhen: (ClientHubsState previous, ClientHubsState current) { + return previous.errorMessage != current.errorMessage || + previous.successMessage != current.successMessage; + }, listener: (BuildContext context, ClientHubsState state) { - if (state.errorMessage != null) { + if (state.errorMessage != null && state.errorMessage!.isNotEmpty) { ScaffoldMessenger.of( context, ).showSnackBar(SnackBar(content: Text(state.errorMessage!))); @@ -36,7 +40,7 @@ class ClientHubsPage extends StatelessWidget { context, ).add(const ClientHubsMessageCleared()); } - if (state.successMessage != null) { + if (state.successMessage != null && state.successMessage!.isNotEmpty) { ScaffoldMessenger.of( context, ).showSnackBar(SnackBar(content: Text(state.successMessage!))); @@ -106,9 +110,21 @@ class ClientHubsPage extends StatelessWidget { ), if (state.showAddHubDialog) AddHubDialog( - onCreate: (String name, String address) { + onCreate: ( + String name, + String address, { + String? placeId, + double? latitude, + double? longitude, + }) { BlocProvider.of(context).add( - ClientHubsAddRequested(name: name, address: address), + ClientHubsAddRequested( + name: name, + address: address, + placeId: placeId, + latitude: latitude, + longitude: longitude, + ), ); }, onCancel: () => BlocProvider.of( diff --git a/apps/mobile/packages/features/client/hubs/lib/src/presentation/widgets/add_hub_dialog.dart b/apps/mobile/packages/features/client/hubs/lib/src/presentation/widgets/add_hub_dialog.dart index 2a4dd8e9..7d95c749 100644 --- a/apps/mobile/packages/features/client/hubs/lib/src/presentation/widgets/add_hub_dialog.dart +++ b/apps/mobile/packages/features/client/hubs/lib/src/presentation/widgets/add_hub_dialog.dart @@ -1,11 +1,20 @@ import 'package:design_system/design_system.dart'; import 'package:flutter/material.dart'; import 'package:core_localization/core_localization.dart'; +import 'package:google_places_flutter/model/prediction.dart'; + +import 'hub_address_autocomplete.dart'; /// A dialog for adding a new hub. class AddHubDialog extends StatefulWidget { /// Callback when the "Create Hub" button is pressed. - final Function(String name, String address) onCreate; + final void Function( + String name, + String address, { + String? placeId, + double? latitude, + double? longitude, + }) onCreate; /// Callback when the dialog is cancelled. final VoidCallback onCancel; @@ -24,18 +33,22 @@ class AddHubDialog extends StatefulWidget { class _AddHubDialogState extends State { late final TextEditingController _nameController; late final TextEditingController _addressController; + late final FocusNode _addressFocusNode; + Prediction? _selectedPrediction; @override void initState() { super.initState(); _nameController = TextEditingController(); _addressController = TextEditingController(); + _addressFocusNode = FocusNode(); } @override void dispose() { _nameController.dispose(); _addressController.dispose(); + _addressFocusNode.dispose(); super.dispose(); } @@ -74,12 +87,13 @@ class _AddHubDialogState extends State { ), const SizedBox(height: UiConstants.space4), _buildFieldLabel(t.client_hubs.add_hub_dialog.address_label), - TextField( + HubAddressAutocomplete( controller: _addressController, - style: UiTypography.body1r.textPrimary, - decoration: _buildInputDecoration( - t.client_hubs.add_hub_dialog.address_hint, - ), + hintText: t.client_hubs.add_hub_dialog.address_hint, + focusNode: _addressFocusNode, + onSelected: (Prediction prediction) { + _selectedPrediction = prediction; + }, ), const SizedBox(height: UiConstants.space8), Row( @@ -98,6 +112,13 @@ class _AddHubDialogState extends State { widget.onCreate( _nameController.text, _addressController.text, + placeId: _selectedPrediction?.placeId, + latitude: double.tryParse( + _selectedPrediction?.lat ?? '', + ), + longitude: double.tryParse( + _selectedPrediction?.lng ?? '', + ), ); } }, diff --git a/apps/mobile/packages/features/client/hubs/lib/src/presentation/widgets/hub_address_autocomplete.dart b/apps/mobile/packages/features/client/hubs/lib/src/presentation/widgets/hub_address_autocomplete.dart new file mode 100644 index 00000000..784cf094 --- /dev/null +++ b/apps/mobile/packages/features/client/hubs/lib/src/presentation/widgets/hub_address_autocomplete.dart @@ -0,0 +1,61 @@ +import 'package:design_system/design_system.dart'; +import 'package:flutter/material.dart'; +import 'package:google_places_flutter/google_places_flutter.dart'; +import 'package:google_places_flutter/model/prediction.dart'; + +import '../../util/hubs_constants.dart'; + +class HubAddressAutocomplete extends StatelessWidget { + const HubAddressAutocomplete({ + required this.controller, + required this.hintText, + this.focusNode, + this.onSelected, + super.key, + }); + + final TextEditingController controller; + final String hintText; + final FocusNode? focusNode; + final void Function(Prediction prediction)? onSelected; + + @override + Widget build(BuildContext context) { + return GooglePlaceAutoCompleteTextField( + textEditingController: controller, + focusNode: focusNode, + googleAPIKey: HubsConstants.googlePlacesApiKey, + debounceTime: 500, + countries: HubsConstants.supportedCountries, + isLatLngRequired: true, + getPlaceDetailWithLatLng: (Prediction prediction) { + onSelected?.call(prediction); + }, + itemClick: (Prediction prediction) { + controller.text = prediction.description ?? ''; + controller.selection = TextSelection.fromPosition( + TextPosition(offset: controller.text.length), + ); + onSelected?.call(prediction); + }, + itemBuilder: (_, _, Prediction prediction) { + return Padding( + padding: const EdgeInsets.all(UiConstants.space2), + child: Row( + spacing: UiConstants.space1, + children: [ + const Icon(UiIcons.mapPin, color: UiColors.iconSecondary), + Expanded( + child: Text( + prediction.description ?? "", + style: UiTypography.body1r.textSecondary, + ), + ), + ], + ), + ); + }, + textStyle: UiTypography.body1r.textPrimary, + ); + } +} diff --git a/apps/mobile/packages/features/client/hubs/lib/src/util/hubs_constants.dart b/apps/mobile/packages/features/client/hubs/lib/src/util/hubs_constants.dart new file mode 100644 index 00000000..23d706bc --- /dev/null +++ b/apps/mobile/packages/features/client/hubs/lib/src/util/hubs_constants.dart @@ -0,0 +1,4 @@ +class HubsConstants { + static const String googlePlacesApiKey = String.fromEnvironment('GOOGLE_PLACES_API_KEY'); + static const List supportedCountries = ['us']; +} diff --git a/apps/mobile/packages/features/client/hubs/pubspec.yaml b/apps/mobile/packages/features/client/hubs/pubspec.yaml index 3c578989..1eaf1911 100644 --- a/apps/mobile/packages/features/client/hubs/pubspec.yaml +++ b/apps/mobile/packages/features/client/hubs/pubspec.yaml @@ -11,11 +11,7 @@ environment: dependencies: flutter: sdk: flutter - flutter_bloc: ^8.1.0 - flutter_modular: ^6.3.2 - equatable: ^2.0.5 - lucide_icons: ^0.257.0 - + # Architecture Packages krow_core: path: ../../../core @@ -27,8 +23,15 @@ dependencies: path: ../../../design_system core_localization: path: ../../../core_localization + + flutter_bloc: ^8.1.0 + flutter_modular: ^6.3.2 + equatable: ^2.0.5 + lucide_icons: ^0.257.0 firebase_auth: ^6.1.4 firebase_data_connect: ^0.2.2+2 + google_places_flutter: ^2.1.1 + http: ^1.2.2 dev_dependencies: flutter_test: diff --git a/apps/mobile/packages/features/client/settings/lib/src/presentation/widgets/client_settings_page/settings_actions.dart b/apps/mobile/packages/features/client/settings/lib/src/presentation/widgets/client_settings_page/settings_actions.dart index 99c77655..e044d1ec 100644 --- a/apps/mobile/packages/features/client/settings/lib/src/presentation/widgets/client_settings_page/settings_actions.dart +++ b/apps/mobile/packages/features/client/settings/lib/src/presentation/widgets/client_settings_page/settings_actions.dart @@ -24,8 +24,8 @@ class SettingsActions extends StatelessWidget { delegate: SliverChildListDelegate([ const SizedBox(height: UiConstants.space5), - /// TODO: FEATURE_NOT_YET_IMPLEMENTED - // Edit profile is not yet implemented + /// TODO: FEATURE_NOT_YET_IMPLEMENTED + // Edit profile is not yet implemented // Hubs button UiButton.primary( @@ -49,12 +49,19 @@ class SettingsActions extends StatelessWidget { ), ); } + + /// Handles the sign-out button click event. + void _onSignoutClicked(BuildContext context) { + ReadContext( + context, + ).read().add(const ClientSettingsSignOutRequested()); + } /// Shows a confirmation dialog for signing out. Future _showSignOutDialog(BuildContext context) { return showDialog( context: context, - builder: (BuildContext context) => AlertDialog( + builder: (BuildContext dialogContext) => AlertDialog( backgroundColor: UiColors.bgPopup, elevation: 0, shape: RoundedRectangleBorder(borderRadius: UiConstants.radiusLg), @@ -70,12 +77,7 @@ class SettingsActions extends StatelessWidget { // Log out button UiButton.secondary( text: t.client_settings.profile.log_out, - onPressed: () { - Modular.to.pop(); - BlocProvider.of( - context, - ).add(const ClientSettingsSignOutRequested()); - }, + onPressed: () => _onSignoutClicked(context), ), // Cancel button diff --git a/apps/mobile/packages/features/client/view_orders/lib/src/data/repositories/view_orders_repository_impl.dart b/apps/mobile/packages/features/client/view_orders/lib/src/data/repositories/view_orders_repository_impl.dart index 3a9e9fe2..00b5cb2d 100644 --- a/apps/mobile/packages/features/client/view_orders/lib/src/data/repositories/view_orders_repository_impl.dart +++ b/apps/mobile/packages/features/client/view_orders/lib/src/data/repositories/view_orders_repository_impl.dart @@ -62,10 +62,13 @@ class ViewOrdersRepositoryImpl implements IViewOrdersRepository { 'end=${shiftRole.endTime?.toJson()} hours=$hours totalValue=$totalValue', ); + final String eventName = + shiftRole.shift.order.eventName ?? shiftRole.shift.title; + return domain.OrderItem( id: _shiftRoleKey(shiftRole.shiftId, shiftRole.roleId), orderId: shiftRole.shift.order.id, - title: '${shiftRole.role.name} - ${shiftRole.shift.title}', + title: '${shiftRole.role.name} - $eventName', clientName: businessName, status: status, date: dateStr, @@ -117,6 +120,8 @@ class ViewOrdersRepositoryImpl implements IViewOrdersRepository { 'worker_name': application.staff.fullName, 'status': 'confirmed', 'photo_url': application.staff.photoUrl, + 'phone': application.staff.phone, + 'rating': application.staff.averageRating, }); } return grouped; @@ -145,7 +150,7 @@ class ViewOrdersRepositoryImpl implements IViewOrdersRepository { if (timestamp == null) { return ''; } - final DateTime dateTime = timestamp.toDateTime(); + final DateTime dateTime = timestamp.toDateTime().toLocal(); return DateFormat('HH:mm').format(dateTime); } diff --git a/apps/mobile/packages/features/client/view_orders/lib/src/presentation/blocs/view_orders_cubit.dart b/apps/mobile/packages/features/client/view_orders/lib/src/presentation/blocs/view_orders_cubit.dart index 727268af..46c6d76c 100644 --- a/apps/mobile/packages/features/client/view_orders/lib/src/presentation/blocs/view_orders_cubit.dart +++ b/apps/mobile/packages/features/client/view_orders/lib/src/presentation/blocs/view_orders_cubit.dart @@ -23,6 +23,7 @@ class ViewOrdersCubit extends Cubit { final GetOrdersUseCase _getOrdersUseCase; final GetAcceptedApplicationsForDayUseCase _getAcceptedAppsUseCase; + int _requestId = 0; void _init() { updateWeekOffset(0); // Initialize calendar days @@ -33,6 +34,7 @@ class ViewOrdersCubit extends Cubit { required DateTime rangeEnd, required DateTime dayForApps, }) async { + final int requestId = ++_requestId; emit(state.copyWith(status: ViewOrdersStatus.loading)); try { final List orders = await _getOrdersUseCase( @@ -42,6 +44,9 @@ class ViewOrdersCubit extends Cubit { OrdersDayArguments(day: dayForApps), ); final List updatedOrders = _applyApplications(orders, apps); + if (requestId != _requestId) { + return; + } emit( state.copyWith( status: ViewOrdersStatus.success, @@ -50,6 +55,9 @@ class ViewOrdersCubit extends Cubit { ); _updateDerivedState(); } catch (_) { + if (requestId != _requestId) { + return; + } emit(state.copyWith(status: ViewOrdersStatus.failure)); } } @@ -88,6 +96,28 @@ class ViewOrdersCubit extends Cubit { ); } + void jumpToDate(DateTime date) { + final DateTime target = DateTime(date.year, date.month, date.day); + final DateTime startDate = _calculateCalendarDays(0).first; + final int diffDays = target.difference(startDate).inDays; + final int targetOffset = (diffDays / 7).floor(); + final List calendarDays = _calculateCalendarDays(targetOffset); + + emit( + state.copyWith( + weekOffset: targetOffset, + calendarDays: calendarDays, + selectedDate: target, + ), + ); + + _loadOrdersForRange( + rangeStart: calendarDays.first, + rangeEnd: calendarDays.last, + dayForApps: target, + ); + } + void _updateDerivedState() { final List filteredOrders = _calculateFilteredOrders(state); final int activeCount = _calculateCategoryCount('active'); diff --git a/apps/mobile/packages/features/client/view_orders/lib/src/presentation/pages/view_orders_page.dart b/apps/mobile/packages/features/client/view_orders/lib/src/presentation/pages/view_orders_page.dart index c47b8518..ace6f60e 100644 --- a/apps/mobile/packages/features/client/view_orders/lib/src/presentation/pages/view_orders_page.dart +++ b/apps/mobile/packages/features/client/view_orders/lib/src/presentation/pages/view_orders_page.dart @@ -20,24 +20,53 @@ import '../navigation/view_orders_navigator.dart'; /// - Adhering to the project's Design System. class ViewOrdersPage extends StatelessWidget { /// Creates a [ViewOrdersPage]. - const ViewOrdersPage({super.key}); + const ViewOrdersPage({super.key, this.initialDate}); + + final DateTime? initialDate; @override Widget build(BuildContext context) { return BlocProvider( create: (BuildContext context) => Modular.get(), - child: const ViewOrdersView(), + child: ViewOrdersView(initialDate: initialDate), ); } } /// The internal view implementation for [ViewOrdersPage]. -class ViewOrdersView extends StatelessWidget { +class ViewOrdersView extends StatefulWidget { /// Creates a [ViewOrdersView]. - const ViewOrdersView({super.key}); + const ViewOrdersView({super.key, this.initialDate}); + + final DateTime? initialDate; + + @override + State createState() => _ViewOrdersViewState(); +} + +class _ViewOrdersViewState extends State { + bool _didInitialJump = false; + ViewOrdersCubit? _cubit; + + @override + void initState() { + super.initState(); + if (widget.initialDate != null) { + WidgetsBinding.instance.addPostFrameCallback((_) { + if (!mounted) return; + if (_didInitialJump) return; + _didInitialJump = true; + _cubit ??= BlocProvider.of(context); + _cubit!.jumpToDate(widget.initialDate!); + }); + } + } @override Widget build(BuildContext context) { + if (_cubit == null) { + _cubit = BlocProvider.of(context); + } return BlocBuilder( builder: (BuildContext context, ViewOrdersState state) { final List calendarDays = state.calendarDays; @@ -218,6 +247,7 @@ class ViewOrdersView extends StatelessWidget { label: t.client_view_orders.tabs.up_next, isSelected: state.filterTab == 'all', tabId: 'all', + count: state.upNextCount, ), const SizedBox(width: UiConstants.space6), _buildFilterTab( @@ -225,7 +255,7 @@ class ViewOrdersView extends StatelessWidget { label: t.client_view_orders.tabs.active, isSelected: state.filterTab == 'active', tabId: 'active', - count: state.activeCount + state.upNextCount, + count: state.activeCount, ), const SizedBox(width: UiConstants.space6), _buildFilterTab( diff --git a/apps/mobile/packages/features/client/view_orders/lib/src/presentation/widgets/view_order_card.dart b/apps/mobile/packages/features/client/view_orders/lib/src/presentation/widgets/view_order_card.dart index a5eee120..b3582dc1 100644 --- a/apps/mobile/packages/features/client/view_orders/lib/src/presentation/widgets/view_order_card.dart +++ b/apps/mobile/packages/features/client/view_orders/lib/src/presentation/widgets/view_order_card.dart @@ -3,9 +3,12 @@ import 'package:design_system/design_system.dart'; import 'package:firebase_auth/firebase_auth.dart' as firebase; import 'package:firebase_data_connect/firebase_data_connect.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:intl/intl.dart'; import 'package:krow_data_connect/krow_data_connect.dart' as dc; import 'package:krow_domain/krow_domain.dart'; +import 'package:url_launcher/url_launcher.dart'; +import '../blocs/view_orders_cubit.dart'; /// A rich card displaying details of a client order/shift. /// @@ -30,7 +33,10 @@ class _ViewOrderCardState extends State { context: context, isScrollControlled: true, backgroundColor: Colors.transparent, - builder: (BuildContext context) => _OrderEditSheet(order: order), + builder: (BuildContext context) => _OrderEditSheet( + order: order, + onUpdated: () => this.context.read().updateWeekOffset(0), + ), ); } @@ -192,19 +198,7 @@ class _ViewOrderCardState extends State { order.clientName, style: UiTypography.body3r.textSecondary, ), - Padding( - padding: const EdgeInsets.symmetric( - horizontal: 6, - ), - child: Text( - '•', - style: UiTypography.body3r.textInactive, - ), - ), - Text( - _formatDate(dateStr: order.date), - style: UiTypography.body3m.textSecondary, - ), + const SizedBox(width: 0), ], ), const SizedBox(height: UiConstants.space2), @@ -241,14 +235,16 @@ class _ViewOrderCardState extends State { onTap: () => _openEditSheet(order: order), ), const SizedBox(width: UiConstants.space2), - _buildHeaderIconButton( - icon: _expanded - ? UiIcons.chevronUp - : UiIcons.chevronDown, - color: UiColors.iconSecondary, - bgColor: UiColors.bgSecondary, - onTap: () => setState(() => _expanded = !_expanded), - ), + if (order.confirmedApps.isNotEmpty) + _buildHeaderIconButton( + icon: _expanded + ? UiIcons.chevronUp + : UiIcons.chevronDown, + color: UiColors.iconSecondary, + bgColor: UiColors.bgSecondary, + onTap: () => + setState(() => _expanded = !_expanded), + ), ], ), ], @@ -276,8 +272,7 @@ class _ViewOrderCardState extends State { _buildStatDivider(), _buildStatItem( icon: UiIcons.users, - value: - '${order.filled > 0 ? order.filled : order.workersNeeded}', + value: '${order.workersNeeded}', label: 'Workers', ), ], @@ -320,7 +315,7 @@ class _ViewOrderCardState extends State { ), const SizedBox(width: 8), Text( - '${order.filled}/${order.workersNeeded} Workers Filled', + '${order.workersNeeded} Workers Filled', style: UiTypography.body2m.textPrimary, ), ], @@ -492,6 +487,7 @@ class _ViewOrderCardState extends State { /// Builds a detailed row for a worker. Widget _buildWorkerRow(Map app) { + final String? phone = app['phone'] as String?; return Container( margin: const EdgeInsets.only(bottom: 12), padding: const EdgeInsets.all(12), @@ -522,9 +518,19 @@ class _ViewOrderCardState extends State { const SizedBox(height: 2), Row( children: [ - const Icon(UiIcons.star, size: 10, color: UiColors.accent), - const SizedBox(width: 2), - Text('4.8', style: UiTypography.footnote2r.textSecondary), + if ((app['rating'] as num?) != null && + (app['rating'] as num) > 0) ...[ + const Icon( + UiIcons.star, + size: 10, + color: UiColors.accent, + ), + const SizedBox(width: 2), + Text( + (app['rating'] as num).toStringAsFixed(1), + style: UiTypography.footnote2r.textSecondary, + ), + ], if (app['check_in_time'] != null) ...[ const SizedBox(width: 8), Container( @@ -543,20 +549,70 @@ class _ViewOrderCardState extends State { ), ), ), + ] else if ((app['status'] as String?)?.isNotEmpty ?? false) ...[ + const SizedBox(width: 8), + Container( + padding: const EdgeInsets.symmetric( + horizontal: 4, + vertical: 1, + ), + decoration: BoxDecoration( + color: UiColors.bgSecondary, + borderRadius: BorderRadius.circular(4), + ), + child: Text( + (app['status'] as String).toUpperCase(), + style: UiTypography.titleUppercase4m.copyWith( + color: UiColors.textSecondary, + ), + ), + ), ], ], ), ], ), ), - _buildActionIconButton(icon: UiIcons.phone, onTap: () {}), - const SizedBox(width: 8), - _buildActionIconButton(icon: UiIcons.messageCircle, onTap: () {}), + if (phone != null && phone.isNotEmpty) ...[ + _buildActionIconButton( + icon: UiIcons.phone, + onTap: () => _confirmAndCall(phone), + ), + ], ], ), ); } + Future _confirmAndCall(String phone) async { + final bool? shouldCall = await showDialog( + context: context, + builder: (BuildContext context) { + return AlertDialog( + title: const Text('Call'), + content: Text('Do you want to call $phone?'), + actions: [ + TextButton( + onPressed: () => Navigator.of(context).pop(false), + child: const Text('Cancel'), + ), + TextButton( + onPressed: () => Navigator.of(context).pop(true), + child: const Text('Call'), + ), + ], + ); + }, + ); + + if (shouldCall != true) { + return; + } + + final Uri uri = Uri(scheme: 'tel', path: phone); + await launchUrl(uri); + } + /// Specialized action button for worker rows. Widget _buildActionIconButton({ required IconData icon, @@ -644,9 +700,13 @@ class _ShiftRoleKey { /// A sophisticated bottom sheet for editing an existing order, /// following the Unified Order Flow prototype and matching OneTimeOrderView. class _OrderEditSheet extends StatefulWidget { - const _OrderEditSheet({required this.order}); + const _OrderEditSheet({ + required this.order, + this.onUpdated, + }); final OrderItem order; + final VoidCallback? onUpdated; @override State<_OrderEditSheet> createState() => _OrderEditSheetState(); @@ -658,6 +718,7 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { late TextEditingController _dateController; late TextEditingController _globalLocationController; + late TextEditingController _orderNameController; late List> _positions; @@ -667,6 +728,8 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { List _vendors = const []; Vendor? _selectedVendor; List<_RoleOption> _roles = const <_RoleOption>[]; + List _hubs = const []; + dc.ListTeamHubsByOwnerIdTeamHubs? _selectedHub; String? _shiftId; List<_ShiftRoleKey> _originalShiftRoles = const <_ShiftRoleKey>[]; @@ -678,6 +741,7 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { _globalLocationController = TextEditingController( text: widget.order.locationAddress, ); + _orderNameController = TextEditingController(); _positions = >[ { @@ -700,6 +764,7 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { void dispose() { _dateController.dispose(); _globalLocationController.dispose(); + _orderNameController.dispose(); super.dispose(); } @@ -728,6 +793,7 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { final List shiftRoles = result.data.shiftRoles; if (shiftRoles.isEmpty) { + await _loadHubsAndSelect(); return; } @@ -737,13 +803,14 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { final String dateText = orderDate == null ? widget.order.date : DateFormat('yyyy-MM-dd').format(orderDate); - final String location = firstShift.order.location ?? + final String location = firstShift.order.teamHub?.hubName ?? firstShift.locationAddress ?? firstShift.location ?? widget.order.locationAddress; _dateController.text = dateText; _globalLocationController.text = location; + _orderNameController.text = firstShift.order.eventName ?? ''; _shiftId = shiftRoles.first.shiftId; final List> positions = @@ -774,6 +841,13 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { .toList(); await _loadVendorsAndSelect(firstShift.order.vendorId); + final dc.ListShiftRolesByBusinessAndOrderShiftRolesShiftOrderTeamHub? + teamHub = firstShift.order.teamHub; + await _loadHubsAndSelect( + placeId: teamHub?.placeId, + hubName: teamHub?.hubName, + address: teamHub?.address, + ); if (mounted) { setState(() { @@ -786,6 +860,75 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { } } + Future _loadHubsAndSelect({ + String? placeId, + String? hubName, + String? address, + }) async { + final String? businessId = + dc.ClientSessionStore.instance.session?.business?.id; + if (businessId == null || businessId.isEmpty) { + return; + } + + try { + final QueryResult< + dc.ListTeamHubsByOwnerIdData, + dc.ListTeamHubsByOwnerIdVariables> result = await _dataConnect + .listTeamHubsByOwnerId(ownerId: businessId) + .execute(); + + final List hubs = result.data.teamHubs; + dc.ListTeamHubsByOwnerIdTeamHubs? selected; + + if (placeId != null && placeId.isNotEmpty) { + for (final dc.ListTeamHubsByOwnerIdTeamHubs hub in hubs) { + if (hub.placeId == placeId) { + selected = hub; + break; + } + } + } + + if (selected == null && hubName != null && hubName.isNotEmpty) { + for (final dc.ListTeamHubsByOwnerIdTeamHubs hub in hubs) { + if (hub.hubName == hubName) { + selected = hub; + break; + } + } + } + + if (selected == null && address != null && address.isNotEmpty) { + for (final dc.ListTeamHubsByOwnerIdTeamHubs hub in hubs) { + if (hub.address == address) { + selected = hub; + break; + } + } + } + + selected ??= hubs.isNotEmpty ? hubs.first : null; + + if (mounted) { + setState(() { + _hubs = hubs; + _selectedHub = selected; + if (selected != null) { + _globalLocationController.text = selected.address; + } + }); + } + } catch (_) { + if (mounted) { + setState(() { + _hubs = const []; + _selectedHub = null; + }); + } + } + } + Future _loadVendorsAndSelect(String? selectedVendorId) async { try { final QueryResult result = @@ -874,7 +1017,7 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { String _formatTimeForField(Timestamp? value) { if (value == null) return ''; try { - return DateFormat('HH:mm').format(value.toDateTime()); + return DateFormat('HH:mm').format(value.toDateTime().toLocal()); } catch (_) { return ''; } @@ -948,7 +1091,8 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { } Timestamp _toTimestamp(DateTime date) { - final int millis = date.millisecondsSinceEpoch; + final DateTime utc = date.toUtc(); + final int millis = utc.millisecondsSinceEpoch; final int seconds = millis ~/ 1000; final int nanos = (millis % 1000) * 1000000; return Timestamp(nanos, seconds); @@ -987,7 +1131,10 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { } final DateTime orderDate = _parseDate(_dateController.text); - final String location = _globalLocationController.text; + final dc.ListTeamHubsByOwnerIdTeamHubs? selectedHub = _selectedHub; + if (selectedHub == null) { + return; + } int totalWorkers = 0; double shiftCost = 0; @@ -1071,19 +1218,32 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { .execute(); } + final DateTime orderDateOnly = DateTime.utc( + orderDate.year, + orderDate.month, + orderDate.day, + ); + await _dataConnect - .updateOrder(id: widget.order.orderId) + .updateOrder(id: widget.order.orderId, teamHubId: selectedHub.id) .vendorId(_selectedVendor?.id) - .location(location) - .date(_toTimestamp(orderDate)) + .date(_toTimestamp(orderDateOnly)) + .eventName(_orderNameController.text) .execute(); await _dataConnect .updateShift(id: _shiftId!) .title('shift 1 ${DateFormat('yyyy-MM-dd').format(orderDate)}') - .date(_toTimestamp(orderDate)) - .location(location) - .locationAddress(location) + .date(_toTimestamp(orderDateOnly)) + .location(selectedHub.hubName) + .locationAddress(selectedHub.address) + .latitude(selectedHub.latitude) + .longitude(selectedHub.longitude) + .placeId(selectedHub.placeId) + .city(selectedHub.city) + .state(selectedHub.state) + .street(selectedHub.street) + .country(selectedHub.country) .workersNeeded(totalWorkers) .cost(shiftCost) .durationDays(1) @@ -1185,11 +1345,57 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { ), const SizedBox(height: UiConstants.space4), - _buildSectionHeader('LOCATION'), + _buildSectionHeader('ORDER NAME'), UiTextField( - controller: _globalLocationController, - hintText: 'Business address', - prefixIcon: UiIcons.mapPin, + controller: _orderNameController, + hintText: 'Order name', + prefixIcon: UiIcons.briefcase, + ), + const SizedBox(height: UiConstants.space4), + + _buildSectionHeader('HUB'), + Container( + padding: const EdgeInsets.symmetric( + horizontal: UiConstants.space3, + ), + height: 48, + decoration: BoxDecoration( + color: UiColors.white, + borderRadius: UiConstants.radiusMd, + border: Border.all(color: UiColors.border), + ), + child: DropdownButtonHideUnderline( + child: DropdownButton( + isExpanded: true, + value: _selectedHub, + icon: const Icon( + UiIcons.chevronDown, + size: 18, + color: UiColors.iconSecondary, + ), + onChanged: + (dc.ListTeamHubsByOwnerIdTeamHubs? hub) { + if (hub != null) { + setState(() { + _selectedHub = hub; + _globalLocationController.text = hub.address; + }); + } + }, + items: _hubs.map( + (dc.ListTeamHubsByOwnerIdTeamHubs hub) { + return DropdownMenuItem< + dc.ListTeamHubsByOwnerIdTeamHubs>( + value: hub, + child: Text( + hub.hubName, + style: UiTypography.body2m.textPrimary, + ), + ); + }, + ).toList(), + ), + ), ), const SizedBox(height: UiConstants.space6), @@ -1370,7 +1576,19 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { child: _buildInlineTimeInput( label: 'Start', value: pos['start_time'], - onTap: () {}, + onTap: () async { + final TimeOfDay? picked = await showTimePicker( + context: context, + initialTime: TimeOfDay.now(), + ); + if (picked != null && context.mounted) { + _updatePosition( + index, + 'start_time', + picked.format(context), + ); + } + }, ), ), const SizedBox(width: UiConstants.space2), @@ -1378,7 +1596,19 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { child: _buildInlineTimeInput( label: 'End', value: pos['end_time'], - onTap: () {}, + onTap: () async { + final TimeOfDay? picked = await showTimePicker( + context: context, + initialTime: TimeOfDay.now(), + ); + if (picked != null && context.mounted) { + _updatePosition( + index, + 'end_time', + picked.format(context), + ); + } + }, ), ), const SizedBox(width: UiConstants.space2), @@ -1766,7 +1996,10 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { onPressed: () async { setState(() => _isLoading = true); await _saveOrderChanges(); - if (mounted) Navigator.pop(context); + if (mounted) { + widget.onUpdated?.call(); + Navigator.pop(context); + } }, ), ), diff --git a/apps/mobile/packages/features/client/view_orders/lib/src/view_orders_module.dart b/apps/mobile/packages/features/client/view_orders/lib/src/view_orders_module.dart index 3579ca65..787bf6de 100644 --- a/apps/mobile/packages/features/client/view_orders/lib/src/view_orders_module.dart +++ b/apps/mobile/packages/features/client/view_orders/lib/src/view_orders_module.dart @@ -43,6 +43,23 @@ class ViewOrdersModule extends Module { @override void routes(RouteManager r) { - r.child('/', child: (BuildContext context) => const ViewOrdersPage()); + r.child( + '/', + child: (BuildContext context) { + final Object? args = Modular.args.data; + DateTime? initialDate; + if (args is DateTime) { + initialDate = args; + } else if (args is Map) { + final Object? rawDate = args['initialDate']; + if (rawDate is DateTime) { + initialDate = rawDate; + } else if (rawDate is String) { + initialDate = DateTime.tryParse(rawDate); + } + } + return ViewOrdersPage(initialDate: initialDate); + }, + ); } } diff --git a/apps/mobile/packages/features/client/view_orders/pubspec.yaml b/apps/mobile/packages/features/client/view_orders/pubspec.yaml index dbf26cc2..5c419aa9 100644 --- a/apps/mobile/packages/features/client/view_orders/pubspec.yaml +++ b/apps/mobile/packages/features/client/view_orders/pubspec.yaml @@ -1,7 +1,7 @@ name: view_orders description: Client View Orders feature package publish_to: 'none' -version: 1.0.0+1 +version: 0.0.1 resolution: workspace environment: diff --git a/apps/mobile/packages/features/staff/authentication/lib/src/presentation/navigation/auth_navigator.dart b/apps/mobile/packages/features/staff/authentication/lib/src/presentation/navigation/auth_navigator.dart index 5c201e2c..2034bc04 100644 --- a/apps/mobile/packages/features/staff/authentication/lib/src/presentation/navigation/auth_navigator.dart +++ b/apps/mobile/packages/features/staff/authentication/lib/src/presentation/navigation/auth_navigator.dart @@ -16,6 +16,6 @@ extension AuthNavigator on IModularNavigator { /// Navigates to the worker home (external to this module). void pushWorkerHome() { - pushNamed('/worker-main/home/'); + pushNamed('/worker-main/home'); } } diff --git a/apps/mobile/packages/features/staff/payments/lib/src/data/repositories/payments_repository_impl.dart b/apps/mobile/packages/features/staff/payments/lib/src/data/repositories/payments_repository_impl.dart index 303fca7f..5ac53641 100644 --- a/apps/mobile/packages/features/staff/payments/lib/src/data/repositories/payments_repository_impl.dart +++ b/apps/mobile/packages/features/staff/payments/lib/src/data/repositories/payments_repository_impl.dart @@ -1,5 +1,3 @@ -// ignore: unused_import -// import 'package:data_connect/data_connect.dart'; import '../../domain/entities/payment_summary.dart'; import '../../domain/entities/payment_transaction.dart'; import '../../domain/repositories/payments_repository.dart'; diff --git a/apps/mobile/packages/features/staff/payments/lib/src/data/repositories_impl/payments_repository_impl.dart b/apps/mobile/packages/features/staff/payments/lib/src/data/repositories_impl/payments_repository_impl.dart index 4485bfeb..5beccf8c 100644 --- a/apps/mobile/packages/features/staff/payments/lib/src/data/repositories_impl/payments_repository_impl.dart +++ b/apps/mobile/packages/features/staff/payments/lib/src/data/repositories_impl/payments_repository_impl.dart @@ -3,6 +3,7 @@ import 'package:firebase_data_connect/firebase_data_connect.dart'; import 'package:krow_data_connect/src/session/staff_session_store.dart'; import 'package:krow_domain/krow_domain.dart'; import '../../domain/repositories/payments_repository.dart'; +import '../datasources/payments_remote_datasource.dart'; extension TimestampExt on Timestamp { DateTime toDate() { @@ -11,11 +12,6 @@ extension TimestampExt on Timestamp { } /// Implementation of [PaymentsRepository]. -/// -/// This class handles the retrieval of payment data by delegating to the -/// [FinancialRepositoryMock] from the data connect package. -/// -/// It resides in the data layer and depends on the domain layer for the repository interface. class PaymentsRepositoryImpl implements PaymentsRepository { PaymentsRepositoryImpl(); diff --git a/apps/mobile/packages/features/staff/payments/lib/src/domain/entities/payment_summary.dart b/apps/mobile/packages/features/staff/payments/lib/src/domain/entities/payment_summary.dart new file mode 100644 index 00000000..de815145 --- /dev/null +++ b/apps/mobile/packages/features/staff/payments/lib/src/domain/entities/payment_summary.dart @@ -0,0 +1,23 @@ +import 'package:equatable/equatable.dart'; + +class PaymentSummary extends Equatable { + final double weeklyEarnings; + final double monthlyEarnings; + final double pendingEarnings; + final double totalEarnings; + + const PaymentSummary({ + required this.weeklyEarnings, + required this.monthlyEarnings, + required this.pendingEarnings, + required this.totalEarnings, + }); + + @override + List get props => [ + weeklyEarnings, + monthlyEarnings, + pendingEarnings, + totalEarnings, + ]; +} diff --git a/apps/mobile/packages/features/staff/payments/lib/src/domain/entities/payment_transaction.dart b/apps/mobile/packages/features/staff/payments/lib/src/domain/entities/payment_transaction.dart new file mode 100644 index 00000000..dff3eec0 --- /dev/null +++ b/apps/mobile/packages/features/staff/payments/lib/src/domain/entities/payment_transaction.dart @@ -0,0 +1,41 @@ +import 'package:equatable/equatable.dart'; + +class PaymentTransaction extends Equatable { + final String id; + final String title; + final String location; + final String address; + final String workedTime; + final double amount; + final String status; + final int hours; + final double rate; + final DateTime date; + + const PaymentTransaction({ + required this.id, + required this.title, + required this.location, + required this.address, + required this.workedTime, + required this.amount, + required this.status, + required this.hours, + required this.rate, + required this.date, + }); + + @override + List get props => [ + id, + title, + location, + address, + workedTime, + amount, + status, + hours, + rate, + date, + ]; +} diff --git a/apps/mobile/packages/features/staff/payments/lib/src/domain/repositories/payments_repository.dart b/apps/mobile/packages/features/staff/payments/lib/src/domain/repositories/payments_repository.dart index 71546c9e..b142805d 100644 --- a/apps/mobile/packages/features/staff/payments/lib/src/domain/repositories/payments_repository.dart +++ b/apps/mobile/packages/features/staff/payments/lib/src/domain/repositories/payments_repository.dart @@ -1,10 +1,14 @@ -import 'package:krow_domain/krow_domain.dart'; +import '../entities/payment_summary.dart'; +import '../entities/payment_transaction.dart'; /// Repository interface for Payments feature. /// /// Defines the contract for data access related to staff payments. /// Implementations of this interface should reside in the data layer. abstract class PaymentsRepository { - /// Fetches the list of payments for the current staff member. - Future> getPayments(); + /// Fetches the payment summary (earnings). + Future getPaymentSummary(); + + /// Fetches the payment history for a specific period. + Future> getPaymentHistory(String period); } diff --git a/apps/mobile/packages/features/staff/payments/lib/src/domain/usecases/get_payment_history_usecase.dart b/apps/mobile/packages/features/staff/payments/lib/src/domain/usecases/get_payment_history_usecase.dart index d5a3a3a8..01ceac51 100644 --- a/apps/mobile/packages/features/staff/payments/lib/src/domain/usecases/get_payment_history_usecase.dart +++ b/apps/mobile/packages/features/staff/payments/lib/src/domain/usecases/get_payment_history_usecase.dart @@ -1,20 +1,19 @@ import 'package:krow_core/core.dart'; -import 'package:krow_domain/krow_domain.dart'; import '../arguments/get_payment_history_arguments.dart'; +import '../entities/payment_transaction.dart'; import '../repositories/payments_repository.dart'; /// Use case to retrieve payment history filtered by a period. /// /// This use case delegates the data retrieval to [PaymentsRepository]. -class GetPaymentHistoryUseCase extends UseCase> { +class GetPaymentHistoryUseCase extends UseCase> { final PaymentsRepository repository; /// Creates a [GetPaymentHistoryUseCase]. GetPaymentHistoryUseCase(this.repository); @override - Future> call(GetPaymentHistoryArguments arguments) async { - // TODO: Implement filtering by period - return await repository.getPayments(); + Future> call(GetPaymentHistoryArguments arguments) async { + return await repository.getPaymentHistory(arguments.period); } } diff --git a/apps/mobile/packages/features/staff/payments/lib/src/domain/usecases/get_payment_summary_usecase.dart b/apps/mobile/packages/features/staff/payments/lib/src/domain/usecases/get_payment_summary_usecase.dart index 27b74290..b810454b 100644 --- a/apps/mobile/packages/features/staff/payments/lib/src/domain/usecases/get_payment_summary_usecase.dart +++ b/apps/mobile/packages/features/staff/payments/lib/src/domain/usecases/get_payment_summary_usecase.dart @@ -1,19 +1,16 @@ import 'package:krow_core/core.dart'; -import 'package:krow_domain/krow_domain.dart'; +import '../entities/payment_summary.dart'; import '../repositories/payments_repository.dart'; /// Use case to retrieve payment summary information. -/// -/// It fetches the full list of payments, which ideally should be aggregated -/// by the presentation layer or a specific data source method. -class GetPaymentSummaryUseCase extends NoInputUseCase> { +class GetPaymentSummaryUseCase extends NoInputUseCase { final PaymentsRepository repository; /// Creates a [GetPaymentSummaryUseCase]. GetPaymentSummaryUseCase(this.repository); @override - Future> call() async { - return await repository.getPayments(); + Future call() async { + return await repository.getPaymentSummary(); } } diff --git a/apps/mobile/packages/features/staff/payments/lib/src/presentation/blocs/payments/payments_bloc.dart b/apps/mobile/packages/features/staff/payments/lib/src/presentation/blocs/payments/payments_bloc.dart index 33887032..f2448175 100644 --- a/apps/mobile/packages/features/staff/payments/lib/src/presentation/blocs/payments/payments_bloc.dart +++ b/apps/mobile/packages/features/staff/payments/lib/src/presentation/blocs/payments/payments_bloc.dart @@ -1,9 +1,9 @@ import 'package:flutter_bloc/flutter_bloc.dart'; -import 'package:krow_domain/krow_domain.dart'; import '../../../domain/arguments/get_payment_history_arguments.dart'; -import '../../../domain/usecases/get_payment_summary_usecase.dart'; +import '../../../domain/entities/payment_summary.dart'; +import '../../../domain/entities/payment_transaction.dart'; import '../../../domain/usecases/get_payment_history_usecase.dart'; -import '../../models/payment_stats.dart'; +import '../../../domain/usecases/get_payment_summary_usecase.dart'; import 'payments_event.dart'; import 'payments_state.dart'; @@ -25,14 +25,13 @@ class PaymentsBloc extends Bloc { ) async { emit(PaymentsLoading()); try { - final List allPayments = await getPaymentSummary(); - final PaymentStats stats = _calculateStats(allPayments); + final PaymentSummary currentSummary = await getPaymentSummary(); - final List history = await getPaymentHistory( + final List history = await getPaymentHistory( const GetPaymentHistoryArguments('week'), ); emit(PaymentsLoaded( - summary: stats, + summary: currentSummary, history: history, activePeriod: 'week', )); @@ -48,7 +47,7 @@ class PaymentsBloc extends Bloc { final PaymentsState currentState = state; if (currentState is PaymentsLoaded) { try { - final List newHistory = await getPaymentHistory( + final List newHistory = await getPaymentHistory( GetPaymentHistoryArguments(event.period), ); emit(currentState.copyWith( @@ -60,38 +59,4 @@ class PaymentsBloc extends Bloc { } } } - - PaymentStats _calculateStats(List payments) { - double total = 0; - double pending = 0; - double weekly = 0; - double monthly = 0; - - final DateTime now = DateTime.now(); - - for (final StaffPayment p in payments) { - // Assuming all payments count towards total history - total += p.amount; - - if (p.status == PaymentStatus.pending) { - pending += p.amount; - } - - if (p.paidAt != null) { - if (now.difference(p.paidAt!).inDays < 7) { - weekly += p.amount; - } - if (now.month == p.paidAt!.month && now.year == p.paidAt!.year) { - monthly += p.amount; - } - } - } - - return PaymentStats( - totalEarnings: total, - pendingEarnings: pending, - weeklyEarnings: weekly, - monthlyEarnings: monthly, - ); - } } diff --git a/apps/mobile/packages/features/staff/payments/lib/src/presentation/blocs/payments/payments_state.dart b/apps/mobile/packages/features/staff/payments/lib/src/presentation/blocs/payments/payments_state.dart index 14e3af61..f3742ca3 100644 --- a/apps/mobile/packages/features/staff/payments/lib/src/presentation/blocs/payments/payments_state.dart +++ b/apps/mobile/packages/features/staff/payments/lib/src/presentation/blocs/payments/payments_state.dart @@ -1,6 +1,6 @@ import 'package:equatable/equatable.dart'; -import 'package:krow_domain/krow_domain.dart'; -import '../../models/payment_stats.dart'; +import '../../../domain/entities/payment_summary.dart'; +import '../../../domain/entities/payment_transaction.dart'; abstract class PaymentsState extends Equatable { const PaymentsState(); @@ -14,8 +14,8 @@ class PaymentsInitial extends PaymentsState {} class PaymentsLoading extends PaymentsState {} class PaymentsLoaded extends PaymentsState { - final PaymentStats summary; - final List history; + final PaymentSummary summary; + final List history; final String activePeriod; const PaymentsLoaded({ @@ -25,8 +25,8 @@ class PaymentsLoaded extends PaymentsState { }); PaymentsLoaded copyWith({ - PaymentStats? summary, - List? history, + PaymentSummary? summary, + List? history, String? activePeriod, }) { return PaymentsLoaded( diff --git a/apps/mobile/packages/features/staff/payments/lib/src/presentation/pages/payments_page.dart b/apps/mobile/packages/features/staff/payments/lib/src/presentation/pages/payments_page.dart index 72b0c03a..e1930ada 100644 --- a/apps/mobile/packages/features/staff/payments/lib/src/presentation/pages/payments_page.dart +++ b/apps/mobile/packages/features/staff/payments/lib/src/presentation/pages/payments_page.dart @@ -3,7 +3,7 @@ import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_modular/flutter_modular.dart'; import 'package:lucide_icons/lucide_icons.dart'; import 'package:intl/intl.dart'; -import 'package:krow_domain/krow_domain.dart'; +import '../../domain/entities/payment_transaction.dart'; import '../blocs/payments/payments_bloc.dart'; import '../blocs/payments/payments_event.dart'; import '../blocs/payments/payments_state.dart'; @@ -184,19 +184,19 @@ class _PaymentsPageState extends State { ), const SizedBox(height: 12), Column( - children: state.history.map((StaffPayment payment) { + children: state.history.map((PaymentTransaction payment) { return Padding( padding: const EdgeInsets.only(bottom: 8), child: PaymentHistoryItem( amount: payment.amount, - title: 'Assignment ${payment.assignmentId}', - location: 'Location', // TODO: Fetch from assignment - address: '', - date: payment.paidAt != null ? DateFormat('E, MMM d').format(payment.paidAt!) : 'Pending', - workedTime: '00:00 - 00:00', // TODO: Fetch from assignment - hours: 0, - rate: 0, - status: payment.status.toString().split('.').last, + title: payment.title, + location: payment.location, + address: payment.address, + date: DateFormat('E, MMM d').format(payment.date), + workedTime: payment.workedTime, + hours: payment.hours, + rate: payment.rate, + status: payment.status, ), ); }).toList(), diff --git a/apps/mobile/packages/features/staff/payments/pubspec.yaml b/apps/mobile/packages/features/staff/payments/pubspec.yaml index d8a77bb7..22435a8f 100644 --- a/apps/mobile/packages/features/staff/payments/pubspec.yaml +++ b/apps/mobile/packages/features/staff/payments/pubspec.yaml @@ -32,4 +32,5 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^3.0.0 + flutter_lints: ^6.0.0 + \ No newline at end of file diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/certificates/pubspec.lock b/apps/mobile/packages/features/staff/profile_sections/compliance/certificates/pubspec.lock deleted file mode 100644 index 7f71a701..00000000 --- a/apps/mobile/packages/features/staff/profile_sections/compliance/certificates/pubspec.lock +++ /dev/null @@ -1,1002 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - _fe_analyzer_shared: - dependency: transitive - description: - name: _fe_analyzer_shared - sha256: c209688d9f5a5f26b2fb47a188131a6fb9e876ae9e47af3737c0b4f58a93470d - url: "https://pub.dev" - source: hosted - version: "91.0.0" - _flutterfire_internals: - dependency: transitive - description: - name: _flutterfire_internals - sha256: ff0a84a2734d9e1089f8aedd5c0af0061b82fb94e95260d943404e0ef2134b11 - url: "https://pub.dev" - source: hosted - version: "1.3.59" - analyzer: - dependency: transitive - description: - name: analyzer - sha256: f51c8499b35f9b26820cfe914828a6a98a94efd5cc78b37bb7d03debae3a1d08 - url: "https://pub.dev" - source: hosted - version: "8.4.1" - archive: - dependency: transitive - description: - name: archive - sha256: cb6a278ef2dbb298455e1a713bda08524a175630ec643a242c399c932a0a1f7d - url: "https://pub.dev" - source: hosted - version: "3.6.1" - args: - dependency: transitive - description: - name: args - sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04 - url: "https://pub.dev" - source: hosted - version: "2.7.0" - async: - dependency: transitive - description: - name: async - sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb" - url: "https://pub.dev" - source: hosted - version: "2.13.0" - auto_injector: - dependency: transitive - description: - name: auto_injector - sha256: "1fc2624898e92485122eb2b1698dd42511d7ff6574f84a3a8606fc4549a1e8f8" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - bloc: - dependency: transitive - description: - name: bloc - sha256: "106842ad6569f0b60297619e9e0b1885c2fb9bf84812935490e6c5275777804e" - url: "https://pub.dev" - source: hosted - version: "8.1.4" - bloc_test: - dependency: "direct dev" - description: - name: bloc_test - sha256: "165a6ec950d9252ebe36dc5335f2e6eb13055f33d56db0eeb7642768849b43d2" - url: "https://pub.dev" - source: hosted - version: "9.1.7" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - characters: - dependency: transitive - description: - name: characters - sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 - url: "https://pub.dev" - source: hosted - version: "1.4.0" - cli_config: - dependency: transitive - description: - name: cli_config - sha256: ac20a183a07002b700f0c25e61b7ee46b23c309d76ab7b7640a028f18e4d99ec - url: "https://pub.dev" - source: hosted - version: "0.2.0" - clock: - dependency: transitive - description: - name: clock - sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b - url: "https://pub.dev" - source: hosted - version: "1.1.2" - code_assets: - dependency: transitive - description: - name: code_assets - sha256: "83ccdaa064c980b5596c35dd64a8d3ecc68620174ab9b90b6343b753aa721687" - url: "https://pub.dev" - source: hosted - version: "1.0.0" - collection: - dependency: transitive - description: - name: collection - sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" - url: "https://pub.dev" - source: hosted - version: "1.19.1" - convert: - dependency: transitive - description: - name: convert - sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68 - url: "https://pub.dev" - source: hosted - version: "3.1.2" - core_localization: - dependency: "direct main" - description: - path: "../../../../../core_localization" - relative: true - source: path - version: "0.0.1" - coverage: - dependency: transitive - description: - name: coverage - sha256: "5da775aa218eaf2151c721b16c01c7676fbfdd99cebba2bf64e8b807a28ff94d" - url: "https://pub.dev" - source: hosted - version: "1.15.0" - crypto: - dependency: transitive - description: - name: crypto - sha256: c8ea0233063ba03258fbcf2ca4d6dadfefe14f02fab57702265467a19f27fadf - url: "https://pub.dev" - source: hosted - version: "3.0.7" - csv: - dependency: transitive - description: - name: csv - sha256: c6aa2679b2a18cb57652920f674488d89712efaf4d3fdf2e537215b35fc19d6c - url: "https://pub.dev" - source: hosted - version: "6.0.0" - design_system: - dependency: "direct main" - description: - path: "../../../../../design_system" - relative: true - source: path - version: "0.0.1" - diff_match_patch: - dependency: transitive - description: - name: diff_match_patch - sha256: "2efc9e6e8f449d0abe15be240e2c2a3bcd977c8d126cfd70598aee60af35c0a4" - url: "https://pub.dev" - source: hosted - version: "0.4.1" - equatable: - dependency: "direct main" - description: - name: equatable - sha256: "3e0141505477fd8ad55d6eb4e7776d3fe8430be8e497ccb1521370c3f21a3e2b" - url: "https://pub.dev" - source: hosted - version: "2.0.8" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" - url: "https://pub.dev" - source: hosted - version: "1.3.3" - ffi: - dependency: transitive - description: - name: ffi - sha256: d07d37192dbf97461359c1518788f203b0c9102cfd2c35a716b823741219542c - url: "https://pub.dev" - source: hosted - version: "2.1.5" - file: - dependency: transitive - description: - name: file - sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 - url: "https://pub.dev" - source: hosted - version: "7.0.1" - firebase_app_check: - dependency: transitive - description: - name: firebase_app_check - sha256: c4124632094a4062d7a1ff0a9f9c657ff54bece5d8393af4626cb191351a2aac - url: "https://pub.dev" - source: hosted - version: "0.3.2+10" - firebase_app_check_platform_interface: - dependency: transitive - description: - name: firebase_app_check_platform_interface - sha256: "4ca80bcc6c5c55289514d85e7c8ba8bc354342d23ab807b01c3f82e2fc7158e4" - url: "https://pub.dev" - source: hosted - version: "0.1.1+10" - firebase_app_check_web: - dependency: transitive - description: - name: firebase_app_check_web - sha256: b3150a78fe18c27525af05b149724ee33bd8592a5959e484fdfa5c98e25edb5f - url: "https://pub.dev" - source: hosted - version: "0.2.0+14" - firebase_auth: - dependency: "direct main" - description: - name: firebase_auth - sha256: "0fed2133bee1369ee1118c1fef27b2ce0d84c54b7819a2b17dada5cfec3b03ff" - url: "https://pub.dev" - source: hosted - version: "5.7.0" - firebase_auth_platform_interface: - dependency: transitive - description: - name: firebase_auth_platform_interface - sha256: "871c9df4ec9a754d1a793f7eb42fa3b94249d464cfb19152ba93e14a5966b386" - url: "https://pub.dev" - source: hosted - version: "7.7.3" - firebase_auth_web: - dependency: transitive - description: - name: firebase_auth_web - sha256: d9ada769c43261fd1b18decf113186e915c921a811bd5014f5ea08f4cf4bc57e - url: "https://pub.dev" - source: hosted - version: "5.15.3" - firebase_core: - dependency: transitive - description: - name: firebase_core - sha256: "7be63a3f841fc9663342f7f3a011a42aef6a61066943c90b1c434d79d5c995c5" - url: "https://pub.dev" - source: hosted - version: "3.15.2" - firebase_core_platform_interface: - dependency: transitive - description: - name: firebase_core_platform_interface - sha256: cccb4f572325dc14904c02fcc7db6323ad62ba02536833dddb5c02cac7341c64 - url: "https://pub.dev" - source: hosted - version: "6.0.2" - firebase_core_web: - dependency: transitive - description: - name: firebase_core_web - sha256: "0ed0dc292e8f9ac50992e2394e9d336a0275b6ae400d64163fdf0a8a8b556c37" - url: "https://pub.dev" - source: hosted - version: "2.24.1" - firebase_data_connect: - dependency: "direct main" - description: - name: firebase_data_connect - sha256: decc24f2ce21a305aa38f4840302aa893ad5cafd7ee4e05c2eb8a2808cb21c97 - url: "https://pub.dev" - source: hosted - version: "0.1.5+4" - fixnum: - dependency: transitive - description: - name: fixnum - sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be - url: "https://pub.dev" - source: hosted - version: "1.1.1" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_bloc: - dependency: "direct main" - description: - name: flutter_bloc - sha256: b594505eac31a0518bdcb4b5b79573b8d9117b193cc80cc12e17d639b10aa27a - url: "https://pub.dev" - source: hosted - version: "8.1.6" - flutter_localizations: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - flutter_modular: - dependency: "direct main" - description: - name: flutter_modular - sha256: "33a63d9fe61429d12b3dfa04795ed890f17d179d3d38e988ba7969651fcd5586" - url: "https://pub.dev" - source: hosted - version: "6.4.1" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - flutter_web_plugins: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - font_awesome_flutter: - dependency: transitive - description: - name: font_awesome_flutter - sha256: b9011df3a1fa02993630b8fb83526368cf2206a711259830325bab2f1d2a4eb0 - url: "https://pub.dev" - source: hosted - version: "10.12.0" - frontend_server_client: - dependency: transitive - description: - name: frontend_server_client - sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 - url: "https://pub.dev" - source: hosted - version: "4.0.0" - get_it: - dependency: "direct main" - description: - name: get_it - sha256: d85128a5dae4ea777324730dc65edd9c9f43155c109d5cc0a69cab74139fbac1 - url: "https://pub.dev" - source: hosted - version: "7.7.0" - glob: - dependency: transitive - description: - name: glob - sha256: c3f1ee72c96f8f78935e18aa8cecced9ab132419e8625dc187e1c2408efc20de - url: "https://pub.dev" - source: hosted - version: "2.1.3" - google_fonts: - dependency: transitive - description: - name: google_fonts - sha256: "6996212014b996eaa17074e02b1b925b212f5e053832d9048970dc27255a8fb3" - url: "https://pub.dev" - source: hosted - version: "7.1.0" - google_identity_services_web: - dependency: transitive - description: - name: google_identity_services_web - sha256: "5d187c46dc59e02646e10fe82665fc3884a9b71bc1c90c2b8b749316d33ee454" - url: "https://pub.dev" - source: hosted - version: "0.3.3+1" - googleapis_auth: - dependency: transitive - description: - name: googleapis_auth - sha256: befd71383a955535060acde8792e7efc11d2fccd03dd1d3ec434e85b68775938 - url: "https://pub.dev" - source: hosted - version: "1.6.0" - grpc: - dependency: transitive - description: - name: grpc - sha256: e93ee3bce45c134bf44e9728119102358c7cd69de7832d9a874e2e74eb8cab40 - url: "https://pub.dev" - source: hosted - version: "3.2.4" - hooks: - dependency: transitive - description: - name: hooks - sha256: "5d309c86e7ce34cd8e37aa71cb30cb652d3829b900ab145e4d9da564b31d59f7" - url: "https://pub.dev" - source: hosted - version: "1.0.0" - http: - dependency: transitive - description: - name: http - sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412" - url: "https://pub.dev" - source: hosted - version: "1.6.0" - http2: - dependency: transitive - description: - name: http2 - sha256: "382d3aefc5bd6dc68c6b892d7664f29b5beb3251611ae946a98d35158a82bbfa" - url: "https://pub.dev" - source: hosted - version: "2.3.1" - http_multi_server: - dependency: transitive - description: - name: http_multi_server - sha256: aa6199f908078bb1c5efb8d8638d4ae191aac11b311132c3ef48ce352fb52ef8 - url: "https://pub.dev" - source: hosted - version: "3.2.2" - http_parser: - dependency: transitive - description: - name: http_parser - sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571" - url: "https://pub.dev" - source: hosted - version: "4.1.2" - intl: - dependency: transitive - description: - name: intl - sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5" - url: "https://pub.dev" - source: hosted - version: "0.20.2" - io: - dependency: transitive - description: - name: io - sha256: dfd5a80599cf0165756e3181807ed3e77daf6dd4137caaad72d0b7931597650b - url: "https://pub.dev" - source: hosted - version: "1.0.5" - js: - dependency: transitive - description: - name: js - sha256: "53385261521cc4a0c4658fd0ad07a7d14591cf8fc33abbceae306ddb974888dc" - url: "https://pub.dev" - source: hosted - version: "0.7.2" - krow_core: - dependency: "direct main" - description: - path: "../../../../../core" - relative: true - source: path - version: "0.0.1" - krow_data_connect: - dependency: "direct main" - description: - path: "../../../../../data_connect" - relative: true - source: path - version: "0.0.1" - krow_domain: - dependency: "direct main" - description: - path: "../../../../../domain" - relative: true - source: path - version: "0.0.1" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" - url: "https://pub.dev" - source: hosted - version: "11.0.2" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" - url: "https://pub.dev" - source: hosted - version: "3.0.10" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" - url: "https://pub.dev" - source: hosted - version: "3.0.2" - logging: - dependency: transitive - description: - name: logging - sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 - url: "https://pub.dev" - source: hosted - version: "1.3.0" - lucide_icons: - dependency: transitive - description: - name: lucide_icons - sha256: ad24d0fd65707e48add30bebada7d90bff2a1bba0a72d6e9b19d44246b0e83c4 - url: "https://pub.dev" - source: hosted - version: "0.257.0" - matcher: - dependency: transitive - description: - name: matcher - sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 - url: "https://pub.dev" - source: hosted - version: "0.12.17" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec - url: "https://pub.dev" - source: hosted - version: "0.11.1" - meta: - dependency: transitive - description: - name: meta - sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394" - url: "https://pub.dev" - source: hosted - version: "1.17.0" - mime: - dependency: transitive - description: - name: mime - sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6" - url: "https://pub.dev" - source: hosted - version: "2.0.0" - mocktail: - dependency: "direct dev" - description: - name: mocktail - sha256: "890df3f9688106f25755f26b1c60589a92b3ab91a22b8b224947ad041bf172d8" - url: "https://pub.dev" - source: hosted - version: "1.0.4" - modular_core: - dependency: transitive - description: - name: modular_core - sha256: "1db0420a0dfb8a2c6dca846e7cbaa4ffeb778e247916dbcb27fb25aa566e5436" - url: "https://pub.dev" - source: hosted - version: "3.4.1" - native_toolchain_c: - dependency: transitive - description: - name: native_toolchain_c - sha256: "89e83885ba09da5fdf2cdacc8002a712ca238c28b7f717910b34bcd27b0d03ac" - url: "https://pub.dev" - source: hosted - version: "0.17.4" - nested: - dependency: transitive - description: - name: nested - sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20" - url: "https://pub.dev" - source: hosted - version: "1.0.0" - node_preamble: - dependency: transitive - description: - name: node_preamble - sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" - url: "https://pub.dev" - source: hosted - version: "2.0.2" - objective_c: - dependency: transitive - description: - name: objective_c - sha256: "7fd0c4d8ac8980011753b9bdaed2bf15111365924cdeeeaeb596214ea2b03537" - url: "https://pub.dev" - source: hosted - version: "9.2.4" - package_config: - dependency: transitive - description: - name: package_config - sha256: f096c55ebb7deb7e384101542bfba8c52696c1b56fca2eb62827989ef2353bbc - url: "https://pub.dev" - source: hosted - version: "2.2.0" - path: - dependency: transitive - description: - name: path - sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" - url: "https://pub.dev" - source: hosted - version: "1.9.1" - path_provider: - dependency: transitive - description: - name: path_provider - sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd" - url: "https://pub.dev" - source: hosted - version: "2.1.5" - path_provider_android: - dependency: transitive - description: - name: path_provider_android - sha256: f2c65e21139ce2c3dad46922be8272bb5963516045659e71bb16e151c93b580e - url: "https://pub.dev" - source: hosted - version: "2.2.22" - path_provider_foundation: - dependency: transitive - description: - name: path_provider_foundation - sha256: "2a376b7d6392d80cd3705782d2caa734ca4727776db0b6ec36ef3f1855197699" - url: "https://pub.dev" - source: hosted - version: "2.6.0" - path_provider_linux: - dependency: transitive - description: - name: path_provider_linux - sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 - url: "https://pub.dev" - source: hosted - version: "2.2.1" - path_provider_platform_interface: - dependency: transitive - description: - name: path_provider_platform_interface - sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - path_provider_windows: - dependency: transitive - description: - name: path_provider_windows - sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 - url: "https://pub.dev" - source: hosted - version: "2.3.0" - platform: - dependency: transitive - description: - name: platform - sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" - url: "https://pub.dev" - source: hosted - version: "3.1.6" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" - url: "https://pub.dev" - source: hosted - version: "2.1.8" - pool: - dependency: transitive - description: - name: pool - sha256: "978783255c543aa3586a1b3c21f6e9d720eb315376a915872c61ef8b5c20177d" - url: "https://pub.dev" - source: hosted - version: "1.5.2" - protobuf: - dependency: transitive - description: - name: protobuf - sha256: "68645b24e0716782e58948f8467fd42a880f255096a821f9e7d0ec625b00c84d" - url: "https://pub.dev" - source: hosted - version: "3.1.0" - provider: - dependency: transitive - description: - name: provider - sha256: "4e82183fa20e5ca25703ead7e05de9e4cceed1fbd1eadc1ac3cb6f565a09f272" - url: "https://pub.dev" - source: hosted - version: "6.1.5+1" - pub_semver: - dependency: transitive - description: - name: pub_semver - sha256: "5bfcf68ca79ef689f8990d1160781b4bad40a3bd5e5218ad4076ddb7f4081585" - url: "https://pub.dev" - source: hosted - version: "2.2.0" - result_dart: - dependency: transitive - description: - name: result_dart - sha256: "0666b21fbdf697b3bdd9986348a380aa204b3ebe7c146d8e4cdaa7ce735e6054" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - shared_preferences: - dependency: transitive - description: - name: shared_preferences - sha256: "2939ae520c9024cb197fc20dee269cd8cdbf564c8b5746374ec6cacdc5169e64" - url: "https://pub.dev" - source: hosted - version: "2.5.4" - shared_preferences_android: - dependency: transitive - description: - name: shared_preferences_android - sha256: "83af5c682796c0f7719c2bbf74792d113e40ae97981b8f266fa84574573556bc" - url: "https://pub.dev" - source: hosted - version: "2.4.18" - shared_preferences_foundation: - dependency: transitive - description: - name: shared_preferences_foundation - sha256: "4e7eaffc2b17ba398759f1151415869a34771ba11ebbccd1b0145472a619a64f" - url: "https://pub.dev" - source: hosted - version: "2.5.6" - shared_preferences_linux: - dependency: transitive - description: - name: shared_preferences_linux - sha256: "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - shared_preferences_platform_interface: - dependency: transitive - description: - name: shared_preferences_platform_interface - sha256: "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - shared_preferences_web: - dependency: transitive - description: - name: shared_preferences_web - sha256: c49bd060261c9a3f0ff445892695d6212ff603ef3115edbb448509d407600019 - url: "https://pub.dev" - source: hosted - version: "2.4.3" - shared_preferences_windows: - dependency: transitive - description: - name: shared_preferences_windows - sha256: "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - shelf: - dependency: transitive - description: - name: shelf - sha256: e7dd780a7ffb623c57850b33f43309312fc863fb6aa3d276a754bb299839ef12 - url: "https://pub.dev" - source: hosted - version: "1.4.2" - shelf_packages_handler: - dependency: transitive - description: - name: shelf_packages_handler - sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" - url: "https://pub.dev" - source: hosted - version: "3.0.2" - shelf_static: - dependency: transitive - description: - name: shelf_static - sha256: c87c3875f91262785dade62d135760c2c69cb217ac759485334c5857ad89f6e3 - url: "https://pub.dev" - source: hosted - version: "1.1.3" - shelf_web_socket: - dependency: transitive - description: - name: shelf_web_socket - sha256: "3632775c8e90d6c9712f883e633716432a27758216dfb61bd86a8321c0580925" - url: "https://pub.dev" - source: hosted - version: "3.0.0" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - slang: - dependency: transitive - description: - name: slang - sha256: "13e3b6f07adc51ab751e7889647774d294cbce7a3382f81d9e5029acfe9c37b2" - url: "https://pub.dev" - source: hosted - version: "4.12.0" - slang_flutter: - dependency: transitive - description: - name: slang_flutter - sha256: "0a4545cca5404d6b7487cf61cf1fe56c52daeb08de56a7574ee8381fbad035a0" - url: "https://pub.dev" - source: hosted - version: "4.12.0" - source_map_stack_trace: - dependency: transitive - description: - name: source_map_stack_trace - sha256: c0713a43e323c3302c2abe2a1cc89aa057a387101ebd280371d6a6c9fa68516b - url: "https://pub.dev" - source: hosted - version: "2.1.2" - source_maps: - dependency: transitive - description: - name: source_maps - sha256: "190222579a448b03896e0ca6eca5998fa810fda630c1d65e2f78b3f638f54812" - url: "https://pub.dev" - source: hosted - version: "0.10.13" - source_span: - dependency: transitive - description: - name: source_span - sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" - url: "https://pub.dev" - source: hosted - version: "1.10.1" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" - url: "https://pub.dev" - source: hosted - version: "1.12.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" - url: "https://pub.dev" - source: hosted - version: "1.4.1" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" - url: "https://pub.dev" - source: hosted - version: "1.2.2" - test: - dependency: transitive - description: - name: test - sha256: "75906bf273541b676716d1ca7627a17e4c4070a3a16272b7a3dc7da3b9f3f6b7" - url: "https://pub.dev" - source: hosted - version: "1.26.3" - test_api: - dependency: transitive - description: - name: test_api - sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55 - url: "https://pub.dev" - source: hosted - version: "0.7.7" - test_core: - dependency: transitive - description: - name: test_core - sha256: "0cc24b5ff94b38d2ae73e1eb43cc302b77964fbf67abad1e296025b78deb53d0" - url: "https://pub.dev" - source: hosted - version: "0.6.12" - typed_data: - dependency: transitive - description: - name: typed_data - sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 - url: "https://pub.dev" - source: hosted - version: "1.4.0" - uuid: - dependency: transitive - description: - name: uuid - sha256: a11b666489b1954e01d992f3d601b1804a33937b5a8fe677bd26b8a9f96f96e8 - url: "https://pub.dev" - source: hosted - version: "4.5.2" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b - url: "https://pub.dev" - source: hosted - version: "2.2.0" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60" - url: "https://pub.dev" - source: hosted - version: "15.0.2" - watcher: - dependency: transitive - description: - name: watcher - sha256: "1398c9f081a753f9226febe8900fce8f7d0a67163334e1c94a2438339d79d635" - url: "https://pub.dev" - source: hosted - version: "1.2.1" - web: - dependency: transitive - description: - name: web - sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a" - url: "https://pub.dev" - source: hosted - version: "1.1.1" - web_socket: - dependency: transitive - description: - name: web_socket - sha256: "34d64019aa8e36bf9842ac014bb5d2f5586ca73df5e4d9bf5c936975cae6982c" - url: "https://pub.dev" - source: hosted - version: "1.0.1" - web_socket_channel: - dependency: transitive - description: - name: web_socket_channel - sha256: d645757fb0f4773d602444000a8131ff5d48c9e47adfe9772652dd1a4f2d45c8 - url: "https://pub.dev" - source: hosted - version: "3.0.3" - webkit_inspection_protocol: - dependency: transitive - description: - name: webkit_inspection_protocol - sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" - url: "https://pub.dev" - source: hosted - version: "1.2.1" - xdg_directories: - dependency: transitive - description: - name: xdg_directories - sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - yaml: - dependency: transitive - description: - name: yaml - sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce - url: "https://pub.dev" - source: hosted - version: "3.1.3" -sdks: - dart: ">=3.10.7 <4.0.0" - flutter: ">=3.38.4" diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/certificates/pubspec.yaml b/apps/mobile/packages/features/staff/profile_sections/compliance/certificates/pubspec.yaml index b5cb42c3..e98a60a7 100644 --- a/apps/mobile/packages/features/staff/profile_sections/compliance/certificates/pubspec.yaml +++ b/apps/mobile/packages/features/staff/profile_sections/compliance/certificates/pubspec.yaml @@ -2,9 +2,10 @@ name: staff_certificates description: Staff certificates feature version: 0.0.1 publish_to: none +resolution: workspace environment: - sdk: '>=3.0.0 <4.0.0' + sdk: '>=3.10.0 <4.0.0' dependencies: flutter: diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/documents/pubspec.lock b/apps/mobile/packages/features/staff/profile_sections/compliance/documents/pubspec.lock deleted file mode 100644 index 9b3416a2..00000000 --- a/apps/mobile/packages/features/staff/profile_sections/compliance/documents/pubspec.lock +++ /dev/null @@ -1,778 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - _flutterfire_internals: - dependency: transitive - description: - name: _flutterfire_internals - sha256: cd83f7d6bd4e4c0b0b4fef802e8796784032e1cc23d7b0e982cf5d05d9bbe182 - url: "https://pub.dev" - source: hosted - version: "1.3.66" - archive: - dependency: transitive - description: - name: archive - sha256: cb6a278ef2dbb298455e1a713bda08524a175630ec643a242c399c932a0a1f7d - url: "https://pub.dev" - source: hosted - version: "3.6.1" - args: - dependency: transitive - description: - name: args - sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04 - url: "https://pub.dev" - source: hosted - version: "2.7.0" - async: - dependency: transitive - description: - name: async - sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb" - url: "https://pub.dev" - source: hosted - version: "2.13.0" - auto_injector: - dependency: transitive - description: - name: auto_injector - sha256: "1fc2624898e92485122eb2b1698dd42511d7ff6574f84a3a8606fc4549a1e8f8" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - bloc: - dependency: "direct main" - description: - name: bloc - sha256: "106842ad6569f0b60297619e9e0b1885c2fb9bf84812935490e6c5275777804e" - url: "https://pub.dev" - source: hosted - version: "8.1.4" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - characters: - dependency: transitive - description: - name: characters - sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 - url: "https://pub.dev" - source: hosted - version: "1.4.0" - clock: - dependency: transitive - description: - name: clock - sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b - url: "https://pub.dev" - source: hosted - version: "1.1.2" - code_assets: - dependency: transitive - description: - name: code_assets - sha256: "83ccdaa064c980b5596c35dd64a8d3ecc68620174ab9b90b6343b753aa721687" - url: "https://pub.dev" - source: hosted - version: "1.0.0" - collection: - dependency: transitive - description: - name: collection - sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" - url: "https://pub.dev" - source: hosted - version: "1.19.1" - core_localization: - dependency: "direct main" - description: - path: "../../../../../core_localization" - relative: true - source: path - version: "0.0.1" - crypto: - dependency: transitive - description: - name: crypto - sha256: c8ea0233063ba03258fbcf2ca4d6dadfefe14f02fab57702265467a19f27fadf - url: "https://pub.dev" - source: hosted - version: "3.0.7" - csv: - dependency: transitive - description: - name: csv - sha256: c6aa2679b2a18cb57652920f674488d89712efaf4d3fdf2e537215b35fc19d6c - url: "https://pub.dev" - source: hosted - version: "6.0.0" - design_system: - dependency: "direct main" - description: - path: "../../../../../design_system" - relative: true - source: path - version: "0.0.1" - equatable: - dependency: "direct main" - description: - name: equatable - sha256: "3e0141505477fd8ad55d6eb4e7776d3fe8430be8e497ccb1521370c3f21a3e2b" - url: "https://pub.dev" - source: hosted - version: "2.0.8" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" - url: "https://pub.dev" - source: hosted - version: "1.3.3" - ffi: - dependency: transitive - description: - name: ffi - sha256: d07d37192dbf97461359c1518788f203b0c9102cfd2c35a716b823741219542c - url: "https://pub.dev" - source: hosted - version: "2.1.5" - file: - dependency: transitive - description: - name: file - sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 - url: "https://pub.dev" - source: hosted - version: "7.0.1" - firebase_app_check: - dependency: transitive - description: - name: firebase_app_check - sha256: "45f0d279ea7ae4eac1867a4c85aa225761e3ac0ccf646386a860b2bc16581f76" - url: "https://pub.dev" - source: hosted - version: "0.4.1+4" - firebase_app_check_platform_interface: - dependency: transitive - description: - name: firebase_app_check_platform_interface - sha256: e32b4e6adeaac207a6f7afe0906d97c0811de42fb200d9b6317a09155de65e2b - url: "https://pub.dev" - source: hosted - version: "0.2.1+4" - firebase_app_check_web: - dependency: transitive - description: - name: firebase_app_check_web - sha256: "2cbc8a18a34813a7e31d7b30f989973087421cd5d0e397b4dd88a90289aa2bed" - url: "https://pub.dev" - source: hosted - version: "0.2.2+2" - firebase_auth: - dependency: "direct main" - description: - name: firebase_auth - sha256: b20d1540460814c5984474c1e9dd833bdbcff6ecd8d6ad86cc9da8cfd581c172 - url: "https://pub.dev" - source: hosted - version: "6.1.4" - firebase_auth_platform_interface: - dependency: transitive - description: - name: firebase_auth_platform_interface - sha256: fd0225320b6bbc92460c86352d16b60aea15f9ef88292774cca97b0522ea9f72 - url: "https://pub.dev" - source: hosted - version: "8.1.6" - firebase_auth_web: - dependency: transitive - description: - name: firebase_auth_web - sha256: be7dccb263b89fbda2a564de9d8193118196e8481ffb937222a025cdfdf82c40 - url: "https://pub.dev" - source: hosted - version: "6.1.2" - firebase_core: - dependency: transitive - description: - name: firebase_core - sha256: "923085c881663ef685269b013e241b428e1fb03cdd0ebde265d9b40ff18abf80" - url: "https://pub.dev" - source: hosted - version: "4.4.0" - firebase_core_platform_interface: - dependency: transitive - description: - name: firebase_core_platform_interface - sha256: cccb4f572325dc14904c02fcc7db6323ad62ba02536833dddb5c02cac7341c64 - url: "https://pub.dev" - source: hosted - version: "6.0.2" - firebase_core_web: - dependency: transitive - description: - name: firebase_core_web - sha256: "83e7356c704131ca4d8d8dd57e360d8acecbca38b1a3705c7ae46cc34c708084" - url: "https://pub.dev" - source: hosted - version: "3.4.0" - firebase_data_connect: - dependency: "direct main" - description: - name: firebase_data_connect - sha256: "01d0f8e33c520a6e6f59cf5ac6ff281d1927f7837f094fa8eb5fdb0b1b328ad8" - url: "https://pub.dev" - source: hosted - version: "0.2.2+2" - fixnum: - dependency: transitive - description: - name: fixnum - sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be - url: "https://pub.dev" - source: hosted - version: "1.1.1" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_bloc: - dependency: "direct main" - description: - name: flutter_bloc - sha256: b594505eac31a0518bdcb4b5b79573b8d9117b193cc80cc12e17d639b10aa27a - url: "https://pub.dev" - source: hosted - version: "8.1.6" - flutter_localizations: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - flutter_modular: - dependency: "direct main" - description: - name: flutter_modular - sha256: "33a63d9fe61429d12b3dfa04795ed890f17d179d3d38e988ba7969651fcd5586" - url: "https://pub.dev" - source: hosted - version: "6.4.1" - flutter_test: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - flutter_web_plugins: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - font_awesome_flutter: - dependency: transitive - description: - name: font_awesome_flutter - sha256: b9011df3a1fa02993630b8fb83526368cf2206a711259830325bab2f1d2a4eb0 - url: "https://pub.dev" - source: hosted - version: "10.12.0" - glob: - dependency: transitive - description: - name: glob - sha256: c3f1ee72c96f8f78935e18aa8cecced9ab132419e8625dc187e1c2408efc20de - url: "https://pub.dev" - source: hosted - version: "2.1.3" - google_fonts: - dependency: transitive - description: - name: google_fonts - sha256: "6996212014b996eaa17074e02b1b925b212f5e053832d9048970dc27255a8fb3" - url: "https://pub.dev" - source: hosted - version: "7.1.0" - google_identity_services_web: - dependency: transitive - description: - name: google_identity_services_web - sha256: "5d187c46dc59e02646e10fe82665fc3884a9b71bc1c90c2b8b749316d33ee454" - url: "https://pub.dev" - source: hosted - version: "0.3.3+1" - googleapis_auth: - dependency: transitive - description: - name: googleapis_auth - sha256: befd71383a955535060acde8792e7efc11d2fccd03dd1d3ec434e85b68775938 - url: "https://pub.dev" - source: hosted - version: "1.6.0" - grpc: - dependency: transitive - description: - name: grpc - sha256: e93ee3bce45c134bf44e9728119102358c7cd69de7832d9a874e2e74eb8cab40 - url: "https://pub.dev" - source: hosted - version: "3.2.4" - hooks: - dependency: transitive - description: - name: hooks - sha256: "5d309c86e7ce34cd8e37aa71cb30cb652d3829b900ab145e4d9da564b31d59f7" - url: "https://pub.dev" - source: hosted - version: "1.0.0" - http: - dependency: transitive - description: - name: http - sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412" - url: "https://pub.dev" - source: hosted - version: "1.6.0" - http2: - dependency: transitive - description: - name: http2 - sha256: "382d3aefc5bd6dc68c6b892d7664f29b5beb3251611ae946a98d35158a82bbfa" - url: "https://pub.dev" - source: hosted - version: "2.3.1" - http_parser: - dependency: transitive - description: - name: http_parser - sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571" - url: "https://pub.dev" - source: hosted - version: "4.1.2" - intl: - dependency: transitive - description: - name: intl - sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5" - url: "https://pub.dev" - source: hosted - version: "0.20.2" - krow_core: - dependency: "direct main" - description: - path: "../../../../../core" - relative: true - source: path - version: "0.0.1" - krow_data_connect: - dependency: "direct main" - description: - path: "../../../../../data_connect" - relative: true - source: path - version: "0.0.1" - krow_domain: - dependency: "direct main" - description: - path: "../../../../../domain" - relative: true - source: path - version: "0.0.1" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" - url: "https://pub.dev" - source: hosted - version: "11.0.2" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" - url: "https://pub.dev" - source: hosted - version: "3.0.10" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" - url: "https://pub.dev" - source: hosted - version: "3.0.2" - logging: - dependency: transitive - description: - name: logging - sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 - url: "https://pub.dev" - source: hosted - version: "1.3.0" - lucide_icons: - dependency: "direct main" - description: - name: lucide_icons - sha256: ad24d0fd65707e48add30bebada7d90bff2a1bba0a72d6e9b19d44246b0e83c4 - url: "https://pub.dev" - source: hosted - version: "0.257.0" - matcher: - dependency: transitive - description: - name: matcher - sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 - url: "https://pub.dev" - source: hosted - version: "0.12.17" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec - url: "https://pub.dev" - source: hosted - version: "0.11.1" - meta: - dependency: transitive - description: - name: meta - sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394" - url: "https://pub.dev" - source: hosted - version: "1.17.0" - modular_core: - dependency: transitive - description: - name: modular_core - sha256: "1db0420a0dfb8a2c6dca846e7cbaa4ffeb778e247916dbcb27fb25aa566e5436" - url: "https://pub.dev" - source: hosted - version: "3.4.1" - native_toolchain_c: - dependency: transitive - description: - name: native_toolchain_c - sha256: "89e83885ba09da5fdf2cdacc8002a712ca238c28b7f717910b34bcd27b0d03ac" - url: "https://pub.dev" - source: hosted - version: "0.17.4" - nested: - dependency: transitive - description: - name: nested - sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20" - url: "https://pub.dev" - source: hosted - version: "1.0.0" - objective_c: - dependency: transitive - description: - name: objective_c - sha256: "7fd0c4d8ac8980011753b9bdaed2bf15111365924cdeeeaeb596214ea2b03537" - url: "https://pub.dev" - source: hosted - version: "9.2.4" - path: - dependency: transitive - description: - name: path - sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" - url: "https://pub.dev" - source: hosted - version: "1.9.1" - path_provider: - dependency: transitive - description: - name: path_provider - sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd" - url: "https://pub.dev" - source: hosted - version: "2.1.5" - path_provider_android: - dependency: transitive - description: - name: path_provider_android - sha256: f2c65e21139ce2c3dad46922be8272bb5963516045659e71bb16e151c93b580e - url: "https://pub.dev" - source: hosted - version: "2.2.22" - path_provider_foundation: - dependency: transitive - description: - name: path_provider_foundation - sha256: "2a376b7d6392d80cd3705782d2caa734ca4727776db0b6ec36ef3f1855197699" - url: "https://pub.dev" - source: hosted - version: "2.6.0" - path_provider_linux: - dependency: transitive - description: - name: path_provider_linux - sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 - url: "https://pub.dev" - source: hosted - version: "2.2.1" - path_provider_platform_interface: - dependency: transitive - description: - name: path_provider_platform_interface - sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - path_provider_windows: - dependency: transitive - description: - name: path_provider_windows - sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 - url: "https://pub.dev" - source: hosted - version: "2.3.0" - platform: - dependency: transitive - description: - name: platform - sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" - url: "https://pub.dev" - source: hosted - version: "3.1.6" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" - url: "https://pub.dev" - source: hosted - version: "2.1.8" - protobuf: - dependency: transitive - description: - name: protobuf - sha256: "68645b24e0716782e58948f8467fd42a880f255096a821f9e7d0ec625b00c84d" - url: "https://pub.dev" - source: hosted - version: "3.1.0" - provider: - dependency: transitive - description: - name: provider - sha256: "4e82183fa20e5ca25703ead7e05de9e4cceed1fbd1eadc1ac3cb6f565a09f272" - url: "https://pub.dev" - source: hosted - version: "6.1.5+1" - pub_semver: - dependency: transitive - description: - name: pub_semver - sha256: "5bfcf68ca79ef689f8990d1160781b4bad40a3bd5e5218ad4076ddb7f4081585" - url: "https://pub.dev" - source: hosted - version: "2.2.0" - result_dart: - dependency: transitive - description: - name: result_dart - sha256: "0666b21fbdf697b3bdd9986348a380aa204b3ebe7c146d8e4cdaa7ce735e6054" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - shared_preferences: - dependency: transitive - description: - name: shared_preferences - sha256: "2939ae520c9024cb197fc20dee269cd8cdbf564c8b5746374ec6cacdc5169e64" - url: "https://pub.dev" - source: hosted - version: "2.5.4" - shared_preferences_android: - dependency: transitive - description: - name: shared_preferences_android - sha256: "83af5c682796c0f7719c2bbf74792d113e40ae97981b8f266fa84574573556bc" - url: "https://pub.dev" - source: hosted - version: "2.4.18" - shared_preferences_foundation: - dependency: transitive - description: - name: shared_preferences_foundation - sha256: "4e7eaffc2b17ba398759f1151415869a34771ba11ebbccd1b0145472a619a64f" - url: "https://pub.dev" - source: hosted - version: "2.5.6" - shared_preferences_linux: - dependency: transitive - description: - name: shared_preferences_linux - sha256: "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - shared_preferences_platform_interface: - dependency: transitive - description: - name: shared_preferences_platform_interface - sha256: "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - shared_preferences_web: - dependency: transitive - description: - name: shared_preferences_web - sha256: c49bd060261c9a3f0ff445892695d6212ff603ef3115edbb448509d407600019 - url: "https://pub.dev" - source: hosted - version: "2.4.3" - shared_preferences_windows: - dependency: transitive - description: - name: shared_preferences_windows - sha256: "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - slang: - dependency: transitive - description: - name: slang - sha256: "13e3b6f07adc51ab751e7889647774d294cbce7a3382f81d9e5029acfe9c37b2" - url: "https://pub.dev" - source: hosted - version: "4.12.0" - slang_flutter: - dependency: transitive - description: - name: slang_flutter - sha256: "0a4545cca5404d6b7487cf61cf1fe56c52daeb08de56a7574ee8381fbad035a0" - url: "https://pub.dev" - source: hosted - version: "4.12.0" - source_span: - dependency: transitive - description: - name: source_span - sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" - url: "https://pub.dev" - source: hosted - version: "1.10.1" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" - url: "https://pub.dev" - source: hosted - version: "1.12.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" - url: "https://pub.dev" - source: hosted - version: "1.4.1" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" - url: "https://pub.dev" - source: hosted - version: "1.2.2" - test_api: - dependency: transitive - description: - name: test_api - sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55 - url: "https://pub.dev" - source: hosted - version: "0.7.7" - typed_data: - dependency: transitive - description: - name: typed_data - sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 - url: "https://pub.dev" - source: hosted - version: "1.4.0" - uuid: - dependency: transitive - description: - name: uuid - sha256: a11b666489b1954e01d992f3d601b1804a33937b5a8fe677bd26b8a9f96f96e8 - url: "https://pub.dev" - source: hosted - version: "4.5.2" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b - url: "https://pub.dev" - source: hosted - version: "2.2.0" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60" - url: "https://pub.dev" - source: hosted - version: "15.0.2" - watcher: - dependency: transitive - description: - name: watcher - sha256: "1398c9f081a753f9226febe8900fce8f7d0a67163334e1c94a2438339d79d635" - url: "https://pub.dev" - source: hosted - version: "1.2.1" - web: - dependency: transitive - description: - name: web - sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a" - url: "https://pub.dev" - source: hosted - version: "1.1.1" - xdg_directories: - dependency: transitive - description: - name: xdg_directories - sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - yaml: - dependency: transitive - description: - name: yaml - sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce - url: "https://pub.dev" - source: hosted - version: "3.1.3" -sdks: - dart: ">=3.10.7 <4.0.0" - flutter: ">=3.38.4" diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/documents/pubspec.yaml b/apps/mobile/packages/features/staff/profile_sections/compliance/documents/pubspec.yaml index 8db95533..e6d64e0c 100644 --- a/apps/mobile/packages/features/staff/profile_sections/compliance/documents/pubspec.yaml +++ b/apps/mobile/packages/features/staff/profile_sections/compliance/documents/pubspec.yaml @@ -2,6 +2,7 @@ name: staff_documents description: Staff Documents feature. version: 0.0.1 publish_to: none +resolution: workspace environment: sdk: '>=3.10.0 <4.0.0' diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/data/mappers/tax_form_mapper.dart b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/data/mappers/tax_form_mapper.dart new file mode 100644 index 00000000..9de3c888 --- /dev/null +++ b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/data/mappers/tax_form_mapper.dart @@ -0,0 +1,76 @@ +import 'package:firebase_data_connect/firebase_data_connect.dart'; +import 'package:krow_data_connect/krow_data_connect.dart' as dc; +import 'package:krow_domain/krow_domain.dart'; + +class TaxFormMapper { + static TaxForm fromDataConnect(dc.GetTaxFormsByStaffIdTaxForms form) { + // Construct the legacy map for the entity + final Map formData = { + 'firstName': form.firstName, + 'lastName': form.lastName, + 'middleInitial': form.mInitial, + 'otherLastNames': form.oLastName, + 'dob': _formatDate(form.dob), + 'ssn': form.socialSN.toString(), + 'email': form.email, + 'phone': form.phone, + 'address': form.address, + 'aptNumber': form.apt, + 'city': form.city, + 'state': form.state, + 'zipCode': form.zipCode, + + // I-9 Fields + 'citizenshipStatus': form.citizen?.stringValue, + 'uscisNumber': form.uscis, + 'passportNumber': form.passportNumber, + 'countryIssuance': form.countryIssue, + 'preparerUsed': form.prepartorOrTranslator, + + // W-4 Fields + 'filingStatus': form.marital?.stringValue, + 'multipleJobs': form.multipleJob, + 'qualifyingChildren': form.childrens, + 'otherDependents': form.otherDeps, + 'otherIncome': form.otherInconme?.toString(), + 'deductions': form.deductions?.toString(), + 'extraWithholding': form.extraWithholding?.toString(), + + 'signature': form.signature, + }; + + String title = ''; + String subtitle = ''; + String description = ''; + + if (form.formType == dc.TaxFormType.I9) { + title = 'Form I-9'; + subtitle = 'Employment Eligibility Verification'; + description = 'Required for all new hires to verify identity.'; + } else { + title = 'Form W-4'; + subtitle = 'Employee\'s Withholding Certificate'; + description = 'Determines federal income tax withholding.'; + } + + return TaxFormAdapter.fromPrimitives( + id: form.id, + type: form.formType.stringValue, + title: title, + subtitle: subtitle, + description: description, + status: form.status.stringValue, + staffId: form.staffId, + formData: formData, + updatedAt: form.updatedAt?.toDateTime(), + ); + } + + static String? _formatDate(Timestamp? timestamp) { + if (timestamp == null) return null; + + final DateTime date = timestamp.toDateTime(); + + return '${date.month.toString().padLeft(2, '0')}/${date.day.toString().padLeft(2, '0')}/${date.year}'; + } +} diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/data/repositories/tax_forms_repository_impl.dart b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/data/repositories/tax_forms_repository_impl.dart index 5f8368a4..7307c194 100644 --- a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/data/repositories/tax_forms_repository_impl.dart +++ b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/data/repositories/tax_forms_repository_impl.dart @@ -6,6 +6,7 @@ import 'package:krow_data_connect/krow_data_connect.dart' as dc; import 'package:krow_domain/krow_domain.dart'; import '../../domain/repositories/tax_forms_repository.dart'; +import '../mappers/tax_form_mapper.dart'; class TaxFormsRepositoryImpl implements TaxFormsRepository { TaxFormsRepositoryImpl({ @@ -33,11 +34,11 @@ class TaxFormsRepositoryImpl implements TaxFormsRepository { @override Future> getTaxForms() async { final String staffId = _getStaffId(); - final QueryResult + final QueryResult result = - await dataConnect.getTaxFormsBystaffId(staffId: staffId).execute(); + await dataConnect.getTaxFormsByStaffId(staffId: staffId).execute(); - final List forms = result.data.taxForms.map((dc.GetTaxFormsBystaffIdTaxForms e) => _mapToEntity(e)).toList(); + final List forms = result.data.taxForms.map(TaxFormMapper.fromDataConnect).toList(); // Check if required forms exist, create if not. final Set typesPresent = forms.map((TaxForm f) => f.type).toSet(); @@ -53,98 +54,161 @@ class TaxFormsRepositoryImpl implements TaxFormsRepository { } if (createdNew) { - final QueryResult + final QueryResult result2 = - await dataConnect.getTaxFormsBystaffId(staffId: staffId).execute(); - return result2.data.taxForms.map((dc.GetTaxFormsBystaffIdTaxForms e) => _mapToEntity(e)).toList(); + await dataConnect.getTaxFormsByStaffId(staffId: staffId).execute(); + return result2.data.taxForms.map(TaxFormMapper.fromDataConnect).toList(); } return forms; } Future _createInitialForm(String staffId, TaxFormType type) async { - String title = ''; - String subtitle = ''; - String description = ''; - - if (type == TaxFormType.i9) { - title = 'Form I-9'; - subtitle = 'Employment Eligibility Verification'; - description = 'Required for all new hires to verify identity.'; - } else { - title = 'Form W-4'; - subtitle = 'Employee\'s Withholding Certificate'; - description = 'Determines federal income tax withholding.'; - } - await dataConnect .createTaxForm( staffId: staffId, - formType: dc.TaxFormType.values.byName(TaxFormAdapter.typeToString(type)), - title: title, + formType: + dc.TaxFormType.values.byName(TaxFormAdapter.typeToString(type)), + firstName: '', + lastName: '', + socialSN: 0, + address: '', + status: dc.TaxFormStatus.NOT_STARTED, ) - .subtitle(subtitle) - .description(description) - .status(dc.TaxFormStatus.NOT_STARTED) .execute(); } @override - Future submitForm(TaxFormType type, Map data) async { - final String staffId = _getStaffId(); - final QueryResult - result = - await dataConnect.getTaxFormsBystaffId(staffId: staffId).execute(); - final String targetTypeString = TaxFormAdapter.typeToString(type); - - final dc.GetTaxFormsBystaffIdTaxForms form = result.data.taxForms.firstWhere( - (dc.GetTaxFormsBystaffIdTaxForms e) => e.formType.stringValue == targetTypeString, - orElse: () => throw Exception('Form not found for submission'), - ); - - // AnyValue expects a scalar, list, or map. - await dataConnect - .updateTaxForm( - id: form.id, - ) - .formData(AnyValue.fromJson(data)) - .status(dc.TaxFormStatus.SUBMITTED) - .execute(); + Future updateI9Form(I9TaxForm form) async { + final Map data = form.formData; + final dc.UpdateTaxFormVariablesBuilder builder = dataConnect.updateTaxForm(id: form.id); + _mapCommonFields(builder, data); + _mapI9Fields(builder, data); + await builder.execute(); } @override - Future updateFormStatus(TaxFormType type, TaxFormStatus status) async { - final String staffId = _getStaffId(); - final QueryResult - result = - await dataConnect.getTaxFormsBystaffId(staffId: staffId).execute(); - final String targetTypeString = TaxFormAdapter.typeToString(type); - - final dc.GetTaxFormsBystaffIdTaxForms form = result.data.taxForms.firstWhere( - (dc.GetTaxFormsBystaffIdTaxForms e) => e.formType.stringValue == targetTypeString, - orElse: () => throw Exception('Form not found for update'), - ); - - await dataConnect - .updateTaxForm( - id: form.id, - ) - .status(dc.TaxFormStatus.values.byName(TaxFormAdapter.statusToString(status))) - .execute(); + Future submitI9Form(I9TaxForm form) async { + final Map data = form.formData; + final dc.UpdateTaxFormVariablesBuilder builder = dataConnect.updateTaxForm(id: form.id); + _mapCommonFields(builder, data); + _mapI9Fields(builder, data); + await builder.status(dc.TaxFormStatus.SUBMITTED).execute(); } - TaxForm _mapToEntity(dc.GetTaxFormsBystaffIdTaxForms form) { - return TaxFormAdapter.fromPrimitives( - id: form.id, - type: form.formType.stringValue, - title: form.title, - subtitle: form.subtitle, - description: form.description, - status: form.status.stringValue, - staffId: form.staffId, - formData: form.formData, // Adapter expects dynamic - updatedAt: form.updatedAt?.toDateTime(), - ); + @override + Future updateW4Form(W4TaxForm form) async { + final Map data = form.formData; + final dc.UpdateTaxFormVariablesBuilder builder = dataConnect.updateTaxForm(id: form.id); + _mapCommonFields(builder, data); + _mapW4Fields(builder, data); + await builder.execute(); + } + + @override + Future submitW4Form(W4TaxForm form) async { + final Map data = form.formData; + final dc.UpdateTaxFormVariablesBuilder builder = dataConnect.updateTaxForm(id: form.id); + _mapCommonFields(builder, data); + _mapW4Fields(builder, data); + await builder.status(dc.TaxFormStatus.SUBMITTED).execute(); + } + + void _mapCommonFields(dc.UpdateTaxFormVariablesBuilder builder, Map data) { + if (data.containsKey('firstName')) builder.firstName(data['firstName'] as String?); + if (data.containsKey('lastName')) builder.lastName(data['lastName'] as String?); + if (data.containsKey('middleInitial')) builder.mInitial(data['middleInitial'] as String?); + if (data.containsKey('otherLastNames')) builder.oLastName(data['otherLastNames'] as String?); + if (data.containsKey('dob')) { + final String dob = data['dob'] as String; + // Handle both ISO string and MM/dd/yyyy manual entry + DateTime? date; + try { + date = DateTime.parse(dob); + } catch (_) { + try { + // Fallback minimal parse for mm/dd/yyyy + final List parts = dob.split('/'); + if (parts.length == 3) { + date = DateTime( + int.parse(parts[2]), + int.parse(parts[0]), + int.parse(parts[1]), + ); + } + } catch (_) {} + } + if (date != null) { + final int ms = date.millisecondsSinceEpoch; + final int seconds = (ms / 1000).floor(); + builder.dob(Timestamp(0, seconds)); + } + } + if (data.containsKey('ssn') && data['ssn']?.toString().isNotEmpty == true) { + builder.socialSN(int.tryParse(data['ssn'].toString().replaceAll(RegExp(r'\D'), '')) ?? 0); + } + if (data.containsKey('email')) builder.email(data['email'] as String?); + if (data.containsKey('phone')) builder.phone(data['phone'] as String?); + if (data.containsKey('address')) builder.address(data['address'] as String?); + if (data.containsKey('aptNumber')) builder.apt(data['aptNumber'] as String?); + if (data.containsKey('city')) builder.city(data['city'] as String?); + if (data.containsKey('state')) builder.state(data['state'] as String?); + if (data.containsKey('zipCode')) builder.zipCode(data['zipCode'] as String?); + } + + void _mapI9Fields(dc.UpdateTaxFormVariablesBuilder builder, Map data) { + if (data.containsKey('citizenshipStatus')) { + final String status = data['citizenshipStatus'] as String; + // Map string to enum if possible, or handle otherwise. + // Generated enum: CITIZEN, NONCITIZEN_NATIONAL, PERMANENT_RESIDENT, ALIEN_AUTHORIZED + try { + builder.citizen(dc.CitizenshipStatus.values.byName(status.toUpperCase())); + } catch (_) {} + } + if (data.containsKey('uscisNumber')) builder.uscis(data['uscisNumber'] as String?); + if (data.containsKey('passportNumber')) builder.passportNumber(data['passportNumber'] as String?); + if (data.containsKey('countryIssuance')) builder.countryIssue(data['countryIssuance'] as String?); + if (data.containsKey('preparerUsed')) builder.prepartorOrTranslator(data['preparerUsed'] as bool?); + if (data.containsKey('signature')) builder.signature(data['signature'] as String?); + // Note: admissionNumber not in builder based on file read + } + + void _mapW4Fields(dc.UpdateTaxFormVariablesBuilder builder, Map data) { + if (data.containsKey('cityStateZip')) { + final String csz = data['cityStateZip'] as String; + // Extremely basic split: City, State Zip + final List parts = csz.split(','); + if (parts.length >= 2) { + builder.city(parts[0].trim()); + final String stateZip = parts[1].trim(); + final List szParts = stateZip.split(' '); + if (szParts.isNotEmpty) builder.state(szParts[0]); + if (szParts.length > 1) builder.zipCode(szParts.last); + } + } + if (data.containsKey('filingStatus')) { + // MARITIAL_STATUS_SINGLE, MARITIAL_STATUS_MARRIED, MARITIAL_STATUS_HEAD + try { + final String status = data['filingStatus'] as String; + // Simple mapping assumptions: + if (status.contains('single')) builder.marital(dc.MaritalStatus.SINGLE); + else if (status.contains('married')) builder.marital(dc.MaritalStatus.MARRIED); + else if (status.contains('head')) builder.marital(dc.MaritalStatus.HEAD); + } catch (_) {} + } + if (data.containsKey('multipleJobs')) builder.multipleJob(data['multipleJobs'] as bool?); + if (data.containsKey('qualifyingChildren')) builder.childrens(data['qualifyingChildren'] as int?); + if (data.containsKey('otherDependents')) builder.otherDeps(data['otherDependents'] as int?); + if (data.containsKey('otherIncome')) { + builder.otherInconme(double.tryParse(data['otherIncome'].toString())); + } + if (data.containsKey('deductions')) { + builder.deductions(double.tryParse(data['deductions'].toString())); + } + if (data.containsKey('extraWithholding')) { + builder.extraWithholding(double.tryParse(data['extraWithholding'].toString())); + } + if (data.containsKey('signature')) builder.signature(data['signature'] as String?); } } diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/entities/tax_form_entity.dart b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/entities/tax_form_entity.dart deleted file mode 100644 index c2ee5088..00000000 --- a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/entities/tax_form_entity.dart +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:equatable/equatable.dart'; - -enum TaxFormType { i9, w4 } - -enum TaxFormStatus { notStarted, inProgress, submitted, approved, rejected } - -class TaxFormEntity extends Equatable { - final TaxFormType type; - final String title; - final String subtitle; - final String description; - final TaxFormStatus status; - final DateTime? lastUpdated; - - const TaxFormEntity({ - required this.type, - required this.title, - required this.subtitle, - required this.description, - this.status = TaxFormStatus.notStarted, - this.lastUpdated, - }); - - @override - List get props => [type, title, subtitle, description, status, lastUpdated]; -} diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/repositories/tax_forms_repository.dart b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/repositories/tax_forms_repository.dart index de7095f5..26f5b061 100644 --- a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/repositories/tax_forms_repository.dart +++ b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/repositories/tax_forms_repository.dart @@ -2,6 +2,8 @@ import 'package:krow_domain/krow_domain.dart'; abstract class TaxFormsRepository { Future> getTaxForms(); - Future submitForm(TaxFormType type, Map data); - Future updateFormStatus(TaxFormType type, TaxFormStatus status); + Future updateI9Form(I9TaxForm form); + Future submitI9Form(I9TaxForm form); + Future updateW4Form(W4TaxForm form); + Future submitW4Form(W4TaxForm form); } diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/usecases/save_i9_form_usecase.dart b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/usecases/save_i9_form_usecase.dart new file mode 100644 index 00000000..09c52e27 --- /dev/null +++ b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/usecases/save_i9_form_usecase.dart @@ -0,0 +1,12 @@ +import 'package:krow_domain/krow_domain.dart'; +import '../repositories/tax_forms_repository.dart'; + +class SaveI9FormUseCase { + final TaxFormsRepository _repository; + + SaveI9FormUseCase(this._repository); + + Future call(I9TaxForm form) async { + return _repository.updateI9Form(form); + } +} diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/usecases/save_w4_form_usecase.dart b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/usecases/save_w4_form_usecase.dart new file mode 100644 index 00000000..995e090a --- /dev/null +++ b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/usecases/save_w4_form_usecase.dart @@ -0,0 +1,12 @@ +import 'package:krow_domain/krow_domain.dart'; +import '../repositories/tax_forms_repository.dart'; + +class SaveW4FormUseCase { + final TaxFormsRepository _repository; + + SaveW4FormUseCase(this._repository); + + Future call(W4TaxForm form) async { + return _repository.updateW4Form(form); + } +} diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/usecases/submit_i9_form_usecase.dart b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/usecases/submit_i9_form_usecase.dart new file mode 100644 index 00000000..b57370c7 --- /dev/null +++ b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/usecases/submit_i9_form_usecase.dart @@ -0,0 +1,12 @@ +import 'package:krow_domain/krow_domain.dart'; +import '../repositories/tax_forms_repository.dart'; + +class SubmitI9FormUseCase { + final TaxFormsRepository _repository; + + SubmitI9FormUseCase(this._repository); + + Future call(I9TaxForm form) async { + return _repository.submitI9Form(form); + } +} diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/usecases/submit_tax_form_usecase.dart b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/usecases/submit_tax_form_usecase.dart deleted file mode 100644 index c6a7f143..00000000 --- a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/usecases/submit_tax_form_usecase.dart +++ /dev/null @@ -1,12 +0,0 @@ -import 'package:krow_domain/krow_domain.dart'; -import '../repositories/tax_forms_repository.dart'; - -class SubmitTaxFormUseCase { - final TaxFormsRepository _repository; - - SubmitTaxFormUseCase(this._repository); - - Future call(TaxFormType type, Map data) async { - return _repository.submitForm(type, data); - } -} diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/usecases/submit_w4_form_usecase.dart b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/usecases/submit_w4_form_usecase.dart new file mode 100644 index 00000000..d4170855 --- /dev/null +++ b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/domain/usecases/submit_w4_form_usecase.dart @@ -0,0 +1,12 @@ +import 'package:krow_domain/krow_domain.dart'; +import '../repositories/tax_forms_repository.dart'; + +class SubmitW4FormUseCase { + final TaxFormsRepository _repository; + + SubmitW4FormUseCase(this._repository); + + Future call(W4TaxForm form) async { + return _repository.submitW4Form(form); + } +} diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/blocs/i9/form_i9_cubit.dart b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/blocs/i9/form_i9_cubit.dart index d4f1972a..4c7a6430 100644 --- a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/blocs/i9/form_i9_cubit.dart +++ b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/blocs/i9/form_i9_cubit.dart @@ -1,13 +1,47 @@ import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:krow_domain/krow_domain.dart'; +import 'package:uuid/uuid.dart'; -import '../../../domain/usecases/submit_tax_form_usecase.dart'; +import '../../../domain/usecases/submit_i9_form_usecase.dart'; import 'form_i9_state.dart'; class FormI9Cubit extends Cubit { - final SubmitTaxFormUseCase _submitTaxFormUseCase; + final SubmitI9FormUseCase _submitI9FormUseCase; + String _formId = ''; - FormI9Cubit(this._submitTaxFormUseCase) : super(const FormI9State()); + FormI9Cubit(this._submitI9FormUseCase) : super(const FormI9State()); + + void initialize(TaxForm? form) { + if (form == null || form.formData.isEmpty) { + emit(const FormI9State()); // Reset to empty if no form + return; + } + + final Map data = form.formData; + _formId = form.id; + emit(FormI9State( + firstName: data['firstName'] as String? ?? '', + lastName: data['lastName'] as String? ?? '', + middleInitial: data['middleInitial'] as String? ?? '', + otherLastNames: data['otherLastNames'] as String? ?? '', + dob: data['dob'] as String? ?? '', + ssn: data['ssn'] as String? ?? '', + email: data['email'] as String? ?? '', + phone: data['phone'] as String? ?? '', + address: data['address'] as String? ?? '', + aptNumber: data['aptNumber'] as String? ?? '', + city: data['city'] as String? ?? '', + state: data['state'] as String? ?? '', + zipCode: data['zipCode'] as String? ?? '', + citizenshipStatus: data['citizenshipStatus'] as String? ?? '', + uscisNumber: data['uscisNumber'] as String? ?? '', + admissionNumber: data['admissionNumber'] as String? ?? '', + passportNumber: data['passportNumber'] as String? ?? '', + countryIssuance: data['countryIssuance'] as String? ?? '', + preparerUsed: data['preparerUsed'] as bool? ?? false, + signature: data['signature'] as String? ?? '', + )); + } void nextStep(int totalSteps) { if (state.currentStep < totalSteps - 1) { @@ -52,18 +86,36 @@ class FormI9Cubit extends Cubit { Future submit() async { emit(state.copyWith(status: FormI9Status.submitting)); try { - await _submitTaxFormUseCase( - TaxFormType.i9, - { - 'firstName': state.firstName, - 'lastName': state.lastName, - 'middleInitial': state.middleInitial, - 'citizenshipStatus': state.citizenshipStatus, - 'ssn': state.ssn, - 'signature': state.signature, - // ... add other fields as needed for backend - }, + final Map formData = { + 'firstName': state.firstName, + 'lastName': state.lastName, + 'middleInitial': state.middleInitial, + 'otherLastNames': state.otherLastNames, + 'dob': state.dob, + 'ssn': state.ssn, + 'email': state.email, + 'phone': state.phone, + 'address': state.address, + 'aptNumber': state.aptNumber, + 'city': state.city, + 'state': state.state, + 'zipCode': state.zipCode, + 'citizenshipStatus': state.citizenshipStatus, + 'uscisNumber': state.uscisNumber, + 'admissionNumber': state.admissionNumber, + 'passportNumber': state.passportNumber, + 'countryIssuance': state.countryIssuance, + 'preparerUsed': state.preparerUsed, + 'signature': state.signature, + }; + + final I9TaxForm form = I9TaxForm( + id: _formId.isNotEmpty ? _formId : const Uuid().v4(), + title: 'Form I-9', + formData: formData, ); + + await _submitI9FormUseCase(form); emit(state.copyWith(status: FormI9Status.success)); } catch (e) { emit(state.copyWith( diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/blocs/w4/form_w4_cubit.dart b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/blocs/w4/form_w4_cubit.dart index 536a51fd..440ef51c 100644 --- a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/blocs/w4/form_w4_cubit.dart +++ b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/blocs/w4/form_w4_cubit.dart @@ -1,13 +1,47 @@ import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:krow_domain/krow_domain.dart'; +import 'package:uuid/uuid.dart'; -import '../../../domain/usecases/submit_tax_form_usecase.dart'; +import '../../../domain/usecases/submit_w4_form_usecase.dart'; import 'form_w4_state.dart'; class FormW4Cubit extends Cubit { - final SubmitTaxFormUseCase _submitTaxFormUseCase; + final SubmitW4FormUseCase _submitW4FormUseCase; + String _formId = ''; - FormW4Cubit(this._submitTaxFormUseCase) : super(const FormW4State()); + FormW4Cubit(this._submitW4FormUseCase) : super(const FormW4State()); + + void initialize(TaxForm? form) { + if (form == null || form.formData.isEmpty) { + emit(const FormW4State()); // Reset + return; + } + + final Map data = form.formData; + _formId = form.id; + + // Combine address parts if needed, or take existing + final String city = data['city'] as String? ?? ''; + final String stateVal = data['state'] as String? ?? ''; + final String zip = data['zipCode'] as String? ?? ''; + final String cityStateZip = '$city, $stateVal $zip'.trim(); + + emit(FormW4State( + firstName: data['firstName'] as String? ?? '', + lastName: data['lastName'] as String? ?? '', + ssn: data['ssn'] as String? ?? '', + address: data['address'] as String? ?? '', + cityStateZip: cityStateZip.contains(',') ? cityStateZip : '', + filingStatus: data['filingStatus'] as String? ?? '', + multipleJobs: data['multipleJobs'] as bool? ?? false, + qualifyingChildren: data['qualifyingChildren'] as int? ?? 0, + otherDependents: data['otherDependents'] as int? ?? 0, + otherIncome: data['otherIncome'] as String? ?? '', + deductions: data['deductions'] as String? ?? '', + extraWithholding: data['extraWithholding'] as String? ?? '', + signature: data['signature'] as String? ?? '', + )); + } void nextStep(int totalSteps) { if (state.currentStep < totalSteps - 1) { @@ -45,18 +79,29 @@ class FormW4Cubit extends Cubit { Future submit() async { emit(state.copyWith(status: FormW4Status.submitting)); try { - await _submitTaxFormUseCase( - TaxFormType.w4, - { - 'firstName': state.firstName, - 'lastName': state.lastName, - 'ssn': state.ssn, - 'filingStatus': state.filingStatus, - 'multipleJobs': state.multipleJobs, - 'signature': state.signature, - // ... add other fields as needed - }, + final Map formData = { + 'firstName': state.firstName, + 'lastName': state.lastName, + 'ssn': state.ssn, + 'address': state.address, + 'cityStateZip': state.cityStateZip, // Note: Repository should split this if needed. + 'filingStatus': state.filingStatus, + 'multipleJobs': state.multipleJobs, + 'qualifyingChildren': state.qualifyingChildren, + 'otherDependents': state.otherDependents, + 'otherIncome': state.otherIncome, + 'deductions': state.deductions, + 'extraWithholding': state.extraWithholding, + 'signature': state.signature, + }; + + final W4TaxForm form = W4TaxForm( + id: _formId.isNotEmpty ? _formId : const Uuid().v4(), + title: 'Form W-4', + formData: formData, ); + + await _submitW4FormUseCase(form); emit(state.copyWith(status: FormW4Status.success)); } catch (e) { emit(state.copyWith( diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/pages/form_i9_page.dart b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/pages/form_i9_page.dart index b62dd855..e22d97e8 100644 --- a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/pages/form_i9_page.dart +++ b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/pages/form_i9_page.dart @@ -2,12 +2,14 @@ import 'package:design_system/design_system.dart'; import 'package:flutter/material.dart'; import 'package:flutter_modular/flutter_modular.dart' hide ModularWatchExtension; import 'package:flutter_bloc/flutter_bloc.dart'; +import 'package:krow_domain/krow_domain.dart'; import '../blocs/i9/form_i9_cubit.dart'; import '../blocs/i9/form_i9_state.dart'; class FormI9Page extends StatefulWidget { - const FormI9Page({super.key}); + final TaxForm? form; + const FormI9Page({super.key, this.form}); @override State createState() => _FormI9PageState(); @@ -22,6 +24,16 @@ class _FormI9PageState extends State { 'SD', 'TN', 'TX', 'UT', 'VT', 'VA', 'WA', 'WV', 'WI', 'WY' ]; + @override + void initState() { + super.initState(); + if (widget.form != null) { + // Use post-frame callback or simple direct call since we are using Modular.get in build + // But better helper: + Modular.get().initialize(widget.form); + } + } + final List> _steps = >[ {'title': 'Personal Information', 'subtitle': 'Name and contact details'}, {'title': 'Address', 'subtitle': 'Your current address'}, diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/pages/form_w4_page.dart b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/pages/form_w4_page.dart index d7eec588..46139bb2 100644 --- a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/pages/form_w4_page.dart +++ b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/pages/form_w4_page.dart @@ -2,18 +2,81 @@ import 'package:design_system/design_system.dart'; import 'package:flutter/material.dart'; import 'package:flutter_modular/flutter_modular.dart' hide ModularWatchExtension; import 'package:flutter_bloc/flutter_bloc.dart'; +import 'package:krow_domain/krow_domain.dart'; import '../blocs/w4/form_w4_cubit.dart'; import '../blocs/w4/form_w4_state.dart'; class FormW4Page extends StatefulWidget { - const FormW4Page({super.key}); + final TaxForm? form; + const FormW4Page({super.key, this.form}); @override State createState() => _FormW4PageState(); } class _FormW4PageState extends State { + @override + void initState() { + super.initState(); + if (widget.form != null) { + Modular.get().initialize(widget.form); + } + } + + final List _usStates = [ + 'Alabama', + 'Alaska', + 'Arizona', + 'Arkansas', + 'California', + 'Colorado', + 'Connecticut', + 'Delaware', + 'Florida', + 'Georgia', + 'Hawaii', + 'Idaho', + 'Illinois', + 'Indiana', + 'Iowa', + 'Kansas', + 'Kentucky', + 'Louisiana', + 'Maine', + 'Maryland', + 'Massachusetts', + 'Michigan', + 'Minnesota', + 'Mississippi', + 'Missouri', + 'Montana', + 'Nebraska', + 'Nevada', + 'New Hampshire', + 'New Jersey', + 'New Mexico', + 'New York', + 'North Carolina', + 'North Dakota', + 'Ohio', + 'Oklahoma', + 'Oregon', + 'Pennsylvania', + 'Rhode Island', + 'South Carolina', + 'South Dakota', + 'Tennessee', + 'Texas', + 'Utah', + 'Vermont', + 'Virginia', + 'Washington', + 'West Virginia', + 'Wisconsin', + 'Wyoming', + ]; + final List> _steps = >[ {'title': 'Personal Information', 'subtitle': 'Step 1'}, {'title': 'Filing Status', 'subtitle': 'Step 1c'}, diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/pages/tax_forms_page.dart b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/pages/tax_forms_page.dart index c0abdb8b..bc241a7b 100644 --- a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/pages/tax_forms_page.dart +++ b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/presentation/pages/tax_forms_page.dart @@ -140,14 +140,14 @@ class TaxFormsPage extends StatelessWidget { Widget _buildFormCard(TaxForm form) { // Helper to get icon based on type (could be in entity or a mapper) - final String icon = form.type == TaxFormType.i9 ? '🛂' : '📋'; + final String icon = form is I9TaxForm ? '🛂' : '📋'; return GestureDetector( onTap: () { - if (form.type == TaxFormType.i9) { - Modular.to.pushNamed('i9'); - } else if (form.type == TaxFormType.w4) { - Modular.to.pushNamed('w4'); + if (form is I9TaxForm) { + Modular.to.pushNamed('i9', arguments: form); + } else if (form is W4TaxForm) { + Modular.to.pushNamed('w4', arguments: form); } }, child: Container( diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/staff_tax_forms_module.dart b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/staff_tax_forms_module.dart index 18f67e4b..7b390a17 100644 --- a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/staff_tax_forms_module.dart +++ b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/lib/src/staff_tax_forms_module.dart @@ -1,10 +1,12 @@ import 'package:firebase_auth/firebase_auth.dart'; import 'package:flutter_modular/flutter_modular.dart'; import 'package:krow_data_connect/krow_data_connect.dart'; +import 'package:krow_domain/krow_domain.dart'; import 'data/repositories/tax_forms_repository_impl.dart'; import 'domain/repositories/tax_forms_repository.dart'; import 'domain/usecases/get_tax_forms_usecase.dart'; -import 'domain/usecases/submit_tax_form_usecase.dart'; +import 'domain/usecases/submit_i9_form_usecase.dart'; +import 'domain/usecases/submit_w4_form_usecase.dart'; import 'presentation/blocs/i9/form_i9_cubit.dart'; import 'presentation/blocs/tax_forms/tax_forms_cubit.dart'; import 'presentation/blocs/w4/form_w4_cubit.dart'; @@ -24,7 +26,8 @@ class StaffTaxFormsModule extends Module { // Use Cases i.addLazySingleton(GetTaxFormsUseCase.new); - i.addLazySingleton(SubmitTaxFormUseCase.new); + i.addLazySingleton(SubmitI9FormUseCase.new); + i.addLazySingleton(SubmitW4FormUseCase.new); // Blocs i.addLazySingleton(TaxFormsCubit.new); @@ -35,7 +38,13 @@ class StaffTaxFormsModule extends Module { @override void routes(RouteManager r) { r.child('/', child: (_) => const TaxFormsPage()); - r.child('/i9', child: (_) => const FormI9Page()); - r.child('/w4', child: (_) => const FormW4Page()); + r.child( + '/i9', + child: (_) => FormI9Page(form: r.args.data as TaxForm?), + ); + r.child( + '/w4', + child: (_) => FormW4Page(form: r.args.data as TaxForm?), + ); } } diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/pubspec.lock b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/pubspec.lock deleted file mode 100644 index 9b3416a2..00000000 --- a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/pubspec.lock +++ /dev/null @@ -1,778 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - _flutterfire_internals: - dependency: transitive - description: - name: _flutterfire_internals - sha256: cd83f7d6bd4e4c0b0b4fef802e8796784032e1cc23d7b0e982cf5d05d9bbe182 - url: "https://pub.dev" - source: hosted - version: "1.3.66" - archive: - dependency: transitive - description: - name: archive - sha256: cb6a278ef2dbb298455e1a713bda08524a175630ec643a242c399c932a0a1f7d - url: "https://pub.dev" - source: hosted - version: "3.6.1" - args: - dependency: transitive - description: - name: args - sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04 - url: "https://pub.dev" - source: hosted - version: "2.7.0" - async: - dependency: transitive - description: - name: async - sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb" - url: "https://pub.dev" - source: hosted - version: "2.13.0" - auto_injector: - dependency: transitive - description: - name: auto_injector - sha256: "1fc2624898e92485122eb2b1698dd42511d7ff6574f84a3a8606fc4549a1e8f8" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - bloc: - dependency: "direct main" - description: - name: bloc - sha256: "106842ad6569f0b60297619e9e0b1885c2fb9bf84812935490e6c5275777804e" - url: "https://pub.dev" - source: hosted - version: "8.1.4" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - characters: - dependency: transitive - description: - name: characters - sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 - url: "https://pub.dev" - source: hosted - version: "1.4.0" - clock: - dependency: transitive - description: - name: clock - sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b - url: "https://pub.dev" - source: hosted - version: "1.1.2" - code_assets: - dependency: transitive - description: - name: code_assets - sha256: "83ccdaa064c980b5596c35dd64a8d3ecc68620174ab9b90b6343b753aa721687" - url: "https://pub.dev" - source: hosted - version: "1.0.0" - collection: - dependency: transitive - description: - name: collection - sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" - url: "https://pub.dev" - source: hosted - version: "1.19.1" - core_localization: - dependency: "direct main" - description: - path: "../../../../../core_localization" - relative: true - source: path - version: "0.0.1" - crypto: - dependency: transitive - description: - name: crypto - sha256: c8ea0233063ba03258fbcf2ca4d6dadfefe14f02fab57702265467a19f27fadf - url: "https://pub.dev" - source: hosted - version: "3.0.7" - csv: - dependency: transitive - description: - name: csv - sha256: c6aa2679b2a18cb57652920f674488d89712efaf4d3fdf2e537215b35fc19d6c - url: "https://pub.dev" - source: hosted - version: "6.0.0" - design_system: - dependency: "direct main" - description: - path: "../../../../../design_system" - relative: true - source: path - version: "0.0.1" - equatable: - dependency: "direct main" - description: - name: equatable - sha256: "3e0141505477fd8ad55d6eb4e7776d3fe8430be8e497ccb1521370c3f21a3e2b" - url: "https://pub.dev" - source: hosted - version: "2.0.8" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" - url: "https://pub.dev" - source: hosted - version: "1.3.3" - ffi: - dependency: transitive - description: - name: ffi - sha256: d07d37192dbf97461359c1518788f203b0c9102cfd2c35a716b823741219542c - url: "https://pub.dev" - source: hosted - version: "2.1.5" - file: - dependency: transitive - description: - name: file - sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 - url: "https://pub.dev" - source: hosted - version: "7.0.1" - firebase_app_check: - dependency: transitive - description: - name: firebase_app_check - sha256: "45f0d279ea7ae4eac1867a4c85aa225761e3ac0ccf646386a860b2bc16581f76" - url: "https://pub.dev" - source: hosted - version: "0.4.1+4" - firebase_app_check_platform_interface: - dependency: transitive - description: - name: firebase_app_check_platform_interface - sha256: e32b4e6adeaac207a6f7afe0906d97c0811de42fb200d9b6317a09155de65e2b - url: "https://pub.dev" - source: hosted - version: "0.2.1+4" - firebase_app_check_web: - dependency: transitive - description: - name: firebase_app_check_web - sha256: "2cbc8a18a34813a7e31d7b30f989973087421cd5d0e397b4dd88a90289aa2bed" - url: "https://pub.dev" - source: hosted - version: "0.2.2+2" - firebase_auth: - dependency: "direct main" - description: - name: firebase_auth - sha256: b20d1540460814c5984474c1e9dd833bdbcff6ecd8d6ad86cc9da8cfd581c172 - url: "https://pub.dev" - source: hosted - version: "6.1.4" - firebase_auth_platform_interface: - dependency: transitive - description: - name: firebase_auth_platform_interface - sha256: fd0225320b6bbc92460c86352d16b60aea15f9ef88292774cca97b0522ea9f72 - url: "https://pub.dev" - source: hosted - version: "8.1.6" - firebase_auth_web: - dependency: transitive - description: - name: firebase_auth_web - sha256: be7dccb263b89fbda2a564de9d8193118196e8481ffb937222a025cdfdf82c40 - url: "https://pub.dev" - source: hosted - version: "6.1.2" - firebase_core: - dependency: transitive - description: - name: firebase_core - sha256: "923085c881663ef685269b013e241b428e1fb03cdd0ebde265d9b40ff18abf80" - url: "https://pub.dev" - source: hosted - version: "4.4.0" - firebase_core_platform_interface: - dependency: transitive - description: - name: firebase_core_platform_interface - sha256: cccb4f572325dc14904c02fcc7db6323ad62ba02536833dddb5c02cac7341c64 - url: "https://pub.dev" - source: hosted - version: "6.0.2" - firebase_core_web: - dependency: transitive - description: - name: firebase_core_web - sha256: "83e7356c704131ca4d8d8dd57e360d8acecbca38b1a3705c7ae46cc34c708084" - url: "https://pub.dev" - source: hosted - version: "3.4.0" - firebase_data_connect: - dependency: "direct main" - description: - name: firebase_data_connect - sha256: "01d0f8e33c520a6e6f59cf5ac6ff281d1927f7837f094fa8eb5fdb0b1b328ad8" - url: "https://pub.dev" - source: hosted - version: "0.2.2+2" - fixnum: - dependency: transitive - description: - name: fixnum - sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be - url: "https://pub.dev" - source: hosted - version: "1.1.1" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_bloc: - dependency: "direct main" - description: - name: flutter_bloc - sha256: b594505eac31a0518bdcb4b5b79573b8d9117b193cc80cc12e17d639b10aa27a - url: "https://pub.dev" - source: hosted - version: "8.1.6" - flutter_localizations: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - flutter_modular: - dependency: "direct main" - description: - name: flutter_modular - sha256: "33a63d9fe61429d12b3dfa04795ed890f17d179d3d38e988ba7969651fcd5586" - url: "https://pub.dev" - source: hosted - version: "6.4.1" - flutter_test: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - flutter_web_plugins: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - font_awesome_flutter: - dependency: transitive - description: - name: font_awesome_flutter - sha256: b9011df3a1fa02993630b8fb83526368cf2206a711259830325bab2f1d2a4eb0 - url: "https://pub.dev" - source: hosted - version: "10.12.0" - glob: - dependency: transitive - description: - name: glob - sha256: c3f1ee72c96f8f78935e18aa8cecced9ab132419e8625dc187e1c2408efc20de - url: "https://pub.dev" - source: hosted - version: "2.1.3" - google_fonts: - dependency: transitive - description: - name: google_fonts - sha256: "6996212014b996eaa17074e02b1b925b212f5e053832d9048970dc27255a8fb3" - url: "https://pub.dev" - source: hosted - version: "7.1.0" - google_identity_services_web: - dependency: transitive - description: - name: google_identity_services_web - sha256: "5d187c46dc59e02646e10fe82665fc3884a9b71bc1c90c2b8b749316d33ee454" - url: "https://pub.dev" - source: hosted - version: "0.3.3+1" - googleapis_auth: - dependency: transitive - description: - name: googleapis_auth - sha256: befd71383a955535060acde8792e7efc11d2fccd03dd1d3ec434e85b68775938 - url: "https://pub.dev" - source: hosted - version: "1.6.0" - grpc: - dependency: transitive - description: - name: grpc - sha256: e93ee3bce45c134bf44e9728119102358c7cd69de7832d9a874e2e74eb8cab40 - url: "https://pub.dev" - source: hosted - version: "3.2.4" - hooks: - dependency: transitive - description: - name: hooks - sha256: "5d309c86e7ce34cd8e37aa71cb30cb652d3829b900ab145e4d9da564b31d59f7" - url: "https://pub.dev" - source: hosted - version: "1.0.0" - http: - dependency: transitive - description: - name: http - sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412" - url: "https://pub.dev" - source: hosted - version: "1.6.0" - http2: - dependency: transitive - description: - name: http2 - sha256: "382d3aefc5bd6dc68c6b892d7664f29b5beb3251611ae946a98d35158a82bbfa" - url: "https://pub.dev" - source: hosted - version: "2.3.1" - http_parser: - dependency: transitive - description: - name: http_parser - sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571" - url: "https://pub.dev" - source: hosted - version: "4.1.2" - intl: - dependency: transitive - description: - name: intl - sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5" - url: "https://pub.dev" - source: hosted - version: "0.20.2" - krow_core: - dependency: "direct main" - description: - path: "../../../../../core" - relative: true - source: path - version: "0.0.1" - krow_data_connect: - dependency: "direct main" - description: - path: "../../../../../data_connect" - relative: true - source: path - version: "0.0.1" - krow_domain: - dependency: "direct main" - description: - path: "../../../../../domain" - relative: true - source: path - version: "0.0.1" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" - url: "https://pub.dev" - source: hosted - version: "11.0.2" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" - url: "https://pub.dev" - source: hosted - version: "3.0.10" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" - url: "https://pub.dev" - source: hosted - version: "3.0.2" - logging: - dependency: transitive - description: - name: logging - sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 - url: "https://pub.dev" - source: hosted - version: "1.3.0" - lucide_icons: - dependency: "direct main" - description: - name: lucide_icons - sha256: ad24d0fd65707e48add30bebada7d90bff2a1bba0a72d6e9b19d44246b0e83c4 - url: "https://pub.dev" - source: hosted - version: "0.257.0" - matcher: - dependency: transitive - description: - name: matcher - sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 - url: "https://pub.dev" - source: hosted - version: "0.12.17" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec - url: "https://pub.dev" - source: hosted - version: "0.11.1" - meta: - dependency: transitive - description: - name: meta - sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394" - url: "https://pub.dev" - source: hosted - version: "1.17.0" - modular_core: - dependency: transitive - description: - name: modular_core - sha256: "1db0420a0dfb8a2c6dca846e7cbaa4ffeb778e247916dbcb27fb25aa566e5436" - url: "https://pub.dev" - source: hosted - version: "3.4.1" - native_toolchain_c: - dependency: transitive - description: - name: native_toolchain_c - sha256: "89e83885ba09da5fdf2cdacc8002a712ca238c28b7f717910b34bcd27b0d03ac" - url: "https://pub.dev" - source: hosted - version: "0.17.4" - nested: - dependency: transitive - description: - name: nested - sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20" - url: "https://pub.dev" - source: hosted - version: "1.0.0" - objective_c: - dependency: transitive - description: - name: objective_c - sha256: "7fd0c4d8ac8980011753b9bdaed2bf15111365924cdeeeaeb596214ea2b03537" - url: "https://pub.dev" - source: hosted - version: "9.2.4" - path: - dependency: transitive - description: - name: path - sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" - url: "https://pub.dev" - source: hosted - version: "1.9.1" - path_provider: - dependency: transitive - description: - name: path_provider - sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd" - url: "https://pub.dev" - source: hosted - version: "2.1.5" - path_provider_android: - dependency: transitive - description: - name: path_provider_android - sha256: f2c65e21139ce2c3dad46922be8272bb5963516045659e71bb16e151c93b580e - url: "https://pub.dev" - source: hosted - version: "2.2.22" - path_provider_foundation: - dependency: transitive - description: - name: path_provider_foundation - sha256: "2a376b7d6392d80cd3705782d2caa734ca4727776db0b6ec36ef3f1855197699" - url: "https://pub.dev" - source: hosted - version: "2.6.0" - path_provider_linux: - dependency: transitive - description: - name: path_provider_linux - sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 - url: "https://pub.dev" - source: hosted - version: "2.2.1" - path_provider_platform_interface: - dependency: transitive - description: - name: path_provider_platform_interface - sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - path_provider_windows: - dependency: transitive - description: - name: path_provider_windows - sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 - url: "https://pub.dev" - source: hosted - version: "2.3.0" - platform: - dependency: transitive - description: - name: platform - sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" - url: "https://pub.dev" - source: hosted - version: "3.1.6" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" - url: "https://pub.dev" - source: hosted - version: "2.1.8" - protobuf: - dependency: transitive - description: - name: protobuf - sha256: "68645b24e0716782e58948f8467fd42a880f255096a821f9e7d0ec625b00c84d" - url: "https://pub.dev" - source: hosted - version: "3.1.0" - provider: - dependency: transitive - description: - name: provider - sha256: "4e82183fa20e5ca25703ead7e05de9e4cceed1fbd1eadc1ac3cb6f565a09f272" - url: "https://pub.dev" - source: hosted - version: "6.1.5+1" - pub_semver: - dependency: transitive - description: - name: pub_semver - sha256: "5bfcf68ca79ef689f8990d1160781b4bad40a3bd5e5218ad4076ddb7f4081585" - url: "https://pub.dev" - source: hosted - version: "2.2.0" - result_dart: - dependency: transitive - description: - name: result_dart - sha256: "0666b21fbdf697b3bdd9986348a380aa204b3ebe7c146d8e4cdaa7ce735e6054" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - shared_preferences: - dependency: transitive - description: - name: shared_preferences - sha256: "2939ae520c9024cb197fc20dee269cd8cdbf564c8b5746374ec6cacdc5169e64" - url: "https://pub.dev" - source: hosted - version: "2.5.4" - shared_preferences_android: - dependency: transitive - description: - name: shared_preferences_android - sha256: "83af5c682796c0f7719c2bbf74792d113e40ae97981b8f266fa84574573556bc" - url: "https://pub.dev" - source: hosted - version: "2.4.18" - shared_preferences_foundation: - dependency: transitive - description: - name: shared_preferences_foundation - sha256: "4e7eaffc2b17ba398759f1151415869a34771ba11ebbccd1b0145472a619a64f" - url: "https://pub.dev" - source: hosted - version: "2.5.6" - shared_preferences_linux: - dependency: transitive - description: - name: shared_preferences_linux - sha256: "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - shared_preferences_platform_interface: - dependency: transitive - description: - name: shared_preferences_platform_interface - sha256: "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - shared_preferences_web: - dependency: transitive - description: - name: shared_preferences_web - sha256: c49bd060261c9a3f0ff445892695d6212ff603ef3115edbb448509d407600019 - url: "https://pub.dev" - source: hosted - version: "2.4.3" - shared_preferences_windows: - dependency: transitive - description: - name: shared_preferences_windows - sha256: "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - slang: - dependency: transitive - description: - name: slang - sha256: "13e3b6f07adc51ab751e7889647774d294cbce7a3382f81d9e5029acfe9c37b2" - url: "https://pub.dev" - source: hosted - version: "4.12.0" - slang_flutter: - dependency: transitive - description: - name: slang_flutter - sha256: "0a4545cca5404d6b7487cf61cf1fe56c52daeb08de56a7574ee8381fbad035a0" - url: "https://pub.dev" - source: hosted - version: "4.12.0" - source_span: - dependency: transitive - description: - name: source_span - sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" - url: "https://pub.dev" - source: hosted - version: "1.10.1" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" - url: "https://pub.dev" - source: hosted - version: "1.12.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" - url: "https://pub.dev" - source: hosted - version: "1.4.1" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" - url: "https://pub.dev" - source: hosted - version: "1.2.2" - test_api: - dependency: transitive - description: - name: test_api - sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55 - url: "https://pub.dev" - source: hosted - version: "0.7.7" - typed_data: - dependency: transitive - description: - name: typed_data - sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 - url: "https://pub.dev" - source: hosted - version: "1.4.0" - uuid: - dependency: transitive - description: - name: uuid - sha256: a11b666489b1954e01d992f3d601b1804a33937b5a8fe677bd26b8a9f96f96e8 - url: "https://pub.dev" - source: hosted - version: "4.5.2" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b - url: "https://pub.dev" - source: hosted - version: "2.2.0" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60" - url: "https://pub.dev" - source: hosted - version: "15.0.2" - watcher: - dependency: transitive - description: - name: watcher - sha256: "1398c9f081a753f9226febe8900fce8f7d0a67163334e1c94a2438339d79d635" - url: "https://pub.dev" - source: hosted - version: "1.2.1" - web: - dependency: transitive - description: - name: web - sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a" - url: "https://pub.dev" - source: hosted - version: "1.1.1" - xdg_directories: - dependency: transitive - description: - name: xdg_directories - sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - yaml: - dependency: transitive - description: - name: yaml - sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce - url: "https://pub.dev" - source: hosted - version: "3.1.3" -sdks: - dart: ">=3.10.7 <4.0.0" - flutter: ">=3.38.4" diff --git a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/pubspec.yaml b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/pubspec.yaml index d0ae944d..3991f442 100644 --- a/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/pubspec.yaml +++ b/apps/mobile/packages/features/staff/profile_sections/compliance/tax_forms/pubspec.yaml @@ -2,6 +2,7 @@ name: staff_tax_forms description: Staff Tax Forms feature. version: 0.0.1 publish_to: none +resolution: workspace environment: sdk: '>=3.10.0 <4.0.0' diff --git a/apps/mobile/packages/features/staff/profile_sections/finances/staff_bank_account/pubspec.yaml b/apps/mobile/packages/features/staff/profile_sections/finances/staff_bank_account/pubspec.yaml index 4d6785ee..a8605f2a 100644 --- a/apps/mobile/packages/features/staff/profile_sections/finances/staff_bank_account/pubspec.yaml +++ b/apps/mobile/packages/features/staff/profile_sections/finances/staff_bank_account/pubspec.yaml @@ -34,4 +34,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.0 + flutter_lints: ^6.0.0 diff --git a/apps/mobile/packages/features/staff/profile_sections/finances/time_card/pubspec.yaml b/apps/mobile/packages/features/staff/profile_sections/finances/time_card/pubspec.yaml index d74dc6b2..311e8ca8 100644 --- a/apps/mobile/packages/features/staff/profile_sections/finances/time_card/pubspec.yaml +++ b/apps/mobile/packages/features/staff/profile_sections/finances/time_card/pubspec.yaml @@ -2,9 +2,10 @@ name: staff_time_card description: Staff Time Card Feature version: 0.0.1 publish_to: none +resolution: workspace environment: - sdk: '>=3.0.0 <4.0.0' + sdk: '>=3.10.0 <4.0.0' flutter: ">=3.0.0" dependencies: diff --git a/apps/mobile/packages/features/staff/profile_sections/onboarding/attire/pubspec.yaml b/apps/mobile/packages/features/staff/profile_sections/onboarding/attire/pubspec.yaml index b87789a7..07a124c8 100644 --- a/apps/mobile/packages/features/staff/profile_sections/onboarding/attire/pubspec.yaml +++ b/apps/mobile/packages/features/staff/profile_sections/onboarding/attire/pubspec.yaml @@ -31,4 +31,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.0 + flutter_lints: ^6.0.0 diff --git a/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/blocs/personal_info_bloc.dart b/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/blocs/personal_info_bloc.dart index 29f5e700..47ba08f7 100644 --- a/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/blocs/personal_info_bloc.dart +++ b/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/blocs/personal_info_bloc.dart @@ -25,11 +25,13 @@ class PersonalInfoBloc extends Bloc required UpdatePersonalInfoUseCase updatePersonalInfoUseCase, }) : _getPersonalInfoUseCase = getPersonalInfoUseCase, _updatePersonalInfoUseCase = updatePersonalInfoUseCase, - super(const PersonalInfoState()) { + super(const PersonalInfoState.initial()) { on(_onLoadRequested); - on(_onFieldUpdated); - on(_onSaveRequested); - on(_onPhotoUploadRequested); + on(_onFieldChanged); + on(_onAddressSelected); + on(_onSubmitted); + + add(const PersonalInfoLoadRequested()); } /// Handles loading staff profile information. @@ -67,8 +69,8 @@ class PersonalInfoBloc extends Bloc } /// Handles updating a field value in the current staff profile. - void _onFieldUpdated( - PersonalInfoFieldUpdated event, + void _onFieldChanged( + PersonalInfoFieldChanged event, Emitter emit, ) { final Map updatedValues = Map.from(state.formValues); @@ -77,8 +79,8 @@ class PersonalInfoBloc extends Bloc } /// Handles saving staff profile information. - Future _onSaveRequested( - PersonalInfoSaveRequested event, + Future _onSubmitted( + PersonalInfoFormSubmitted event, Emitter emit, ) async { if (state.staff == null) return; @@ -116,33 +118,16 @@ class PersonalInfoBloc extends Bloc } } - /// Handles uploading a profile photo. - Future _onPhotoUploadRequested( - PersonalInfoPhotoUploadRequested event, + void _onAddressSelected( + PersonalInfoAddressSelected event, Emitter emit, - ) async { - if (state.staff == null) return; - - emit(state.copyWith(status: PersonalInfoStatus.uploadingPhoto)); - try { - // TODO: Implement photo upload when repository method is available - // final photoUrl = await _repository.uploadProfilePhoto(event.filePath); - // final updatedStaff = Staff(...); - // emit(state.copyWith( - // status: PersonalInfoStatus.loaded, - // staff: updatedStaff, - // )); - - // For now, just return to loaded state - emit(state.copyWith(status: PersonalInfoStatus.loaded)); - } catch (e) { - emit(state.copyWith( - status: PersonalInfoStatus.error, - errorMessage: e.toString(), - )); - } + ) { + // TODO: Implement Google Places logic if needed } + /// With _onPhotoUploadRequested and _onSaveRequested removed or renamed, + /// there are no errors pointing to them here. + @override void dispose() { close(); diff --git a/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/blocs/personal_info_event.dart b/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/blocs/personal_info_event.dart index f50adf60..b09d4860 100644 --- a/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/blocs/personal_info_event.dart +++ b/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/blocs/personal_info_event.dart @@ -14,11 +14,11 @@ class PersonalInfoLoadRequested extends PersonalInfoEvent { } /// Event to update a field value. -class PersonalInfoFieldUpdated extends PersonalInfoEvent { +class PersonalInfoFieldChanged extends PersonalInfoEvent { final String field; final dynamic value; - const PersonalInfoFieldUpdated({ + const PersonalInfoFieldChanged({ required this.field, required this.value, }); @@ -27,17 +27,16 @@ class PersonalInfoFieldUpdated extends PersonalInfoEvent { List get props => [field, value]; } -/// Event to save personal information. -class PersonalInfoSaveRequested extends PersonalInfoEvent { - const PersonalInfoSaveRequested(); +/// Event to submit the form. +class PersonalInfoFormSubmitted extends PersonalInfoEvent { + const PersonalInfoFormSubmitted(); } -/// Event to upload a profile photo. -class PersonalInfoPhotoUploadRequested extends PersonalInfoEvent { - final String filePath; - - const PersonalInfoPhotoUploadRequested({required this.filePath}); - +/// Event when an address is selected from autocomplete. +class PersonalInfoAddressSelected extends PersonalInfoEvent { + final String address; + const PersonalInfoAddressSelected(this.address); + @override - List get props => [filePath]; + List get props => [address]; } diff --git a/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/blocs/personal_info_state.dart b/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/blocs/personal_info_state.dart index c97a0931..cd0eabf8 100644 --- a/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/blocs/personal_info_state.dart +++ b/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/blocs/personal_info_state.dart @@ -49,6 +49,13 @@ class PersonalInfoState extends Equatable { this.errorMessage, }); + /// Initial state. + const PersonalInfoState.initial() + : status = PersonalInfoStatus.initial, + staff = null, + formValues = const {}, + errorMessage = null; + /// Creates a copy of this state with the given fields replaced. PersonalInfoState copyWith({ PersonalInfoStatus? status, diff --git a/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/pages/personal_info_page.dart b/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/pages/personal_info_page.dart index 01971c2a..dfc45d90 100644 --- a/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/pages/personal_info_page.dart +++ b/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/pages/personal_info_page.dart @@ -26,8 +26,7 @@ class PersonalInfoPage extends StatelessWidget { Widget build(BuildContext context) { final TranslationsStaffOnboardingPersonalInfoEn i18n = t.staff.onboarding.personal_info; return BlocProvider( - create: (BuildContext context) => Modular.get() - ..add(const PersonalInfoLoadRequested()), + create: (BuildContext context) => Modular.get(), child: BlocListener( listener: (BuildContext context, PersonalInfoState state) { if (state.status == PersonalInfoStatus.saved) { diff --git a/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/widgets/personal_info_content.dart b/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/widgets/personal_info_content.dart index 41b89e6b..ef6262c4 100644 --- a/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/widgets/personal_info_content.dart +++ b/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/widgets/personal_info_content.dart @@ -56,7 +56,7 @@ class _PersonalInfoContentState extends State { void _onPhoneChanged() { context.read().add( - PersonalInfoFieldUpdated( + PersonalInfoFieldChanged( field: 'phone', value: _phoneController.text, ), @@ -73,7 +73,7 @@ class _PersonalInfoContentState extends State { .toList(); context.read().add( - PersonalInfoFieldUpdated( + PersonalInfoFieldChanged( field: 'preferredLocations', value: locations, ), @@ -81,7 +81,7 @@ class _PersonalInfoContentState extends State { } void _handleSave() { - context.read().add(const PersonalInfoSaveRequested()); + context.read().add(const PersonalInfoFormSubmitted()); } void _handlePhotoTap() { diff --git a/apps/mobile/packages/features/staff/shifts/pubspec.lock b/apps/mobile/packages/features/staff/shifts/pubspec.lock deleted file mode 100644 index a2cdf2f8..00000000 --- a/apps/mobile/packages/features/staff/shifts/pubspec.lock +++ /dev/null @@ -1,650 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - async: - dependency: transitive - description: - name: async - sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb" - url: "https://pub.dev" - source: hosted - version: "2.13.0" - auto_injector: - dependency: transitive - description: - name: auto_injector - sha256: "1fc2624898e92485122eb2b1698dd42511d7ff6574f84a3a8606fc4549a1e8f8" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - bloc: - dependency: transitive - description: - name: bloc - sha256: "106842ad6569f0b60297619e9e0b1885c2fb9bf84812935490e6c5275777804e" - url: "https://pub.dev" - source: hosted - version: "8.1.4" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - characters: - dependency: transitive - description: - name: characters - sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 - url: "https://pub.dev" - source: hosted - version: "1.4.0" - clock: - dependency: transitive - description: - name: clock - sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b - url: "https://pub.dev" - source: hosted - version: "1.1.2" - code_assets: - dependency: transitive - description: - name: code_assets - sha256: "83ccdaa064c980b5596c35dd64a8d3ecc68620174ab9b90b6343b753aa721687" - url: "https://pub.dev" - source: hosted - version: "1.0.0" - collection: - dependency: transitive - description: - name: collection - sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" - url: "https://pub.dev" - source: hosted - version: "1.19.1" - core_localization: - dependency: "direct main" - description: - path: "../../../core_localization" - relative: true - source: path - version: "0.0.1" - crypto: - dependency: transitive - description: - name: crypto - sha256: c8ea0233063ba03258fbcf2ca4d6dadfefe14f02fab57702265467a19f27fadf - url: "https://pub.dev" - source: hosted - version: "3.0.7" - csv: - dependency: transitive - description: - name: csv - sha256: c6aa2679b2a18cb57652920f674488d89712efaf4d3fdf2e537215b35fc19d6c - url: "https://pub.dev" - source: hosted - version: "6.0.0" - design_system: - dependency: "direct main" - description: - path: "../../../design_system" - relative: true - source: path - version: "0.0.1" - equatable: - dependency: "direct main" - description: - name: equatable - sha256: "3e0141505477fd8ad55d6eb4e7776d3fe8430be8e497ccb1521370c3f21a3e2b" - url: "https://pub.dev" - source: hosted - version: "2.0.8" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" - url: "https://pub.dev" - source: hosted - version: "1.3.3" - ffi: - dependency: transitive - description: - name: ffi - sha256: d07d37192dbf97461359c1518788f203b0c9102cfd2c35a716b823741219542c - url: "https://pub.dev" - source: hosted - version: "2.1.5" - file: - dependency: transitive - description: - name: file - sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 - url: "https://pub.dev" - source: hosted - version: "7.0.1" - fixnum: - dependency: transitive - description: - name: fixnum - sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be - url: "https://pub.dev" - source: hosted - version: "1.1.1" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_bloc: - dependency: "direct main" - description: - name: flutter_bloc - sha256: b594505eac31a0518bdcb4b5b79573b8d9117b193cc80cc12e17d639b10aa27a - url: "https://pub.dev" - source: hosted - version: "8.1.6" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1" - url: "https://pub.dev" - source: hosted - version: "3.0.2" - flutter_localizations: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - flutter_modular: - dependency: "direct main" - description: - name: flutter_modular - sha256: "33a63d9fe61429d12b3dfa04795ed890f17d179d3d38e988ba7969651fcd5586" - url: "https://pub.dev" - source: hosted - version: "6.4.1" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - flutter_web_plugins: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - font_awesome_flutter: - dependency: transitive - description: - name: font_awesome_flutter - sha256: b9011df3a1fa02993630b8fb83526368cf2206a711259830325bab2f1d2a4eb0 - url: "https://pub.dev" - source: hosted - version: "10.12.0" - glob: - dependency: transitive - description: - name: glob - sha256: c3f1ee72c96f8f78935e18aa8cecced9ab132419e8625dc187e1c2408efc20de - url: "https://pub.dev" - source: hosted - version: "2.1.3" - google_fonts: - dependency: transitive - description: - name: google_fonts - sha256: "6996212014b996eaa17074e02b1b925b212f5e053832d9048970dc27255a8fb3" - url: "https://pub.dev" - source: hosted - version: "7.1.0" - hooks: - dependency: transitive - description: - name: hooks - sha256: "5d309c86e7ce34cd8e37aa71cb30cb652d3829b900ab145e4d9da564b31d59f7" - url: "https://pub.dev" - source: hosted - version: "1.0.0" - http: - dependency: transitive - description: - name: http - sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412" - url: "https://pub.dev" - source: hosted - version: "1.6.0" - http_parser: - dependency: transitive - description: - name: http_parser - sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571" - url: "https://pub.dev" - source: hosted - version: "4.1.2" - intl: - dependency: "direct main" - description: - name: intl - sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5" - url: "https://pub.dev" - source: hosted - version: "0.20.2" - krow_core: - dependency: "direct main" - description: - path: "../../../core" - relative: true - source: path - version: "0.0.1" - krow_data_connect: - dependency: "direct main" - description: - path: "../../../data_connect" - relative: true - source: path - version: "0.0.1" - krow_domain: - dependency: "direct main" - description: - path: "../../../domain" - relative: true - source: path - version: "0.0.1" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" - url: "https://pub.dev" - source: hosted - version: "11.0.2" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" - url: "https://pub.dev" - source: hosted - version: "3.0.10" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" - url: "https://pub.dev" - source: hosted - version: "3.0.2" - lints: - dependency: transitive - description: - name: lints - sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 - url: "https://pub.dev" - source: hosted - version: "3.0.0" - logging: - dependency: transitive - description: - name: logging - sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 - url: "https://pub.dev" - source: hosted - version: "1.3.0" - lucide_icons: - dependency: transitive - description: - name: lucide_icons - sha256: ad24d0fd65707e48add30bebada7d90bff2a1bba0a72d6e9b19d44246b0e83c4 - url: "https://pub.dev" - source: hosted - version: "0.257.0" - matcher: - dependency: transitive - description: - name: matcher - sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 - url: "https://pub.dev" - source: hosted - version: "0.12.17" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec - url: "https://pub.dev" - source: hosted - version: "0.11.1" - meta: - dependency: transitive - description: - name: meta - sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394" - url: "https://pub.dev" - source: hosted - version: "1.17.0" - modular_core: - dependency: transitive - description: - name: modular_core - sha256: "1db0420a0dfb8a2c6dca846e7cbaa4ffeb778e247916dbcb27fb25aa566e5436" - url: "https://pub.dev" - source: hosted - version: "3.4.1" - native_toolchain_c: - dependency: transitive - description: - name: native_toolchain_c - sha256: "89e83885ba09da5fdf2cdacc8002a712ca238c28b7f717910b34bcd27b0d03ac" - url: "https://pub.dev" - source: hosted - version: "0.17.4" - nested: - dependency: transitive - description: - name: nested - sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20" - url: "https://pub.dev" - source: hosted - version: "1.0.0" - objective_c: - dependency: transitive - description: - name: objective_c - sha256: "7fd0c4d8ac8980011753b9bdaed2bf15111365924cdeeeaeb596214ea2b03537" - url: "https://pub.dev" - source: hosted - version: "9.2.4" - path: - dependency: transitive - description: - name: path - sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" - url: "https://pub.dev" - source: hosted - version: "1.9.1" - path_provider: - dependency: transitive - description: - name: path_provider - sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd" - url: "https://pub.dev" - source: hosted - version: "2.1.5" - path_provider_android: - dependency: transitive - description: - name: path_provider_android - sha256: f2c65e21139ce2c3dad46922be8272bb5963516045659e71bb16e151c93b580e - url: "https://pub.dev" - source: hosted - version: "2.2.22" - path_provider_foundation: - dependency: transitive - description: - name: path_provider_foundation - sha256: "2a376b7d6392d80cd3705782d2caa734ca4727776db0b6ec36ef3f1855197699" - url: "https://pub.dev" - source: hosted - version: "2.6.0" - path_provider_linux: - dependency: transitive - description: - name: path_provider_linux - sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 - url: "https://pub.dev" - source: hosted - version: "2.2.1" - path_provider_platform_interface: - dependency: transitive - description: - name: path_provider_platform_interface - sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - path_provider_windows: - dependency: transitive - description: - name: path_provider_windows - sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 - url: "https://pub.dev" - source: hosted - version: "2.3.0" - platform: - dependency: transitive - description: - name: platform - sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" - url: "https://pub.dev" - source: hosted - version: "3.1.6" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" - url: "https://pub.dev" - source: hosted - version: "2.1.8" - provider: - dependency: transitive - description: - name: provider - sha256: "4e82183fa20e5ca25703ead7e05de9e4cceed1fbd1eadc1ac3cb6f565a09f272" - url: "https://pub.dev" - source: hosted - version: "6.1.5+1" - pub_semver: - dependency: transitive - description: - name: pub_semver - sha256: "5bfcf68ca79ef689f8990d1160781b4bad40a3bd5e5218ad4076ddb7f4081585" - url: "https://pub.dev" - source: hosted - version: "2.2.0" - result_dart: - dependency: transitive - description: - name: result_dart - sha256: "0666b21fbdf697b3bdd9986348a380aa204b3ebe7c146d8e4cdaa7ce735e6054" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - shared_preferences: - dependency: transitive - description: - name: shared_preferences - sha256: "2939ae520c9024cb197fc20dee269cd8cdbf564c8b5746374ec6cacdc5169e64" - url: "https://pub.dev" - source: hosted - version: "2.5.4" - shared_preferences_android: - dependency: transitive - description: - name: shared_preferences_android - sha256: "83af5c682796c0f7719c2bbf74792d113e40ae97981b8f266fa84574573556bc" - url: "https://pub.dev" - source: hosted - version: "2.4.18" - shared_preferences_foundation: - dependency: transitive - description: - name: shared_preferences_foundation - sha256: "4e7eaffc2b17ba398759f1151415869a34771ba11ebbccd1b0145472a619a64f" - url: "https://pub.dev" - source: hosted - version: "2.5.6" - shared_preferences_linux: - dependency: transitive - description: - name: shared_preferences_linux - sha256: "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - shared_preferences_platform_interface: - dependency: transitive - description: - name: shared_preferences_platform_interface - sha256: "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - shared_preferences_web: - dependency: transitive - description: - name: shared_preferences_web - sha256: c49bd060261c9a3f0ff445892695d6212ff603ef3115edbb448509d407600019 - url: "https://pub.dev" - source: hosted - version: "2.4.3" - shared_preferences_windows: - dependency: transitive - description: - name: shared_preferences_windows - sha256: "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - slang: - dependency: transitive - description: - name: slang - sha256: "13e3b6f07adc51ab751e7889647774d294cbce7a3382f81d9e5029acfe9c37b2" - url: "https://pub.dev" - source: hosted - version: "4.12.0" - slang_flutter: - dependency: transitive - description: - name: slang_flutter - sha256: "0a4545cca5404d6b7487cf61cf1fe56c52daeb08de56a7574ee8381fbad035a0" - url: "https://pub.dev" - source: hosted - version: "4.12.0" - source_span: - dependency: transitive - description: - name: source_span - sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" - url: "https://pub.dev" - source: hosted - version: "1.10.1" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" - url: "https://pub.dev" - source: hosted - version: "1.12.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" - url: "https://pub.dev" - source: hosted - version: "1.4.1" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" - url: "https://pub.dev" - source: hosted - version: "1.2.2" - test_api: - dependency: transitive - description: - name: test_api - sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55 - url: "https://pub.dev" - source: hosted - version: "0.7.7" - typed_data: - dependency: transitive - description: - name: typed_data - sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 - url: "https://pub.dev" - source: hosted - version: "1.4.0" - uuid: - dependency: transitive - description: - name: uuid - sha256: a11b666489b1954e01d992f3d601b1804a33937b5a8fe677bd26b8a9f96f96e8 - url: "https://pub.dev" - source: hosted - version: "4.5.2" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b - url: "https://pub.dev" - source: hosted - version: "2.2.0" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60" - url: "https://pub.dev" - source: hosted - version: "15.0.2" - watcher: - dependency: transitive - description: - name: watcher - sha256: "1398c9f081a753f9226febe8900fce8f7d0a67163334e1c94a2438339d79d635" - url: "https://pub.dev" - source: hosted - version: "1.2.1" - web: - dependency: transitive - description: - name: web - sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a" - url: "https://pub.dev" - source: hosted - version: "1.1.1" - xdg_directories: - dependency: transitive - description: - name: xdg_directories - sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - yaml: - dependency: transitive - description: - name: yaml - sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce - url: "https://pub.dev" - source: hosted - version: "3.1.3" -sdks: - dart: ">=3.10.7 <4.0.0" - flutter: ">=3.38.4" diff --git a/apps/mobile/packages/features/staff/shifts/pubspec.yaml b/apps/mobile/packages/features/staff/shifts/pubspec.yaml index 64467b03..99360d7a 100644 --- a/apps/mobile/packages/features/staff/shifts/pubspec.yaml +++ b/apps/mobile/packages/features/staff/shifts/pubspec.yaml @@ -2,9 +2,10 @@ name: staff_shifts description: A new Flutter package project. version: 0.0.1 publish_to: 'none' +resolution: workspace environment: - sdk: '>=3.0.0 <4.0.0' + sdk: '>=3.10.0 <4.0.0' flutter: ">=3.0.0" dependencies: @@ -30,4 +31,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^3.0.0 + flutter_lints: ^6.0.0 diff --git a/apps/mobile/pubspec.lock b/apps/mobile/pubspec.lock index b3cd4f63..e3feae3b 100644 --- a/apps/mobile/pubspec.lock +++ b/apps/mobile/pubspec.lock @@ -65,13 +65,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.1" - billing: - dependency: transitive - description: - path: "packages/features/client/billing" - relative: true - source: path - version: "1.0.0+1" bloc: dependency: transitive description: @@ -192,13 +185,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.4.2" - client_coverage: - dependency: transitive - description: - path: "packages/features/client/client_coverage" - relative: true - source: path - version: "1.0.0" clock: dependency: transitive description: @@ -295,6 +281,22 @@ packages: url: "https://pub.dev" source: hosted version: "0.4.1" + dio: + dependency: transitive + description: + name: dio + sha256: b9d46faecab38fc8cc286f80bc4d61a3bb5d4ac49e51ed877b4d6706efe57b25 + url: "https://pub.dev" + source: hosted + version: "5.9.1" + dio_web_adapter: + dependency: transitive + description: + name: dio_web_adapter + sha256: "7586e476d70caecaf1686d21eee7247ea43ef5c345eab9e0cc3583ff13378d78" + url: "https://pub.dev" + source: hosted + version: "2.1.1" equatable: dependency: transitive description: @@ -523,6 +525,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.3.3+1" + google_places_flutter: + dependency: transitive + description: + name: google_places_flutter + sha256: "37bd64221cf4a5aa97eb3a33dc2d40f6326aa5ae4e2f2a9a7116bdc1a14f5194" + url: "https://pub.dev" + source: hosted + version: "2.1.1" googleapis_auth: dependency: transitive description: @@ -947,6 +957,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.1" + rxdart: + dependency: transitive + description: + name: rxdart + sha256: "5c3004a4a8dbb94bd4bf5412a4def4acdaa12e12f269737a5751369e12d1a962" + url: "https://pub.dev" + source: hosted + version: "0.28.0" shared_preferences: dependency: transitive description: diff --git a/apps/mobile/pubspec.yaml b/apps/mobile/pubspec.yaml index f1993af4..e9a7c2f2 100644 --- a/apps/mobile/pubspec.yaml +++ b/apps/mobile/pubspec.yaml @@ -12,18 +12,28 @@ workspace: - packages/features/staff/authentication - packages/features/staff/home - packages/features/staff/staff_main + - packages/features/staff/payments - packages/features/staff/profile - packages/features/staff/availability - packages/features/staff/clock_in - packages/features/staff/profile_sections/onboarding/emergency_contact - packages/features/staff/profile_sections/onboarding/experience - packages/features/staff/profile_sections/onboarding/profile_info + - packages/features/staff/profile_sections/onboarding/attire + - packages/features/staff/profile_sections/finances/staff_bank_account + - packages/features/staff/profile_sections/finances/time_card + - packages/features/staff/profile_sections/compliance/certificates + - packages/features/staff/profile_sections/compliance/documents + - packages/features/staff/profile_sections/compliance/tax_forms + - packages/features/staff/shifts - packages/features/client/authentication + - packages/features/client/billing - packages/features/client/home - packages/features/client/settings - packages/features/client/hubs - packages/features/client/create_order - packages/features/client/view_orders + - packages/features/client/client_coverage - packages/features/client/client_main - apps/staff - apps/client diff --git a/backend/dataconnect/connector/application/queries.gql b/backend/dataconnect/connector/application/queries.gql index dd0e0964..7e798192 100644 --- a/backend/dataconnect/connector/application/queries.gql +++ b/backend/dataconnect/connector/application/queries.gql @@ -22,7 +22,14 @@ query listApplications @auth(level: USER) { order { id eventName - location + #location + + teamHub { + address + placeId + hubName + } + business { id businessName @@ -78,7 +85,14 @@ query getApplicationById($id: UUID!) @auth(level: USER) { order { id eventName - location + #location + + teamHub { + address + placeId + hubName + } + business { id businessName @@ -135,7 +149,14 @@ query getApplicationsByShiftId($shiftId: UUID!) @auth(level: USER) { order { id eventName - location + #location + + teamHub { + address + placeId + hubName + } + business { id businessName @@ -205,7 +226,14 @@ query getApplicationsByShiftIdAndStatus( order { id eventName - location + #location + + teamHub { + address + placeId + hubName + } + business { id businessName @@ -269,7 +297,14 @@ query getApplicationsByStaffId( order { id eventName - location + #location + + teamHub { + address + placeId + hubName + } + business { id businessName @@ -337,7 +372,8 @@ query listAcceptedApplicationsByBusinessForDay( ) @auth(level: USER) { applications( where: { - status: { eq: ACCEPTED } + #status: { eq: ACCEPTED } + status: { in: [ACCEPTED, CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE] } shift: { date: { ge: $dayStart, le: $dayEnd } order: { businessId: { eq: $businessId } } @@ -353,7 +389,7 @@ query listAcceptedApplicationsByBusinessForDay( checkInTime checkOutTime appliedAt - staff { id fullName email phone photoUrl } + staff { id fullName email phone photoUrl averageRating } } } @@ -393,6 +429,7 @@ query listStaffsApplicationsByBusinessForDay( } count assigned + hours role{ name diff --git a/backend/dataconnect/connector/invoice/queries.gql b/backend/dataconnect/connector/invoice/queries.gql index deaf4c3a..53c33a15 100644 --- a/backend/dataconnect/connector/invoice/queries.gql +++ b/backend/dataconnect/connector/invoice/queries.gql @@ -50,9 +50,15 @@ query listInvoices( } order { eventName - hub deparment poReference + + teamHub { + address + placeId + hubName + } + } } } @@ -105,9 +111,15 @@ query getInvoiceById($id: UUID!) @auth(level: USER) { } order { eventName - hub deparment poReference + + teamHub { + address + placeId + hubName + } + } } } @@ -169,9 +181,15 @@ query listInvoicesByVendorId( } order { eventName - hub deparment poReference + + teamHub { + address + placeId + hubName + } + } } } @@ -233,9 +251,15 @@ query listInvoicesByBusinessId( } order { eventName - hub deparment poReference + + teamHub { + address + placeId + hubName + } + } } } @@ -297,9 +321,15 @@ query listInvoicesByOrderId( } order { eventName - hub deparment poReference + + teamHub { + address + placeId + hubName + } + } } } @@ -361,9 +391,15 @@ query listInvoicesByStatus( } order { eventName - hub deparment poReference + + teamHub { + address + placeId + hubName + } + } } } @@ -444,9 +480,15 @@ query filterInvoices( } order { eventName - hub deparment poReference + + teamHub { + address + placeId + hubName + } + } } } @@ -512,9 +554,15 @@ query listOverdueInvoices( } order { eventName - hub deparment poReference + + teamHub { + address + placeId + hubName + } + } } } diff --git a/backend/dataconnect/connector/order/mutations.gql b/backend/dataconnect/connector/order/mutations.gql index be3ec3f6..6827d73a 100644 --- a/backend/dataconnect/connector/order/mutations.gql +++ b/backend/dataconnect/connector/order/mutations.gql @@ -2,7 +2,7 @@ mutation createOrder( $vendorId: UUID $businessId: UUID! $orderType: OrderType! - $location: String + #$location: String $status: OrderStatus $date: Timestamp $startDate: Timestamp @@ -14,7 +14,7 @@ mutation createOrder( $assignedStaff: Any $shifts: Any $requested: Int - $hub: String + $teamHubId: UUID! $recurringDays: Any $permanentStartDate: Timestamp $permanentDays: Any @@ -27,7 +27,7 @@ mutation createOrder( vendorId: $vendorId businessId: $businessId orderType: $orderType - location: $location + #location: $location status: $status date: $date startDate: $startDate @@ -39,7 +39,7 @@ mutation createOrder( assignedStaff: $assignedStaff shifts: $shifts requested: $requested - hub: $hub + teamHubId: $teamHubId recurringDays: $recurringDays permanentDays: $permanentDays notes: $notes @@ -53,7 +53,7 @@ mutation updateOrder( $id: UUID! $vendorId: UUID $businessId: UUID - $location: String + #$location: String $status: OrderStatus $date: Timestamp $startDate: Timestamp @@ -63,7 +63,7 @@ mutation updateOrder( $assignedStaff: Any $shifts: Any $requested: Int - $hub: String + $teamHubId: UUID! $recurringDays: Any $permanentDays: Any $notes: String @@ -75,7 +75,7 @@ mutation updateOrder( data: { vendorId: $vendorId businessId: $businessId - location: $location + #location: $location status: $status date: $date startDate: $startDate @@ -85,7 +85,7 @@ mutation updateOrder( assignedStaff: $assignedStaff shifts: $shifts requested: $requested - hub: $hub + teamHubId: $teamHubId recurringDays: $recurringDays permanentDays: $permanentDays notes: $notes diff --git a/backend/dataconnect/connector/order/queries.gql b/backend/dataconnect/connector/order/queries.gql index cad68e39..c500c595 100644 --- a/backend/dataconnect/connector/order/queries.gql +++ b/backend/dataconnect/connector/order/queries.gql @@ -12,7 +12,7 @@ query listOrders( vendorId businessId orderType - location + #location status date startDate @@ -23,7 +23,6 @@ query listOrders( assignedStaff shifts requested - hub recurringDays permanentDays poReference @@ -42,6 +41,13 @@ query listOrders( id companyName } + + teamHub { + address + placeId + hubName + } + } } @@ -56,7 +62,7 @@ query getOrderById($id: UUID!) @auth(level: USER) { vendorId businessId orderType - location + #location status date startDate @@ -67,7 +73,6 @@ query getOrderById($id: UUID!) @auth(level: USER) { assignedStaff shifts requested - hub recurringDays permanentDays poReference @@ -86,6 +91,13 @@ query getOrderById($id: UUID!) @auth(level: USER) { id companyName } + + teamHub { + address + placeId + hubName + } + } } @@ -108,7 +120,7 @@ query getOrdersByBusinessId( vendorId businessId orderType - location + #location status date startDate @@ -119,7 +131,6 @@ query getOrdersByBusinessId( assignedStaff shifts requested - hub recurringDays permanentDays poReference @@ -138,6 +149,13 @@ query getOrdersByBusinessId( id companyName } + + teamHub { + address + placeId + hubName + } + } } @@ -160,7 +178,7 @@ query getOrdersByVendorId( vendorId businessId orderType - location + #location status date startDate @@ -171,7 +189,6 @@ query getOrdersByVendorId( assignedStaff shifts requested - hub recurringDays permanentDays poReference @@ -190,6 +207,13 @@ query getOrdersByVendorId( id companyName } + + teamHub { + address + placeId + hubName + } + } } @@ -212,7 +236,7 @@ query getOrdersByStatus( vendorId businessId orderType - location + #location status date startDate @@ -223,7 +247,6 @@ query getOrdersByStatus( assignedStaff shifts requested - hub recurringDays permanentDays poReference @@ -242,6 +265,13 @@ query getOrdersByStatus( id companyName } + + teamHub { + address + placeId + hubName + } + } } @@ -267,7 +297,7 @@ query getOrdersByDateRange( vendorId businessId orderType - location + #location status date startDate @@ -278,7 +308,6 @@ query getOrdersByDateRange( assignedStaff shifts requested - hub recurringDays permanentDays poReference @@ -297,6 +326,13 @@ query getOrdersByDateRange( id companyName } + + teamHub { + address + placeId + hubName + } + } } @@ -318,7 +354,7 @@ query getRapidOrders( vendorId businessId orderType - location + #location status date startDate @@ -329,7 +365,6 @@ query getRapidOrders( assignedStaff shifts requested - hub recurringDays permanentDays poReference @@ -348,5 +383,53 @@ query getRapidOrders( id companyName } + + teamHub { + address + placeId + hubName + } + + } +} + +#to validate if an hub has orders before delete +query listOrdersByBusinessAndTeamHub( + $businessId: UUID! + $teamHubId: UUID! + $offset: Int + $limit: Int +) @auth(level: USER) { + orders( + where: { + businessId: { eq: $businessId } + teamHubId: { eq: $teamHubId } + #status: {in: [ DRAFT POSTED FILLED PENDING FULLY_STAFFED PARTIAL_STAFFED ] } + } + offset: $offset + limit: $limit + orderBy: { createdAt: DESC } + ) { + id + eventName + orderType + status + duration + + businessId + vendorId + teamHubId + + date + startDate + endDate + + requested + total + notes + + createdAt + updatedAt + createdBy } } diff --git a/backend/dataconnect/connector/recentPayment/queries.gql b/backend/dataconnect/connector/recentPayment/queries.gql index 2e4487f5..82072bdd 100644 --- a/backend/dataconnect/connector/recentPayment/queries.gql +++ b/backend/dataconnect/connector/recentPayment/queries.gql @@ -159,7 +159,18 @@ query listRecentPaymentsByStaffId( business { id businessName } vendor { id companyName } - order { id eventName location } + order { + id + eventName + #location + + teamHub { + address + placeId + hubName + } + + } } } } @@ -205,7 +216,18 @@ query listRecentPaymentsByApplicationId( amount business { id businessName } vendor { id companyName } - order { id eventName location } + order { + id + eventName + #location + + teamHub { + address + placeId + hubName + } + + } } } } @@ -251,7 +273,18 @@ query listRecentPaymentsByInvoiceId( amount business { id businessName } vendor { id companyName } - order { id eventName location } + order { + id + eventName + #location + + teamHub { + address + placeId + hubName + } + + } } } } @@ -297,7 +330,18 @@ query listRecentPaymentsByStatus( amount business { id businessName } vendor { id companyName } - order { id eventName location } + order { + id + eventName + #location + + teamHub { + address + placeId + hubName + } + + } } } } @@ -344,7 +388,18 @@ query listRecentPaymentsByInvoiceIds( amount business { id businessName } vendor { id companyName } - order { id eventName location } + order { + id + eventName + #location + + teamHub { + address + placeId + hubName + } + + } } } } @@ -411,7 +466,18 @@ query listRecentPaymentsByBusinessId( business { id businessName } vendor { id companyName } - order { id eventName location } + order { + id + eventName + #location + + teamHub { + address + placeId + hubName + } + + } } } } diff --git a/backend/dataconnect/connector/shift/mutations.gql b/backend/dataconnect/connector/shift/mutations.gql index 3d275639..0a81f9bc 100644 --- a/backend/dataconnect/connector/shift/mutations.gql +++ b/backend/dataconnect/connector/shift/mutations.gql @@ -13,6 +13,11 @@ mutation createShift( $locationAddress: String $latitude: Float $longitude: Float + $placeId: String + $city: String + $state: String + $street: String + $country: String $description: String $status: ShiftStatus @@ -40,6 +45,11 @@ mutation createShift( locationAddress: $locationAddress latitude: $latitude longitude: $longitude + placeId: $placeId + city: $city + state: $state + street: $street + country: $country description: $description status: $status @@ -68,6 +78,11 @@ mutation updateShift( $locationAddress: String $latitude: Float $longitude: Float + $placeId: String + $city: String + $state: String + $street: String + $country: String $description: String $status: ShiftStatus @@ -95,6 +110,11 @@ mutation updateShift( locationAddress: $locationAddress latitude: $latitude longitude: $longitude + placeId: $placeId + city: $city + state: $state + street: $street + country: $country description: $description status: $status diff --git a/backend/dataconnect/connector/shift/queries.gql b/backend/dataconnect/connector/shift/queries.gql index 43c461df..96fdfbe8 100644 --- a/backend/dataconnect/connector/shift/queries.gql +++ b/backend/dataconnect/connector/shift/queries.gql @@ -22,6 +22,11 @@ query listShifts( locationAddress latitude longitude + placeId + city + state + street + country description status @@ -69,6 +74,11 @@ query getShiftById($id: UUID!) @auth(level: USER) { locationAddress latitude longitude + placeId + city + state + street + country description status @@ -134,6 +144,11 @@ query filterShifts( locationAddress latitude longitude + placeId + city + state + street + country description status @@ -194,6 +209,11 @@ query getShiftsByBusinessId( locationAddress latitude longitude + placeId + city + state + street + country description status @@ -254,6 +274,11 @@ query getShiftsByVendorId( locationAddress latitude longitude + placeId + city + state + street + country description status diff --git a/backend/dataconnect/connector/shiftRole/queries.gql b/backend/dataconnect/connector/shiftRole/queries.gql index d2d23a8d..662ea399 100644 --- a/backend/dataconnect/connector/shiftRole/queries.gql +++ b/backend/dataconnect/connector/shiftRole/queries.gql @@ -331,7 +331,7 @@ query listShiftRolesByBusinessAndDateRange( locationAddress title status - order { id } + order { id eventName } } } } @@ -378,8 +378,16 @@ query listShiftRolesByBusinessAndOrder( order{ vendorId + eventName date - location + #location + + teamHub { + address + placeId + hubName + } + } } } diff --git a/backend/dataconnect/connector/taxForm/mutations.gql b/backend/dataconnect/connector/taxForm/mutations.gql index d7798b35..868ed420 100644 --- a/backend/dataconnect/connector/taxForm/mutations.gql +++ b/backend/dataconnect/connector/taxForm/mutations.gql @@ -1,45 +1,169 @@ mutation createTaxForm( $formType: TaxFormType! - $title: String! - $subtitle: String - $description: String - $status: TaxFormStatus + $firstName: String! + $lastName: String! + $mInitial: String + $oLastName: String + $dob: Timestamp + $socialSN: Int! + $email: String + $phone: String + $address: String! + $city: String + $apt: String + $state: String + $zipCode: String + + # W-4 + $marital: MaritalStatus + $multipleJob: Boolean + $childrens: Int + $otherDeps: Int + $totalCredits: Float + $otherInconme: Float + $deductions: Float + $extraWithholding: Float + + # I-9 + $citizen: CitizenshipStatus + $uscis: String + $passportNumber: String + $countryIssue: String + $prepartorOrTranslator: Boolean + + # both + $signature: String + $date: Timestamp + + $status: TaxFormStatus! $staffId: UUID! - $formData: Any + $createdBy: String ) @auth(level: USER) { taxForm_insert( data: { formType: $formType - title: $title - subtitle: $subtitle - description: $description + firstName: $firstName + lastName: $lastName + mInitial: $mInitial + oLastName: $oLastName + dob: $dob + socialSN: $socialSN + email: $email + phone: $phone + address: $address + city: $city + apt: $apt + state: $state + zipCode: $zipCode + + marital: $marital + multipleJob: $multipleJob + childrens: $childrens + otherDeps: $otherDeps + totalCredits: $totalCredits + otherInconme: $otherInconme + deductions: $deductions + extraWithholding: $extraWithholding + + citizen: $citizen + uscis: $uscis + passportNumber: $passportNumber + countryIssue: $countryIssue + prepartorOrTranslator: $prepartorOrTranslator + + signature: $signature + date: $date + status: $status staffId: $staffId - formData: $formData + createdBy: $createdBy } - ) + ) } mutation updateTaxForm( $id: UUID! + + $formType: TaxFormType + $firstName: String + $lastName: String + $mInitial: String + $oLastName: String + $dob: Timestamp + $socialSN: Int + $email: String + $phone: String + $address: String + $city: String + $apt: String + $state: String + $zipCode: String + + # W-4 + $marital: MaritalStatus + $multipleJob: Boolean + $childrens: Int + $otherDeps: Int + $totalCredits: Float + $otherInconme: Float + $deductions: Float + $extraWithholding: Float + + # I-9 + $citizen: CitizenshipStatus + $uscis: String + $passportNumber: String + $countryIssue: String + $prepartorOrTranslator: Boolean + + # both + $signature: String + $date: Timestamp + $status: TaxFormStatus - $formData: Any - $title: String - $subtitle: String - $description: String + ) @auth(level: USER) { taxForm_update( id: $id data: { + formType: $formType + firstName: $firstName + lastName: $lastName + mInitial: $mInitial + oLastName: $oLastName + dob: $dob + socialSN: $socialSN + email: $email + phone: $phone + address: $address + city: $city + apt: $apt + state: $state + zipCode: $zipCode + + marital: $marital + multipleJob: $multipleJob + childrens: $childrens + otherDeps: $otherDeps + totalCredits: $totalCredits + otherInconme: $otherInconme + deductions: $deductions + extraWithholding: $extraWithholding + + citizen: $citizen + uscis: $uscis + passportNumber: $passportNumber + countryIssue: $countryIssue + prepartorOrTranslator: $prepartorOrTranslator + + signature: $signature + date: $date + status: $status - formData: $formData - title: $title - subtitle: $subtitle - description: $description } - ) + ) } mutation deleteTaxForm($id: UUID!) @auth(level: USER) { - taxForm_delete(id: $id) + taxForm_delete(id: $id) } diff --git a/backend/dataconnect/connector/taxForm/queries.gql b/backend/dataconnect/connector/taxForm/queries.gql index e7d65579..0581f24f 100644 --- a/backend/dataconnect/connector/taxForm/queries.gql +++ b/backend/dataconnect/connector/taxForm/queries.gql @@ -1,13 +1,47 @@ -query listTaxForms @auth(level: USER) { - taxForms { + +# ========================================================== +# TAX FORM - QUERIES (USE where, NOT filter) +# Include ALL fields from the new TaxForm type +# ========================================================== + +query listTaxForms($offset: Int, $limit: Int) @auth(level: USER) { + taxForms(offset: $offset, limit: $limit, orderBy: { createdAt: DESC }) { id formType - title - subtitle - description + firstName + lastName + mInitial + oLastName + dob + socialSN + email + phone + address + city + apt + state + zipCode + + marital + multipleJob + childrens + otherDeps + totalCredits + otherInconme + deductions + extraWithholding + + citizen + uscis + passportNumber + countryIssue + prepartorOrTranslator + + signature + date + status staffId - formData createdAt updatedAt createdBy @@ -18,38 +52,105 @@ query getTaxFormById($id: UUID!) @auth(level: USER) { taxForm(id: $id) { id formType - title - subtitle - description + firstName + lastName + mInitial + oLastName + dob + socialSN + email + phone + address + city + apt + state + zipCode + + marital + multipleJob + childrens + otherDeps + totalCredits + otherInconme + deductions + extraWithholding + + citizen + uscis + passportNumber + countryIssue + prepartorOrTranslator + + signature + date + status staffId - formData createdAt updatedAt createdBy } } -query getTaxFormsBystaffId($staffId: UUID!) @auth(level: USER) { - taxForms(where: { staffId: { eq: $staffId } }) { +query getTaxFormsByStaffId( + $staffId: UUID! + $offset: Int + $limit: Int +) @auth(level: USER) { + taxForms( + where: { staffId: { eq: $staffId } } + offset: $offset + limit: $limit + orderBy: { createdAt: DESC } + ) { id formType - title - subtitle - description + firstName + lastName + mInitial + oLastName + dob + socialSN + email + phone + address + city + apt + state + zipCode + + marital + multipleJob + childrens + otherDeps + totalCredits + otherInconme + deductions + extraWithholding + + citizen + uscis + passportNumber + countryIssue + prepartorOrTranslator + + signature + date + status staffId - formData createdAt updatedAt createdBy } } -query filterTaxForms( +query listTaxFormsWhere( $formType: TaxFormType $status: TaxFormStatus $staffId: UUID + $offset: Int + $limit: Int ) @auth(level: USER) { taxForms( where: { @@ -57,11 +158,48 @@ query filterTaxForms( status: { eq: $status } staffId: { eq: $staffId } } + offset: $offset + limit: $limit + orderBy: { createdAt: DESC } ) { id formType - title + firstName + lastName + mInitial + oLastName + dob + socialSN + email + phone + address + city + apt + state + zipCode + + marital + multipleJob + childrens + otherDeps + totalCredits + otherInconme + deductions + extraWithholding + + citizen + uscis + passportNumber + countryIssue + prepartorOrTranslator + + signature + date + status staffId + createdAt + updatedAt + createdBy } } diff --git a/backend/dataconnect/connector/teamHub/mutations.gql b/backend/dataconnect/connector/teamHub/mutations.gql index 38542c35..adf57c42 100644 --- a/backend/dataconnect/connector/teamHub/mutations.gql +++ b/backend/dataconnect/connector/teamHub/mutations.gql @@ -2,9 +2,17 @@ mutation createTeamHub( $teamId: UUID! $hubName: String! $address: String! + + $placeId: String + $latitude: Float + $longitude: Float + $city: String $state: String + $street: String + $country: String $zipCode: String + $managerName: String $isActive: Boolean $departments: Any @@ -14,42 +22,72 @@ mutation createTeamHub( teamId: $teamId hubName: $hubName address: $address + + placeId: $placeId + latitude: $latitude + longitude: $longitude + city: $city state: $state + street: $street + country: $country zipCode: $zipCode + managerName: $managerName isActive: $isActive departments: $departments + } - ) + ) } mutation updateTeamHub( $id: UUID! + + $teamId: UUID $hubName: String $address: String + + $placeId: String + $latitude: Float + $longitude: Float + $city: String $state: String + $street: String + $country: String $zipCode: String + $managerName: String $isActive: Boolean $departments: Any + ) @auth(level: USER) { teamHub_update( id: $id data: { + teamId: $teamId hubName: $hubName address: $address + + placeId: $placeId + latitude: $latitude + longitude: $longitude + city: $city state: $state + street: $street + country: $country zipCode: $zipCode + managerName: $managerName isActive: $isActive departments: $departments + } - ) + ) } mutation deleteTeamHub($id: UUID!) @auth(level: USER) { - teamHub_delete(id: $id) -} + teamHub_delete(id: $id) +} \ No newline at end of file diff --git a/backend/dataconnect/connector/teamHub/queries.gql b/backend/dataconnect/connector/teamHub/queries.gql index 697b50c3..19619802 100644 --- a/backend/dataconnect/connector/teamHub/queries.gql +++ b/backend/dataconnect/connector/teamHub/queries.gql @@ -1,18 +1,30 @@ -query listTeamHubs @auth(level: USER) { - teamHubs { + +# ========================================================== +# TEAM HUB - QUERIES (USE where, NOT filter) +# Include ALL fields in TeamHub +# ========================================================== + +query listTeamHubs($offset: Int, $limit: Int) @auth(level: USER) { + teamHubs(offset: $offset, limit: $limit, orderBy: { createdAt: DESC }) { id teamId hubName + address + placeId + latitude + longitude + city state + street + country zipCode + managerName isActive departments - createdAt - updatedAt - createdBy + } } @@ -21,34 +33,55 @@ query getTeamHubById($id: UUID!) @auth(level: USER) { id teamId hubName + address + placeId + latitude + longitude + city state + street + country zipCode + managerName isActive departments - createdAt - updatedAt - createdBy + } } -query getTeamHubsByTeamId($teamId: UUID!) @auth(level: USER) { - teamHubs(where: { teamId: { eq: $teamId } }) { +query getTeamHubsByTeamId( + $teamId: UUID! + $offset: Int + $limit: Int +) @auth(level: USER) { + teamHubs( + where: { teamId: { eq: $teamId } } + offset: $offset + limit: $limit + orderBy: { createdAt: DESC } + ) { id teamId hubName + address + placeId + latitude + longitude + city state + street + country zipCode + managerName isActive departments - createdAt - updatedAt - createdBy + } } @@ -57,6 +90,8 @@ query getTeamHubsByTeamId($teamId: UUID!) @auth(level: USER) { # ------------------------------------------------------------ query listTeamHubsByOwnerId( $ownerId: UUID! + $offset: Int + $limit: Int ) @auth(level: USER) { teamHubs( where: { @@ -64,17 +99,28 @@ query listTeamHubsByOwnerId( ownerId: { eq: $ownerId } } } + offset: $offset + limit: $limit + orderBy: { createdAt: DESC } ) { id teamId hubName + address + placeId + latitude + longitude + city state + street + country zipCode + managerName isActive departments - createdAt + } -} \ No newline at end of file +} diff --git a/backend/dataconnect/schema/order.gql b/backend/dataconnect/schema/order.gql index c0db5d79..16a60eac 100644 --- a/backend/dataconnect/schema/order.gql +++ b/backend/dataconnect/schema/order.gql @@ -33,7 +33,7 @@ type Order @table(name: "orders") { business: Business! @ref(fields: "businessId", references: "id") orderType: OrderType! - location: String + #location: String status: OrderStatus! @default(expr: "'DRAFT'") duration: OrderDuration lunchBreak: Int @@ -44,7 +44,8 @@ type Order @table(name: "orders") { shifts: Any @col(dataType: "jsonb") requested: Int - hub: String + teamHubId: UUID! + teamHub: TeamHub! @ref(fields: "teamHubId", references: "id") date: Timestamp diff --git a/backend/dataconnect/schema/shift.gql b/backend/dataconnect/schema/shift.gql index 30c7dd9c..96b1d2d1 100644 --- a/backend/dataconnect/schema/shift.gql +++ b/backend/dataconnect/schema/shift.gql @@ -28,6 +28,12 @@ type Shift @table(name: "shifts") { locationAddress: String latitude: Float longitude: Float + placeId: String + city: String + state: String + street: String + country: String + description: String status: ShiftStatus diff --git a/backend/dataconnect/schema/taxForm.gql b/backend/dataconnect/schema/taxForm.gql index 35a36462..cf110f19 100644 --- a/backend/dataconnect/schema/taxForm.gql +++ b/backend/dataconnect/schema/taxForm.gql @@ -11,15 +11,66 @@ enum TaxFormType { W4 } +enum MaritalStatus{ + SINGLE + MARRIED + HEAD +} + +enum CitizenshipStatus{ + CITIZEN + NONCITIZEN + PERMANENT_RESIDENT + ALIEN +} + type TaxForm @table(name: "tax_forms") { id: UUID! @default(expr: "uuidV4()") + formType: TaxFormType! - title: String! - subtitle: String - description: String + firstName: String! + lastName: String! + mInitial: String + oLastName:String + dob: Timestamp + socialSN: Int! + email: String + phone: String + address: String! + city: String + apt: String + state: String + zipCode: String + + # form W-4 + marital: MaritalStatus + + multipleJob: Boolean @default(expr: "false") + + childrens: Int + otherDeps: Int + totalCredits: Float @default(expr: "0") + + otherInconme: Float @default(expr: "0") + deductions: Float @default(expr: "0") + extraWithholding: Float @default(expr: "0") + + # form I-9 + + citizen: CitizenshipStatus + + uscis: String + passportNumber: String + countryIssue: String + + prepartorOrTranslator: Boolean @default(expr: "false") + + # both forms + signature:String + date: Timestamp + status: TaxFormStatus! staffId: UUID! - formData: Any createdAt: Timestamp @default(expr: "request.time") updatedAt: Timestamp @default(expr: "request.time") diff --git a/backend/dataconnect/schema/teamHub.gql b/backend/dataconnect/schema/teamHub.gql index a206a6fd..faece738 100644 --- a/backend/dataconnect/schema/teamHub.gql +++ b/backend/dataconnect/schema/teamHub.gql @@ -5,10 +5,18 @@ type TeamHub @table(name: "team_hubs") { team: Team! @ref(fields: "teamId", references: "id") hubName: String! + address: String! + placeId: String + latitude: Float + longitude: Float + city: String state: String + street: String + country: String zipCode: String + managerName: String isActive: Boolean! @default(expr: "true") departments: Any