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 60de65e3..775808bc 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-27 at 19:37 UTC +/// Built on 2026-01-28 at 16:34 UTC // coverage:ignore-file // ignore_for_file: type=lint, unused_import 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 bdb8bc63..4873fa8a 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.createTaxForm(createTaxFormVariables).execute(); -ExampleConnector.instance.updateTaxForm(updateTaxFormVariables).execute(); -ExampleConnector.instance.deleteTaxForm(deleteTaxFormVariables).execute(); -ExampleConnector.instance.listClientFeedbacks(listClientFeedbacksVariables).execute(); -ExampleConnector.instance.getClientFeedbackById(getClientFeedbackByIdVariables).execute(); -ExampleConnector.instance.listClientFeedbacksByBusinessId(listClientFeedbacksByBusinessIdVariables).execute(); -ExampleConnector.instance.listClientFeedbacksByVendorId(listClientFeedbacksByVendorIdVariables).execute(); -ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor(listClientFeedbacksByBusinessAndVendorVariables).execute(); -ExampleConnector.instance.filterClientFeedbacks(filterClientFeedbacksVariables).execute(); -ExampleConnector.instance.listClientFeedbackRatingsByVendorId(listClientFeedbackRatingsByVendorIdVariables).execute(); +ExampleConnector.instance.CreateAssignment(createAssignmentVariables).execute(); +ExampleConnector.instance.UpdateAssignment(updateAssignmentVariables).execute(); +ExampleConnector.instance.DeleteAssignment(deleteAssignmentVariables).execute(); +ExampleConnector.instance.listBenefitsData(listBenefitsDataVariables).execute(); +ExampleConnector.instance.getBenefitsDataByKey(getBenefitsDataByKeyVariables).execute(); +ExampleConnector.instance.listBenefitsDataByStaffId(listBenefitsDataByStaffIdVariables).execute(); +ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId(listBenefitsDataByVendorBenefitPlanIdVariables).execute(); +ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds(listBenefitsDataByVendorBenefitPlanIdsVariables).execute(); +ExampleConnector.instance.getStaffDocumentByKey(getStaffDocumentByKeyVariables).execute(); +ExampleConnector.instance.listStaffDocumentsByStaffId(listStaffDocumentsByStaffIdVariables).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.filterFaqDatas({ ... }) -.category(...) +await ExampleConnector.instance.filterStaffAvailabilityStats({ ... }) +.needWorkIndexMin(...) .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 39df0ca6..55512a6b 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,6 +21,2590 @@ ExampleConnector.instance.dataConnect.useDataConnectEmulator(host, port); You can also call queries and mutations by using the connector class. ## Queries +### listBenefitsData +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listBenefitsData().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. +The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { + ... + + ListBenefitsDataVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListBenefitsDataVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listBenefitsData() +.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.listBenefitsData(); +listBenefitsDataData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getBenefitsDataByKey +#### Required Arguments +```dart +String staffId = ...; +String vendorBenefitPlanId = ...; +ExampleConnector.instance.getBenefitsDataByKey( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +).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.getBenefitsDataByKey( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +); +getBenefitsDataByKeyData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getBenefitsDataByKey( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listBenefitsDataByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.listBenefitsDataByStaffId( + staffId: staffId, +).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. +The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { + ... + ListBenefitsDataByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListBenefitsDataByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listBenefitsDataByStaffId( + 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.listBenefitsDataByStaffId( + staffId: staffId, +); +listBenefitsDataByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.listBenefitsDataByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listBenefitsDataByVendorBenefitPlanId +#### Required Arguments +```dart +String vendorBenefitPlanId = ...; +ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( + vendorBenefitPlanId: vendorBenefitPlanId, +).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. +The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { + ... + ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( + vendorBenefitPlanId: vendorBenefitPlanId, +) +.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.listBenefitsDataByVendorBenefitPlanId( + vendorBenefitPlanId: vendorBenefitPlanId, +); +listBenefitsDataByVendorBenefitPlanIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 = ...; + +final ref = ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( + vendorBenefitPlanId: vendorBenefitPlanId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listBenefitsDataByVendorBenefitPlanIds +#### Required Arguments +```dart +String vendorBenefitPlanIds = ...; +ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( + vendorBenefitPlanIds: vendorBenefitPlanIds, +).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. +The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { + ... + ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( + vendorBenefitPlanIds: vendorBenefitPlanIds, +) +.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.listBenefitsDataByVendorBenefitPlanIds( + vendorBenefitPlanIds: vendorBenefitPlanIds, +); +listBenefitsDataByVendorBenefitPlanIdsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 = ...; + +final ref = ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( + vendorBenefitPlanIds: vendorBenefitPlanIds, +).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) { + _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` +```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.listStaffDocumentsByStaffId( + staffId: staffId, +); +listStaffDocumentsByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.listStaffDocumentsByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffDocumentsByDocumentType +#### Required Arguments +```dart +DocumentType documentType = ...; +ExampleConnector.instance.listStaffDocumentsByDocumentType( + documentType: documentType, +).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` +```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.listStaffDocumentsByDocumentType( + documentType: documentType, +); +listStaffDocumentsByDocumentTypeData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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.listStaffDocumentsByDocumentType( + documentType: documentType, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffDocumentsByStatus +#### Required Arguments +```dart +DocumentStatus status = ...; +ExampleConnector.instance.listStaffDocumentsByStatus( + status: status, +).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` +```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.listStaffDocumentsByStatus( + status: status, +); +listStaffDocumentsByStatusData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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 = ...; + +final ref = ExampleConnector.instance.listStaffDocumentsByStatus( + status: status, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listTaskComments +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listTaskComments().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.listTaskComments(); +listTaskCommentsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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.listTaskComments().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTaskCommentById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getTaskCommentById( + 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.getTaskCommentById( + id: id, +); +getTaskCommentByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getTaskCommentById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTaskCommentsByTaskId +#### Required Arguments +```dart +String taskId = ...; +ExampleConnector.instance.getTaskCommentsByTaskId( + 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.getTaskCommentsByTaskId( + taskId: taskId, +); +getTaskCommentsByTaskIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getTaskCommentsByTaskId( + taskId: taskId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listTeamHubs +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listTeamHubs().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.listTeamHubs(); +listTeamHubsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTeamHubById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getTeamHubById( + 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.getTeamHubById( + id: id, +); +getTeamHubByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getTeamHubById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTeamHubsByTeamId +#### Required Arguments +```dart +String teamId = ...; +ExampleConnector.instance.getTeamHubsByTeamId( + 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.getTeamHubsByTeamId( + teamId: teamId, +); +getTeamHubsByTeamIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getTeamHubsByTeamId( + teamId: teamId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listTeamHubsByOwnerId +#### Required Arguments +```dart +String ownerId = ...; +ExampleConnector.instance.listTeamHubsByOwnerId( + 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.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(...); +``` + + +### 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; + } + ListUserConversationsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +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) +.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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### 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 +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getVendorRateById( + 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.getVendorRateById( + id: id, +); +getVendorRateByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getVendorRateById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + ### listClientFeedbacks #### Required Arguments ```dart @@ -520,17 +3104,17 @@ ref.subscribe(...); ``` -### listDocuments +### listMessages #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listDocuments().execute(); +ExampleConnector.instance.listMessages().execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -545,8 +3129,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.listMessages(); +listMessagesData data = result.data; final ref = result.ref; ``` @@ -554,18 +3138,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.listMessages().ref(); ref.execute(); ref.subscribe(...); ``` -### getDocumentById +### getMessageById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getDocumentById( +ExampleConnector.instance.getMessageById( id: id, ).execute(); ``` @@ -573,7 +3157,7 @@ ExampleConnector.instance.getDocumentById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -588,10 +3172,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getDocumentById( +final result = await ExampleConnector.instance.getMessageById( id: id, ); -getDocumentByIdData data = result.data; +getMessageByIdData data = result.data; final ref = result.ref; ``` @@ -601,7 +3185,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.getMessageById( id: id, ).ref(); ref.execute(); @@ -610,34 +3194,19 @@ ref.subscribe(...); ``` -### filterDocuments +### getMessagesByConversationId #### Required Arguments ```dart -// No required arguments -ExampleConnector.instance.filterDocuments().execute(); +String conversationId = ...; +ExampleConnector.instance.getMessagesByConversationId( + conversationId: conversationId, +).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` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -652,8 +3221,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.getMessagesByConversationId( + conversationId: conversationId, +); +getMessagesByConversationIdData data = result.data; final ref = result.ref; ``` @@ -661,7 +3232,889 @@ 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 conversationId = ...; + +final ref = ExampleConnector.instance.getMessagesByConversationId( + conversationId: conversationId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listVendorBenefitPlans +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listVendorBenefitPlans().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listVendorBenefitPlans, we created `listVendorBenefitPlansBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListVendorBenefitPlansVariablesBuilder { + ... + + ListVendorBenefitPlansVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListVendorBenefitPlansVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listVendorBenefitPlans() +.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.listVendorBenefitPlans(); +listVendorBenefitPlansData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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.listVendorBenefitPlans().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getVendorBenefitPlanById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getVendorBenefitPlanById( + 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.getVendorBenefitPlanById( + id: id, +); +getVendorBenefitPlanByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getVendorBenefitPlanById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listVendorBenefitPlansByVendorId +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.listVendorBenefitPlansByVendorId( + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listVendorBenefitPlansByVendorId, we created `listVendorBenefitPlansByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListVendorBenefitPlansByVendorIdVariablesBuilder { + ... + ListVendorBenefitPlansByVendorIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListVendorBenefitPlansByVendorIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listVendorBenefitPlansByVendorId( + 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.listVendorBenefitPlansByVendorId( + vendorId: vendorId, +); +listVendorBenefitPlansByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.listVendorBenefitPlansByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listActiveVendorBenefitPlansByVendorId +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.listActiveVendorBenefitPlansByVendorId( + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listActiveVendorBenefitPlansByVendorId, we created `listActiveVendorBenefitPlansByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListActiveVendorBenefitPlansByVendorIdVariablesBuilder { + ... + ListActiveVendorBenefitPlansByVendorIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListActiveVendorBenefitPlansByVendorIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listActiveVendorBenefitPlansByVendorId( + 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.listActiveVendorBenefitPlansByVendorId( + vendorId: vendorId, +); +listActiveVendorBenefitPlansByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.listActiveVendorBenefitPlansByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterVendorBenefitPlans +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterVendorBenefitPlans().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterVendorBenefitPlans, we created `filterVendorBenefitPlansBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterVendorBenefitPlansVariablesBuilder { + ... + + FilterVendorBenefitPlansVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + FilterVendorBenefitPlansVariablesBuilder title(String? t) { + _title.value = t; + return this; + } + FilterVendorBenefitPlansVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + FilterVendorBenefitPlansVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + FilterVendorBenefitPlansVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterVendorBenefitPlans() +.vendorId(vendorId) +.title(title) +.isActive(isActive) +.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.filterVendorBenefitPlans(); +filterVendorBenefitPlansData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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.filterVendorBenefitPlans().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRecentPayments +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listRecentPayments().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listRecentPayments, we created `listRecentPaymentsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListRecentPaymentsVariablesBuilder { + ... + + ListRecentPaymentsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListRecentPaymentsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listRecentPayments() +.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.listRecentPayments(); +listRecentPaymentsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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.listRecentPayments().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getRecentPaymentById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getRecentPaymentById( + 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.getRecentPaymentById( + id: id, +); +getRecentPaymentByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getRecentPaymentById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRecentPaymentsByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.listRecentPaymentsByStaffId( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listRecentPaymentsByStaffId, we created `listRecentPaymentsByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListRecentPaymentsByStaffIdVariablesBuilder { + ... + ListRecentPaymentsByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListRecentPaymentsByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listRecentPaymentsByStaffId( + 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.listRecentPaymentsByStaffId( + staffId: staffId, +); +listRecentPaymentsByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.listRecentPaymentsByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRecentPaymentsByApplicationId +#### Required Arguments +```dart +String applicationId = ...; +ExampleConnector.instance.listRecentPaymentsByApplicationId( + applicationId: applicationId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listRecentPaymentsByApplicationId, we created `listRecentPaymentsByApplicationIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListRecentPaymentsByApplicationIdVariablesBuilder { + ... + ListRecentPaymentsByApplicationIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListRecentPaymentsByApplicationIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listRecentPaymentsByApplicationId( + applicationId: applicationId, +) +.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.listRecentPaymentsByApplicationId( + applicationId: applicationId, +); +listRecentPaymentsByApplicationIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String applicationId = ...; + +final ref = ExampleConnector.instance.listRecentPaymentsByApplicationId( + applicationId: applicationId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRecentPaymentsByInvoiceId +#### Required Arguments +```dart +String invoiceId = ...; +ExampleConnector.instance.listRecentPaymentsByInvoiceId( + invoiceId: invoiceId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listRecentPaymentsByInvoiceId, we created `listRecentPaymentsByInvoiceIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListRecentPaymentsByInvoiceIdVariablesBuilder { + ... + ListRecentPaymentsByInvoiceIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListRecentPaymentsByInvoiceIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listRecentPaymentsByInvoiceId( + invoiceId: invoiceId, +) +.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.listRecentPaymentsByInvoiceId( + invoiceId: invoiceId, +); +listRecentPaymentsByInvoiceIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String invoiceId = ...; + +final ref = ExampleConnector.instance.listRecentPaymentsByInvoiceId( + invoiceId: invoiceId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRecentPaymentsByStatus +#### Required Arguments +```dart +RecentPaymentStatus status = ...; +ExampleConnector.instance.listRecentPaymentsByStatus( + status: status, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listRecentPaymentsByStatus, we created `listRecentPaymentsByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListRecentPaymentsByStatusVariablesBuilder { + ... + ListRecentPaymentsByStatusVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListRecentPaymentsByStatusVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listRecentPaymentsByStatus( + 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.listRecentPaymentsByStatus( + status: status, +); +listRecentPaymentsByStatusData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +RecentPaymentStatus status = ...; + +final ref = ExampleConnector.instance.listRecentPaymentsByStatus( + status: status, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRecentPaymentsByInvoiceIds +#### Required Arguments +```dart +String invoiceIds = ...; +ExampleConnector.instance.listRecentPaymentsByInvoiceIds( + invoiceIds: invoiceIds, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listRecentPaymentsByInvoiceIds, we created `listRecentPaymentsByInvoiceIdsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListRecentPaymentsByInvoiceIdsVariablesBuilder { + ... + ListRecentPaymentsByInvoiceIdsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListRecentPaymentsByInvoiceIdsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listRecentPaymentsByInvoiceIds( + invoiceIds: invoiceIds, +) +.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.listRecentPaymentsByInvoiceIds( + invoiceIds: invoiceIds, +); +listRecentPaymentsByInvoiceIdsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String invoiceIds = ...; + +final ref = ExampleConnector.instance.listRecentPaymentsByInvoiceIds( + invoiceIds: invoiceIds, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRecentPaymentsByBusinessId +#### Required Arguments +```dart +String businessId = ...; +ExampleConnector.instance.listRecentPaymentsByBusinessId( + businessId: businessId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listRecentPaymentsByBusinessId, we created `listRecentPaymentsByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListRecentPaymentsByBusinessIdVariablesBuilder { + ... + ListRecentPaymentsByBusinessIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListRecentPaymentsByBusinessIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listRecentPaymentsByBusinessId( + 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.listRecentPaymentsByBusinessId( + businessId: businessId, +); +listRecentPaymentsByBusinessIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.listRecentPaymentsByBusinessId( + businessId: businessId, +).ref(); ref.execute(); ref.subscribe(...); @@ -1714,6 +5167,491 @@ 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(...); +``` + + +### listAttireOptions +#### Required Arguments +```dart +// No required arguments +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 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 FilterAttireOptionsVariablesBuilder { + ... + + FilterAttireOptionsVariablesBuilder itemId(String? t) { + _itemId.value = t; + return this; + } + FilterAttireOptionsVariablesBuilder isMandatory(bool? t) { + _isMandatory.value = t; + return this; + } + FilterAttireOptionsVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterAttireOptions() +.itemId(itemId) +.isMandatory(isMandatory) +.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.filterAttireOptions(); +filterAttireOptionsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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(); +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(...); +``` + + ### listTeamHudDepartments #### Required Arguments ```dart @@ -1898,17 +5836,17 @@ ref.subscribe(...); ``` -### listBusinesses +### listUsers #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listBusinesses().execute(); +ExampleConnector.instance.listUsers().execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -1923,8 +5861,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listBusinesses(); -listBusinessesData data = result.data; +final result = await ExampleConnector.instance.listUsers(); +listUsersData data = result.data; final ref = result.ref; ``` @@ -1932,26 +5870,26 @@ 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.listBusinesses().ref(); +final ref = ExampleConnector.instance.listUsers().ref(); ref.execute(); ref.subscribe(...); ``` -### getBusinessesByUserId +### getUserById #### Required Arguments ```dart -String userId = ...; -ExampleConnector.instance.getBusinessesByUserId( - userId: userId, +String id = ...; +ExampleConnector.instance.getUserById( + id: id, ).execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -1966,10 +5904,673 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getBusinessesByUserId( +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(...); +``` + + +### 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(...); +``` + + +### 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 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 FilterFaqDatasVariablesBuilder { + ... + + 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(...); +``` + + +### 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, ); -getBusinessesByUserIdData data = result.data; +getVendorByUserIdData data = result.data; final ref = result.ref; ``` @@ -1979,7 +6580,7 @@ An example of how to use the `Ref` object is shown below: ```dart String userId = ...; -final ref = ExampleConnector.instance.getBusinessesByUserId( +final ref = ExampleConnector.instance.getVendorByUserId( userId: userId, ).ref(); ref.execute(); @@ -1988,66 +6589,17 @@ 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(...); -``` - - -### listApplications +### listVendors #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listApplications().execute(); +ExampleConnector.instance.listVendors().execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -2062,8 +6614,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listApplications(); -listApplicationsData data = result.data; +final result = await ExampleConnector.instance.listVendors(); +listVendorsData data = result.data; final ref = result.ref; ``` @@ -2071,1967 +6623,7 @@ 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.listApplications().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getApplicationById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getApplicationById( - 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.getApplicationById( - id: id, -); -getApplicationByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.getApplicationById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getApplicationsByShiftId -#### Required Arguments -```dart -String shiftId = ...; -ExampleConnector.instance.getApplicationsByShiftId( - shiftId: shiftId, -).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.getApplicationsByShiftId( - shiftId: shiftId, -); -getApplicationsByShiftIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 = ...; - -final ref = ExampleConnector.instance.getApplicationsByShiftId( - shiftId: shiftId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getApplicationsByShiftIdAndStatus -#### Required Arguments -```dart -String shiftId = ...; -ApplicationStatus status = ...; -ExampleConnector.instance.getApplicationsByShiftIdAndStatus( - shiftId: shiftId, - status: status, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getApplicationsByShiftIdAndStatus, we created `getApplicationsByShiftIdAndStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetApplicationsByShiftIdAndStatusVariablesBuilder { - ... - GetApplicationsByShiftIdAndStatusVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetApplicationsByShiftIdAndStatusVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getApplicationsByShiftIdAndStatus( - shiftId: shiftId, - 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.getApplicationsByShiftIdAndStatus( - shiftId: shiftId, - status: status, -); -getApplicationsByShiftIdAndStatusData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 = ...; -ApplicationStatus status = ...; - -final ref = ExampleConnector.instance.getApplicationsByShiftIdAndStatus( - shiftId: shiftId, - status: status, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getApplicationsByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.getApplicationsByStaffId( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getApplicationsByStaffId, we created `getApplicationsByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetApplicationsByStaffIdVariablesBuilder { - ... - GetApplicationsByStaffIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetApplicationsByStaffIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getApplicationsByStaffId( - 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.getApplicationsByStaffId( - staffId: staffId, -); -getApplicationsByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.getApplicationsByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listAcceptedApplicationsByShiftRoleKey -#### Required Arguments -```dart -String shiftId = ...; -String roleId = ...; -ExampleConnector.instance.listAcceptedApplicationsByShiftRoleKey( - shiftId: shiftId, - roleId: roleId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listAcceptedApplicationsByShiftRoleKey, we created `listAcceptedApplicationsByShiftRoleKeyBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListAcceptedApplicationsByShiftRoleKeyVariablesBuilder { - ... - ListAcceptedApplicationsByShiftRoleKeyVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListAcceptedApplicationsByShiftRoleKeyVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listAcceptedApplicationsByShiftRoleKey( - 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.listAcceptedApplicationsByShiftRoleKey( - shiftId: shiftId, - roleId: roleId, -); -listAcceptedApplicationsByShiftRoleKeyData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.listAcceptedApplicationsByShiftRoleKey( - shiftId: shiftId, - roleId: roleId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listAcceptedApplicationsByBusinessForDay -#### Required Arguments -```dart -String businessId = ...; -Timestamp dayStart = ...; -Timestamp dayEnd = ...; -ExampleConnector.instance.listAcceptedApplicationsByBusinessForDay( - businessId: businessId, - dayStart: dayStart, - dayEnd: dayEnd, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listAcceptedApplicationsByBusinessForDay, we created `listAcceptedApplicationsByBusinessForDayBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListAcceptedApplicationsByBusinessForDayVariablesBuilder { - ... - ListAcceptedApplicationsByBusinessForDayVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListAcceptedApplicationsByBusinessForDayVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listAcceptedApplicationsByBusinessForDay( - businessId: businessId, - dayStart: dayStart, - dayEnd: dayEnd, -) -.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.listAcceptedApplicationsByBusinessForDay( - businessId: businessId, - dayStart: dayStart, - dayEnd: dayEnd, -); -listAcceptedApplicationsByBusinessForDayData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 = ...; -Timestamp dayStart = ...; -Timestamp dayEnd = ...; - -final ref = ExampleConnector.instance.listAcceptedApplicationsByBusinessForDay( - businessId: businessId, - dayStart: dayStart, - dayEnd: dayEnd, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffsApplicationsByBusinessForDay -#### Required Arguments -```dart -String businessId = ...; -Timestamp dayStart = ...; -Timestamp dayEnd = ...; -ExampleConnector.instance.listStaffsApplicationsByBusinessForDay( - businessId: businessId, - dayStart: dayStart, - dayEnd: dayEnd, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffsApplicationsByBusinessForDay, we created `listStaffsApplicationsByBusinessForDayBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffsApplicationsByBusinessForDayVariablesBuilder { - ... - ListStaffsApplicationsByBusinessForDayVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffsApplicationsByBusinessForDayVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffsApplicationsByBusinessForDay( - businessId: businessId, - dayStart: dayStart, - dayEnd: dayEnd, -) -.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.listStaffsApplicationsByBusinessForDay( - businessId: businessId, - dayStart: dayStart, - dayEnd: dayEnd, -); -listStaffsApplicationsByBusinessForDayData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 = ...; -Timestamp dayStart = ...; -Timestamp dayEnd = ...; - -final ref = ExampleConnector.instance.listStaffsApplicationsByBusinessForDay( - businessId: businessId, - dayStart: dayStart, - dayEnd: dayEnd, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRecentPayments -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listRecentPayments().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listRecentPayments, we created `listRecentPaymentsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListRecentPaymentsVariablesBuilder { - ... - - ListRecentPaymentsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListRecentPaymentsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listRecentPayments() -.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.listRecentPayments(); -listRecentPaymentsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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.listRecentPayments().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getRecentPaymentById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getRecentPaymentById( - 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.getRecentPaymentById( - id: id, -); -getRecentPaymentByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.getRecentPaymentById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRecentPaymentsByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.listRecentPaymentsByStaffId( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listRecentPaymentsByStaffId, we created `listRecentPaymentsByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListRecentPaymentsByStaffIdVariablesBuilder { - ... - ListRecentPaymentsByStaffIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListRecentPaymentsByStaffIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listRecentPaymentsByStaffId( - 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.listRecentPaymentsByStaffId( - staffId: staffId, -); -listRecentPaymentsByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.listRecentPaymentsByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRecentPaymentsByApplicationId -#### Required Arguments -```dart -String applicationId = ...; -ExampleConnector.instance.listRecentPaymentsByApplicationId( - applicationId: applicationId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listRecentPaymentsByApplicationId, we created `listRecentPaymentsByApplicationIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListRecentPaymentsByApplicationIdVariablesBuilder { - ... - ListRecentPaymentsByApplicationIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListRecentPaymentsByApplicationIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listRecentPaymentsByApplicationId( - applicationId: applicationId, -) -.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.listRecentPaymentsByApplicationId( - applicationId: applicationId, -); -listRecentPaymentsByApplicationIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String applicationId = ...; - -final ref = ExampleConnector.instance.listRecentPaymentsByApplicationId( - applicationId: applicationId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRecentPaymentsByInvoiceId -#### Required Arguments -```dart -String invoiceId = ...; -ExampleConnector.instance.listRecentPaymentsByInvoiceId( - invoiceId: invoiceId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listRecentPaymentsByInvoiceId, we created `listRecentPaymentsByInvoiceIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListRecentPaymentsByInvoiceIdVariablesBuilder { - ... - ListRecentPaymentsByInvoiceIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListRecentPaymentsByInvoiceIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listRecentPaymentsByInvoiceId( - invoiceId: invoiceId, -) -.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.listRecentPaymentsByInvoiceId( - invoiceId: invoiceId, -); -listRecentPaymentsByInvoiceIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String invoiceId = ...; - -final ref = ExampleConnector.instance.listRecentPaymentsByInvoiceId( - invoiceId: invoiceId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRecentPaymentsByStatus -#### Required Arguments -```dart -RecentPaymentStatus status = ...; -ExampleConnector.instance.listRecentPaymentsByStatus( - status: status, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listRecentPaymentsByStatus, we created `listRecentPaymentsByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListRecentPaymentsByStatusVariablesBuilder { - ... - ListRecentPaymentsByStatusVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListRecentPaymentsByStatusVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listRecentPaymentsByStatus( - 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.listRecentPaymentsByStatus( - status: status, -); -listRecentPaymentsByStatusData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -RecentPaymentStatus status = ...; - -final ref = ExampleConnector.instance.listRecentPaymentsByStatus( - status: status, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRecentPaymentsByInvoiceIds -#### Required Arguments -```dart -String invoiceIds = ...; -ExampleConnector.instance.listRecentPaymentsByInvoiceIds( - invoiceIds: invoiceIds, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listRecentPaymentsByInvoiceIds, we created `listRecentPaymentsByInvoiceIdsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListRecentPaymentsByInvoiceIdsVariablesBuilder { - ... - ListRecentPaymentsByInvoiceIdsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListRecentPaymentsByInvoiceIdsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listRecentPaymentsByInvoiceIds( - invoiceIds: invoiceIds, -) -.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.listRecentPaymentsByInvoiceIds( - invoiceIds: invoiceIds, -); -listRecentPaymentsByInvoiceIdsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String invoiceIds = ...; - -final ref = ExampleConnector.instance.listRecentPaymentsByInvoiceIds( - invoiceIds: invoiceIds, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRecentPaymentsByBusinessId -#### Required Arguments -```dart -String businessId = ...; -ExampleConnector.instance.listRecentPaymentsByBusinessId( - businessId: businessId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listRecentPaymentsByBusinessId, we created `listRecentPaymentsByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListRecentPaymentsByBusinessIdVariablesBuilder { - ... - ListRecentPaymentsByBusinessIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListRecentPaymentsByBusinessIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listRecentPaymentsByBusinessId( - 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.listRecentPaymentsByBusinessId( - businessId: businessId, -); -listRecentPaymentsByBusinessIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.listRecentPaymentsByBusinessId( - businessId: businessId, -).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(...); -``` - - -### listTaxForms -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listTaxForms().execute(); -``` - -#### Optional Arguments -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 ListTaxFormsVariablesBuilder { - ... - - ListTaxFormsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListTaxFormsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -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) -.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(...); -``` - - -### listTaxFormsWhere -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listTaxFormsWhere().execute(); -``` - -#### Optional Arguments -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 ListTaxFormsWhereVariablesBuilder { - ... - - 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; - } - - ... -} -ExampleConnector.instance.listTaxFormsWhere() -.formType(formType) -.status(status) -.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.listTaxFormsWhere(); -listTaxFormsWhereData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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.listTaxFormsWhere().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(); +final ref = ExampleConnector.instance.listVendors().ref(); ref.execute(); ref.subscribe(...); @@ -4191,145 +6783,6 @@ 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(...); -``` - - ### listStaffAvailabilities #### Required Arguments ```dart @@ -4843,17 +7296,17 @@ ref.subscribe(...); ``` -### listAccounts +### listCertificates #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listAccounts().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 { @@ -4868,8 +7321,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listAccounts(); -listAccountsData data = result.data; +final result = await ExampleConnector.instance.listCertificates(); +listCertificatesData data = result.data; final ref = result.ref; ``` @@ -4877,18 +7330,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.listAccounts().ref(); +final ref = ExampleConnector.instance.listCertificates().ref(); ref.execute(); ref.subscribe(...); ``` -### getAccountById +### getCertificateById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getAccountById( +ExampleConnector.instance.getCertificateById( id: id, ).execute(); ``` @@ -4896,7 +7349,7 @@ ExampleConnector.instance.getAccountById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -4911,10 +7364,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getAccountById( +final result = await ExampleConnector.instance.getCertificateById( id: id, ); -getAccountByIdData data = result.data; +getCertificateByIdData data = result.data; final ref = result.ref; ``` @@ -4924,7 +7377,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getAccountById( +final ref = ExampleConnector.instance.getCertificateById( id: id, ).ref(); ref.execute(); @@ -4933,19 +7386,19 @@ ref.subscribe(...); ``` -### getAccountsByOwnerId +### listCertificatesByStaffId #### Required Arguments ```dart -String ownerId = ...; -ExampleConnector.instance.getAccountsByOwnerId( - ownerId: ownerId, +String staffId = ...; +ExampleConnector.instance.listCertificatesByStaffId( + staffId: staffId, ).execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -4960,10 +7413,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getAccountsByOwnerId( - ownerId: ownerId, +final result = await ExampleConnector.instance.listCertificatesByStaffId( + staffId: staffId, ); -getAccountsByOwnerIdData data = result.data; +listCertificatesByStaffIdData data = result.data; final ref = result.ref; ``` @@ -4971,10 +7424,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.getAccountsByOwnerId( - ownerId: ownerId, +final ref = ExampleConnector.instance.listCertificatesByStaffId( + staffId: staffId, ).ref(); ref.execute(); @@ -4982,49 +7435,191 @@ ref.subscribe(...); ``` -### filterAccounts +### 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(...); +``` + + +### listTaxForms #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.filterAccounts().execute(); +ExampleConnector.instance.listTaxForms().execute(); ``` #### Optional Arguments -We return a builder for each query. For filterAccounts, we created `filterAccountsBuilder`. 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 FilterAccountsVariablesBuilder { +class ListTaxFormsVariablesBuilder { ... - FilterAccountsVariablesBuilder bank(String? t) { - _bank.value = t; + ListTaxFormsVariablesBuilder offset(int? t) { + _offset.value = t; return this; } - FilterAccountsVariablesBuilder type(AccountType? t) { - _type.value = t; - return this; - } - FilterAccountsVariablesBuilder isPrimary(bool? t) { - _isPrimary.value = t; - return this; - } - FilterAccountsVariablesBuilder ownerId(String? t) { - _ownerId.value = t; + ListTaxFormsVariablesBuilder limit(int? t) { + _limit.value = t; return this; } ... } -ExampleConnector.instance.filterAccounts() -.bank(bank) -.type(type) -.isPrimary(isPrimary) -.ownerId(ownerId) +ExampleConnector.instance.listTaxForms() +.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 { @@ -5039,8 +7634,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.filterAccounts(); -filterAccountsData data = result.data; +final result = await ExampleConnector.instance.listTaxForms(); +listTaxFormsData data = result.data; final ref = result.ref; ``` @@ -5048,7 +7643,345 @@ 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.filterAccounts().ref(); +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) +.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(...); +``` + + +### listTaxFormsWhere +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listTaxFormsWhere().execute(); +``` + +#### Optional Arguments +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 ListTaxFormsWhereVariablesBuilder { + ... + + 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; + } + + ... +} +ExampleConnector.instance.listTaxFormsWhere() +.formType(formType) +.status(status) +.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.listTaxFormsWhere(); +listTaxFormsWhereData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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.listTaxFormsWhere().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listEmergencyContacts +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listEmergencyContacts().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.listEmergencyContacts(); +listEmergencyContactsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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.listEmergencyContacts().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getEmergencyContactById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getEmergencyContactById( + 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.getEmergencyContactById( + id: id, +); +getEmergencyContactByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getEmergencyContactById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getEmergencyContactsByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.getEmergencyContactsByStaffId( + 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.getEmergencyContactsByStaffId( + staffId: staffId, +); +getEmergencyContactsByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getEmergencyContactsByStaffId( + staffId: staffId, +).ref(); ref.execute(); ref.subscribe(...); @@ -5389,17 +8322,17 @@ ref.subscribe(...); ``` -### listTasks +### listDocuments #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listTasks().execute(); +ExampleConnector.instance.listDocuments().execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -5414,8 +8347,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listTasks(); -listTasksData data = result.data; +final result = await ExampleConnector.instance.listDocuments(); +listDocumentsData data = result.data; final ref = result.ref; ``` @@ -5423,18 +8356,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.listTasks().ref(); +final ref = ExampleConnector.instance.listDocuments().ref(); ref.execute(); ref.subscribe(...); ``` -### getTaskById +### getDocumentById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getTaskById( +ExampleConnector.instance.getDocumentById( id: id, ).execute(); ``` @@ -5442,7 +8375,7 @@ ExampleConnector.instance.getTaskById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -5457,10 +8390,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getTaskById( +final result = await ExampleConnector.instance.getDocumentById( id: id, ); -getTaskByIdData data = result.data; +getDocumentByIdData data = result.data; final ref = result.ref; ``` @@ -5470,7 +8403,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getTaskById( +final ref = ExampleConnector.instance.getDocumentById( id: id, ).ref(); ref.execute(); @@ -5479,88 +8412,34 @@ ref.subscribe(...); ``` -### getTasksByOwnerId -#### Required Arguments -```dart -String ownerId = ...; -ExampleConnector.instance.getTasksByOwnerId( - 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.getTasksByOwnerId( - ownerId: ownerId, -); -getTasksByOwnerIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.getTasksByOwnerId( - ownerId: ownerId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterTasks +### filterDocuments #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.filterTasks().execute(); +ExampleConnector.instance.filterDocuments().execute(); ``` #### Optional Arguments -We return a builder for each query. For filterTasks, we created `filterTasksBuilder`. For queries and mutations with optional parameters, we return a builder class. +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 FilterTasksVariablesBuilder { +class FilterDocumentsVariablesBuilder { ... - FilterTasksVariablesBuilder status(TaskStatus? t) { - _status.value = t; - return this; - } - FilterTasksVariablesBuilder priority(TaskPriority? t) { - _priority.value = t; + FilterDocumentsVariablesBuilder documentType(DocumentType? t) { + _documentType.value = t; return this; } ... } -ExampleConnector.instance.filterTasks() -.status(status) -.priority(priority) +ExampleConnector.instance.filterDocuments() +.documentType(documentType) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -5575,8 +8454,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.filterTasks(); -filterTasksData data = result.data; +final result = await ExampleConnector.instance.filterDocuments(); +filterDocumentsData data = result.data; final ref = result.ref; ``` @@ -5584,185 +8463,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.filterTasks().ref(); +final ref = ExampleConnector.instance.filterDocuments().ref(); ref.execute(); ref.subscribe(...); ``` -### listCertificates +### listActivityLogs #### 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(...); -``` - - -### listStaffAvailabilityStats -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listStaffAvailabilityStats().execute(); +ExampleConnector.instance.listActivityLogs().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. +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 ListStaffAvailabilityStatsVariablesBuilder { +class ListActivityLogsVariablesBuilder { ... - ListStaffAvailabilityStatsVariablesBuilder offset(int? t) { + ListActivityLogsVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListStaffAvailabilityStatsVariablesBuilder limit(int? t) { + ListActivityLogsVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listStaffAvailabilityStats() +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 { @@ -5777,8 +8517,8 @@ 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.listActivityLogs(); +listActivityLogsData data = result.data; final ref = result.ref; ``` @@ -5786,26 +8526,26 @@ 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(); +final ref = ExampleConnector.instance.listActivityLogs().ref(); ref.execute(); ref.subscribe(...); ``` -### getStaffAvailabilityStatsByStaffId +### getActivityLogById #### Required Arguments ```dart -String staffId = ...; -ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( - staffId: staffId, +String id = ...; +ExampleConnector.instance.getActivityLogById( + id: id, ).execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -5820,10 +8560,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( - staffId: staffId, +final result = await ExampleConnector.instance.getActivityLogById( + id: id, ); -getStaffAvailabilityStatsByStaffIdData data = result.data; +getActivityLogByIdData data = result.data; final ref = result.ref; ``` @@ -5831,10 +8571,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 id = ...; -final ref = ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( - staffId: staffId, +final ref = ExampleConnector.instance.getActivityLogById( + id: id, ).ref(); ref.execute(); @@ -5842,79 +8582,42 @@ ref.subscribe(...); ``` -### filterStaffAvailabilityStats +### listActivityLogsByUserId #### Required Arguments ```dart -// No required arguments -ExampleConnector.instance.filterStaffAvailabilityStats().execute(); +String userId = ...; +ExampleConnector.instance.listActivityLogsByUserId( + userId: userId, +).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 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 FilterStaffAvailabilityStatsVariablesBuilder { +class ListActivityLogsByUserIdVariablesBuilder { ... - - 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) { + ListActivityLogsByUserIdVariablesBuilder offset(int? t) { _offset.value = t; return this; } - FilterStaffAvailabilityStatsVariablesBuilder limit(int? t) { + ListActivityLogsByUserIdVariablesBuilder 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) +ExampleConnector.instance.listActivityLogsByUserId( + userId: userId, +) .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 { @@ -5929,94 +8632,10 @@ 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, +final result = await ExampleConnector.instance.listActivityLogsByUserId( + userId: userId, ); -getHubByIdData data = result.data; +listActivityLogsByUserIdData data = result.data; final ref = result.ref; ``` @@ -6024,10 +8643,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 id = ...; +String userId = ...; -final ref = ExampleConnector.instance.getHubById( - id: id, +final ref = ExampleConnector.instance.listActivityLogsByUserId( + userId: userId, ).ref(); ref.execute(); @@ -6035,93 +8654,42 @@ ref.subscribe(...); ``` -### getHubsByOwnerId +### listUnreadActivityLogsByUserId #### Required Arguments ```dart -String ownerId = ...; -ExampleConnector.instance.getHubsByOwnerId( - ownerId: ownerId, +String userId = ...; +ExampleConnector.instance.listUnreadActivityLogsByUserId( + 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.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. +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 FilterHubsVariablesBuilder { +class ListUnreadActivityLogsByUserIdVariablesBuilder { ... - - FilterHubsVariablesBuilder ownerId(String? t) { - _ownerId.value = t; + ListUnreadActivityLogsByUserIdVariablesBuilder offset(int? t) { + _offset.value = t; return this; } - FilterHubsVariablesBuilder name(String? t) { - _name.value = t; - return this; - } - FilterHubsVariablesBuilder nfcTagId(String? t) { - _nfcTagId.value = t; + ListUnreadActivityLogsByUserIdVariablesBuilder limit(int? t) { + _limit.value = t; return this; } ... } -ExampleConnector.instance.filterHubs() -.ownerId(ownerId) -.name(name) -.nfcTagId(nfcTagId) +ExampleConnector.instance.listUnreadActivityLogsByUserId( + userId: userId, +) +.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 { @@ -6136,8 +8704,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.filterHubs(); -filterHubsData data = result.data; +final result = await ExampleConnector.instance.listUnreadActivityLogsByUserId( + userId: userId, +); +listUnreadActivityLogsByUserIdData data = result.data; final ref = result.ref; ``` @@ -6145,7 +8715,420 @@ 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.filterHubs().ref(); +String userId = ...; + +final ref = ExampleConnector.instance.listUnreadActivityLogsByUserId( + userId: userId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterActivityLogs +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterActivityLogs().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. +The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { + ... + + 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; + } + FilterActivityLogsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +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` +```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.filterActivityLogs(); +filterActivityLogsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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(); +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(...); +``` + + +### 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(...); @@ -6727,178 +9710,39 @@ ref.subscribe(...); ``` -### listRoleCategories +### listOrders #### 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(...); -``` - - -### listAssignments -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listAssignments().execute(); +ExampleConnector.instance.listOrders().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. +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 ListAssignmentsVariablesBuilder { +class ListOrdersVariablesBuilder { ... - ListAssignmentsVariablesBuilder offset(int? t) { + ListOrdersVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListAssignmentsVariablesBuilder limit(int? t) { + ListOrdersVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listAssignments() +ExampleConnector.instance.listOrders() .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 { @@ -6913,8 +9757,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listAssignments(); -listAssignmentsData data = result.data; +final result = await ExampleConnector.instance.listOrders(); +listOrdersData data = result.data; final ref = result.ref; ``` @@ -6922,18 +9766,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.listAssignments().ref(); +final ref = ExampleConnector.instance.listOrders().ref(); ref.execute(); ref.subscribe(...); ``` -### getAssignmentById +### getOrderById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getAssignmentById( +ExampleConnector.instance.getOrderById( id: id, ).execute(); ``` @@ -6941,7 +9785,7 @@ ExampleConnector.instance.getAssignmentById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -6956,10 +9800,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getAssignmentById( +final result = await ExampleConnector.instance.getOrderById( id: id, ); -getAssignmentByIdData data = result.data; +getOrderByIdData data = result.data; final ref = result.ref; ``` @@ -6969,7 +9813,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getAssignmentById( +final ref = ExampleConnector.instance.getOrderById( id: id, ).ref(); ref.execute(); @@ -6978,34 +9822,34 @@ ref.subscribe(...); ``` -### listAssignmentsByWorkforceId +### getOrdersByBusinessId #### Required Arguments ```dart -String workforceId = ...; -ExampleConnector.instance.listAssignmentsByWorkforceId( - workforceId: workforceId, +String businessId = ...; +ExampleConnector.instance.getOrdersByBusinessId( + businessId: businessId, ).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. +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 ListAssignmentsByWorkforceIdVariablesBuilder { +class GetOrdersByBusinessIdVariablesBuilder { ... - ListAssignmentsByWorkforceIdVariablesBuilder offset(int? t) { + GetOrdersByBusinessIdVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListAssignmentsByWorkforceIdVariablesBuilder limit(int? t) { + GetOrdersByBusinessIdVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listAssignmentsByWorkforceId( - workforceId: workforceId, +ExampleConnector.instance.getOrdersByBusinessId( + businessId: businessId, ) .offset(offset) .limit(limit) @@ -7013,7 +9857,7 @@ ExampleConnector.instance.listAssignmentsByWorkforceId( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -7028,10 +9872,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.getOrdersByBusinessId( + businessId: businessId, ); -listAssignmentsByWorkforceIdData data = result.data; +getOrdersByBusinessIdData data = result.data; final ref = result.ref; ``` @@ -7039,10 +9883,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 = ...; +String businessId = ...; -final ref = ExampleConnector.instance.listAssignmentsByWorkforceId( - workforceId: workforceId, +final ref = ExampleConnector.instance.getOrdersByBusinessId( + businessId: businessId, ).ref(); ref.execute(); @@ -7050,34 +9894,34 @@ ref.subscribe(...); ``` -### listAssignmentsByWorkforceIds +### getOrdersByVendorId #### Required Arguments ```dart -String workforceIds = ...; -ExampleConnector.instance.listAssignmentsByWorkforceIds( - workforceIds: workforceIds, +String vendorId = ...; +ExampleConnector.instance.getOrdersByVendorId( + vendorId: vendorId, ).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 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 ListAssignmentsByWorkforceIdsVariablesBuilder { +class GetOrdersByVendorIdVariablesBuilder { ... - ListAssignmentsByWorkforceIdsVariablesBuilder offset(int? t) { + GetOrdersByVendorIdVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListAssignmentsByWorkforceIdsVariablesBuilder limit(int? t) { + GetOrdersByVendorIdVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listAssignmentsByWorkforceIds( - workforceIds: workforceIds, +ExampleConnector.instance.getOrdersByVendorId( + vendorId: vendorId, ) .offset(offset) .limit(limit) @@ -7085,7 +9929,7 @@ ExampleConnector.instance.listAssignmentsByWorkforceIds( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -7100,10 +9944,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.getOrdersByVendorId( + vendorId: vendorId, ); -listAssignmentsByWorkforceIdsData data = result.data; +getOrdersByVendorIdData data = result.data; final ref = result.ref; ``` @@ -7111,10 +9955,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 = ...; +String vendorId = ...; -final ref = ExampleConnector.instance.listAssignmentsByWorkforceIds( - workforceIds: workforceIds, +final ref = ExampleConnector.instance.getOrdersByVendorId( + vendorId: vendorId, ).ref(); ref.execute(); @@ -7122,37 +9966,34 @@ ref.subscribe(...); ``` -### listAssignmentsByShiftRole +### getOrdersByStatus #### Required Arguments ```dart -String shiftId = ...; -String roleId = ...; -ExampleConnector.instance.listAssignmentsByShiftRole( - shiftId: shiftId, - roleId: roleId, +OrderStatus status = ...; +ExampleConnector.instance.getOrdersByStatus( + status: status, ).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 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 ListAssignmentsByShiftRoleVariablesBuilder { +class GetOrdersByStatusVariablesBuilder { ... - ListAssignmentsByShiftRoleVariablesBuilder offset(int? t) { + GetOrdersByStatusVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListAssignmentsByShiftRoleVariablesBuilder limit(int? t) { + GetOrdersByStatusVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listAssignmentsByShiftRole( - shiftId: shiftId, - roleId: roleId, +ExampleConnector.instance.getOrdersByStatus( + status: status, ) .offset(offset) .limit(limit) @@ -7160,7 +10001,7 @@ ExampleConnector.instance.listAssignmentsByShiftRole( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -7175,11 +10016,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.getOrdersByStatus( + status: status, ); -listAssignmentsByShiftRoleData data = result.data; +getOrdersByStatusData data = result.data; final ref = result.ref; ``` @@ -7187,12 +10027,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 = ...; +OrderStatus status = ...; -final ref = ExampleConnector.instance.listAssignmentsByShiftRole( - shiftId: shiftId, - roleId: roleId, +final ref = ExampleConnector.instance.getOrdersByStatus( + status: status, ).ref(); ref.execute(); @@ -7200,50 +10038,45 @@ ref.subscribe(...); ``` -### filterAssignments +### getOrdersByDateRange #### Required Arguments ```dart -String shiftIds = ...; -String roleIds = ...; -ExampleConnector.instance.filterAssignments( - shiftIds: shiftIds, - roleIds: roleIds, +Timestamp start = ...; +Timestamp end = ...; +ExampleConnector.instance.getOrdersByDateRange( + start: start, + end: end, ).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 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 FilterAssignmentsVariablesBuilder { +class GetOrdersByDateRangeVariablesBuilder { ... - FilterAssignmentsVariablesBuilder status(AssignmentStatus? t) { - _status.value = t; - return this; - } - FilterAssignmentsVariablesBuilder offset(int? t) { + GetOrdersByDateRangeVariablesBuilder offset(int? t) { _offset.value = t; return this; } - FilterAssignmentsVariablesBuilder limit(int? t) { + GetOrdersByDateRangeVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.filterAssignments( - shiftIds: shiftIds, - roleIds: roleIds, +ExampleConnector.instance.getOrdersByDateRange( + start: start, + end: end, ) -.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 { @@ -7258,11 +10091,11 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.filterAssignments( - shiftIds: shiftIds, - roleIds: roleIds, +final result = await ExampleConnector.instance.getOrdersByDateRange( + start: start, + end: end, ); -filterAssignmentsData data = result.data; +getOrdersByDateRangeData data = result.data; final ref = result.ref; ``` @@ -7270,12 +10103,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 shiftIds = ...; -String roleIds = ...; +Timestamp start = ...; +Timestamp end = ...; -final ref = ExampleConnector.instance.filterAssignments( - shiftIds: shiftIds, - roleIds: roleIds, +final ref = ExampleConnector.instance.getOrdersByDateRange( + start: start, + end: end, ).ref(); ref.execute(); @@ -7283,134 +10116,39 @@ ref.subscribe(...); ``` -### listAttireOptions +### getRapidOrders #### Required Arguments ```dart // No required arguments -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(); +ExampleConnector.instance.getRapidOrders().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 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 FilterAttireOptionsVariablesBuilder { +class GetRapidOrdersVariablesBuilder { ... - FilterAttireOptionsVariablesBuilder itemId(String? t) { - _itemId.value = t; + GetRapidOrdersVariablesBuilder offset(int? t) { + _offset.value = t; return this; } - FilterAttireOptionsVariablesBuilder isMandatory(bool? t) { - _isMandatory.value = t; - return this; - } - FilterAttireOptionsVariablesBuilder vendorId(String? t) { - _vendorId.value = t; + GetRapidOrdersVariablesBuilder limit(int? t) { + _limit.value = t; return this; } ... } -ExampleConnector.instance.filterAttireOptions() -.itemId(itemId) -.isMandatory(isMandatory) -.vendorId(vendorId) +ExampleConnector.instance.getRapidOrders() +.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 { @@ -7425,8 +10163,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.getRapidOrders(); +getRapidOrdersData data = result.data; final ref = result.ref; ``` @@ -7434,7 +10172,7 @@ 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.getRapidOrders().ref(); ref.execute(); ref.subscribe(...); @@ -8214,287 +10952,17 @@ 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) { - _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` -```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.listStaffDocumentsByStaffId( - staffId: staffId, -); -listStaffDocumentsByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.listStaffDocumentsByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffDocumentsByDocumentType -#### Required Arguments -```dart -DocumentType documentType = ...; -ExampleConnector.instance.listStaffDocumentsByDocumentType( - documentType: documentType, -).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` -```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.listStaffDocumentsByDocumentType( - documentType: documentType, -); -listStaffDocumentsByDocumentTypeData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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.listStaffDocumentsByDocumentType( - documentType: documentType, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffDocumentsByStatus -#### Required Arguments -```dart -DocumentStatus status = ...; -ExampleConnector.instance.listStaffDocumentsByStatus( - status: status, -).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` -```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.listStaffDocumentsByStatus( - status: status, -); -listStaffDocumentsByStatusData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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 = ...; - -final ref = ExampleConnector.instance.listStaffDocumentsByStatus( - status: status, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listTeamMembers +### listCustomRateCards #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listTeamMembers().execute(); +ExampleConnector.instance.listCustomRateCards().execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8509,8 +10977,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listTeamMembers(); -listTeamMembersData data = result.data; +final result = await ExampleConnector.instance.listCustomRateCards(); +listCustomRateCardsData data = result.data; final ref = result.ref; ``` @@ -8518,18 +10986,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.listTeamMembers().ref(); +final ref = ExampleConnector.instance.listCustomRateCards().ref(); ref.execute(); ref.subscribe(...); ``` -### getTeamMemberById +### getCustomRateCardById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getTeamMemberById( +ExampleConnector.instance.getCustomRateCardById( id: id, ).execute(); ``` @@ -8537,7 +11005,7 @@ ExampleConnector.instance.getTeamMemberById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8552,10 +11020,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getTeamMemberById( +final result = await ExampleConnector.instance.getCustomRateCardById( id: id, ); -getTeamMemberByIdData data = result.data; +getCustomRateCardByIdData data = result.data; final ref = result.ref; ``` @@ -8565,7 +11033,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getTeamMemberById( +final ref = ExampleConnector.instance.getCustomRateCardById( id: id, ).ref(); ref.execute(); @@ -8574,19 +11042,17 @@ ref.subscribe(...); ``` -### getTeamMembersByTeamId +### listHubs #### Required Arguments ```dart -String teamId = ...; -ExampleConnector.instance.getTeamMembersByTeamId( - teamId: teamId, -).execute(); +// No required arguments +ExampleConnector.instance.listHubs().execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8601,10 +11067,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getTeamMembersByTeamId( - teamId: teamId, -); -getTeamMembersByTeamIdData data = result.data; +final result = await ExampleConnector.instance.listHubs(); +listHubsData data = result.data; final ref = result.ref; ``` @@ -8612,10 +11076,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 teamId = ...; +final ref = ExampleConnector.instance.listHubs().ref(); +ref.execute(); -final ref = ExampleConnector.instance.getTeamMembersByTeamId( - teamId: teamId, +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(); @@ -8623,39 +11132,93 @@ ref.subscribe(...); ``` -### listUserConversations +### 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.listUserConversations().execute(); +ExampleConnector.instance.filterHubs().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 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 ListUserConversationsVariablesBuilder { +class FilterHubsVariablesBuilder { ... - ListUserConversationsVariablesBuilder offset(int? t) { - _offset.value = t; + FilterHubsVariablesBuilder ownerId(String? t) { + _ownerId.value = t; return this; } - ListUserConversationsVariablesBuilder limit(int? t) { - _limit.value = t; + FilterHubsVariablesBuilder name(String? t) { + _name.value = t; + return this; + } + FilterHubsVariablesBuilder nfcTagId(String? t) { + _nfcTagId.value = t; return this; } ... } -ExampleConnector.instance.listUserConversations() -.offset(offset) -.limit(limit) +ExampleConnector.instance.filterHubs() +.ownerId(ownerId) +.name(name) +.nfcTagId(nfcTagId) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8670,8 +11233,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.filterHubs(); +filterHubsData data = result.data; final ref = result.ref; ``` @@ -8679,346 +11242,185 @@ 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.filterHubs().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 +### listTasks #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.filterUserConversations().execute(); +ExampleConnector.instance.listTasks().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.listTasks(); +listTasksData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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.listTasks().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTaskById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getTaskById( + 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.getTaskById( + id: id, +); +getTaskByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getTaskById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTasksByOwnerId +#### Required Arguments +```dart +String ownerId = ...; +ExampleConnector.instance.getTasksByOwnerId( + 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.getTasksByOwnerId( + ownerId: ownerId, +); +getTasksByOwnerIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getTasksByOwnerId( + ownerId: ownerId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterTasks +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterTasks().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. +We return a builder for each query. For filterTasks, we created `filterTasksBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { +class FilterTasksVariablesBuilder { ... - FilterUserConversationsVariablesBuilder userId(String? t) { - _userId.value = t; + FilterTasksVariablesBuilder status(TaskStatus? t) { + _status.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; + FilterTasksVariablesBuilder priority(TaskPriority? t) { + _priority.value = t; return this; } ... } -ExampleConnector.instance.filterUserConversations() -.userId(userId) -.conversationId(conversationId) -.unreadMin(unreadMin) -.unreadMax(unreadMax) -.lastReadAfter(lastReadAfter) -.lastReadBefore(lastReadBefore) -.offset(offset) -.limit(limit) +ExampleConnector.instance.filterTasks() +.status(status) +.priority(priority) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -9033,8 +11435,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.filterUserConversations(); -filterUserConversationsData data = result.data; +final result = await ExampleConnector.instance.filterTasks(); +filterTasksData data = result.data; final ref = result.ref; ``` @@ -9042,24 +11444,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.filterUserConversations().ref(); +final ref = ExampleConnector.instance.filterTasks().ref(); ref.execute(); ref.subscribe(...); ``` -### listEmergencyContacts +### listTeams #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listEmergencyContacts().execute(); +ExampleConnector.instance.listTeams().execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -9074,8 +11476,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listEmergencyContacts(); -listEmergencyContactsData data = result.data; +final result = await ExampleConnector.instance.listTeams(); +listTeamsData data = result.data; final ref = result.ref; ``` @@ -9083,18 +11485,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.listEmergencyContacts().ref(); +final ref = ExampleConnector.instance.listTeams().ref(); ref.execute(); ref.subscribe(...); ``` -### getEmergencyContactById +### getTeamById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getEmergencyContactById( +ExampleConnector.instance.getTeamById( id: id, ).execute(); ``` @@ -9102,7 +11504,7 @@ ExampleConnector.instance.getEmergencyContactById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -9117,10 +11519,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getEmergencyContactById( +final result = await ExampleConnector.instance.getTeamById( id: id, ); -getEmergencyContactByIdData data = result.data; +getTeamByIdData data = result.data; final ref = result.ref; ``` @@ -9130,7 +11532,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getEmergencyContactById( +final ref = ExampleConnector.instance.getTeamById( id: id, ).ref(); ref.execute(); @@ -9139,19 +11541,19 @@ ref.subscribe(...); ``` -### getEmergencyContactsByStaffId +### getTeamsByOwnerId #### Required Arguments ```dart -String staffId = ...; -ExampleConnector.instance.getEmergencyContactsByStaffId( - staffId: staffId, +String ownerId = ...; +ExampleConnector.instance.getTeamsByOwnerId( + ownerId: ownerId, ).execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -9166,10 +11568,438 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getEmergencyContactsByStaffId( +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(...); +``` + + +### listBusinesses +#### 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(...); +``` + + +### listApplications +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listApplications().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.listApplications(); +listApplicationsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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.listApplications().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getApplicationById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getApplicationById( + 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.getApplicationById( + id: id, +); +getApplicationByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getApplicationById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getApplicationsByShiftId +#### Required Arguments +```dart +String shiftId = ...; +ExampleConnector.instance.getApplicationsByShiftId( + shiftId: shiftId, +).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.getApplicationsByShiftId( + shiftId: shiftId, +); +getApplicationsByShiftIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 = ...; + +final ref = ExampleConnector.instance.getApplicationsByShiftId( + shiftId: shiftId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getApplicationsByShiftIdAndStatus +#### Required Arguments +```dart +String shiftId = ...; +ApplicationStatus status = ...; +ExampleConnector.instance.getApplicationsByShiftIdAndStatus( + shiftId: shiftId, + status: status, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getApplicationsByShiftIdAndStatus, we created `getApplicationsByShiftIdAndStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetApplicationsByShiftIdAndStatusVariablesBuilder { + ... + GetApplicationsByShiftIdAndStatusVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetApplicationsByShiftIdAndStatusVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getApplicationsByShiftIdAndStatus( + shiftId: shiftId, + 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.getApplicationsByShiftIdAndStatus( + shiftId: shiftId, + status: status, +); +getApplicationsByShiftIdAndStatusData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 = ...; +ApplicationStatus status = ...; + +final ref = ExampleConnector.instance.getApplicationsByShiftIdAndStatus( + shiftId: shiftId, + status: status, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getApplicationsByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.getApplicationsByStaffId( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getApplicationsByStaffId, we created `getApplicationsByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetApplicationsByStaffIdVariablesBuilder { + ... + GetApplicationsByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetApplicationsByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getApplicationsByStaffId( + 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.getApplicationsByStaffId( staffId: staffId, ); -getEmergencyContactsByStaffIdData data = result.data; +getApplicationsByStaffIdData data = result.data; final ref = result.ref; ``` @@ -9179,7 +12009,7 @@ An example of how to use the `Ref` object is shown below: ```dart String staffId = ...; -final ref = ExampleConnector.instance.getEmergencyContactsByStaffId( +final ref = ExampleConnector.instance.getApplicationsByStaffId( staffId: staffId, ).ref(); ref.execute(); @@ -9188,6 +12018,252 @@ ref.subscribe(...); ``` +### listAcceptedApplicationsByShiftRoleKey +#### Required Arguments +```dart +String shiftId = ...; +String roleId = ...; +ExampleConnector.instance.listAcceptedApplicationsByShiftRoleKey( + shiftId: shiftId, + roleId: roleId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listAcceptedApplicationsByShiftRoleKey, we created `listAcceptedApplicationsByShiftRoleKeyBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListAcceptedApplicationsByShiftRoleKeyVariablesBuilder { + ... + ListAcceptedApplicationsByShiftRoleKeyVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListAcceptedApplicationsByShiftRoleKeyVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listAcceptedApplicationsByShiftRoleKey( + 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.listAcceptedApplicationsByShiftRoleKey( + shiftId: shiftId, + roleId: roleId, +); +listAcceptedApplicationsByShiftRoleKeyData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.listAcceptedApplicationsByShiftRoleKey( + shiftId: shiftId, + roleId: roleId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listAcceptedApplicationsByBusinessForDay +#### Required Arguments +```dart +String businessId = ...; +Timestamp dayStart = ...; +Timestamp dayEnd = ...; +ExampleConnector.instance.listAcceptedApplicationsByBusinessForDay( + businessId: businessId, + dayStart: dayStart, + dayEnd: dayEnd, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listAcceptedApplicationsByBusinessForDay, we created `listAcceptedApplicationsByBusinessForDayBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListAcceptedApplicationsByBusinessForDayVariablesBuilder { + ... + ListAcceptedApplicationsByBusinessForDayVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListAcceptedApplicationsByBusinessForDayVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listAcceptedApplicationsByBusinessForDay( + businessId: businessId, + dayStart: dayStart, + dayEnd: dayEnd, +) +.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.listAcceptedApplicationsByBusinessForDay( + businessId: businessId, + dayStart: dayStart, + dayEnd: dayEnd, +); +listAcceptedApplicationsByBusinessForDayData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 = ...; +Timestamp dayStart = ...; +Timestamp dayEnd = ...; + +final ref = ExampleConnector.instance.listAcceptedApplicationsByBusinessForDay( + businessId: businessId, + dayStart: dayStart, + dayEnd: dayEnd, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffsApplicationsByBusinessForDay +#### Required Arguments +```dart +String businessId = ...; +Timestamp dayStart = ...; +Timestamp dayEnd = ...; +ExampleConnector.instance.listStaffsApplicationsByBusinessForDay( + businessId: businessId, + dayStart: dayStart, + dayEnd: dayEnd, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffsApplicationsByBusinessForDay, we created `listStaffsApplicationsByBusinessForDayBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffsApplicationsByBusinessForDayVariablesBuilder { + ... + ListStaffsApplicationsByBusinessForDayVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffsApplicationsByBusinessForDayVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffsApplicationsByBusinessForDay( + businessId: businessId, + dayStart: dayStart, + dayEnd: dayEnd, +) +.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.listStaffsApplicationsByBusinessForDay( + businessId: businessId, + dayStart: dayStart, + dayEnd: dayEnd, +); +listStaffsApplicationsByBusinessForDayData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 = ...; +Timestamp dayStart = ...; +Timestamp dayEnd = ...; + +final ref = ExampleConnector.instance.listStaffsApplicationsByBusinessForDay( + businessId: businessId, + dayStart: dayStart, + dayEnd: dayEnd, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + ### listStaff #### Required Arguments ```dart @@ -9400,17 +12476,17 @@ ref.subscribe(...); ``` -### listVendorRates +### listTeamMembers #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listVendorRates().execute(); +ExampleConnector.instance.listTeamMembers().execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -9425,8 +12501,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listVendorRates(); -listVendorRatesData data = result.data; +final result = await ExampleConnector.instance.listTeamMembers(); +listTeamMembersData data = result.data; final ref = result.ref; ``` @@ -9434,18 +12510,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.listVendorRates().ref(); +final ref = ExampleConnector.instance.listTeamMembers().ref(); ref.execute(); ref.subscribe(...); ``` -### getVendorRateById +### getTeamMemberById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getVendorRateById( +ExampleConnector.instance.getTeamMemberById( id: id, ).execute(); ``` @@ -9453,7 +12529,7 @@ ExampleConnector.instance.getVendorRateById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -9468,10 +12544,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getVendorRateById( +final result = await ExampleConnector.instance.getTeamMemberById( id: id, ); -getVendorRateByIdData data = result.data; +getTeamMemberByIdData data = result.data; final ref = result.ref; ``` @@ -9481,7 +12557,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.getTeamMemberById( id: id, ).ref(); ref.execute(); @@ -9490,17 +12566,66 @@ ref.subscribe(...); ``` -### listRoles +### 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(...); +``` + + +### listAccounts #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listRoles().execute(); +ExampleConnector.instance.listAccounts().execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -9515,8 +12640,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listRoles(); -listRolesData data = result.data; +final result = await ExampleConnector.instance.listAccounts(); +listAccountsData data = result.data; final ref = result.ref; ``` @@ -9524,18 +12649,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.listRoles().ref(); +final ref = ExampleConnector.instance.listAccounts().ref(); ref.execute(); ref.subscribe(...); ``` -### getRoleById +### getAccountById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getRoleById( +ExampleConnector.instance.getAccountById( id: id, ).execute(); ``` @@ -9543,7 +12668,7 @@ ExampleConnector.instance.getRoleById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -9558,10 +12683,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getRoleById( +final result = await ExampleConnector.instance.getAccountById( id: id, ); -getRoleByIdData data = result.data; +getAccountByIdData data = result.data; final ref = result.ref; ``` @@ -9571,7 +12696,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getRoleById( +final ref = ExampleConnector.instance.getAccountById( id: id, ).ref(); ref.execute(); @@ -9580,19 +12705,19 @@ ref.subscribe(...); ``` -### listRolesByVendorId +### getAccountsByOwnerId #### Required Arguments ```dart -String vendorId = ...; -ExampleConnector.instance.listRolesByVendorId( - vendorId: vendorId, +String ownerId = ...; +ExampleConnector.instance.getAccountsByOwnerId( + ownerId: ownerId, ).execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -9607,10 +12732,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listRolesByVendorId( - vendorId: vendorId, +final result = await ExampleConnector.instance.getAccountsByOwnerId( + ownerId: ownerId, ); -listRolesByVendorIdData data = result.data; +getAccountsByOwnerIdData data = result.data; final ref = result.ref; ``` @@ -9618,10 +12743,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 ownerId = ...; -final ref = ExampleConnector.instance.listRolesByVendorId( - vendorId: vendorId, +final ref = ExampleConnector.instance.getAccountsByOwnerId( + ownerId: ownerId, ).ref(); ref.execute(); @@ -9629,178 +12754,49 @@ 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(...); -``` - - -### listCategories +### filterAccounts #### 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(); +ExampleConnector.instance.filterAccounts().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. +We return a builder for each query. For filterAccounts, we created `filterAccountsBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { +class FilterAccountsVariablesBuilder { ... - FilterCategoriesVariablesBuilder categoryId(String? t) { - _categoryId.value = t; + FilterAccountsVariablesBuilder bank(String? t) { + _bank.value = t; return this; } - FilterCategoriesVariablesBuilder label(String? t) { - _label.value = t; + FilterAccountsVariablesBuilder type(AccountType? t) { + _type.value = t; + return this; + } + FilterAccountsVariablesBuilder isPrimary(bool? t) { + _isPrimary.value = t; + return this; + } + FilterAccountsVariablesBuilder ownerId(String? t) { + _ownerId.value = t; return this; } ... } -ExampleConnector.instance.filterCategories() -.categoryId(categoryId) -.label(label) +ExampleConnector.instance.filterAccounts() +.bank(bank) +.type(type) +.isPrimary(isPrimary) +.ownerId(ownerId) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -9815,8 +12811,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.filterCategories(); -filterCategoriesData data = result.data; +final result = await ExampleConnector.instance.filterAccounts(); +filterAccountsData data = result.data; final ref = result.ref; ``` @@ -9824,500 +12820,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.filterCategories().ref(); +final ref = ExampleConnector.instance.filterAccounts().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(...); -``` - - -### listUsers +### listAssignments #### 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(); +ExampleConnector.instance.listAssignments().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. +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 FilterUsersVariablesBuilder { +class ListAssignmentsVariablesBuilder { ... - 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(...); -``` - - -### 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(...); -``` - - -### 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) { + ListAssignmentsVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListConversationsVariablesBuilder limit(int? t) { + ListAssignmentsVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listConversations() +ExampleConnector.instance.listAssignments() .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 { @@ -10332,8 +12874,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listConversations(); -listConversationsData data = result.data; +final result = await ExampleConnector.instance.listAssignments(); +listAssignmentsData data = result.data; final ref = result.ref; ``` @@ -10341,18 +12883,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.listConversations().ref(); +final ref = ExampleConnector.instance.listAssignments().ref(); ref.execute(); ref.subscribe(...); ``` -### getConversationById +### getAssignmentById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getConversationById( +ExampleConnector.instance.getAssignmentById( id: id, ).execute(); ``` @@ -10360,7 +12902,7 @@ ExampleConnector.instance.getConversationById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10375,10 +12917,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getConversationById( +final result = await ExampleConnector.instance.getAssignmentById( id: id, ); -getConversationByIdData data = result.data; +getAssignmentByIdData data = result.data; final ref = result.ref; ``` @@ -10388,7 +12930,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getConversationById( +final ref = ExampleConnector.instance.getAssignmentById( id: id, ).ref(); ref.execute(); @@ -10397,34 +12939,34 @@ ref.subscribe(...); ``` -### listConversationsByType +### listAssignmentsByWorkforceId #### Required Arguments ```dart -ConversationType conversationType = ...; -ExampleConnector.instance.listConversationsByType( - conversationType: conversationType, +String workforceId = ...; +ExampleConnector.instance.listAssignmentsByWorkforceId( + workforceId: workforceId, ).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. +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 ListConversationsByTypeVariablesBuilder { +class ListAssignmentsByWorkforceIdVariablesBuilder { ... - ListConversationsByTypeVariablesBuilder offset(int? t) { + ListAssignmentsByWorkforceIdVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListConversationsByTypeVariablesBuilder limit(int? t) { + ListAssignmentsByWorkforceIdVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listConversationsByType( - conversationType: conversationType, +ExampleConnector.instance.listAssignmentsByWorkforceId( + workforceId: workforceId, ) .offset(offset) .limit(limit) @@ -10432,7 +12974,7 @@ ExampleConnector.instance.listConversationsByType( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10447,10 +12989,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listConversationsByType( - conversationType: conversationType, +final result = await ExampleConnector.instance.listAssignmentsByWorkforceId( + workforceId: workforceId, ); -listConversationsByTypeData data = result.data; +listAssignmentsByWorkforceIdData data = result.data; final ref = result.ref; ``` @@ -10458,10 +13000,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 -ConversationType conversationType = ...; +String workforceId = ...; -final ref = ExampleConnector.instance.listConversationsByType( - conversationType: conversationType, +final ref = ExampleConnector.instance.listAssignmentsByWorkforceId( + workforceId: workforceId, ).ref(); ref.execute(); @@ -10469,34 +13011,34 @@ ref.subscribe(...); ``` -### listConversationsByStatus +### listAssignmentsByWorkforceIds #### Required Arguments ```dart -ConversationStatus status = ...; -ExampleConnector.instance.listConversationsByStatus( - status: status, +String workforceIds = ...; +ExampleConnector.instance.listAssignmentsByWorkforceIds( + workforceIds: workforceIds, ).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. +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 ListConversationsByStatusVariablesBuilder { +class ListAssignmentsByWorkforceIdsVariablesBuilder { ... - ListConversationsByStatusVariablesBuilder offset(int? t) { + ListAssignmentsByWorkforceIdsVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListConversationsByStatusVariablesBuilder limit(int? t) { + ListAssignmentsByWorkforceIdsVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listConversationsByStatus( - status: status, +ExampleConnector.instance.listAssignmentsByWorkforceIds( + workforceIds: workforceIds, ) .offset(offset) .limit(limit) @@ -10504,7 +13046,7 @@ ExampleConnector.instance.listConversationsByStatus( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10519,10 +13061,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listConversationsByStatus( - status: status, +final result = await ExampleConnector.instance.listAssignmentsByWorkforceIds( + workforceIds: workforceIds, ); -listConversationsByStatusData data = result.data; +listAssignmentsByWorkforceIdsData data = result.data; final ref = result.ref; ``` @@ -10530,10 +13072,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 -ConversationStatus status = ...; +String workforceIds = ...; -final ref = ExampleConnector.instance.listConversationsByStatus( - status: status, +final ref = ExampleConnector.instance.listAssignmentsByWorkforceIds( + workforceIds: workforceIds, ).ref(); ref.execute(); @@ -10541,64 +13083,128 @@ ref.subscribe(...); ``` -### filterConversations +### listAssignmentsByShiftRole #### Required Arguments ```dart -// No required arguments -ExampleConnector.instance.filterConversations().execute(); +String shiftId = ...; +String roleId = ...; +ExampleConnector.instance.listAssignmentsByShiftRole( + shiftId: shiftId, + roleId: roleId, +).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. +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 FilterConversationsVariablesBuilder { +class ListAssignmentsByShiftRoleVariablesBuilder { ... - - FilterConversationsVariablesBuilder status(ConversationStatus? t) { + 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; } - 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) { + FilterAssignmentsVariablesBuilder offset(int? t) { _offset.value = t; return this; } - FilterConversationsVariablesBuilder limit(int? t) { + FilterAssignmentsVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.filterConversations() +ExampleConnector.instance.filterAssignments( + shiftIds: shiftIds, + roleIds: roleIds, +) .status(status) -.conversationType(conversationType) -.isGroup(isGroup) -.lastMessageAfter(lastMessageAfter) -.lastMessageBefore(lastMessageBefore) .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 { @@ -10613,94 +13219,11 @@ 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, +final result = await ExampleConnector.instance.filterAssignments( + shiftIds: shiftIds, + roleIds: roleIds, ); -getCourseByIdData data = result.data; +filterAssignmentsData data = result.data; final ref = result.ref; ``` @@ -10708,10 +13231,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 shiftIds = ...; +String roleIds = ...; -final ref = ExampleConnector.instance.getCourseById( - id: id, +final ref = ExampleConnector.instance.filterAssignments( + shiftIds: shiftIds, + roleIds: roleIds, ).ref(); ref.execute(); @@ -10719,300 +13244,39 @@ ref.subscribe(...); ``` -### filterCourses +### listStaffAvailabilityStats #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.filterCourses().execute(); +ExampleConnector.instance.listStaffAvailabilityStats().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. +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 FilterCoursesVariablesBuilder { +class ListStaffAvailabilityStatsVariablesBuilder { ... - 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(...); -``` - - -### listTeamHubs -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listTeamHubs().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.listTeamHubs(); -listTeamHubsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTeamHubById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getTeamHubById( - 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.getTeamHubById( - id: id, -); -getTeamHubByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.getTeamHubById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTeamHubsByTeamId -#### Required Arguments -```dart -String teamId = ...; -ExampleConnector.instance.getTeamHubsByTeamId( - 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.getTeamHubsByTeamId( - teamId: teamId, -); -getTeamHubsByTeamIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.getTeamHubsByTeamId( - teamId: teamId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listTeamHubsByOwnerId -#### Required Arguments -```dart -String ownerId = ...; -ExampleConnector.instance.listTeamHubsByOwnerId( - 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.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(...); -``` - - -### listVendorBenefitPlans -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listVendorBenefitPlans().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listVendorBenefitPlans, we created `listVendorBenefitPlansBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListVendorBenefitPlansVariablesBuilder { - ... - - ListVendorBenefitPlansVariablesBuilder offset(int? t) { + ListStaffAvailabilityStatsVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListVendorBenefitPlansVariablesBuilder limit(int? t) { + ListStaffAvailabilityStatsVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listVendorBenefitPlans() +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 { @@ -11027,8 +13291,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listVendorBenefitPlans(); -listVendorBenefitPlansData data = result.data; +final result = await ExampleConnector.instance.listStaffAvailabilityStats(); +listStaffAvailabilityStatsData data = result.data; final ref = result.ref; ``` @@ -11036,2026 +13300,26 @@ 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.listVendorBenefitPlans().ref(); +final ref = ExampleConnector.instance.listStaffAvailabilityStats().ref(); ref.execute(); ref.subscribe(...); ``` -### getVendorBenefitPlanById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getVendorBenefitPlanById( - 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.getVendorBenefitPlanById( - id: id, -); -getVendorBenefitPlanByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.getVendorBenefitPlanById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listVendorBenefitPlansByVendorId -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.listVendorBenefitPlansByVendorId( - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listVendorBenefitPlansByVendorId, we created `listVendorBenefitPlansByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListVendorBenefitPlansByVendorIdVariablesBuilder { - ... - ListVendorBenefitPlansByVendorIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListVendorBenefitPlansByVendorIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listVendorBenefitPlansByVendorId( - 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.listVendorBenefitPlansByVendorId( - vendorId: vendorId, -); -listVendorBenefitPlansByVendorIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.listVendorBenefitPlansByVendorId( - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listActiveVendorBenefitPlansByVendorId -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.listActiveVendorBenefitPlansByVendorId( - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listActiveVendorBenefitPlansByVendorId, we created `listActiveVendorBenefitPlansByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListActiveVendorBenefitPlansByVendorIdVariablesBuilder { - ... - ListActiveVendorBenefitPlansByVendorIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListActiveVendorBenefitPlansByVendorIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listActiveVendorBenefitPlansByVendorId( - 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.listActiveVendorBenefitPlansByVendorId( - vendorId: vendorId, -); -listActiveVendorBenefitPlansByVendorIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.listActiveVendorBenefitPlansByVendorId( - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterVendorBenefitPlans -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterVendorBenefitPlans().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterVendorBenefitPlans, we created `filterVendorBenefitPlansBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterVendorBenefitPlansVariablesBuilder { - ... - - FilterVendorBenefitPlansVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } - FilterVendorBenefitPlansVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - FilterVendorBenefitPlansVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - FilterVendorBenefitPlansVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - FilterVendorBenefitPlansVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterVendorBenefitPlans() -.vendorId(vendorId) -.title(title) -.isActive(isActive) -.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.filterVendorBenefitPlans(); -filterVendorBenefitPlansData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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.filterVendorBenefitPlans().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(...); -``` - - -### 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(...); -``` - - -### listTaskComments -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listTaskComments().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.listTaskComments(); -listTaskCommentsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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.listTaskComments().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTaskCommentById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getTaskCommentById( - 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.getTaskCommentById( - id: id, -); -getTaskCommentByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.getTaskCommentById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTaskCommentsByTaskId -#### Required Arguments -```dart -String taskId = ...; -ExampleConnector.instance.getTaskCommentsByTaskId( - 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.getTaskCommentsByTaskId( - taskId: taskId, -); -getTaskCommentsByTaskIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.getTaskCommentsByTaskId( - taskId: taskId, -).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(...); -``` - - -### listActivityLogs -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listActivityLogs().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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - - ListActivityLogsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListActivityLogsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listActivityLogs() -.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.listActivityLogs(); -listActivityLogsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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(); -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 -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterActivityLogs().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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - - 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; - } - FilterActivityLogsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -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` -```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.filterActivityLogs(); -filterActivityLogsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listBenefitsData -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listBenefitsData().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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - - ListBenefitsDataVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListBenefitsDataVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listBenefitsData() -.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.listBenefitsData(); -listBenefitsDataData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getBenefitsDataByKey +### getStaffAvailabilityStatsByStaffId #### Required Arguments ```dart String staffId = ...; -String vendorBenefitPlanId = ...; -ExampleConnector.instance.getBenefitsDataByKey( +ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( 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 { @@ -13070,85 +13334,10 @@ 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 ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.getBenefitsDataByKey( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listBenefitsDataByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.listBenefitsDataByStaffId( - staffId: staffId, -).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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - ListBenefitsDataByStaffIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListBenefitsDataByStaffIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listBenefitsDataByStaffId( - 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.listBenefitsDataByStaffId( +final result = await ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( staffId: staffId, ); -listBenefitsDataByStaffIdData data = result.data; +getStaffAvailabilityStatsByStaffIdData data = result.data; final ref = result.ref; ``` @@ -13158,7 +13347,7 @@ An example of how to use the `Ref` object is shown below: ```dart String staffId = ...; -final ref = ExampleConnector.instance.listBenefitsDataByStaffId( +final ref = ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( staffId: staffId, ).ref(); ref.execute(); @@ -13167,268 +13356,79 @@ ref.subscribe(...); ``` -### listBenefitsDataByVendorBenefitPlanId -#### Required Arguments -```dart -String vendorBenefitPlanId = ...; -ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( - vendorBenefitPlanId: vendorBenefitPlanId, -).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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( - vendorBenefitPlanId: vendorBenefitPlanId, -) -.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.listBenefitsDataByVendorBenefitPlanId( - vendorBenefitPlanId: vendorBenefitPlanId, -); -listBenefitsDataByVendorBenefitPlanIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 = ...; - -final ref = ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( - vendorBenefitPlanId: vendorBenefitPlanId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listBenefitsDataByVendorBenefitPlanIds -#### Required Arguments -```dart -String vendorBenefitPlanIds = ...; -ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( - vendorBenefitPlanIds: vendorBenefitPlanIds, -).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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( - vendorBenefitPlanIds: vendorBenefitPlanIds, -) -.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.listBenefitsDataByVendorBenefitPlanIds( - vendorBenefitPlanIds: vendorBenefitPlanIds, -); -listBenefitsDataByVendorBenefitPlanIdsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 = ...; - -final ref = ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( - vendorBenefitPlanIds: vendorBenefitPlanIds, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listFaqDatas +### filterStaffAvailabilityStats #### 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(); +ExampleConnector.instance.filterStaffAvailabilityStats().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 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 FilterFaqDatasVariablesBuilder { +class FilterStaffAvailabilityStatsVariablesBuilder { ... - FilterFaqDatasVariablesBuilder category(String? t) { - _category.value = t; + 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.filterFaqDatas() -.category(category) +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` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13443,8 +13443,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.filterFaqDatas(); -filterFaqDatasData data = result.data; +final result = await ExampleConnector.instance.filterStaffAvailabilityStats(); +filterStaffAvailabilityStatsData data = result.data; final ref = result.ref; ``` @@ -13452,7 +13452,7 @@ 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.filterFaqDatas().ref(); +final ref = ExampleConnector.instance.filterStaffAvailabilityStats().ref(); ref.execute(); ref.subscribe(...); @@ -13460,6 +13460,948 @@ ref.subscribe(...); ## Mutations +### 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(); +``` + + +### 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(); +``` + + +### 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(); +``` + + +### 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(); +``` + + ### createTaxForm #### Required Arguments ```dart @@ -13923,7245 +14865,6 @@ ref.execute(); ``` -### createLevel -#### Required Arguments -```dart -String name = ...; -int xpRequired = ...; -ExampleConnector.instance.createLevel( - name: name, - xpRequired: xpRequired, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createLevel, we created `createLevelBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateLevelVariablesBuilder { - ... - CreateLevelVariablesBuilder icon(String? t) { - _icon.value = t; - return this; - } - CreateLevelVariablesBuilder colors(AnyValue? t) { - _colors.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createLevel( - name: name, - xpRequired: xpRequired, -) -.icon(icon) -.colors(colors) -.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.createLevel( - name: name, - xpRequired: xpRequired, -); -createLevelData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 = ...; -int xpRequired = ...; - -final ref = ExampleConnector.instance.createLevel( - name: name, - xpRequired: xpRequired, -).ref(); -ref.execute(); -``` - - -### updateLevel -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateLevel( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateLevel, we created `updateLevelBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateLevelVariablesBuilder { - ... - UpdateLevelVariablesBuilder name(String? t) { - _name.value = t; - return this; - } - UpdateLevelVariablesBuilder xpRequired(int? t) { - _xpRequired.value = t; - return this; - } - UpdateLevelVariablesBuilder icon(String? t) { - _icon.value = t; - return this; - } - UpdateLevelVariablesBuilder colors(AnyValue? t) { - _colors.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateLevel( - id: id, -) -.name(name) -.xpRequired(xpRequired) -.icon(icon) -.colors(colors) -.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.updateLevel( - id: id, -); -updateLevelData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.updateLevel( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteLevel -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteLevel( - 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.deleteLevel( - id: id, -); -deleteLevelData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.deleteLevel( - id: id, -).ref(); -ref.execute(); -``` - - -### createInvoice -#### Required Arguments -```dart -InvoiceStatus status = ...; -String vendorId = ...; -String businessId = ...; -String orderId = ...; -String invoiceNumber = ...; -Timestamp issueDate = ...; -Timestamp dueDate = ...; -double amount = ...; -ExampleConnector.instance.createInvoice( - status: status, - vendorId: vendorId, - businessId: businessId, - orderId: orderId, - invoiceNumber: invoiceNumber, - issueDate: issueDate, - dueDate: dueDate, - amount: amount, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createInvoice, we created `createInvoiceBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateInvoiceVariablesBuilder { - ... - CreateInvoiceVariablesBuilder paymentTerms(InovicePaymentTerms? t) { - _paymentTerms.value = t; - return this; - } - CreateInvoiceVariablesBuilder hub(String? t) { - _hub.value = t; - return this; - } - CreateInvoiceVariablesBuilder managerName(String? t) { - _managerName.value = t; - return this; - } - CreateInvoiceVariablesBuilder vendorNumber(String? t) { - _vendorNumber.value = t; - return this; - } - CreateInvoiceVariablesBuilder roles(AnyValue? t) { - _roles.value = t; - return this; - } - CreateInvoiceVariablesBuilder charges(AnyValue? t) { - _charges.value = t; - return this; - } - CreateInvoiceVariablesBuilder otherCharges(double? t) { - _otherCharges.value = t; - return this; - } - CreateInvoiceVariablesBuilder subtotal(double? t) { - _subtotal.value = t; - return this; - } - CreateInvoiceVariablesBuilder notes(String? t) { - _notes.value = t; - return this; - } - CreateInvoiceVariablesBuilder staffCount(int? t) { - _staffCount.value = t; - return this; - } - CreateInvoiceVariablesBuilder chargesCount(int? t) { - _chargesCount.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createInvoice( - status: status, - vendorId: vendorId, - businessId: businessId, - orderId: orderId, - invoiceNumber: invoiceNumber, - issueDate: issueDate, - dueDate: dueDate, - amount: amount, -) -.paymentTerms(paymentTerms) -.hub(hub) -.managerName(managerName) -.vendorNumber(vendorNumber) -.roles(roles) -.charges(charges) -.otherCharges(otherCharges) -.subtotal(subtotal) -.notes(notes) -.staffCount(staffCount) -.chargesCount(chargesCount) -.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.createInvoice( - status: status, - vendorId: vendorId, - businessId: businessId, - orderId: orderId, - invoiceNumber: invoiceNumber, - issueDate: issueDate, - dueDate: dueDate, - amount: amount, -); -createInvoiceData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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 vendorId = ...; -String businessId = ...; -String orderId = ...; -String invoiceNumber = ...; -Timestamp issueDate = ...; -Timestamp dueDate = ...; -double amount = ...; - -final ref = ExampleConnector.instance.createInvoice( - status: status, - vendorId: vendorId, - businessId: businessId, - orderId: orderId, - invoiceNumber: invoiceNumber, - issueDate: issueDate, - dueDate: dueDate, - amount: amount, -).ref(); -ref.execute(); -``` - - -### updateInvoice -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateInvoice( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateInvoice, we created `updateInvoiceBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateInvoiceVariablesBuilder { - ... - UpdateInvoiceVariablesBuilder status(InvoiceStatus? t) { - _status.value = t; - return this; - } - UpdateInvoiceVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } - UpdateInvoiceVariablesBuilder businessId(String? t) { - _businessId.value = t; - return this; - } - UpdateInvoiceVariablesBuilder orderId(String? t) { - _orderId.value = t; - return this; - } - UpdateInvoiceVariablesBuilder paymentTerms(InovicePaymentTerms? t) { - _paymentTerms.value = t; - return this; - } - UpdateInvoiceVariablesBuilder invoiceNumber(String? t) { - _invoiceNumber.value = t; - return this; - } - UpdateInvoiceVariablesBuilder issueDate(Timestamp? t) { - _issueDate.value = t; - return this; - } - UpdateInvoiceVariablesBuilder dueDate(Timestamp? t) { - _dueDate.value = t; - return this; - } - UpdateInvoiceVariablesBuilder hub(String? t) { - _hub.value = t; - return this; - } - UpdateInvoiceVariablesBuilder managerName(String? t) { - _managerName.value = t; - return this; - } - UpdateInvoiceVariablesBuilder vendorNumber(String? t) { - _vendorNumber.value = t; - return this; - } - UpdateInvoiceVariablesBuilder roles(AnyValue? t) { - _roles.value = t; - return this; - } - UpdateInvoiceVariablesBuilder charges(AnyValue? t) { - _charges.value = t; - return this; - } - UpdateInvoiceVariablesBuilder otherCharges(double? t) { - _otherCharges.value = t; - return this; - } - UpdateInvoiceVariablesBuilder subtotal(double? t) { - _subtotal.value = t; - return this; - } - UpdateInvoiceVariablesBuilder amount(double? t) { - _amount.value = t; - return this; - } - UpdateInvoiceVariablesBuilder notes(String? t) { - _notes.value = t; - return this; - } - UpdateInvoiceVariablesBuilder staffCount(int? t) { - _staffCount.value = t; - return this; - } - UpdateInvoiceVariablesBuilder chargesCount(int? t) { - _chargesCount.value = t; - return this; - } - UpdateInvoiceVariablesBuilder disputedItems(AnyValue? t) { - _disputedItems.value = t; - return this; - } - UpdateInvoiceVariablesBuilder disputeReason(String? t) { - _disputeReason.value = t; - return this; - } - UpdateInvoiceVariablesBuilder disputeDetails(String? t) { - _disputeDetails.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateInvoice( - id: id, -) -.status(status) -.vendorId(vendorId) -.businessId(businessId) -.orderId(orderId) -.paymentTerms(paymentTerms) -.invoiceNumber(invoiceNumber) -.issueDate(issueDate) -.dueDate(dueDate) -.hub(hub) -.managerName(managerName) -.vendorNumber(vendorNumber) -.roles(roles) -.charges(charges) -.otherCharges(otherCharges) -.subtotal(subtotal) -.amount(amount) -.notes(notes) -.staffCount(staffCount) -.chargesCount(chargesCount) -.disputedItems(disputedItems) -.disputeReason(disputeReason) -.disputeDetails(disputeDetails) -.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.updateInvoice( - id: id, -); -updateInvoiceData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.updateInvoice( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteInvoice -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteInvoice( - 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.deleteInvoice( - id: id, -); -deleteInvoiceData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.deleteInvoice( - 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(); -``` - - -### 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 -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateCategory( - 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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - UpdateCategoryVariablesBuilder categoryId(String? t) { - _categoryId.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(); -``` - - -### 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(); -``` - - -### 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(); -``` - - -### createStaffDocument -#### Required Arguments -```dart -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 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` -```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.createStaffDocument( - staffId: staffId, - staffName: staffName, - documentId: documentId, - status: status, -); -createStaffDocumentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 = ...; - -final ref = ExampleConnector.instance.createStaffDocument( - staffId: staffId, - staffName: staffName, - documentId: documentId, - status: status, -).ref(); -ref.execute(); -``` - - -### updateStaffDocument -#### Required Arguments -```dart -String staffId = ...; -String documentId = ...; -ExampleConnector.instance.updateStaffDocument( - staffId: staffId, - documentId: documentId, -).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` -```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.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(); -``` - - -### 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(); -``` - - -### 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(); -``` - - -### 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(); -``` - - -### 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(); -``` - - -### createTeamMember -#### Required Arguments -```dart -String teamId = ...; -TeamMemberRole role = ...; -String userId = ...; -ExampleConnector.instance.createTeamMember( - teamId: teamId, - role: role, - userId: userId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createTeamMember, we created `createTeamMemberBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateTeamMemberVariablesBuilder { - ... - CreateTeamMemberVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - CreateTeamMemberVariablesBuilder department(String? t) { - _department.value = t; - return this; - } - CreateTeamMemberVariablesBuilder teamHubId(String? t) { - _teamHubId.value = t; - return this; - } - CreateTeamMemberVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - CreateTeamMemberVariablesBuilder inviteStatus(TeamMemberInviteStatus? t) { - _inviteStatus.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createTeamMember( - teamId: teamId, - role: role, - userId: userId, -) -.title(title) -.department(department) -.teamHubId(teamHubId) -.isActive(isActive) -.inviteStatus(inviteStatus) -.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.createTeamMember( - teamId: teamId, - role: role, - userId: userId, -); -createTeamMemberData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 = ...; -TeamMemberRole role = ...; -String userId = ...; - -final ref = ExampleConnector.instance.createTeamMember( - teamId: teamId, - role: role, - userId: userId, -).ref(); -ref.execute(); -``` - - -### updateTeamMember -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateTeamMember( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateTeamMember, we created `updateTeamMemberBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateTeamMemberVariablesBuilder { - ... - UpdateTeamMemberVariablesBuilder role(TeamMemberRole? t) { - _role.value = t; - return this; - } - UpdateTeamMemberVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - UpdateTeamMemberVariablesBuilder department(String? t) { - _department.value = t; - return this; - } - UpdateTeamMemberVariablesBuilder teamHubId(String? t) { - _teamHubId.value = t; - return this; - } - UpdateTeamMemberVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - UpdateTeamMemberVariablesBuilder inviteStatus(TeamMemberInviteStatus? t) { - _inviteStatus.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateTeamMember( - id: id, -) -.role(role) -.title(title) -.department(department) -.teamHubId(teamHubId) -.isActive(isActive) -.inviteStatus(inviteStatus) -.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.updateTeamMember( - id: id, -); -updateTeamMemberData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.updateTeamMember( - id: id, -).ref(); -ref.execute(); -``` - - -### updateTeamMemberInviteStatus -#### Required Arguments -```dart -String id = ...; -TeamMemberInviteStatus inviteStatus = ...; -ExampleConnector.instance.updateTeamMemberInviteStatus( - id: id, - inviteStatus: inviteStatus, -).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.updateTeamMemberInviteStatus( - id: id, - inviteStatus: inviteStatus, -); -updateTeamMemberInviteStatusData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 = ...; -TeamMemberInviteStatus inviteStatus = ...; - -final ref = ExampleConnector.instance.updateTeamMemberInviteStatus( - id: id, - inviteStatus: inviteStatus, -).ref(); -ref.execute(); -``` - - -### acceptInviteByCode -#### Required Arguments -```dart -String inviteCode = ...; -ExampleConnector.instance.acceptInviteByCode( - inviteCode: inviteCode, -).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.acceptInviteByCode( - inviteCode: inviteCode, -); -acceptInviteByCodeData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String inviteCode = ...; - -final ref = ExampleConnector.instance.acceptInviteByCode( - inviteCode: inviteCode, -).ref(); -ref.execute(); -``` - - -### cancelInviteByCode -#### Required Arguments -```dart -String inviteCode = ...; -ExampleConnector.instance.cancelInviteByCode( - inviteCode: inviteCode, -).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.cancelInviteByCode( - inviteCode: inviteCode, -); -cancelInviteByCodeData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String inviteCode = ...; - -final ref = ExampleConnector.instance.cancelInviteByCode( - inviteCode: inviteCode, -).ref(); -ref.execute(); -``` - - -### deleteTeamMember -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteTeamMember( - 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.deleteTeamMember( - id: id, -); -deleteTeamMemberData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.deleteTeamMember( - 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(); -``` - - -### 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(); -``` - - -### 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(); -``` - - -### 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( - 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) { - _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 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; - return this; - } - - ... -} -ExampleConnector.instance.createOrder( - businessId: businessId, - orderType: orderType, -) -.vendorId(vendorId) -.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) -.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(); -``` - - -### 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(); -``` - - -### 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(); -``` - - -### 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(); -``` - - -### 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(); -``` - - -### 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(); -``` - - -### 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(); -``` - - -### 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(); -``` - - -### 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(); -``` - - -### 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(); -``` - - -### 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(); -``` - - -### createInvoiceTemplate -#### Required Arguments -```dart -String name = ...; -String ownerId = ...; -ExampleConnector.instance.createInvoiceTemplate( - name: name, - ownerId: ownerId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createInvoiceTemplate, we created `createInvoiceTemplateBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateInvoiceTemplateVariablesBuilder { - ... - CreateInvoiceTemplateVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } - CreateInvoiceTemplateVariablesBuilder businessId(String? t) { - _businessId.value = t; - return this; - } - CreateInvoiceTemplateVariablesBuilder orderId(String? t) { - _orderId.value = t; - return this; - } - CreateInvoiceTemplateVariablesBuilder paymentTerms(InovicePaymentTermsTemp? t) { - _paymentTerms.value = t; - return this; - } - CreateInvoiceTemplateVariablesBuilder invoiceNumber(String? t) { - _invoiceNumber.value = t; - return this; - } - CreateInvoiceTemplateVariablesBuilder issueDate(Timestamp? t) { - _issueDate.value = t; - return this; - } - CreateInvoiceTemplateVariablesBuilder dueDate(Timestamp? t) { - _dueDate.value = t; - return this; - } - CreateInvoiceTemplateVariablesBuilder hub(String? t) { - _hub.value = t; - return this; - } - CreateInvoiceTemplateVariablesBuilder managerName(String? t) { - _managerName.value = t; - return this; - } - CreateInvoiceTemplateVariablesBuilder vendorNumber(String? t) { - _vendorNumber.value = t; - return this; - } - CreateInvoiceTemplateVariablesBuilder roles(AnyValue? t) { - _roles.value = t; - return this; - } - CreateInvoiceTemplateVariablesBuilder charges(AnyValue? t) { - _charges.value = t; - return this; - } - CreateInvoiceTemplateVariablesBuilder otherCharges(double? t) { - _otherCharges.value = t; - return this; - } - CreateInvoiceTemplateVariablesBuilder subtotal(double? t) { - _subtotal.value = t; - return this; - } - CreateInvoiceTemplateVariablesBuilder amount(double? t) { - _amount.value = t; - return this; - } - CreateInvoiceTemplateVariablesBuilder notes(String? t) { - _notes.value = t; - return this; - } - CreateInvoiceTemplateVariablesBuilder staffCount(int? t) { - _staffCount.value = t; - return this; - } - CreateInvoiceTemplateVariablesBuilder chargesCount(int? t) { - _chargesCount.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createInvoiceTemplate( - name: name, - ownerId: ownerId, -) -.vendorId(vendorId) -.businessId(businessId) -.orderId(orderId) -.paymentTerms(paymentTerms) -.invoiceNumber(invoiceNumber) -.issueDate(issueDate) -.dueDate(dueDate) -.hub(hub) -.managerName(managerName) -.vendorNumber(vendorNumber) -.roles(roles) -.charges(charges) -.otherCharges(otherCharges) -.subtotal(subtotal) -.amount(amount) -.notes(notes) -.staffCount(staffCount) -.chargesCount(chargesCount) -.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.createInvoiceTemplate( - name: name, - ownerId: ownerId, -); -createInvoiceTemplateData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.createInvoiceTemplate( - name: name, - ownerId: ownerId, -).ref(); -ref.execute(); -``` - - -### updateInvoiceTemplate -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateInvoiceTemplate( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateInvoiceTemplate, we created `updateInvoiceTemplateBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateInvoiceTemplateVariablesBuilder { - ... - UpdateInvoiceTemplateVariablesBuilder name(String? t) { - _name.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder ownerId(String? t) { - _ownerId.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder businessId(String? t) { - _businessId.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder orderId(String? t) { - _orderId.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder paymentTerms(InovicePaymentTermsTemp? t) { - _paymentTerms.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder invoiceNumber(String? t) { - _invoiceNumber.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder issueDate(Timestamp? t) { - _issueDate.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder dueDate(Timestamp? t) { - _dueDate.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder hub(String? t) { - _hub.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder managerName(String? t) { - _managerName.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder vendorNumber(String? t) { - _vendorNumber.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder roles(AnyValue? t) { - _roles.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder charges(AnyValue? t) { - _charges.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder otherCharges(double? t) { - _otherCharges.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder subtotal(double? t) { - _subtotal.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder amount(double? t) { - _amount.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder notes(String? t) { - _notes.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder staffCount(int? t) { - _staffCount.value = t; - return this; - } - UpdateInvoiceTemplateVariablesBuilder chargesCount(int? t) { - _chargesCount.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateInvoiceTemplate( - id: id, -) -.name(name) -.ownerId(ownerId) -.vendorId(vendorId) -.businessId(businessId) -.orderId(orderId) -.paymentTerms(paymentTerms) -.invoiceNumber(invoiceNumber) -.issueDate(issueDate) -.dueDate(dueDate) -.hub(hub) -.managerName(managerName) -.vendorNumber(vendorNumber) -.roles(roles) -.charges(charges) -.otherCharges(otherCharges) -.subtotal(subtotal) -.amount(amount) -.notes(notes) -.staffCount(staffCount) -.chargesCount(chargesCount) -.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.updateInvoiceTemplate( - id: id, -); -updateInvoiceTemplateData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.updateInvoiceTemplate( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteInvoiceTemplate -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteInvoiceTemplate( - 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.deleteInvoiceTemplate( - id: id, -); -deleteInvoiceTemplateData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.deleteInvoiceTemplate( - 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(); -``` - - ### createBusiness #### Required Arguments ```dart @@ -21541,67 +15244,64 @@ ref.execute(); ``` -### createStaffAvailabilityStats +### createConversation #### Required Arguments ```dart -String staffId = ...; -ExampleConnector.instance.createStaffAvailabilityStats( - staffId: staffId, -).execute(); +// No required arguments +ExampleConnector.instance.createConversation().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. +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 CreateStaffAvailabilityStatsVariablesBuilder { +class CreateConversationVariablesBuilder { ... - CreateStaffAvailabilityStatsVariablesBuilder needWorkIndex(int? t) { - _needWorkIndex.value = t; + + CreateConversationVariablesBuilder subject(String? t) { + _subject.value = t; return this; } - CreateStaffAvailabilityStatsVariablesBuilder utilizationPercentage(int? t) { - _utilizationPercentage.value = t; + CreateConversationVariablesBuilder status(ConversationStatus? t) { + _status.value = t; return this; } - CreateStaffAvailabilityStatsVariablesBuilder predictedAvailabilityScore(int? t) { - _predictedAvailabilityScore.value = t; + CreateConversationVariablesBuilder conversationType(ConversationType? t) { + _conversationType.value = t; return this; } - CreateStaffAvailabilityStatsVariablesBuilder scheduledHoursThisPeriod(int? t) { - _scheduledHoursThisPeriod.value = t; + CreateConversationVariablesBuilder isGroup(bool? t) { + _isGroup.value = t; return this; } - CreateStaffAvailabilityStatsVariablesBuilder desiredHoursThisPeriod(int? t) { - _desiredHoursThisPeriod.value = t; + CreateConversationVariablesBuilder groupName(String? t) { + _groupName.value = t; return this; } - CreateStaffAvailabilityStatsVariablesBuilder lastShiftDate(Timestamp? t) { - _lastShiftDate.value = t; + CreateConversationVariablesBuilder lastMessage(String? t) { + _lastMessage.value = t; return this; } - CreateStaffAvailabilityStatsVariablesBuilder acceptanceRate(int? t) { - _acceptanceRate.value = t; + CreateConversationVariablesBuilder lastMessageAt(Timestamp? t) { + _lastMessageAt.value = t; return this; } ... } -ExampleConnector.instance.createStaffAvailabilityStats( - staffId: staffId, -) -.needWorkIndex(needWorkIndex) -.utilizationPercentage(utilizationPercentage) -.predictedAvailabilityScore(predictedAvailabilityScore) -.scheduledHoursThisPeriod(scheduledHoursThisPeriod) -.desiredHoursThisPeriod(desiredHoursThisPeriod) -.lastShiftDate(lastShiftDate) -.acceptanceRate(acceptanceRate) +ExampleConnector.instance.createConversation() +.subject(subject) +.status(status) +.conversationType(conversationType) +.isGroup(isGroup) +.groupName(groupName) +.lastMessage(lastMessage) +.lastMessageAt(lastMessageAt) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -21611,10 +15311,8 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createStaffAvailabilityStats( - staffId: staffId, -); -createStaffAvailabilityStatsData data = result.data; +final result = await ExampleConnector.instance.createConversation(); +createConversationData data = result.data; final ref = result.ref; ``` @@ -21622,255 +15320,72 @@ 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 = ...; - -final ref = ExampleConnector.instance.createStaffAvailabilityStats( - staffId: staffId, -).ref(); +final ref = ExampleConnector.instance.createConversation().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 +### updateConversation #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateTaskComment( +ExampleConnector.instance.updateConversation( 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. +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 UpdateTaskCommentVariablesBuilder { +class UpdateConversationVariablesBuilder { ... - UpdateTaskCommentVariablesBuilder comment(String? t) { - _comment.value = t; + UpdateConversationVariablesBuilder subject(String? t) { + _subject.value = t; return this; } - UpdateTaskCommentVariablesBuilder isSystem(bool? t) { - _isSystem.value = t; + 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.updateTaskComment( +ExampleConnector.instance.updateConversation( id: id, ) -.comment(comment) -.isSystem(isSystem) +.subject(subject) +.status(status) +.conversationType(conversationType) +.isGroup(isGroup) +.groupName(groupName) +.lastMessage(lastMessage) +.lastMessageAt(lastMessageAt) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -21880,10 +15395,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateTaskComment( +final result = await ExampleConnector.instance.updateConversation( id: id, ); -updateTaskCommentData data = result.data; +updateConversationData data = result.data; final ref = result.ref; ``` @@ -21893,26 +15408,49 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateTaskComment( +final ref = ExampleConnector.instance.updateConversation( id: id, ).ref(); ref.execute(); ``` -### deleteTaskComment +### updateConversationLastMessage #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteTaskComment( +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` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -21922,10 +15460,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteTaskComment( +final result = await ExampleConnector.instance.updateConversationLastMessage( id: id, ); -deleteTaskCommentData data = result.data; +updateConversationLastMessageData data = result.data; final ref = result.ref; ``` @@ -21935,7 +15473,1679 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteTaskComment( +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(); +``` + + +### 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( + 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(); +``` + + +### 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(); +``` + + +### createTeamMember +#### Required Arguments +```dart +String teamId = ...; +TeamMemberRole role = ...; +String userId = ...; +ExampleConnector.instance.createTeamMember( + teamId: teamId, + role: role, + userId: userId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createTeamMember, we created `createTeamMemberBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateTeamMemberVariablesBuilder { + ... + CreateTeamMemberVariablesBuilder title(String? t) { + _title.value = t; + return this; + } + CreateTeamMemberVariablesBuilder department(String? t) { + _department.value = t; + return this; + } + CreateTeamMemberVariablesBuilder teamHubId(String? t) { + _teamHubId.value = t; + return this; + } + CreateTeamMemberVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + CreateTeamMemberVariablesBuilder inviteStatus(TeamMemberInviteStatus? t) { + _inviteStatus.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createTeamMember( + teamId: teamId, + role: role, + userId: userId, +) +.title(title) +.department(department) +.teamHubId(teamHubId) +.isActive(isActive) +.inviteStatus(inviteStatus) +.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.createTeamMember( + teamId: teamId, + role: role, + userId: userId, +); +createTeamMemberData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 = ...; +TeamMemberRole role = ...; +String userId = ...; + +final ref = ExampleConnector.instance.createTeamMember( + teamId: teamId, + role: role, + userId: userId, +).ref(); +ref.execute(); +``` + + +### updateTeamMember +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateTeamMember( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateTeamMember, we created `updateTeamMemberBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateTeamMemberVariablesBuilder { + ... + UpdateTeamMemberVariablesBuilder role(TeamMemberRole? t) { + _role.value = t; + return this; + } + UpdateTeamMemberVariablesBuilder title(String? t) { + _title.value = t; + return this; + } + UpdateTeamMemberVariablesBuilder department(String? t) { + _department.value = t; + return this; + } + UpdateTeamMemberVariablesBuilder teamHubId(String? t) { + _teamHubId.value = t; + return this; + } + UpdateTeamMemberVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + UpdateTeamMemberVariablesBuilder inviteStatus(TeamMemberInviteStatus? t) { + _inviteStatus.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateTeamMember( + id: id, +) +.role(role) +.title(title) +.department(department) +.teamHubId(teamHubId) +.isActive(isActive) +.inviteStatus(inviteStatus) +.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.updateTeamMember( + id: id, +); +updateTeamMemberData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.updateTeamMember( + id: id, +).ref(); +ref.execute(); +``` + + +### updateTeamMemberInviteStatus +#### Required Arguments +```dart +String id = ...; +TeamMemberInviteStatus inviteStatus = ...; +ExampleConnector.instance.updateTeamMemberInviteStatus( + id: id, + inviteStatus: inviteStatus, +).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.updateTeamMemberInviteStatus( + id: id, + inviteStatus: inviteStatus, +); +updateTeamMemberInviteStatusData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 = ...; +TeamMemberInviteStatus inviteStatus = ...; + +final ref = ExampleConnector.instance.updateTeamMemberInviteStatus( + id: id, + inviteStatus: inviteStatus, +).ref(); +ref.execute(); +``` + + +### acceptInviteByCode +#### Required Arguments +```dart +String inviteCode = ...; +ExampleConnector.instance.acceptInviteByCode( + inviteCode: inviteCode, +).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.acceptInviteByCode( + inviteCode: inviteCode, +); +acceptInviteByCodeData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String inviteCode = ...; + +final ref = ExampleConnector.instance.acceptInviteByCode( + inviteCode: inviteCode, +).ref(); +ref.execute(); +``` + + +### cancelInviteByCode +#### Required Arguments +```dart +String inviteCode = ...; +ExampleConnector.instance.cancelInviteByCode( + inviteCode: inviteCode, +).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.cancelInviteByCode( + inviteCode: inviteCode, +); +cancelInviteByCodeData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String inviteCode = ...; + +final ref = ExampleConnector.instance.cancelInviteByCode( + inviteCode: inviteCode, +).ref(); +ref.execute(); +``` + + +### deleteTeamMember +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteTeamMember( + 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.deleteTeamMember( + id: id, +); +deleteTeamMemberData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.deleteTeamMember( + id: id, +).ref(); +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(); +``` + + +### 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(); +``` + + +### 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(); @@ -22222,92 +17432,60 @@ ref.execute(); ``` -### createBenefitsData +### createVendorBenefitPlan #### 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, +String vendorId = ...; +String title = ...; +ExampleConnector.instance.createVendorBenefitPlan( + vendorId: vendorId, + title: title, ).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. +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 UpdateBenefitsDataVariablesBuilder { +class CreateVendorBenefitPlanVariablesBuilder { ... - UpdateBenefitsDataVariablesBuilder current(int? t) { - _current.value = t; + 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.updateBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, +ExampleConnector.instance.createVendorBenefitPlan( + vendorId: vendorId, + title: title, ) -.current(current) +.description(description) +.requestLabel(requestLabel) +.total(total) +.isActive(isActive) +.createdBy(createdBy) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -22317,11 +17495,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, +final result = await ExampleConnector.instance.createVendorBenefitPlan( + vendorId: vendorId, + title: title, ); -updateBenefitsDataData data = result.data; +createVendorBenefitPlanData data = result.data; final ref = result.ref; ``` @@ -22329,32 +17507,120 @@ 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 = ...; +String vendorId = ...; +String title = ...; -final ref = ExampleConnector.instance.updateBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, +final ref = ExampleConnector.instance.createVendorBenefitPlan( + vendorId: vendorId, + title: title, ).ref(); ref.execute(); ``` -### deleteBenefitsData +### updateVendorBenefitPlan #### Required Arguments ```dart -String staffId = ...; -String vendorBenefitPlanId = ...; -ExampleConnector.instance.deleteBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, +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` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -22364,11 +17630,1274 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, +final result = await ExampleConnector.instance.deleteVendorBenefitPlan( + id: id, ); -deleteBenefitsDataData data = result.data; +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(); +``` + + +### 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(); +``` + + +### 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(); +``` + + +### createVendorRate +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.createVendorRate( + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createVendorRate, we created `createVendorRateBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateVendorRateVariablesBuilder { + ... + CreateVendorRateVariablesBuilder roleName(String? t) { + _roleName.value = t; + return this; + } + CreateVendorRateVariablesBuilder category(CategoryType? t) { + _category.value = t; + return this; + } + CreateVendorRateVariablesBuilder clientRate(double? t) { + _clientRate.value = t; + return this; + } + CreateVendorRateVariablesBuilder employeeWage(double? t) { + _employeeWage.value = t; + return this; + } + CreateVendorRateVariablesBuilder markupPercentage(double? t) { + _markupPercentage.value = t; + return this; + } + CreateVendorRateVariablesBuilder vendorFeePercentage(double? t) { + _vendorFeePercentage.value = t; + return this; + } + CreateVendorRateVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + CreateVendorRateVariablesBuilder notes(String? t) { + _notes.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createVendorRate( + vendorId: vendorId, +) +.roleName(roleName) +.category(category) +.clientRate(clientRate) +.employeeWage(employeeWage) +.markupPercentage(markupPercentage) +.vendorFeePercentage(vendorFeePercentage) +.isActive(isActive) +.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.createVendorRate( + vendorId: vendorId, +); +createVendorRateData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.createVendorRate( + vendorId: vendorId, +).ref(); +ref.execute(); +``` + + +### updateVendorRate +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateVendorRate( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateVendorRate, we created `updateVendorRateBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateVendorRateVariablesBuilder { + ... + UpdateVendorRateVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + UpdateVendorRateVariablesBuilder roleName(String? t) { + _roleName.value = t; + return this; + } + UpdateVendorRateVariablesBuilder category(CategoryType? t) { + _category.value = t; + return this; + } + UpdateVendorRateVariablesBuilder clientRate(double? t) { + _clientRate.value = t; + return this; + } + UpdateVendorRateVariablesBuilder employeeWage(double? t) { + _employeeWage.value = t; + return this; + } + UpdateVendorRateVariablesBuilder markupPercentage(double? t) { + _markupPercentage.value = t; + return this; + } + UpdateVendorRateVariablesBuilder vendorFeePercentage(double? t) { + _vendorFeePercentage.value = t; + return this; + } + UpdateVendorRateVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + UpdateVendorRateVariablesBuilder notes(String? t) { + _notes.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateVendorRate( + id: id, +) +.vendorId(vendorId) +.roleName(roleName) +.category(category) +.clientRate(clientRate) +.employeeWage(employeeWage) +.markupPercentage(markupPercentage) +.vendorFeePercentage(vendorFeePercentage) +.isActive(isActive) +.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.updateVendorRate( + id: id, +); +updateVendorRateData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.updateVendorRate( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteVendorRate +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteVendorRate( + 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.deleteVendorRate( + id: id, +); +deleteVendorRateData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.deleteVendorRate( + 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(); +``` + + +### 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 +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateCategory( + 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. +The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { + ... + UpdateCategoryVariablesBuilder categoryId(String? t) { + _categoryId.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(); +``` + + +### 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(); +``` + + +### 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; ``` @@ -22377,11 +18906,517 @@ 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 = ...; -String vendorBenefitPlanId = ...; +DayOfWeek day = ...; +AvailabilitySlot slot = ...; -final ref = ExampleConnector.instance.deleteBenefitsData( +final ref = ExampleConnector.instance.createStaffAvailability( staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, + 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(); +``` + + +### createClientFeedback +#### Required Arguments +```dart +String businessId = ...; +String vendorId = ...; +ExampleConnector.instance.createClientFeedback( + businessId: businessId, + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createClientFeedback, we created `createClientFeedbackBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateClientFeedbackVariablesBuilder { + ... + CreateClientFeedbackVariablesBuilder rating(int? t) { + _rating.value = t; + return this; + } + CreateClientFeedbackVariablesBuilder comment(String? t) { + _comment.value = t; + return this; + } + CreateClientFeedbackVariablesBuilder date(Timestamp? t) { + _date.value = t; + return this; + } + CreateClientFeedbackVariablesBuilder createdBy(String? t) { + _createdBy.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createClientFeedback( + businessId: businessId, + vendorId: vendorId, +) +.rating(rating) +.comment(comment) +.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.createClientFeedback( + businessId: businessId, + vendorId: vendorId, +); +createClientFeedbackData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.createClientFeedback( + businessId: businessId, + vendorId: vendorId, +).ref(); +ref.execute(); +``` + + +### updateClientFeedback +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateClientFeedback( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateClientFeedback, we created `updateClientFeedbackBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateClientFeedbackVariablesBuilder { + ... + UpdateClientFeedbackVariablesBuilder businessId(String? t) { + _businessId.value = t; + return this; + } + UpdateClientFeedbackVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + UpdateClientFeedbackVariablesBuilder rating(int? t) { + _rating.value = t; + return this; + } + UpdateClientFeedbackVariablesBuilder comment(String? t) { + _comment.value = t; + return this; + } + UpdateClientFeedbackVariablesBuilder date(Timestamp? t) { + _date.value = t; + return this; + } + UpdateClientFeedbackVariablesBuilder createdBy(String? t) { + _createdBy.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateClientFeedback( + id: id, +) +.businessId(businessId) +.vendorId(vendorId) +.rating(rating) +.comment(comment) +.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.updateClientFeedback( + id: id, +); +updateClientFeedbackData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.updateClientFeedback( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteClientFeedback +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteClientFeedback( + 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.deleteClientFeedback( + id: id, +); +deleteClientFeedbackData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.deleteClientFeedback( + id: id, +).ref(); +ref.execute(); +``` + + +### 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(); ``` @@ -22565,37 +19600,25 @@ ref.execute(); ``` -### createFaqData +### createEmergencyContact #### Required Arguments ```dart -String category = ...; -ExampleConnector.instance.createFaqData( - category: category, +String name = ...; +String phone = ...; +RelationshipType relationship = ...; +String staffId = ...; +ExampleConnector.instance.createEmergencyContact( + name: name, + phone: phone, + relationship: relationship, + staffId: staffId, ).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` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -22605,10 +19628,13 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createFaqData( - category: category, +final result = await ExampleConnector.instance.createEmergencyContact( + name: name, + phone: phone, + relationship: relationship, + staffId: staffId, ); -createFaqDataData data = result.data; +createEmergencyContactData data = result.data; final ref = result.ref; ``` @@ -22616,51 +19642,62 @@ 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 category = ...; +String name = ...; +String phone = ...; +RelationshipType relationship = ...; +String staffId = ...; -final ref = ExampleConnector.instance.createFaqData( - category: category, +final ref = ExampleConnector.instance.createEmergencyContact( + name: name, + phone: phone, + relationship: relationship, + staffId: staffId, ).ref(); ref.execute(); ``` -### updateFaqData +### updateEmergencyContact #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateFaqData( +ExampleConnector.instance.updateEmergencyContact( 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. +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 UpdateFaqDataVariablesBuilder { +class UpdateEmergencyContactVariablesBuilder { ... - UpdateFaqDataVariablesBuilder category(String? t) { - _category.value = t; + UpdateEmergencyContactVariablesBuilder name(String? t) { + _name.value = t; return this; } - UpdateFaqDataVariablesBuilder questions(List? t) { - _questions.value = t; + UpdateEmergencyContactVariablesBuilder phone(String? t) { + _phone.value = t; + return this; + } + UpdateEmergencyContactVariablesBuilder relationship(RelationshipType? t) { + _relationship.value = t; return this; } ... } -ExampleConnector.instance.updateFaqData( +ExampleConnector.instance.updateEmergencyContact( id: id, ) -.category(category) -.questions(questions) +.name(name) +.phone(phone) +.relationship(relationship) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -22670,10 +19707,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateFaqData( +final result = await ExampleConnector.instance.updateEmergencyContact( id: id, ); -updateFaqDataData data = result.data; +updateEmergencyContactData data = result.data; final ref = result.ref; ``` @@ -22683,18 +19720,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateFaqData( +final ref = ExampleConnector.instance.updateEmergencyContact( id: id, ).ref(); ref.execute(); ``` -### deleteFaqData +### deleteEmergencyContact #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteFaqData( +ExampleConnector.instance.deleteEmergencyContact( id: id, ).execute(); ``` @@ -22702,7 +19739,7 @@ ExampleConnector.instance.deleteFaqData( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -22712,10 +19749,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteFaqData( +final result = await ExampleConnector.instance.deleteEmergencyContact( id: id, ); -deleteFaqDataData data = result.data; +deleteEmergencyContactData data = result.data; final ref = result.ref; ``` @@ -22725,13 +19762,3100 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteFaqData( +final ref = ExampleConnector.instance.deleteEmergencyContact( id: id, ).ref(); ref.execute(); ``` +### createInvoiceTemplate +#### Required Arguments +```dart +String name = ...; +String ownerId = ...; +ExampleConnector.instance.createInvoiceTemplate( + name: name, + ownerId: ownerId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createInvoiceTemplate, we created `createInvoiceTemplateBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateInvoiceTemplateVariablesBuilder { + ... + CreateInvoiceTemplateVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + CreateInvoiceTemplateVariablesBuilder businessId(String? t) { + _businessId.value = t; + return this; + } + CreateInvoiceTemplateVariablesBuilder orderId(String? t) { + _orderId.value = t; + return this; + } + CreateInvoiceTemplateVariablesBuilder paymentTerms(InovicePaymentTermsTemp? t) { + _paymentTerms.value = t; + return this; + } + CreateInvoiceTemplateVariablesBuilder invoiceNumber(String? t) { + _invoiceNumber.value = t; + return this; + } + CreateInvoiceTemplateVariablesBuilder issueDate(Timestamp? t) { + _issueDate.value = t; + return this; + } + CreateInvoiceTemplateVariablesBuilder dueDate(Timestamp? t) { + _dueDate.value = t; + return this; + } + CreateInvoiceTemplateVariablesBuilder hub(String? t) { + _hub.value = t; + return this; + } + CreateInvoiceTemplateVariablesBuilder managerName(String? t) { + _managerName.value = t; + return this; + } + CreateInvoiceTemplateVariablesBuilder vendorNumber(String? t) { + _vendorNumber.value = t; + return this; + } + CreateInvoiceTemplateVariablesBuilder roles(AnyValue? t) { + _roles.value = t; + return this; + } + CreateInvoiceTemplateVariablesBuilder charges(AnyValue? t) { + _charges.value = t; + return this; + } + CreateInvoiceTemplateVariablesBuilder otherCharges(double? t) { + _otherCharges.value = t; + return this; + } + CreateInvoiceTemplateVariablesBuilder subtotal(double? t) { + _subtotal.value = t; + return this; + } + CreateInvoiceTemplateVariablesBuilder amount(double? t) { + _amount.value = t; + return this; + } + CreateInvoiceTemplateVariablesBuilder notes(String? t) { + _notes.value = t; + return this; + } + CreateInvoiceTemplateVariablesBuilder staffCount(int? t) { + _staffCount.value = t; + return this; + } + CreateInvoiceTemplateVariablesBuilder chargesCount(int? t) { + _chargesCount.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createInvoiceTemplate( + name: name, + ownerId: ownerId, +) +.vendorId(vendorId) +.businessId(businessId) +.orderId(orderId) +.paymentTerms(paymentTerms) +.invoiceNumber(invoiceNumber) +.issueDate(issueDate) +.dueDate(dueDate) +.hub(hub) +.managerName(managerName) +.vendorNumber(vendorNumber) +.roles(roles) +.charges(charges) +.otherCharges(otherCharges) +.subtotal(subtotal) +.amount(amount) +.notes(notes) +.staffCount(staffCount) +.chargesCount(chargesCount) +.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.createInvoiceTemplate( + name: name, + ownerId: ownerId, +); +createInvoiceTemplateData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.createInvoiceTemplate( + name: name, + ownerId: ownerId, +).ref(); +ref.execute(); +``` + + +### updateInvoiceTemplate +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateInvoiceTemplate( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateInvoiceTemplate, we created `updateInvoiceTemplateBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateInvoiceTemplateVariablesBuilder { + ... + UpdateInvoiceTemplateVariablesBuilder name(String? t) { + _name.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder ownerId(String? t) { + _ownerId.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder businessId(String? t) { + _businessId.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder orderId(String? t) { + _orderId.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder paymentTerms(InovicePaymentTermsTemp? t) { + _paymentTerms.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder invoiceNumber(String? t) { + _invoiceNumber.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder issueDate(Timestamp? t) { + _issueDate.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder dueDate(Timestamp? t) { + _dueDate.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder hub(String? t) { + _hub.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder managerName(String? t) { + _managerName.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder vendorNumber(String? t) { + _vendorNumber.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder roles(AnyValue? t) { + _roles.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder charges(AnyValue? t) { + _charges.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder otherCharges(double? t) { + _otherCharges.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder subtotal(double? t) { + _subtotal.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder amount(double? t) { + _amount.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder notes(String? t) { + _notes.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder staffCount(int? t) { + _staffCount.value = t; + return this; + } + UpdateInvoiceTemplateVariablesBuilder chargesCount(int? t) { + _chargesCount.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateInvoiceTemplate( + id: id, +) +.name(name) +.ownerId(ownerId) +.vendorId(vendorId) +.businessId(businessId) +.orderId(orderId) +.paymentTerms(paymentTerms) +.invoiceNumber(invoiceNumber) +.issueDate(issueDate) +.dueDate(dueDate) +.hub(hub) +.managerName(managerName) +.vendorNumber(vendorNumber) +.roles(roles) +.charges(charges) +.otherCharges(otherCharges) +.subtotal(subtotal) +.amount(amount) +.notes(notes) +.staffCount(staffCount) +.chargesCount(chargesCount) +.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.updateInvoiceTemplate( + id: id, +); +updateInvoiceTemplateData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.updateInvoiceTemplate( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteInvoiceTemplate +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteInvoiceTemplate( + 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.deleteInvoiceTemplate( + id: id, +); +deleteInvoiceTemplateData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.deleteInvoiceTemplate( + 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(); +``` + + +### 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(); +``` + + +### 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(); +``` + + +### 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(); +``` + + +### 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) { + _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 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; + return this; + } + + ... +} +ExampleConnector.instance.createOrder( + businessId: businessId, + orderType: orderType, +) +.vendorId(vendorId) +.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) +.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(); +``` + + +### createStaffDocument +#### Required Arguments +```dart +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 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` +```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.createStaffDocument( + staffId: staffId, + staffName: staffName, + documentId: documentId, + status: status, +); +createStaffDocumentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 = ...; + +final ref = ExampleConnector.instance.createStaffDocument( + staffId: staffId, + staffName: staffName, + documentId: documentId, + status: status, +).ref(); +ref.execute(); +``` + + +### updateStaffDocument +#### Required Arguments +```dart +String staffId = ...; +String documentId = ...; +ExampleConnector.instance.updateStaffDocument( + staffId: staffId, + documentId: documentId, +).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` +```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.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(); +``` + + +### 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(); +``` + + +### 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(); +``` + + +### createInvoice +#### Required Arguments +```dart +InvoiceStatus status = ...; +String vendorId = ...; +String businessId = ...; +String orderId = ...; +String invoiceNumber = ...; +Timestamp issueDate = ...; +Timestamp dueDate = ...; +double amount = ...; +ExampleConnector.instance.createInvoice( + status: status, + vendorId: vendorId, + businessId: businessId, + orderId: orderId, + invoiceNumber: invoiceNumber, + issueDate: issueDate, + dueDate: dueDate, + amount: amount, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createInvoice, we created `createInvoiceBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateInvoiceVariablesBuilder { + ... + CreateInvoiceVariablesBuilder paymentTerms(InovicePaymentTerms? t) { + _paymentTerms.value = t; + return this; + } + CreateInvoiceVariablesBuilder hub(String? t) { + _hub.value = t; + return this; + } + CreateInvoiceVariablesBuilder managerName(String? t) { + _managerName.value = t; + return this; + } + CreateInvoiceVariablesBuilder vendorNumber(String? t) { + _vendorNumber.value = t; + return this; + } + CreateInvoiceVariablesBuilder roles(AnyValue? t) { + _roles.value = t; + return this; + } + CreateInvoiceVariablesBuilder charges(AnyValue? t) { + _charges.value = t; + return this; + } + CreateInvoiceVariablesBuilder otherCharges(double? t) { + _otherCharges.value = t; + return this; + } + CreateInvoiceVariablesBuilder subtotal(double? t) { + _subtotal.value = t; + return this; + } + CreateInvoiceVariablesBuilder notes(String? t) { + _notes.value = t; + return this; + } + CreateInvoiceVariablesBuilder staffCount(int? t) { + _staffCount.value = t; + return this; + } + CreateInvoiceVariablesBuilder chargesCount(int? t) { + _chargesCount.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createInvoice( + status: status, + vendorId: vendorId, + businessId: businessId, + orderId: orderId, + invoiceNumber: invoiceNumber, + issueDate: issueDate, + dueDate: dueDate, + amount: amount, +) +.paymentTerms(paymentTerms) +.hub(hub) +.managerName(managerName) +.vendorNumber(vendorNumber) +.roles(roles) +.charges(charges) +.otherCharges(otherCharges) +.subtotal(subtotal) +.notes(notes) +.staffCount(staffCount) +.chargesCount(chargesCount) +.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.createInvoice( + status: status, + vendorId: vendorId, + businessId: businessId, + orderId: orderId, + invoiceNumber: invoiceNumber, + issueDate: issueDate, + dueDate: dueDate, + amount: amount, +); +createInvoiceData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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 vendorId = ...; +String businessId = ...; +String orderId = ...; +String invoiceNumber = ...; +Timestamp issueDate = ...; +Timestamp dueDate = ...; +double amount = ...; + +final ref = ExampleConnector.instance.createInvoice( + status: status, + vendorId: vendorId, + businessId: businessId, + orderId: orderId, + invoiceNumber: invoiceNumber, + issueDate: issueDate, + dueDate: dueDate, + amount: amount, +).ref(); +ref.execute(); +``` + + +### updateInvoice +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateInvoice( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateInvoice, we created `updateInvoiceBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateInvoiceVariablesBuilder { + ... + UpdateInvoiceVariablesBuilder status(InvoiceStatus? t) { + _status.value = t; + return this; + } + UpdateInvoiceVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + UpdateInvoiceVariablesBuilder businessId(String? t) { + _businessId.value = t; + return this; + } + UpdateInvoiceVariablesBuilder orderId(String? t) { + _orderId.value = t; + return this; + } + UpdateInvoiceVariablesBuilder paymentTerms(InovicePaymentTerms? t) { + _paymentTerms.value = t; + return this; + } + UpdateInvoiceVariablesBuilder invoiceNumber(String? t) { + _invoiceNumber.value = t; + return this; + } + UpdateInvoiceVariablesBuilder issueDate(Timestamp? t) { + _issueDate.value = t; + return this; + } + UpdateInvoiceVariablesBuilder dueDate(Timestamp? t) { + _dueDate.value = t; + return this; + } + UpdateInvoiceVariablesBuilder hub(String? t) { + _hub.value = t; + return this; + } + UpdateInvoiceVariablesBuilder managerName(String? t) { + _managerName.value = t; + return this; + } + UpdateInvoiceVariablesBuilder vendorNumber(String? t) { + _vendorNumber.value = t; + return this; + } + UpdateInvoiceVariablesBuilder roles(AnyValue? t) { + _roles.value = t; + return this; + } + UpdateInvoiceVariablesBuilder charges(AnyValue? t) { + _charges.value = t; + return this; + } + UpdateInvoiceVariablesBuilder otherCharges(double? t) { + _otherCharges.value = t; + return this; + } + UpdateInvoiceVariablesBuilder subtotal(double? t) { + _subtotal.value = t; + return this; + } + UpdateInvoiceVariablesBuilder amount(double? t) { + _amount.value = t; + return this; + } + UpdateInvoiceVariablesBuilder notes(String? t) { + _notes.value = t; + return this; + } + UpdateInvoiceVariablesBuilder staffCount(int? t) { + _staffCount.value = t; + return this; + } + UpdateInvoiceVariablesBuilder chargesCount(int? t) { + _chargesCount.value = t; + return this; + } + UpdateInvoiceVariablesBuilder disputedItems(AnyValue? t) { + _disputedItems.value = t; + return this; + } + UpdateInvoiceVariablesBuilder disputeReason(String? t) { + _disputeReason.value = t; + return this; + } + UpdateInvoiceVariablesBuilder disputeDetails(String? t) { + _disputeDetails.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateInvoice( + id: id, +) +.status(status) +.vendorId(vendorId) +.businessId(businessId) +.orderId(orderId) +.paymentTerms(paymentTerms) +.invoiceNumber(invoiceNumber) +.issueDate(issueDate) +.dueDate(dueDate) +.hub(hub) +.managerName(managerName) +.vendorNumber(vendorNumber) +.roles(roles) +.charges(charges) +.otherCharges(otherCharges) +.subtotal(subtotal) +.amount(amount) +.notes(notes) +.staffCount(staffCount) +.chargesCount(chargesCount) +.disputedItems(disputedItems) +.disputeReason(disputeReason) +.disputeDetails(disputeDetails) +.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.updateInvoice( + id: id, +); +updateInvoiceData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.updateInvoice( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteInvoice +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteInvoice( + 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.deleteInvoice( + id: id, +); +deleteInvoiceData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.deleteInvoice( + id: id, +).ref(); +ref.execute(); +``` + + +### createLevel +#### Required Arguments +```dart +String name = ...; +int xpRequired = ...; +ExampleConnector.instance.createLevel( + name: name, + xpRequired: xpRequired, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createLevel, we created `createLevelBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateLevelVariablesBuilder { + ... + CreateLevelVariablesBuilder icon(String? t) { + _icon.value = t; + return this; + } + CreateLevelVariablesBuilder colors(AnyValue? t) { + _colors.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createLevel( + name: name, + xpRequired: xpRequired, +) +.icon(icon) +.colors(colors) +.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.createLevel( + name: name, + xpRequired: xpRequired, +); +createLevelData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 = ...; +int xpRequired = ...; + +final ref = ExampleConnector.instance.createLevel( + name: name, + xpRequired: xpRequired, +).ref(); +ref.execute(); +``` + + +### updateLevel +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateLevel( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateLevel, we created `updateLevelBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateLevelVariablesBuilder { + ... + UpdateLevelVariablesBuilder name(String? t) { + _name.value = t; + return this; + } + UpdateLevelVariablesBuilder xpRequired(int? t) { + _xpRequired.value = t; + return this; + } + UpdateLevelVariablesBuilder icon(String? t) { + _icon.value = t; + return this; + } + UpdateLevelVariablesBuilder colors(AnyValue? t) { + _colors.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateLevel( + id: id, +) +.name(name) +.xpRequired(xpRequired) +.icon(icon) +.colors(colors) +.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.updateLevel( + id: id, +); +updateLevelData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.updateLevel( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteLevel +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteLevel( + 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.deleteLevel( + id: id, +); +deleteLevelData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.deleteLevel( + 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(); +``` + + +### 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(); +``` + + ### createVendor #### Required Arguments ```dart @@ -23075,55 +23199,61 @@ ref.execute(); ``` -### createAttireOption +### createAccount #### Required Arguments ```dart -String itemId = ...; -String label = ...; -ExampleConnector.instance.createAttireOption( - itemId: itemId, - label: label, +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 createAttireOption, we created `createAttireOptionBuilder`. For queries and mutations with optional parameters, we return a builder class. +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 CreateAttireOptionVariablesBuilder { +class CreateAccountVariablesBuilder { ... - CreateAttireOptionVariablesBuilder icon(String? t) { - _icon.value = t; + CreateAccountVariablesBuilder isPrimary(bool? t) { + _isPrimary.value = t; return this; } - CreateAttireOptionVariablesBuilder imageUrl(String? t) { - _imageUrl.value = t; + CreateAccountVariablesBuilder accountNumber(String? t) { + _accountNumber.value = t; return this; } - CreateAttireOptionVariablesBuilder isMandatory(bool? t) { - _isMandatory.value = t; + CreateAccountVariablesBuilder routeNumber(String? t) { + _routeNumber.value = t; return this; } - CreateAttireOptionVariablesBuilder vendorId(String? t) { - _vendorId.value = t; + CreateAccountVariablesBuilder expiryTime(Timestamp? t) { + _expiryTime.value = t; return this; } ... } -ExampleConnector.instance.createAttireOption( - itemId: itemId, - label: label, +ExampleConnector.instance.createAccount( + bank: bank, + type: type, + last4: last4, + ownerId: ownerId, ) -.icon(icon) -.imageUrl(imageUrl) -.isMandatory(isMandatory) -.vendorId(vendorId) +.isPrimary(isPrimary) +.accountNumber(accountNumber) +.routeNumber(routeNumber) +.expiryTime(expiryTime) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23133,11 +23263,13 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createAttireOption( - itemId: itemId, - label: label, +final result = await ExampleConnector.instance.createAccount( + bank: bank, + type: type, + last4: last4, + ownerId: ownerId, ); -createAttireOptionData data = result.data; +createAccountData data = result.data; final ref = result.ref; ``` @@ -23145,73 +23277,82 @@ 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 label = ...; +String bank = ...; +AccountType type = ...; +String last4 = ...; +String ownerId = ...; -final ref = ExampleConnector.instance.createAttireOption( - itemId: itemId, - label: label, +final ref = ExampleConnector.instance.createAccount( + bank: bank, + type: type, + last4: last4, + ownerId: ownerId, ).ref(); ref.execute(); ``` -### updateAttireOption +### updateAccount #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateAttireOption( +ExampleConnector.instance.updateAccount( 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 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 UpdateAttireOptionVariablesBuilder { +class UpdateAccountVariablesBuilder { ... - UpdateAttireOptionVariablesBuilder itemId(String? t) { - _itemId.value = t; + UpdateAccountVariablesBuilder bank(String? t) { + _bank.value = t; return this; } - UpdateAttireOptionVariablesBuilder label(String? t) { - _label.value = t; + UpdateAccountVariablesBuilder type(AccountType? t) { + _type.value = t; return this; } - UpdateAttireOptionVariablesBuilder icon(String? t) { - _icon.value = t; + UpdateAccountVariablesBuilder last4(String? t) { + _last4.value = t; return this; } - UpdateAttireOptionVariablesBuilder imageUrl(String? t) { - _imageUrl.value = t; + UpdateAccountVariablesBuilder isPrimary(bool? t) { + _isPrimary.value = t; return this; } - UpdateAttireOptionVariablesBuilder isMandatory(bool? t) { - _isMandatory.value = t; + UpdateAccountVariablesBuilder accountNumber(String? t) { + _accountNumber.value = t; return this; } - UpdateAttireOptionVariablesBuilder vendorId(String? t) { - _vendorId.value = t; + UpdateAccountVariablesBuilder routeNumber(String? t) { + _routeNumber.value = t; + return this; + } + UpdateAccountVariablesBuilder expiryTime(Timestamp? t) { + _expiryTime.value = t; return this; } ... } -ExampleConnector.instance.updateAttireOption( +ExampleConnector.instance.updateAccount( id: id, ) -.itemId(itemId) -.label(label) -.icon(icon) -.imageUrl(imageUrl) -.isMandatory(isMandatory) -.vendorId(vendorId) +.bank(bank) +.type(type) +.last4(last4) +.isPrimary(isPrimary) +.accountNumber(accountNumber) +.routeNumber(routeNumber) +.expiryTime(expiryTime) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23221,10 +23362,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateAttireOption( +final result = await ExampleConnector.instance.updateAccount( id: id, ); -updateAttireOptionData data = result.data; +updateAccountData data = result.data; final ref = result.ref; ``` @@ -23234,18 +23375,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.updateAccount( id: id, ).ref(); ref.execute(); ``` -### deleteAttireOption +### deleteAccount #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteAttireOption( +ExampleConnector.instance.deleteAccount( id: id, ).execute(); ``` @@ -23253,7 +23394,7 @@ ExampleConnector.instance.deleteAttireOption( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23263,10 +23404,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteAttireOption( +final result = await ExampleConnector.instance.deleteAccount( id: id, ); -deleteAttireOptionData data = result.data; +deleteAccountData data = result.data; final ref = result.ref; ``` @@ -23276,56 +23417,444 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteAttireOption( +final ref = ExampleConnector.instance.deleteAccount( id: id, ).ref(); ref.execute(); ``` -### createRecentPayment +### 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(); +``` + + +### 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 applicationId = ...; -String invoiceId = ...; -ExampleConnector.instance.createRecentPayment( +String vendorBenefitPlanId = ...; +ExampleConnector.instance.updateBenefitsData( staffId: staffId, - applicationId: applicationId, - invoiceId: invoiceId, + vendorBenefitPlanId: vendorBenefitPlanId, ).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. +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 CreateRecentPaymentVariablesBuilder { +class UpdateBenefitsDataVariablesBuilder { ... - - CreateRecentPaymentVariablesBuilder workedTime(String? t) { - _workedTime.value = t; - return this; - } - CreateRecentPaymentVariablesBuilder status(RecentPaymentStatus? t) { - _status.value = t; + UpdateBenefitsDataVariablesBuilder current(int? t) { + _current.value = t; return this; } ... } -ExampleConnector.instance.createRecentPayment( +ExampleConnector.instance.updateBenefitsData( staffId: staffId, - applicationId: applicationId, - invoiceId: invoiceId, + vendorBenefitPlanId: vendorBenefitPlanId, ) -.workedTime(workedTime) -.status(status) +.current(current) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23335,12 +23864,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createRecentPayment( +final result = await ExampleConnector.instance.updateBenefitsData( staffId: staffId, - applicationId: applicationId, - invoiceId: invoiceId, + vendorBenefitPlanId: vendorBenefitPlanId, ); -createRecentPaymentData data = result.data; +updateBenefitsDataData data = result.data; final ref = result.ref; ``` @@ -23349,69 +23877,177 @@ 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 = ...; -String applicationId = ...; -String invoiceId = ...; +String vendorBenefitPlanId = ...; -final ref = ExampleConnector.instance.createRecentPayment( +final ref = ExampleConnector.instance.updateBenefitsData( staffId: staffId, - applicationId: applicationId, - invoiceId: invoiceId, + vendorBenefitPlanId: vendorBenefitPlanId, ).ref(); ref.execute(); ``` -### updateRecentPayment +### deleteBenefitsData #### Required Arguments ```dart -String id = ...; -ExampleConnector.instance.updateRecentPayment( - id: id, +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(); +``` + + +### 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 updateRecentPayment, we created `updateRecentPaymentBuilder`. For queries and mutations with optional parameters, we return a builder class. +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 UpdateRecentPaymentVariablesBuilder { +class CreateShiftVariablesBuilder { ... - UpdateRecentPaymentVariablesBuilder workedTime(String? t) { - _workedTime.value = t; + CreateShiftVariablesBuilder date(Timestamp? t) { + _date.value = t; return this; } - UpdateRecentPaymentVariablesBuilder status(RecentPaymentStatus? t) { + 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; } - UpdateRecentPaymentVariablesBuilder staffId(String? t) { - _staffId.value = t; + CreateShiftVariablesBuilder workersNeeded(int? t) { + _workersNeeded.value = t; return this; } - UpdateRecentPaymentVariablesBuilder applicationId(String? t) { - _applicationId.value = t; + CreateShiftVariablesBuilder filled(int? t) { + _filled.value = t; return this; } - UpdateRecentPaymentVariablesBuilder invoiceId(String? t) { - _invoiceId.value = t; + 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.updateRecentPayment( - id: id, +ExampleConnector.instance.createShift( + title: title, + orderId: orderId, ) -.workedTime(workedTime) +.date(date) +.startTime(startTime) +.endTime(endTime) +.hours(hours) +.cost(cost) +.location(location) +.locationAddress(locationAddress) +.latitude(latitude) +.longitude(longitude) +.description(description) .status(status) -.staffId(staffId) -.applicationId(applicationId) -.invoiceId(invoiceId) +.workersNeeded(workersNeeded) +.filled(filled) +.filledAt(filledAt) +.managers(managers) +.durationDays(durationDays) +.createdBy(createdBy) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23421,10 +24057,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateRecentPayment( - id: id, +final result = await ExampleConnector.instance.createShift( + title: title, + orderId: orderId, ); -updateRecentPaymentData data = result.data; +createShiftData data = result.data; final ref = result.ref; ``` @@ -23432,153 +24069,133 @@ 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 title = ...; +String orderId = ...; -final ref = ExampleConnector.instance.updateRecentPayment( - id: id, +final ref = ExampleConnector.instance.createShift( + title: title, + orderId: orderId, ).ref(); ref.execute(); ``` -### deleteRecentPayment +### updateShift #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteRecentPayment( +ExampleConnector.instance.updateShift( 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(); -``` - - -### 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. +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 UpdateRoleVariablesBuilder { +class UpdateShiftVariablesBuilder { ... - UpdateRoleVariablesBuilder name(String? t) { - _name.value = t; + UpdateShiftVariablesBuilder title(String? t) { + _title.value = t; return this; } - UpdateRoleVariablesBuilder costPerHour(double? t) { - _costPerHour.value = t; + 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.updateRole( +ExampleConnector.instance.updateShift( id: id, - roleCategoryId: roleCategoryId, ) -.name(name) -.costPerHour(costPerHour) +.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` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23588,11 +24205,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateRole( +final result = await ExampleConnector.instance.updateShift( id: id, - roleCategoryId: roleCategoryId, ); -updateRoleData data = result.data; +updateShiftData data = result.data; final ref = result.ref; ``` @@ -23601,21 +24217,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 roleCategoryId = ...; -final ref = ExampleConnector.instance.updateRole( +final ref = ExampleConnector.instance.updateShift( id: id, - roleCategoryId: roleCategoryId, ).ref(); ref.execute(); ``` -### deleteRole +### deleteShift #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteRole( +ExampleConnector.instance.deleteShift( id: id, ).execute(); ``` @@ -23623,7 +24237,7 @@ ExampleConnector.instance.deleteRole( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23633,10 +24247,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteRole( +final result = await ExampleConnector.instance.deleteShift( id: id, ); -deleteRoleData data = result.data; +deleteShiftData data = result.data; final ref = result.ref; ``` @@ -23646,7 +24260,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteRole( +final ref = ExampleConnector.instance.deleteShift( id: id, ).ref(); ref.execute(); @@ -24140,617 +24754,3 @@ final ref = ExampleConnector.instance.deleteStaff( ref.execute(); ``` - -### createVendorRate -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.createVendorRate( - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createVendorRate, we created `createVendorRateBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateVendorRateVariablesBuilder { - ... - CreateVendorRateVariablesBuilder roleName(String? t) { - _roleName.value = t; - return this; - } - CreateVendorRateVariablesBuilder category(CategoryType? t) { - _category.value = t; - return this; - } - CreateVendorRateVariablesBuilder clientRate(double? t) { - _clientRate.value = t; - return this; - } - CreateVendorRateVariablesBuilder employeeWage(double? t) { - _employeeWage.value = t; - return this; - } - CreateVendorRateVariablesBuilder markupPercentage(double? t) { - _markupPercentage.value = t; - return this; - } - CreateVendorRateVariablesBuilder vendorFeePercentage(double? t) { - _vendorFeePercentage.value = t; - return this; - } - CreateVendorRateVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - CreateVendorRateVariablesBuilder notes(String? t) { - _notes.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createVendorRate( - vendorId: vendorId, -) -.roleName(roleName) -.category(category) -.clientRate(clientRate) -.employeeWage(employeeWage) -.markupPercentage(markupPercentage) -.vendorFeePercentage(vendorFeePercentage) -.isActive(isActive) -.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.createVendorRate( - vendorId: vendorId, -); -createVendorRateData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.createVendorRate( - vendorId: vendorId, -).ref(); -ref.execute(); -``` - - -### updateVendorRate -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateVendorRate( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateVendorRate, we created `updateVendorRateBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateVendorRateVariablesBuilder { - ... - UpdateVendorRateVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } - UpdateVendorRateVariablesBuilder roleName(String? t) { - _roleName.value = t; - return this; - } - UpdateVendorRateVariablesBuilder category(CategoryType? t) { - _category.value = t; - return this; - } - UpdateVendorRateVariablesBuilder clientRate(double? t) { - _clientRate.value = t; - return this; - } - UpdateVendorRateVariablesBuilder employeeWage(double? t) { - _employeeWage.value = t; - return this; - } - UpdateVendorRateVariablesBuilder markupPercentage(double? t) { - _markupPercentage.value = t; - return this; - } - UpdateVendorRateVariablesBuilder vendorFeePercentage(double? t) { - _vendorFeePercentage.value = t; - return this; - } - UpdateVendorRateVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - UpdateVendorRateVariablesBuilder notes(String? t) { - _notes.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateVendorRate( - id: id, -) -.vendorId(vendorId) -.roleName(roleName) -.category(category) -.clientRate(clientRate) -.employeeWage(employeeWage) -.markupPercentage(markupPercentage) -.vendorFeePercentage(vendorFeePercentage) -.isActive(isActive) -.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.updateVendorRate( - id: id, -); -updateVendorRateData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.updateVendorRate( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteVendorRate -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteVendorRate( - 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.deleteVendorRate( - id: id, -); -deleteVendorRateData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.deleteVendorRate( - id: id, -).ref(); -ref.execute(); -``` - - -### createClientFeedback -#### Required Arguments -```dart -String businessId = ...; -String vendorId = ...; -ExampleConnector.instance.createClientFeedback( - businessId: businessId, - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createClientFeedback, we created `createClientFeedbackBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateClientFeedbackVariablesBuilder { - ... - CreateClientFeedbackVariablesBuilder rating(int? t) { - _rating.value = t; - return this; - } - CreateClientFeedbackVariablesBuilder comment(String? t) { - _comment.value = t; - return this; - } - CreateClientFeedbackVariablesBuilder date(Timestamp? t) { - _date.value = t; - return this; - } - CreateClientFeedbackVariablesBuilder createdBy(String? t) { - _createdBy.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createClientFeedback( - businessId: businessId, - vendorId: vendorId, -) -.rating(rating) -.comment(comment) -.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.createClientFeedback( - businessId: businessId, - vendorId: vendorId, -); -createClientFeedbackData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.createClientFeedback( - businessId: businessId, - vendorId: vendorId, -).ref(); -ref.execute(); -``` - - -### updateClientFeedback -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateClientFeedback( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateClientFeedback, we created `updateClientFeedbackBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateClientFeedbackVariablesBuilder { - ... - UpdateClientFeedbackVariablesBuilder businessId(String? t) { - _businessId.value = t; - return this; - } - UpdateClientFeedbackVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } - UpdateClientFeedbackVariablesBuilder rating(int? t) { - _rating.value = t; - return this; - } - UpdateClientFeedbackVariablesBuilder comment(String? t) { - _comment.value = t; - return this; - } - UpdateClientFeedbackVariablesBuilder date(Timestamp? t) { - _date.value = t; - return this; - } - UpdateClientFeedbackVariablesBuilder createdBy(String? t) { - _createdBy.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateClientFeedback( - id: id, -) -.businessId(businessId) -.vendorId(vendorId) -.rating(rating) -.comment(comment) -.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.updateClientFeedback( - id: id, -); -updateClientFeedbackData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.updateClientFeedback( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteClientFeedback -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteClientFeedback( - 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.deleteClientFeedback( - id: id, -); -deleteClientFeedbackData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.deleteClientFeedback( - 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(); -``` - 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 1a36a6e0..b4394963 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,12 +4,124 @@ import 'package:flutter/foundation.dart'; import 'dart:convert'; import 'package:flutter/foundation.dart'; +part 'create_assignment.dart'; + +part 'update_assignment.dart'; + +part 'delete_assignment.dart'; + +part 'list_benefits_data.dart'; + +part 'get_benefits_data_by_key.dart'; + +part 'list_benefits_data_by_staff_id.dart'; + +part 'list_benefits_data_by_vendor_benefit_plan_id.dart'; + +part 'list_benefits_data_by_vendor_benefit_plan_ids.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 'list_task_comments.dart'; + +part 'get_task_comment_by_id.dart'; + +part 'get_task_comments_by_task_id.dart'; + +part 'list_team_hubs.dart'; + +part 'get_team_hub_by_id.dart'; + +part 'get_team_hubs_by_team_id.dart'; + +part 'list_team_hubs_by_owner_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_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_hub.dart'; + +part 'update_hub.dart'; + +part 'delete_hub.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_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 'create_staff_course.dart'; + +part 'update_staff_course.dart'; + +part 'delete_staff_course.dart'; + +part 'create_task.dart'; + +part 'update_task.dart'; + +part 'delete_task.dart'; + part 'create_tax_form.dart'; part 'update_tax_form.dart'; part 'delete_tax_form.dart'; +part 'list_vendor_rates.dart'; + +part 'get_vendor_rate_by_id.dart'; + +part 'create_business.dart'; + +part 'update_business.dart'; + +part 'delete_business.dart'; + part 'list_client_feedbacks.dart'; part 'get_client_feedback_by_id.dart'; @@ -24,17 +136,55 @@ part 'filter_client_feedbacks.dart'; part 'list_client_feedback_ratings_by_vendor_id.dart'; -part 'list_documents.dart'; +part 'create_member_task.dart'; -part 'get_document_by_id.dart'; +part 'delete_member_task.dart'; -part 'filter_documents.dart'; +part 'list_messages.dart'; -part 'create_level.dart'; +part 'get_message_by_id.dart'; -part 'update_level.dart'; +part 'get_messages_by_conversation_id.dart'; -part 'delete_level.dart'; +part 'list_vendor_benefit_plans.dart'; + +part 'get_vendor_benefit_plan_by_id.dart'; + +part 'list_vendor_benefit_plans_by_vendor_id.dart'; + +part 'list_active_vendor_benefit_plans_by_vendor_id.dart'; + +part 'filter_vendor_benefit_plans.dart'; + +part 'create_conversation.dart'; + +part 'update_conversation.dart'; + +part 'update_conversation_last_message.dart'; + +part 'delete_conversation.dart'; + +part 'create_course.dart'; + +part 'update_course.dart'; + +part 'delete_course.dart'; + +part 'list_recent_payments.dart'; + +part 'get_recent_payment_by_id.dart'; + +part 'list_recent_payments_by_staff_id.dart'; + +part 'list_recent_payments_by_application_id.dart'; + +part 'list_recent_payments_by_invoice_id.dart'; + +part 'list_recent_payments_by_status.dart'; + +part 'list_recent_payments_by_invoice_ids.dart'; + +part 'list_recent_payments_by_business_id.dart'; part 'list_shifts_for_coverage.dart'; @@ -74,18 +224,400 @@ part 'list_applications_for_performance.dart'; part 'list_staff_for_performance.dart'; +part 'create_role.dart'; + +part 'update_role.dart'; + +part 'delete_role.dart'; + +part 'list_role_categories.dart'; + +part 'get_role_category_by_id.dart'; + +part 'get_role_categories_by_category.dart'; + +part 'create_shift_role.dart'; + +part 'update_shift_role.dart'; + +part 'delete_shift_role.dart'; + +part 'create_team_member.dart'; + +part 'update_team_member.dart'; + +part 'update_team_member_invite_status.dart'; + +part 'accept_invite_by_code.dart'; + +part 'cancel_invite_by_code.dart'; + +part 'delete_team_member.dart'; + +part 'list_attire_options.dart'; + +part 'get_attire_option_by_id.dart'; + +part 'filter_attire_options.dart'; + +part 'create_recent_payment.dart'; + +part 'update_recent_payment.dart'; + +part 'delete_recent_payment.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_team_hub.dart'; + +part 'update_team_hub.dart'; + +part 'delete_team_hub.dart'; + part 'list_team_hud_departments.dart'; part 'get_team_hud_department_by_id.dart'; part 'list_team_hud_departments_by_team_hub_id.dart'; +part 'list_users.dart'; + +part 'get_user_by_id.dart'; + +part 'filter_users.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 'create_custom_rate_card.dart'; + +part 'update_custom_rate_card.dart'; + +part 'delete_custom_rate_card.dart'; + +part 'list_faq_datas.dart'; + +part 'get_faq_data_by_id.dart'; + +part 'filter_faq_datas.dart'; + +part 'create_team.dart'; + +part 'update_team.dart'; + +part 'delete_team.dart'; + +part 'get_vendor_by_id.dart'; + +part 'get_vendor_by_user_id.dart'; + +part 'list_vendors.dart'; + +part 'create_vendor_benefit_plan.dart'; + +part 'update_vendor_benefit_plan.dart'; + +part 'delete_vendor_benefit_plan.dart'; + +part 'list_levels.dart'; + +part 'get_level_by_id.dart'; + +part 'filter_levels.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 'create_task_comment.dart'; + +part 'update_task_comment.dart'; + +part 'delete_task_comment.dart'; + +part 'list_certificates.dart'; + +part 'get_certificate_by_id.dart'; + +part 'list_certificates_by_staff_id.dart'; + +part 'get_my_tasks.dart'; + +part 'get_member_task_by_id_key.dart'; + +part 'get_member_tasks_by_task_id.dart'; + +part 'create_role_category.dart'; + +part 'update_role_category.dart'; + +part 'delete_role_category.dart'; + +part 'list_tax_forms.dart'; + +part 'get_tax_form_by_id.dart'; + +part 'get_tax_forms_by_staff_id.dart'; + +part 'list_tax_forms_where.dart'; + +part 'create_vendor_rate.dart'; + +part 'update_vendor_rate.dart'; + +part 'delete_vendor_rate.dart'; + +part 'create_workforce.dart'; + +part 'update_workforce.dart'; + +part 'deactivate_workforce.dart'; + +part 'create_category.dart'; + +part 'update_category.dart'; + +part 'delete_category.dart'; + +part 'create_certificate.dart'; + +part 'update_certificate.dart'; + +part 'delete_certificate.dart'; + +part 'list_emergency_contacts.dart'; + +part 'get_emergency_contact_by_id.dart'; + +part 'get_emergency_contacts_by_staff_id.dart'; + +part 'create_staff_availability.dart'; + +part 'update_staff_availability.dart'; + +part 'delete_staff_availability.dart'; + +part 'create_client_feedback.dart'; + +part 'update_client_feedback.dart'; + +part 'delete_client_feedback.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_documents.dart'; + +part 'get_document_by_id.dart'; + +part 'filter_documents.dart'; + +part 'list_activity_logs.dart'; + +part 'get_activity_log_by_id.dart'; + +part 'list_activity_logs_by_user_id.dart'; + +part 'list_unread_activity_logs_by_user_id.dart'; + +part 'filter_activity_logs.dart'; + +part 'list_categories.dart'; + +part 'get_category_by_id.dart'; + +part 'filter_categories.dart'; + +part 'list_courses.dart'; + +part 'get_course_by_id.dart'; + +part 'filter_courses.dart'; + +part 'create_faq_data.dart'; + +part 'update_faq_data.dart'; + +part 'delete_faq_data.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 '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_shift_role_by_id.dart'; + +part 'list_shift_roles_by_shift_id.dart'; + +part 'list_shift_roles_by_role_id.dart'; + +part 'list_shift_roles_by_shift_id_and_time_range.dart'; + +part 'list_shift_roles_by_vendor_id.dart'; + +part 'list_shift_roles_by_business_and_date_range.dart'; + +part 'list_shift_roles_by_business_and_order.dart'; + +part 'list_shift_roles_by_business_date_range_completed_orders.dart'; + +part 'list_shift_roles_by_business_and_dates_summary.dart'; + +part 'get_completed_shifts_by_business_id.dart'; + +part 'list_custom_rate_cards.dart'; + +part 'get_custom_rate_card_by_id.dart'; + +part 'create_document.dart'; + +part 'update_document.dart'; + +part 'delete_document.dart'; + +part 'create_emergency_contact.dart'; + +part 'update_emergency_contact.dart'; + +part 'delete_emergency_contact.dart'; + +part 'list_hubs.dart'; + +part 'get_hub_by_id.dart'; + +part 'get_hubs_by_owner_id.dart'; + +part 'filter_hubs.dart'; + +part 'create_invoice_template.dart'; + +part 'update_invoice_template.dart'; + +part 'delete_invoice_template.dart'; + +part 'create_staff_availability_stats.dart'; + +part 'update_staff_availability_stats.dart'; + +part 'delete_staff_availability_stats.dart'; + +part 'list_tasks.dart'; + +part 'get_task_by_id.dart'; + +part 'get_tasks_by_owner_id.dart'; + +part 'filter_tasks.dart'; + +part 'list_teams.dart'; + +part 'get_team_by_id.dart'; + +part 'get_teams_by_owner_id.dart'; + part 'list_businesses.dart'; part 'get_businesses_by_user_id.dart'; part 'get_business_by_id.dart'; +part 'create_application.dart'; + +part 'update_application_status.dart'; + +part 'delete_application.dart'; + +part 'create_attire_option.dart'; + +part 'update_attire_option.dart'; + +part 'delete_attire_option.dart'; + +part 'create_message.dart'; + +part 'update_message.dart'; + +part 'delete_message.dart'; + +part 'create_order.dart'; + +part 'update_order.dart'; + +part 'delete_order.dart'; + +part 'create_staff_document.dart'; + +part 'update_staff_document.dart'; + +part 'delete_staff_document.dart'; + +part 'create_staff_role.dart'; + +part 'delete_staff_role.dart'; + +part 'create_team_hud_department.dart'; + +part 'update_team_hud_department.dart'; + +part 'delete_team_hud_department.dart'; + part 'list_applications.dart'; part 'get_application_by_id.dart'; @@ -108,139 +640,31 @@ part 'update_invoice.dart'; part 'delete_invoice.dart'; -part 'list_recent_payments.dart'; +part 'create_level.dart'; -part 'get_recent_payment_by_id.dart'; +part 'update_level.dart'; -part 'list_recent_payments_by_staff_id.dart'; +part 'delete_level.dart'; -part 'list_recent_payments_by_application_id.dart'; +part 'list_staff.dart'; -part 'list_recent_payments_by_invoice_id.dart'; +part 'get_staff_by_id.dart'; -part 'list_recent_payments_by_status.dart'; +part 'get_staff_by_user_id.dart'; -part 'list_recent_payments_by_invoice_ids.dart'; +part 'filter_staff.dart'; -part 'list_recent_payments_by_business_id.dart'; +part 'list_team_members.dart'; -part 'list_shifts.dart'; +part 'get_team_member_by_id.dart'; -part 'get_shift_by_id.dart'; +part 'get_team_members_by_team_id.dart'; -part 'filter_shifts.dart'; +part 'create_user.dart'; -part 'get_shifts_by_business_id.dart'; +part 'update_user.dart'; -part 'get_shifts_by_vendor_id.dart'; - -part 'list_tax_forms.dart'; - -part 'get_tax_form_by_id.dart'; - -part 'get_tax_forms_by_staff_id.dart'; - -part 'list_tax_forms_where.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_account.dart'; - -part 'update_account.dart'; - -part 'delete_account.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 'list_messages.dart'; - -part 'get_message_by_id.dart'; - -part 'get_messages_by_conversation_id.dart'; - -part 'create_staff_availability.dart'; - -part 'update_staff_availability.dart'; - -part 'delete_staff_availability.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 'create_team_hub.dart'; - -part 'update_team_hub.dart'; - -part 'delete_team_hub.dart'; - -part 'list_accounts.dart'; - -part 'get_account_by_id.dart'; - -part 'get_accounts_by_owner_id.dart'; - -part 'filter_accounts.dart'; - -part 'create_staff_document.dart'; - -part 'update_staff_document.dart'; - -part 'delete_staff_document.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_tasks.dart'; - -part 'get_task_by_id.dart'; - -part 'get_tasks_by_owner_id.dart'; - -part 'filter_tasks.dart'; - -part 'create_team_hud_department.dart'; - -part 'update_team_hud_department.dart'; - -part 'delete_team_hud_department.dart'; +part 'delete_user.dart'; part 'create_user_conversation.dart'; @@ -252,77 +676,35 @@ part 'increment_unread_for_user.dart'; part 'delete_user_conversation.dart'; -part 'list_certificates.dart'; +part 'create_vendor.dart'; -part 'get_certificate_by_id.dart'; +part 'update_vendor.dart'; -part 'list_certificates_by_staff_id.dart'; +part 'delete_vendor.dart'; -part 'list_staff_availability_stats.dart'; +part 'create_account.dart'; -part 'get_staff_availability_stats_by_staff_id.dart'; +part 'update_account.dart'; -part 'filter_staff_availability_stats.dart'; +part 'delete_account.dart'; -part 'create_vendor_benefit_plan.dart'; +part 'list_accounts.dart'; -part 'update_vendor_benefit_plan.dart'; +part 'get_account_by_id.dart'; -part 'delete_vendor_benefit_plan.dart'; +part 'get_accounts_by_owner_id.dart'; -part 'create_certificate.dart'; +part 'filter_accounts.dart'; -part 'update_certificate.dart'; +part 'create_activity_log.dart'; -part 'delete_certificate.dart'; +part 'update_activity_log.dart'; -part 'create_hub.dart'; +part 'mark_activity_log_as_read.dart'; -part 'update_hub.dart'; +part 'mark_activity_logs_as_read.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_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 'list_role_categories.dart'; - -part 'get_role_category_by_id.dart'; - -part 'get_role_categories_by_category.dart'; - -part 'create_team_member.dart'; - -part 'update_team_member.dart'; - -part 'update_team_member_invite_status.dart'; - -part 'accept_invite_by_code.dart'; - -part 'cancel_invite_by_code.dart'; - -part 'delete_team_member.dart'; +part 'delete_activity_log.dart'; part 'list_assignments.dart'; @@ -336,17 +718,11 @@ part 'list_assignments_by_shift_role.dart'; part 'filter_assignments.dart'; -part 'list_attire_options.dart'; +part 'create_benefits_data.dart'; -part 'get_attire_option_by_id.dart'; +part 'update_benefits_data.dart'; -part 'filter_attire_options.dart'; - -part 'create_message.dart'; - -part 'update_message.dart'; - -part 'delete_message.dart'; +part 'delete_benefits_data.dart'; part 'create_shift.dart'; @@ -354,393 +730,17 @@ part 'update_shift.dart'; part 'delete_shift.dart'; -part 'get_shift_role_by_id.dart'; - -part 'list_shift_roles_by_shift_id.dart'; - -part 'list_shift_roles_by_role_id.dart'; - -part 'list_shift_roles_by_shift_id_and_time_range.dart'; - -part 'list_shift_roles_by_vendor_id.dart'; - -part 'list_shift_roles_by_business_and_date_range.dart'; - -part 'list_shift_roles_by_business_and_order.dart'; - -part 'list_shift_roles_by_business_date_range_completed_orders.dart'; - -part 'list_shift_roles_by_business_and_dates_summary.dart'; - -part 'get_completed_shifts_by_business_id.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 '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 'create_application.dart'; - -part 'update_application_status.dart'; - -part 'delete_application.dart'; - -part 'create_course.dart'; - -part 'update_course.dart'; - -part 'delete_course.dart'; - -part 'create_order.dart'; - -part 'update_order.dart'; - -part 'delete_order.dart'; - -part 'create_task.dart'; - -part 'update_task.dart'; - -part 'delete_task.dart'; - -part 'list_emergency_contacts.dart'; - -part 'get_emergency_contact_by_id.dart'; - -part 'get_emergency_contacts_by_staff_id.dart'; - -part 'create_shift_role.dart'; - -part 'update_shift_role.dart'; - -part 'delete_shift_role.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_course.dart'; - -part 'update_staff_course.dart'; - -part 'delete_staff_course.dart'; - -part 'create_staff_role.dart'; - -part 'delete_staff_role.dart'; - -part 'create_user.dart'; - -part 'update_user.dart'; - -part 'delete_user.dart'; - -part 'list_vendor_rates.dart'; - -part 'get_vendor_rate_by_id.dart'; - -part 'create_activity_log.dart'; - -part 'update_activity_log.dart'; - -part 'mark_activity_log_as_read.dart'; - -part 'mark_activity_logs_as_read.dart'; - -part 'delete_activity_log.dart'; - -part 'create_conversation.dart'; - -part 'update_conversation.dart'; - -part 'update_conversation_last_message.dart'; - -part 'delete_conversation.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_workforce.dart'; - -part 'update_workforce.dart'; - -part 'deactivate_workforce.dart'; - -part 'create_assignment.dart'; - -part 'update_assignment.dart'; - -part 'delete_assignment.dart'; - -part 'list_categories.dart'; - -part 'get_category_by_id.dart'; - -part 'filter_categories.dart'; - -part 'create_custom_rate_card.dart'; - -part 'update_custom_rate_card.dart'; - -part 'delete_custom_rate_card.dart'; - -part 'create_invoice_template.dart'; - -part 'update_invoice_template.dart'; - -part 'delete_invoice_template.dart'; - -part 'create_role_category.dart'; - -part 'update_role_category.dart'; - -part 'delete_role_category.dart'; - -part 'create_business.dart'; - -part 'update_business.dart'; - -part 'delete_business.dart'; - -part 'create_member_task.dart'; - -part 'delete_member_task.dart'; - -part 'get_my_tasks.dart'; - -part 'get_member_task_by_id_key.dart'; - -part 'get_member_tasks_by_task_id.dart'; - -part 'create_staff_availability_stats.dart'; - -part 'update_staff_availability_stats.dart'; - -part 'delete_staff_availability_stats.dart'; - -part 'create_task_comment.dart'; - -part 'update_task_comment.dart'; - -part 'delete_task_comment.dart'; - -part 'create_team.dart'; - -part 'update_team.dart'; - -part 'delete_team.dart'; - -part 'list_users.dart'; - -part 'get_user_by_id.dart'; - -part 'filter_users.dart'; - -part 'get_vendor_by_id.dart'; - -part 'get_vendor_by_user_id.dart'; - -part 'list_vendors.dart'; - -part 'create_benefits_data.dart'; - -part 'update_benefits_data.dart'; - -part 'delete_benefits_data.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 'create_document.dart'; - -part 'update_document.dart'; - -part 'delete_document.dart'; - -part 'create_faq_data.dart'; - -part 'update_faq_data.dart'; - -part 'delete_faq_data.dart'; - -part 'create_vendor.dart'; - -part 'update_vendor.dart'; - -part 'delete_vendor.dart'; - -part 'create_attire_option.dart'; - -part 'update_attire_option.dart'; - -part 'delete_attire_option.dart'; - -part 'create_recent_payment.dart'; - -part 'update_recent_payment.dart'; - -part 'delete_recent_payment.dart'; - -part 'create_role.dart'; - -part 'update_role.dart'; - -part 'delete_role.dart'; - part 'create_staff.dart'; part 'update_staff.dart'; part 'delete_staff.dart'; -part 'list_team_hubs.dart'; +part 'list_staff_availability_stats.dart'; -part 'get_team_hub_by_id.dart'; +part 'get_staff_availability_stats_by_staff_id.dart'; -part 'get_team_hubs_by_team_id.dart'; - -part 'list_team_hubs_by_owner_id.dart'; - -part 'list_vendor_benefit_plans.dart'; - -part 'get_vendor_benefit_plan_by_id.dart'; - -part 'list_vendor_benefit_plans_by_vendor_id.dart'; - -part 'list_active_vendor_benefit_plans_by_vendor_id.dart'; - -part 'filter_vendor_benefit_plans.dart'; - -part 'create_vendor_rate.dart'; - -part 'update_vendor_rate.dart'; - -part 'delete_vendor_rate.dart'; - -part 'list_custom_rate_cards.dart'; - -part 'get_custom_rate_card_by_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_task_comments.dart'; - -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 'list_activity_logs.dart'; - -part 'get_activity_log_by_id.dart'; - -part 'list_activity_logs_by_user_id.dart'; - -part 'list_unread_activity_logs_by_user_id.dart'; - -part 'filter_activity_logs.dart'; - -part 'list_benefits_data.dart'; - -part 'get_benefits_data_by_key.dart'; - -part 'list_benefits_data_by_staff_id.dart'; - -part 'list_benefits_data_by_vendor_benefit_plan_id.dart'; - -part 'list_benefits_data_by_vendor_benefit_plan_ids.dart'; - -part 'create_client_feedback.dart'; - -part 'update_client_feedback.dart'; - -part 'delete_client_feedback.dart'; - -part 'create_emergency_contact.dart'; - -part 'update_emergency_contact.dart'; - -part 'delete_emergency_contact.dart'; - -part 'list_faq_datas.dart'; - -part 'get_faq_data_by_id.dart'; - -part 'filter_faq_datas.dart'; +part 'filter_staff_availability_stats.dart'; @@ -2758,6 +2758,261 @@ class Unknown extends EnumValue { class ExampleConnector { + CreateAssignmentVariablesBuilder createAssignment ({required String workforceId, required String roleId, required String shiftId, }) { + return CreateAssignmentVariablesBuilder(dataConnect, workforceId: workforceId,roleId: roleId,shiftId: shiftId,); + } + + + UpdateAssignmentVariablesBuilder updateAssignment ({required String id, required String roleId, required String shiftId, }) { + return UpdateAssignmentVariablesBuilder(dataConnect, id: id,roleId: roleId,shiftId: shiftId,); + } + + + DeleteAssignmentVariablesBuilder deleteAssignment ({required String id, }) { + return DeleteAssignmentVariablesBuilder(dataConnect, id: id,); + } + + + ListBenefitsDataVariablesBuilder listBenefitsData () { + return ListBenefitsDataVariablesBuilder(dataConnect, ); + } + + + GetBenefitsDataByKeyVariablesBuilder getBenefitsDataByKey ({required String staffId, required String vendorBenefitPlanId, }) { + return GetBenefitsDataByKeyVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); + } + + + ListBenefitsDataByStaffIdVariablesBuilder listBenefitsDataByStaffId ({required String staffId, }) { + return ListBenefitsDataByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder listBenefitsDataByVendorBenefitPlanId ({required String vendorBenefitPlanId, }) { + return ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder(dataConnect, vendorBenefitPlanId: vendorBenefitPlanId,); + } + + + ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder listBenefitsDataByVendorBenefitPlanIds ({required List vendorBenefitPlanIds, }) { + return ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder(dataConnect, vendorBenefitPlanIds: vendorBenefitPlanIds,); + } + + + 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,); + } + + + ListTaskCommentsVariablesBuilder listTaskComments () { + return ListTaskCommentsVariablesBuilder(dataConnect, ); + } + + + GetTaskCommentByIdVariablesBuilder getTaskCommentById ({required String id, }) { + return GetTaskCommentByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetTaskCommentsByTaskIdVariablesBuilder getTaskCommentsByTaskId ({required String taskId, }) { + return GetTaskCommentsByTaskIdVariablesBuilder(dataConnect, taskId: taskId,); + } + + + ListTeamHubsVariablesBuilder listTeamHubs () { + return ListTeamHubsVariablesBuilder(dataConnect, ); + } + + + GetTeamHubByIdVariablesBuilder getTeamHubById ({required String id, }) { + return GetTeamHubByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetTeamHubsByTeamIdVariablesBuilder getTeamHubsByTeamId ({required String teamId, }) { + return GetTeamHubsByTeamIdVariablesBuilder(dataConnect, teamId: teamId,); + } + + + ListTeamHubsByOwnerIdVariablesBuilder listTeamHubsByOwnerId ({required String ownerId, }) { + return ListTeamHubsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); + } + + + 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, ); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + CreateTaskVariablesBuilder createTask ({required String taskName, required TaskPriority priority, required TaskStatus status, required String ownerId, }) { + return CreateTaskVariablesBuilder(dataConnect, taskName: taskName,priority: priority,status: status,ownerId: ownerId,); + } + + + UpdateTaskVariablesBuilder updateTask ({required String id, }) { + return UpdateTaskVariablesBuilder(dataConnect, id: id,); + } + + + DeleteTaskVariablesBuilder deleteTask ({required String id, }) { + return DeleteTaskVariablesBuilder(dataConnect, id: id,); + } + + 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,); } @@ -2773,6 +3028,31 @@ class ExampleConnector { } + ListVendorRatesVariablesBuilder listVendorRates () { + return ListVendorRatesVariablesBuilder(dataConnect, ); + } + + + 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,); + } + + ListClientFeedbacksVariablesBuilder listClientFeedbacks () { return ListClientFeedbacksVariablesBuilder(dataConnect, ); } @@ -2808,33 +3088,128 @@ class ExampleConnector { } - ListDocumentsVariablesBuilder listDocuments () { - return ListDocumentsVariablesBuilder(dataConnect, ); + CreateMemberTaskVariablesBuilder createMemberTask ({required String teamMemberId, required String taskId, }) { + return CreateMemberTaskVariablesBuilder(dataConnect, teamMemberId: teamMemberId,taskId: taskId,); } - GetDocumentByIdVariablesBuilder getDocumentById ({required String id, }) { - return GetDocumentByIdVariablesBuilder(dataConnect, id: id,); + DeleteMemberTaskVariablesBuilder deleteMemberTask ({required String teamMemberId, required String taskId, }) { + return DeleteMemberTaskVariablesBuilder(dataConnect, teamMemberId: teamMemberId,taskId: taskId,); } - FilterDocumentsVariablesBuilder filterDocuments () { - return FilterDocumentsVariablesBuilder(dataConnect, ); + ListMessagesVariablesBuilder listMessages () { + return ListMessagesVariablesBuilder(dataConnect, ); } - CreateLevelVariablesBuilder createLevel ({required String name, required int xpRequired, }) { - return CreateLevelVariablesBuilder(dataConnect, name: name,xpRequired: xpRequired,); + GetMessageByIdVariablesBuilder getMessageById ({required String id, }) { + return GetMessageByIdVariablesBuilder(dataConnect, id: id,); } - UpdateLevelVariablesBuilder updateLevel ({required String id, }) { - return UpdateLevelVariablesBuilder(dataConnect, id: id,); + GetMessagesByConversationIdVariablesBuilder getMessagesByConversationId ({required String conversationId, }) { + return GetMessagesByConversationIdVariablesBuilder(dataConnect, conversationId: conversationId,); } - DeleteLevelVariablesBuilder deleteLevel ({required String id, }) { - return DeleteLevelVariablesBuilder(dataConnect, id: id,); + ListVendorBenefitPlansVariablesBuilder listVendorBenefitPlans () { + return ListVendorBenefitPlansVariablesBuilder(dataConnect, ); + } + + + GetVendorBenefitPlanByIdVariablesBuilder getVendorBenefitPlanById ({required String id, }) { + return GetVendorBenefitPlanByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListVendorBenefitPlansByVendorIdVariablesBuilder listVendorBenefitPlansByVendorId ({required String vendorId, }) { + return ListVendorBenefitPlansByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); + } + + + ListActiveVendorBenefitPlansByVendorIdVariablesBuilder listActiveVendorBenefitPlansByVendorId ({required String vendorId, }) { + return ListActiveVendorBenefitPlansByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); + } + + + FilterVendorBenefitPlansVariablesBuilder filterVendorBenefitPlans () { + return FilterVendorBenefitPlansVariablesBuilder(dataConnect, ); + } + + + 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,); + } + + + 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,); + } + + + ListRecentPaymentsVariablesBuilder listRecentPayments () { + return ListRecentPaymentsVariablesBuilder(dataConnect, ); + } + + + GetRecentPaymentByIdVariablesBuilder getRecentPaymentById ({required String id, }) { + return GetRecentPaymentByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListRecentPaymentsByStaffIdVariablesBuilder listRecentPaymentsByStaffId ({required String staffId, }) { + return ListRecentPaymentsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + ListRecentPaymentsByApplicationIdVariablesBuilder listRecentPaymentsByApplicationId ({required String applicationId, }) { + return ListRecentPaymentsByApplicationIdVariablesBuilder(dataConnect, applicationId: applicationId,); + } + + + ListRecentPaymentsByInvoiceIdVariablesBuilder listRecentPaymentsByInvoiceId ({required String invoiceId, }) { + return ListRecentPaymentsByInvoiceIdVariablesBuilder(dataConnect, invoiceId: invoiceId,); + } + + + ListRecentPaymentsByStatusVariablesBuilder listRecentPaymentsByStatus ({required RecentPaymentStatus status, }) { + return ListRecentPaymentsByStatusVariablesBuilder(dataConnect, status: status,); + } + + + ListRecentPaymentsByInvoiceIdsVariablesBuilder listRecentPaymentsByInvoiceIds ({required List invoiceIds, }) { + return ListRecentPaymentsByInvoiceIdsVariablesBuilder(dataConnect, invoiceIds: invoiceIds,); + } + + + ListRecentPaymentsByBusinessIdVariablesBuilder listRecentPaymentsByBusinessId ({required String businessId, }) { + return ListRecentPaymentsByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); } @@ -2933,6 +3308,146 @@ class ExampleConnector { } + CreateRoleVariablesBuilder createRole ({required String name, required double costPerHour, required String vendorId, required String roleCategoryId, }) { + return CreateRoleVariablesBuilder(dataConnect, name: name,costPerHour: costPerHour,vendorId: vendorId,roleCategoryId: roleCategoryId,); + } + + + UpdateRoleVariablesBuilder updateRole ({required String id, required String roleCategoryId, }) { + return UpdateRoleVariablesBuilder(dataConnect, id: id,roleCategoryId: roleCategoryId,); + } + + + DeleteRoleVariablesBuilder deleteRole ({required String id, }) { + return DeleteRoleVariablesBuilder(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,); + } + + + 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,); + } + + + CreateTeamMemberVariablesBuilder createTeamMember ({required String teamId, required TeamMemberRole role, required String userId, }) { + return CreateTeamMemberVariablesBuilder(dataConnect, teamId: teamId,role: role,userId: userId,); + } + + + UpdateTeamMemberVariablesBuilder updateTeamMember ({required String id, }) { + return UpdateTeamMemberVariablesBuilder(dataConnect, id: id,); + } + + + UpdateTeamMemberInviteStatusVariablesBuilder updateTeamMemberInviteStatus ({required String id, required TeamMemberInviteStatus inviteStatus, }) { + return UpdateTeamMemberInviteStatusVariablesBuilder(dataConnect, id: id,inviteStatus: inviteStatus,); + } + + + AcceptInviteByCodeVariablesBuilder acceptInviteByCode ({required String inviteCode, }) { + return AcceptInviteByCodeVariablesBuilder(dataConnect, inviteCode: inviteCode,); + } + + + CancelInviteByCodeVariablesBuilder cancelInviteByCode ({required String inviteCode, }) { + return CancelInviteByCodeVariablesBuilder(dataConnect, inviteCode: inviteCode,); + } + + + DeleteTeamMemberVariablesBuilder deleteTeamMember ({required String id, }) { + return DeleteTeamMemberVariablesBuilder(dataConnect, id: id,); + } + + + ListAttireOptionsVariablesBuilder listAttireOptions () { + return ListAttireOptionsVariablesBuilder(dataConnect, ); + } + + + GetAttireOptionByIdVariablesBuilder getAttireOptionById ({required String id, }) { + return GetAttireOptionByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterAttireOptionsVariablesBuilder filterAttireOptions () { + return FilterAttireOptionsVariablesBuilder(dataConnect, ); + } + + + CreateRecentPaymentVariablesBuilder createRecentPayment ({required String staffId, required String applicationId, required String invoiceId, }) { + return CreateRecentPaymentVariablesBuilder(dataConnect, staffId: staffId,applicationId: applicationId,invoiceId: invoiceId,); + } + + + UpdateRecentPaymentVariablesBuilder updateRecentPayment ({required String id, }) { + return UpdateRecentPaymentVariablesBuilder(dataConnect, id: id,); + } + + + DeleteRecentPaymentVariablesBuilder deleteRecentPayment ({required String id, }) { + return DeleteRecentPaymentVariablesBuilder(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,); + } + + + 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,); + } + + ListTeamHudDepartmentsVariablesBuilder listTeamHudDepartments () { return ListTeamHudDepartmentsVariablesBuilder(dataConnect, ); } @@ -2948,6 +3463,721 @@ class ExampleConnector { } + ListUsersVariablesBuilder listUsers () { + return ListUsersVariablesBuilder(dataConnect, ); + } + + + GetUserByIdVariablesBuilder getUserById ({required String id, }) { + return GetUserByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterUsersVariablesBuilder filterUsers () { + return FilterUsersVariablesBuilder(dataConnect, ); + } + + + 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, ); + } + + + 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,); + } + + + ListFaqDatasVariablesBuilder listFaqDatas () { + return ListFaqDatasVariablesBuilder(dataConnect, ); + } + + + GetFaqDataByIdVariablesBuilder getFaqDataById ({required String id, }) { + return GetFaqDataByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterFaqDatasVariablesBuilder filterFaqDatas () { + return FilterFaqDatasVariablesBuilder(dataConnect, ); + } + + + 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,); + } + + + 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, ); + } + + + 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,); + } + + + ListLevelsVariablesBuilder listLevels () { + return ListLevelsVariablesBuilder(dataConnect, ); + } + + + GetLevelByIdVariablesBuilder getLevelById ({required String id, }) { + return GetLevelByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterLevelsVariablesBuilder filterLevels () { + return FilterLevelsVariablesBuilder(dataConnect, ); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + ListTaxFormsWhereVariablesBuilder listTaxFormsWhere () { + return ListTaxFormsWhereVariablesBuilder(dataConnect, ); + } + + + 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,); + } + + + CreateWorkforceVariablesBuilder createWorkforce ({required String vendorId, required String staffId, required String workforceNumber, }) { + return CreateWorkforceVariablesBuilder(dataConnect, vendorId: vendorId,staffId: staffId,workforceNumber: workforceNumber,); + } + + + UpdateWorkforceVariablesBuilder updateWorkforce ({required String id, }) { + return UpdateWorkforceVariablesBuilder(dataConnect, id: id,); + } + + + DeactivateWorkforceVariablesBuilder deactivateWorkforce ({required String id, }) { + return DeactivateWorkforceVariablesBuilder(dataConnect, id: id,); + } + + + 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,); + } + + + 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,); + } + + + ListEmergencyContactsVariablesBuilder listEmergencyContacts () { + return ListEmergencyContactsVariablesBuilder(dataConnect, ); + } + + + GetEmergencyContactByIdVariablesBuilder getEmergencyContactById ({required String id, }) { + return GetEmergencyContactByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetEmergencyContactsByStaffIdVariablesBuilder getEmergencyContactsByStaffId ({required String staffId, }) { + return GetEmergencyContactsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + CreateStaffAvailabilityVariablesBuilder createStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { + return CreateStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); + } + + + UpdateStaffAvailabilityVariablesBuilder updateStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { + return UpdateStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); + } + + + DeleteStaffAvailabilityVariablesBuilder deleteStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { + return DeleteStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); + } + + + 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,); + } + + + 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, ); + } + + + ListDocumentsVariablesBuilder listDocuments () { + return ListDocumentsVariablesBuilder(dataConnect, ); + } + + + GetDocumentByIdVariablesBuilder getDocumentById ({required String id, }) { + return GetDocumentByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterDocumentsVariablesBuilder filterDocuments () { + return FilterDocumentsVariablesBuilder(dataConnect, ); + } + + + ListActivityLogsVariablesBuilder listActivityLogs () { + return ListActivityLogsVariablesBuilder(dataConnect, ); + } + + + GetActivityLogByIdVariablesBuilder getActivityLogById ({required String id, }) { + return GetActivityLogByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListActivityLogsByUserIdVariablesBuilder listActivityLogsByUserId ({required String userId, }) { + return ListActivityLogsByUserIdVariablesBuilder(dataConnect, userId: userId,); + } + + + ListUnreadActivityLogsByUserIdVariablesBuilder listUnreadActivityLogsByUserId ({required String userId, }) { + return ListUnreadActivityLogsByUserIdVariablesBuilder(dataConnect, userId: userId,); + } + + + FilterActivityLogsVariablesBuilder filterActivityLogs () { + return FilterActivityLogsVariablesBuilder(dataConnect, ); + } + + + ListCategoriesVariablesBuilder listCategories () { + return ListCategoriesVariablesBuilder(dataConnect, ); + } + + + GetCategoryByIdVariablesBuilder getCategoryById ({required String id, }) { + return GetCategoryByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterCategoriesVariablesBuilder filterCategories () { + return FilterCategoriesVariablesBuilder(dataConnect, ); + } + + + ListCoursesVariablesBuilder listCourses () { + return ListCoursesVariablesBuilder(dataConnect, ); + } + + + GetCourseByIdVariablesBuilder getCourseById ({required String id, }) { + return GetCourseByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterCoursesVariablesBuilder filterCourses () { + return FilterCoursesVariablesBuilder(dataConnect, ); + } + + + 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,); + } + + + 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,); + } + + + 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, ); + } + + + GetShiftRoleByIdVariablesBuilder getShiftRoleById ({required String shiftId, required String roleId, }) { + return GetShiftRoleByIdVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,); + } + + + ListShiftRolesByShiftIdVariablesBuilder listShiftRolesByShiftId ({required String shiftId, }) { + return ListShiftRolesByShiftIdVariablesBuilder(dataConnect, shiftId: shiftId,); + } + + + ListShiftRolesByRoleIdVariablesBuilder listShiftRolesByRoleId ({required String roleId, }) { + return ListShiftRolesByRoleIdVariablesBuilder(dataConnect, roleId: roleId,); + } + + + ListShiftRolesByShiftIdAndTimeRangeVariablesBuilder listShiftRolesByShiftIdAndTimeRange ({required String shiftId, required Timestamp start, required Timestamp end, }) { + return ListShiftRolesByShiftIdAndTimeRangeVariablesBuilder(dataConnect, shiftId: shiftId,start: start,end: end,); + } + + + ListShiftRolesByVendorIdVariablesBuilder listShiftRolesByVendorId ({required String vendorId, }) { + return ListShiftRolesByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); + } + + + ListShiftRolesByBusinessAndDateRangeVariablesBuilder listShiftRolesByBusinessAndDateRange ({required String businessId, required Timestamp start, required Timestamp end, }) { + return ListShiftRolesByBusinessAndDateRangeVariablesBuilder(dataConnect, businessId: businessId,start: start,end: end,); + } + + + ListShiftRolesByBusinessAndOrderVariablesBuilder listShiftRolesByBusinessAndOrder ({required String businessId, required String orderId, }) { + return ListShiftRolesByBusinessAndOrderVariablesBuilder(dataConnect, businessId: businessId,orderId: orderId,); + } + + + ListShiftRolesByBusinessDateRangeCompletedOrdersVariablesBuilder listShiftRolesByBusinessDateRangeCompletedOrders ({required String businessId, required Timestamp start, required Timestamp end, }) { + return ListShiftRolesByBusinessDateRangeCompletedOrdersVariablesBuilder(dataConnect, businessId: businessId,start: start,end: end,); + } + + + ListShiftRolesByBusinessAndDatesSummaryVariablesBuilder listShiftRolesByBusinessAndDatesSummary ({required String businessId, required Timestamp start, required Timestamp end, }) { + return ListShiftRolesByBusinessAndDatesSummaryVariablesBuilder(dataConnect, businessId: businessId,start: start,end: end,); + } + + + GetCompletedShiftsByBusinessIdVariablesBuilder getCompletedShiftsByBusinessId ({required String businessId, required Timestamp dateFrom, required Timestamp dateTo, }) { + return GetCompletedShiftsByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,dateFrom: dateFrom,dateTo: dateTo,); + } + + + ListCustomRateCardsVariablesBuilder listCustomRateCards () { + return ListCustomRateCardsVariablesBuilder(dataConnect, ); + } + + + GetCustomRateCardByIdVariablesBuilder getCustomRateCardById ({required String id, }) { + return GetCustomRateCardByIdVariablesBuilder(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,); + } + + + 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,); + } + + + 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, ); + } + + + 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,); + } + + + 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,); + } + + + ListTasksVariablesBuilder listTasks () { + return ListTasksVariablesBuilder(dataConnect, ); + } + + + GetTaskByIdVariablesBuilder getTaskById ({required String id, }) { + return GetTaskByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetTasksByOwnerIdVariablesBuilder getTasksByOwnerId ({required String ownerId, }) { + return GetTasksByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); + } + + + FilterTasksVariablesBuilder filterTasks () { + return FilterTasksVariablesBuilder(dataConnect, ); + } + + + 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,); + } + + ListBusinessesVariablesBuilder listBusinesses () { return ListBusinessesVariablesBuilder(dataConnect, ); } @@ -2963,6 +4193,106 @@ class ExampleConnector { } + 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,); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + UpdateStaffDocumentVariablesBuilder updateStaffDocument ({required String staffId, required String documentId, }) { + return UpdateStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); + } + + + DeleteStaffDocumentVariablesBuilder deleteStaffDocument ({required String staffId, required String documentId, }) { + return DeleteStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); + } + + + 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,); + } + + + CreateTeamHudDepartmentVariablesBuilder createTeamHudDepartment ({required String name, required String teamHubId, }) { + return CreateTeamHudDepartmentVariablesBuilder(dataConnect, name: name,teamHubId: teamHubId,); + } + + + UpdateTeamHudDepartmentVariablesBuilder updateTeamHudDepartment ({required String id, }) { + return UpdateTeamHudDepartmentVariablesBuilder(dataConnect, id: id,); + } + + + DeleteTeamHudDepartmentVariablesBuilder deleteTeamHudDepartment ({required String id, }) { + return DeleteTeamHudDepartmentVariablesBuilder(dataConnect, id: id,); + } + + ListApplicationsVariablesBuilder listApplications () { return ListApplicationsVariablesBuilder(dataConnect, ); } @@ -3018,338 +4348,68 @@ class ExampleConnector { } - ListRecentPaymentsVariablesBuilder listRecentPayments () { - return ListRecentPaymentsVariablesBuilder(dataConnect, ); + CreateLevelVariablesBuilder createLevel ({required String name, required int xpRequired, }) { + return CreateLevelVariablesBuilder(dataConnect, name: name,xpRequired: xpRequired,); } - GetRecentPaymentByIdVariablesBuilder getRecentPaymentById ({required String id, }) { - return GetRecentPaymentByIdVariablesBuilder(dataConnect, id: id,); + UpdateLevelVariablesBuilder updateLevel ({required String id, }) { + return UpdateLevelVariablesBuilder(dataConnect, id: id,); } - ListRecentPaymentsByStaffIdVariablesBuilder listRecentPaymentsByStaffId ({required String staffId, }) { - return ListRecentPaymentsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + DeleteLevelVariablesBuilder deleteLevel ({required String id, }) { + return DeleteLevelVariablesBuilder(dataConnect, id: id,); } - ListRecentPaymentsByApplicationIdVariablesBuilder listRecentPaymentsByApplicationId ({required String applicationId, }) { - return ListRecentPaymentsByApplicationIdVariablesBuilder(dataConnect, applicationId: applicationId,); + ListStaffVariablesBuilder listStaff () { + return ListStaffVariablesBuilder(dataConnect, ); } - ListRecentPaymentsByInvoiceIdVariablesBuilder listRecentPaymentsByInvoiceId ({required String invoiceId, }) { - return ListRecentPaymentsByInvoiceIdVariablesBuilder(dataConnect, invoiceId: invoiceId,); + GetStaffByIdVariablesBuilder getStaffById ({required String id, }) { + return GetStaffByIdVariablesBuilder(dataConnect, id: id,); } - ListRecentPaymentsByStatusVariablesBuilder listRecentPaymentsByStatus ({required RecentPaymentStatus status, }) { - return ListRecentPaymentsByStatusVariablesBuilder(dataConnect, status: status,); + GetStaffByUserIdVariablesBuilder getStaffByUserId ({required String userId, }) { + return GetStaffByUserIdVariablesBuilder(dataConnect, userId: userId,); } - ListRecentPaymentsByInvoiceIdsVariablesBuilder listRecentPaymentsByInvoiceIds ({required List invoiceIds, }) { - return ListRecentPaymentsByInvoiceIdsVariablesBuilder(dataConnect, invoiceIds: invoiceIds,); + FilterStaffVariablesBuilder filterStaff () { + return FilterStaffVariablesBuilder(dataConnect, ); } - ListRecentPaymentsByBusinessIdVariablesBuilder listRecentPaymentsByBusinessId ({required String businessId, }) { - return ListRecentPaymentsByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); + ListTeamMembersVariablesBuilder listTeamMembers () { + return ListTeamMembersVariablesBuilder(dataConnect, ); } - ListShiftsVariablesBuilder listShifts () { - return ListShiftsVariablesBuilder(dataConnect, ); + GetTeamMemberByIdVariablesBuilder getTeamMemberById ({required String id, }) { + return GetTeamMemberByIdVariablesBuilder(dataConnect, id: id,); } - GetShiftByIdVariablesBuilder getShiftById ({required String id, }) { - return GetShiftByIdVariablesBuilder(dataConnect, id: id,); + GetTeamMembersByTeamIdVariablesBuilder getTeamMembersByTeamId ({required String teamId, }) { + return GetTeamMembersByTeamIdVariablesBuilder(dataConnect, teamId: teamId,); } - FilterShiftsVariablesBuilder filterShifts () { - return FilterShiftsVariablesBuilder(dataConnect, ); + CreateUserVariablesBuilder createUser ({required String id, required UserBaseRole role, }) { + return CreateUserVariablesBuilder(dataConnect, id: id,role: role,); } - GetShiftsByBusinessIdVariablesBuilder getShiftsByBusinessId ({required String businessId, }) { - return GetShiftsByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); + UpdateUserVariablesBuilder updateUser ({required String id, }) { + return UpdateUserVariablesBuilder(dataConnect, id: id,); } - GetShiftsByVendorIdVariablesBuilder getShiftsByVendorId ({required String vendorId, }) { - return GetShiftsByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - 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,); - } - - - ListTaxFormsWhereVariablesBuilder listTaxFormsWhere () { - return ListTaxFormsWhereVariablesBuilder(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,); - } - - - 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,); - } - - - UpdateAccountVariablesBuilder updateAccount ({required String id, }) { - return UpdateAccountVariablesBuilder(dataConnect, id: id,); - } - - - DeleteAccountVariablesBuilder deleteAccount ({required String id, }) { - return DeleteAccountVariablesBuilder(dataConnect, id: id,); - } - - - 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, ); - } - - - 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,); - } - - - CreateStaffAvailabilityVariablesBuilder createStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { - return CreateStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); - } - - - UpdateStaffAvailabilityVariablesBuilder updateStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { - return UpdateStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); - } - - - DeleteStaffAvailabilityVariablesBuilder deleteStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { - return DeleteStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); - } - - - 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,); - } - - - 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,); - } - - - ListAccountsVariablesBuilder listAccounts () { - return ListAccountsVariablesBuilder(dataConnect, ); - } - - - GetAccountByIdVariablesBuilder getAccountById ({required String id, }) { - return GetAccountByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetAccountsByOwnerIdVariablesBuilder getAccountsByOwnerId ({required String ownerId, }) { - return GetAccountsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); - } - - - FilterAccountsVariablesBuilder filterAccounts () { - return FilterAccountsVariablesBuilder(dataConnect, ); - } - - - 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,); - } - - - UpdateStaffDocumentVariablesBuilder updateStaffDocument ({required String staffId, required String documentId, }) { - return UpdateStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); - } - - - DeleteStaffDocumentVariablesBuilder deleteStaffDocument ({required String staffId, required String documentId, }) { - return DeleteStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); - } - - - 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, ); - } - - - ListTasksVariablesBuilder listTasks () { - return ListTasksVariablesBuilder(dataConnect, ); - } - - - GetTaskByIdVariablesBuilder getTaskById ({required String id, }) { - return GetTaskByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetTasksByOwnerIdVariablesBuilder getTasksByOwnerId ({required String ownerId, }) { - return GetTasksByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); - } - - - FilterTasksVariablesBuilder filterTasks () { - return FilterTasksVariablesBuilder(dataConnect, ); - } - - - CreateTeamHudDepartmentVariablesBuilder createTeamHudDepartment ({required String name, required String teamHubId, }) { - return CreateTeamHudDepartmentVariablesBuilder(dataConnect, name: name,teamHubId: teamHubId,); - } - - - UpdateTeamHudDepartmentVariablesBuilder updateTeamHudDepartment ({required String id, }) { - return UpdateTeamHudDepartmentVariablesBuilder(dataConnect, id: id,); - } - - - DeleteTeamHudDepartmentVariablesBuilder deleteTeamHudDepartment ({required String id, }) { - return DeleteTeamHudDepartmentVariablesBuilder(dataConnect, id: id,); + DeleteUserVariablesBuilder deleteUser ({required String id, }) { + return DeleteUserVariablesBuilder(dataConnect, id: id,); } @@ -3378,183 +4438,78 @@ class ExampleConnector { } - ListCertificatesVariablesBuilder listCertificates () { - return ListCertificatesVariablesBuilder(dataConnect, ); + CreateVendorVariablesBuilder createVendor ({required String userId, required String companyName, }) { + return CreateVendorVariablesBuilder(dataConnect, userId: userId,companyName: companyName,); } - GetCertificateByIdVariablesBuilder getCertificateById ({required String id, }) { - return GetCertificateByIdVariablesBuilder(dataConnect, id: id,); + UpdateVendorVariablesBuilder updateVendor ({required String id, }) { + return UpdateVendorVariablesBuilder(dataConnect, id: id,); } - ListCertificatesByStaffIdVariablesBuilder listCertificatesByStaffId ({required String staffId, }) { - return ListCertificatesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + DeleteVendorVariablesBuilder deleteVendor ({required String id, }) { + return DeleteVendorVariablesBuilder(dataConnect, id: id,); } - ListStaffAvailabilityStatsVariablesBuilder listStaffAvailabilityStats () { - return ListStaffAvailabilityStatsVariablesBuilder(dataConnect, ); + 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,); } - GetStaffAvailabilityStatsByStaffIdVariablesBuilder getStaffAvailabilityStatsByStaffId ({required String staffId, }) { - return GetStaffAvailabilityStatsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + UpdateAccountVariablesBuilder updateAccount ({required String id, }) { + return UpdateAccountVariablesBuilder(dataConnect, id: id,); } - FilterStaffAvailabilityStatsVariablesBuilder filterStaffAvailabilityStats () { - return FilterStaffAvailabilityStatsVariablesBuilder(dataConnect, ); + DeleteAccountVariablesBuilder deleteAccount ({required String id, }) { + return DeleteAccountVariablesBuilder(dataConnect, id: id,); } - CreateVendorBenefitPlanVariablesBuilder createVendorBenefitPlan ({required String vendorId, required String title, }) { - return CreateVendorBenefitPlanVariablesBuilder(dataConnect, vendorId: vendorId,title: title,); + ListAccountsVariablesBuilder listAccounts () { + return ListAccountsVariablesBuilder(dataConnect, ); } - UpdateVendorBenefitPlanVariablesBuilder updateVendorBenefitPlan ({required String id, }) { - return UpdateVendorBenefitPlanVariablesBuilder(dataConnect, id: id,); + GetAccountByIdVariablesBuilder getAccountById ({required String id, }) { + return GetAccountByIdVariablesBuilder(dataConnect, id: id,); } - DeleteVendorBenefitPlanVariablesBuilder deleteVendorBenefitPlan ({required String id, }) { - return DeleteVendorBenefitPlanVariablesBuilder(dataConnect, id: id,); + GetAccountsByOwnerIdVariablesBuilder getAccountsByOwnerId ({required String ownerId, }) { + return GetAccountsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); } - CreateCertificateVariablesBuilder createCertificate ({required String name, required CertificateStatus status, required String staffId, }) { - return CreateCertificateVariablesBuilder(dataConnect, name: name,status: status,staffId: staffId,); + FilterAccountsVariablesBuilder filterAccounts () { + return FilterAccountsVariablesBuilder(dataConnect, ); } - UpdateCertificateVariablesBuilder updateCertificate ({required String id, }) { - return UpdateCertificateVariablesBuilder(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,); } - DeleteCertificateVariablesBuilder deleteCertificate ({required String id, }) { - return DeleteCertificateVariablesBuilder(dataConnect, id: id,); + UpdateActivityLogVariablesBuilder updateActivityLog ({required String id, }) { + return UpdateActivityLogVariablesBuilder(dataConnect, id: id,); } - CreateHubVariablesBuilder createHub ({required String name, required String ownerId, }) { - return CreateHubVariablesBuilder(dataConnect, name: name,ownerId: ownerId,); + MarkActivityLogAsReadVariablesBuilder markActivityLogAsRead ({required String id, }) { + return MarkActivityLogAsReadVariablesBuilder(dataConnect, id: id,); } - UpdateHubVariablesBuilder updateHub ({required String id, }) { - return UpdateHubVariablesBuilder(dataConnect, id: id,); + MarkActivityLogsAsReadVariablesBuilder markActivityLogsAsRead ({required List ids, }) { + return MarkActivityLogsAsReadVariablesBuilder(dataConnect, ids: ids,); } - 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, ); - } - - - 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,); - } - - - 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,); - } - - - CreateTeamMemberVariablesBuilder createTeamMember ({required String teamId, required TeamMemberRole role, required String userId, }) { - return CreateTeamMemberVariablesBuilder(dataConnect, teamId: teamId,role: role,userId: userId,); - } - - - UpdateTeamMemberVariablesBuilder updateTeamMember ({required String id, }) { - return UpdateTeamMemberVariablesBuilder(dataConnect, id: id,); - } - - - UpdateTeamMemberInviteStatusVariablesBuilder updateTeamMemberInviteStatus ({required String id, required TeamMemberInviteStatus inviteStatus, }) { - return UpdateTeamMemberInviteStatusVariablesBuilder(dataConnect, id: id,inviteStatus: inviteStatus,); - } - - - AcceptInviteByCodeVariablesBuilder acceptInviteByCode ({required String inviteCode, }) { - return AcceptInviteByCodeVariablesBuilder(dataConnect, inviteCode: inviteCode,); - } - - - CancelInviteByCodeVariablesBuilder cancelInviteByCode ({required String inviteCode, }) { - return CancelInviteByCodeVariablesBuilder(dataConnect, inviteCode: inviteCode,); - } - - - DeleteTeamMemberVariablesBuilder deleteTeamMember ({required String id, }) { - return DeleteTeamMemberVariablesBuilder(dataConnect, id: id,); + DeleteActivityLogVariablesBuilder deleteActivityLog ({required String id, }) { + return DeleteActivityLogVariablesBuilder(dataConnect, id: id,); } @@ -3588,33 +4543,18 @@ class ExampleConnector { } - ListAttireOptionsVariablesBuilder listAttireOptions () { - return ListAttireOptionsVariablesBuilder(dataConnect, ); + CreateBenefitsDataVariablesBuilder createBenefitsData ({required String vendorBenefitPlanId, required String staffId, required int current, }) { + return CreateBenefitsDataVariablesBuilder(dataConnect, vendorBenefitPlanId: vendorBenefitPlanId,staffId: staffId,current: current,); } - GetAttireOptionByIdVariablesBuilder getAttireOptionById ({required String id, }) { - return GetAttireOptionByIdVariablesBuilder(dataConnect, id: id,); + UpdateBenefitsDataVariablesBuilder updateBenefitsData ({required String staffId, required String vendorBenefitPlanId, }) { + return UpdateBenefitsDataVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); } - FilterAttireOptionsVariablesBuilder filterAttireOptions () { - return FilterAttireOptionsVariablesBuilder(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,); + DeleteBenefitsDataVariablesBuilder deleteBenefitsData ({required String staffId, required String vendorBenefitPlanId, }) { + return DeleteBenefitsDataVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); } @@ -3633,696 +4573,6 @@ class ExampleConnector { } - GetShiftRoleByIdVariablesBuilder getShiftRoleById ({required String shiftId, required String roleId, }) { - return GetShiftRoleByIdVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,); - } - - - ListShiftRolesByShiftIdVariablesBuilder listShiftRolesByShiftId ({required String shiftId, }) { - return ListShiftRolesByShiftIdVariablesBuilder(dataConnect, shiftId: shiftId,); - } - - - ListShiftRolesByRoleIdVariablesBuilder listShiftRolesByRoleId ({required String roleId, }) { - return ListShiftRolesByRoleIdVariablesBuilder(dataConnect, roleId: roleId,); - } - - - ListShiftRolesByShiftIdAndTimeRangeVariablesBuilder listShiftRolesByShiftIdAndTimeRange ({required String shiftId, required Timestamp start, required Timestamp end, }) { - return ListShiftRolesByShiftIdAndTimeRangeVariablesBuilder(dataConnect, shiftId: shiftId,start: start,end: end,); - } - - - ListShiftRolesByVendorIdVariablesBuilder listShiftRolesByVendorId ({required String vendorId, }) { - return ListShiftRolesByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - ListShiftRolesByBusinessAndDateRangeVariablesBuilder listShiftRolesByBusinessAndDateRange ({required String businessId, required Timestamp start, required Timestamp end, }) { - return ListShiftRolesByBusinessAndDateRangeVariablesBuilder(dataConnect, businessId: businessId,start: start,end: end,); - } - - - ListShiftRolesByBusinessAndOrderVariablesBuilder listShiftRolesByBusinessAndOrder ({required String businessId, required String orderId, }) { - return ListShiftRolesByBusinessAndOrderVariablesBuilder(dataConnect, businessId: businessId,orderId: orderId,); - } - - - ListShiftRolesByBusinessDateRangeCompletedOrdersVariablesBuilder listShiftRolesByBusinessDateRangeCompletedOrders ({required String businessId, required Timestamp start, required Timestamp end, }) { - return ListShiftRolesByBusinessDateRangeCompletedOrdersVariablesBuilder(dataConnect, businessId: businessId,start: start,end: end,); - } - - - ListShiftRolesByBusinessAndDatesSummaryVariablesBuilder listShiftRolesByBusinessAndDatesSummary ({required String businessId, required Timestamp start, required Timestamp end, }) { - return ListShiftRolesByBusinessAndDatesSummaryVariablesBuilder(dataConnect, businessId: businessId,start: start,end: end,); - } - - - GetCompletedShiftsByBusinessIdVariablesBuilder getCompletedShiftsByBusinessId ({required String businessId, required Timestamp dateFrom, required Timestamp dateTo, }) { - return GetCompletedShiftsByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,dateFrom: dateFrom,dateTo: dateTo,); - } - - - 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,); - } - - - 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, ); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - CreateTaskVariablesBuilder createTask ({required String taskName, required TaskPriority priority, required TaskStatus status, required String ownerId, }) { - return CreateTaskVariablesBuilder(dataConnect, taskName: taskName,priority: priority,status: status,ownerId: ownerId,); - } - - - UpdateTaskVariablesBuilder updateTask ({required String id, }) { - return UpdateTaskVariablesBuilder(dataConnect, id: id,); - } - - - DeleteTaskVariablesBuilder deleteTask ({required String id, }) { - return DeleteTaskVariablesBuilder(dataConnect, id: id,); - } - - - ListEmergencyContactsVariablesBuilder listEmergencyContacts () { - return ListEmergencyContactsVariablesBuilder(dataConnect, ); - } - - - GetEmergencyContactByIdVariablesBuilder getEmergencyContactById ({required String id, }) { - return GetEmergencyContactByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetEmergencyContactsByStaffIdVariablesBuilder getEmergencyContactsByStaffId ({required String staffId, }) { - return GetEmergencyContactsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - 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,); - } - - - 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, ); - } - - - 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,); - } - - - 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,); - } - - - CreateUserVariablesBuilder createUser ({required String id, required UserBaseRole role, }) { - return CreateUserVariablesBuilder(dataConnect, id: id,role: role,); - } - - - UpdateUserVariablesBuilder updateUser ({required String id, }) { - return UpdateUserVariablesBuilder(dataConnect, id: id,); - } - - - DeleteUserVariablesBuilder deleteUser ({required String id, }) { - return DeleteUserVariablesBuilder(dataConnect, id: id,); - } - - - ListVendorRatesVariablesBuilder listVendorRates () { - return ListVendorRatesVariablesBuilder(dataConnect, ); - } - - - GetVendorRateByIdVariablesBuilder getVendorRateById ({required String id, }) { - return GetVendorRateByIdVariablesBuilder(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,); - } - - - UpdateActivityLogVariablesBuilder updateActivityLog ({required String id, }) { - return UpdateActivityLogVariablesBuilder(dataConnect, id: id,); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - CreateWorkforceVariablesBuilder createWorkforce ({required String vendorId, required String staffId, required String workforceNumber, }) { - return CreateWorkforceVariablesBuilder(dataConnect, vendorId: vendorId,staffId: staffId,workforceNumber: workforceNumber,); - } - - - UpdateWorkforceVariablesBuilder updateWorkforce ({required String id, }) { - return UpdateWorkforceVariablesBuilder(dataConnect, id: id,); - } - - - DeactivateWorkforceVariablesBuilder deactivateWorkforce ({required String id, }) { - return DeactivateWorkforceVariablesBuilder(dataConnect, id: id,); - } - - - CreateAssignmentVariablesBuilder createAssignment ({required String workforceId, required String roleId, required String shiftId, }) { - return CreateAssignmentVariablesBuilder(dataConnect, workforceId: workforceId,roleId: roleId,shiftId: shiftId,); - } - - - UpdateAssignmentVariablesBuilder updateAssignment ({required String id, required String roleId, required String shiftId, }) { - return UpdateAssignmentVariablesBuilder(dataConnect, id: id,roleId: roleId,shiftId: shiftId,); - } - - - DeleteAssignmentVariablesBuilder deleteAssignment ({required String id, }) { - return DeleteAssignmentVariablesBuilder(dataConnect, id: id,); - } - - - ListCategoriesVariablesBuilder listCategories () { - return ListCategoriesVariablesBuilder(dataConnect, ); - } - - - GetCategoryByIdVariablesBuilder getCategoryById ({required String id, }) { - return GetCategoryByIdVariablesBuilder(dataConnect, id: id,); - } - - - FilterCategoriesVariablesBuilder filterCategories () { - return FilterCategoriesVariablesBuilder(dataConnect, ); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - ListUsersVariablesBuilder listUsers () { - return ListUsersVariablesBuilder(dataConnect, ); - } - - - GetUserByIdVariablesBuilder getUserById ({required String id, }) { - return GetUserByIdVariablesBuilder(dataConnect, id: id,); - } - - - FilterUsersVariablesBuilder filterUsers () { - return FilterUsersVariablesBuilder(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, ); - } - - - 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,); - } - - - 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, ); - } - - - 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,); - } - - - 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,); - } - - - CreateVendorVariablesBuilder createVendor ({required String userId, required String companyName, }) { - return CreateVendorVariablesBuilder(dataConnect, userId: userId,companyName: companyName,); - } - - - UpdateVendorVariablesBuilder updateVendor ({required String id, }) { - return UpdateVendorVariablesBuilder(dataConnect, id: id,); - } - - - DeleteVendorVariablesBuilder deleteVendor ({required String id, }) { - return DeleteVendorVariablesBuilder(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,); - } - - - CreateRecentPaymentVariablesBuilder createRecentPayment ({required String staffId, required String applicationId, required String invoiceId, }) { - return CreateRecentPaymentVariablesBuilder(dataConnect, staffId: staffId,applicationId: applicationId,invoiceId: invoiceId,); - } - - - UpdateRecentPaymentVariablesBuilder updateRecentPayment ({required String id, }) { - return UpdateRecentPaymentVariablesBuilder(dataConnect, id: id,); - } - - - DeleteRecentPaymentVariablesBuilder deleteRecentPayment ({required String id, }) { - return DeleteRecentPaymentVariablesBuilder(dataConnect, id: id,); - } - - - CreateRoleVariablesBuilder createRole ({required String name, required double costPerHour, required String vendorId, required String roleCategoryId, }) { - return CreateRoleVariablesBuilder(dataConnect, name: name,costPerHour: costPerHour,vendorId: vendorId,roleCategoryId: roleCategoryId,); - } - - - UpdateRoleVariablesBuilder updateRole ({required String id, required String roleCategoryId, }) { - return UpdateRoleVariablesBuilder(dataConnect, id: id,roleCategoryId: roleCategoryId,); - } - - - DeleteRoleVariablesBuilder deleteRole ({required String id, }) { - return DeleteRoleVariablesBuilder(dataConnect, id: id,); - } - - CreateStaffVariablesBuilder createStaff ({required String userId, required String fullName, }) { return CreateStaffVariablesBuilder(dataConnect, userId: userId,fullName: fullName,); } @@ -4338,268 +4588,18 @@ class ExampleConnector { } - ListTeamHubsVariablesBuilder listTeamHubs () { - return ListTeamHubsVariablesBuilder(dataConnect, ); + ListStaffAvailabilityStatsVariablesBuilder listStaffAvailabilityStats () { + return ListStaffAvailabilityStatsVariablesBuilder(dataConnect, ); } - GetTeamHubByIdVariablesBuilder getTeamHubById ({required String id, }) { - return GetTeamHubByIdVariablesBuilder(dataConnect, id: id,); + GetStaffAvailabilityStatsByStaffIdVariablesBuilder getStaffAvailabilityStatsByStaffId ({required String staffId, }) { + return GetStaffAvailabilityStatsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); } - GetTeamHubsByTeamIdVariablesBuilder getTeamHubsByTeamId ({required String teamId, }) { - return GetTeamHubsByTeamIdVariablesBuilder(dataConnect, teamId: teamId,); - } - - - ListTeamHubsByOwnerIdVariablesBuilder listTeamHubsByOwnerId ({required String ownerId, }) { - return ListTeamHubsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); - } - - - ListVendorBenefitPlansVariablesBuilder listVendorBenefitPlans () { - return ListVendorBenefitPlansVariablesBuilder(dataConnect, ); - } - - - GetVendorBenefitPlanByIdVariablesBuilder getVendorBenefitPlanById ({required String id, }) { - return GetVendorBenefitPlanByIdVariablesBuilder(dataConnect, id: id,); - } - - - ListVendorBenefitPlansByVendorIdVariablesBuilder listVendorBenefitPlansByVendorId ({required String vendorId, }) { - return ListVendorBenefitPlansByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - ListActiveVendorBenefitPlansByVendorIdVariablesBuilder listActiveVendorBenefitPlansByVendorId ({required String vendorId, }) { - return ListActiveVendorBenefitPlansByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - FilterVendorBenefitPlansVariablesBuilder filterVendorBenefitPlans () { - return FilterVendorBenefitPlansVariablesBuilder(dataConnect, ); - } - - - 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,); - } - - - ListCustomRateCardsVariablesBuilder listCustomRateCards () { - return ListCustomRateCardsVariablesBuilder(dataConnect, ); - } - - - GetCustomRateCardByIdVariablesBuilder getCustomRateCardById ({required String id, }) { - return GetCustomRateCardByIdVariablesBuilder(dataConnect, id: id,); - } - - - 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, ); - } - - - ListTaskCommentsVariablesBuilder listTaskComments () { - return ListTaskCommentsVariablesBuilder(dataConnect, ); - } - - - GetTaskCommentByIdVariablesBuilder getTaskCommentById ({required String id, }) { - return GetTaskCommentByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetTaskCommentsByTaskIdVariablesBuilder getTaskCommentsByTaskId ({required String taskId, }) { - return GetTaskCommentsByTaskIdVariablesBuilder(dataConnect, taskId: taskId,); - } - - - 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,); - } - - - ListActivityLogsVariablesBuilder listActivityLogs () { - return ListActivityLogsVariablesBuilder(dataConnect, ); - } - - - GetActivityLogByIdVariablesBuilder getActivityLogById ({required String id, }) { - return GetActivityLogByIdVariablesBuilder(dataConnect, id: id,); - } - - - ListActivityLogsByUserIdVariablesBuilder listActivityLogsByUserId ({required String userId, }) { - return ListActivityLogsByUserIdVariablesBuilder(dataConnect, userId: userId,); - } - - - ListUnreadActivityLogsByUserIdVariablesBuilder listUnreadActivityLogsByUserId ({required String userId, }) { - return ListUnreadActivityLogsByUserIdVariablesBuilder(dataConnect, userId: userId,); - } - - - FilterActivityLogsVariablesBuilder filterActivityLogs () { - return FilterActivityLogsVariablesBuilder(dataConnect, ); - } - - - ListBenefitsDataVariablesBuilder listBenefitsData () { - return ListBenefitsDataVariablesBuilder(dataConnect, ); - } - - - GetBenefitsDataByKeyVariablesBuilder getBenefitsDataByKey ({required String staffId, required String vendorBenefitPlanId, }) { - return GetBenefitsDataByKeyVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); - } - - - ListBenefitsDataByStaffIdVariablesBuilder listBenefitsDataByStaffId ({required String staffId, }) { - return ListBenefitsDataByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder listBenefitsDataByVendorBenefitPlanId ({required String vendorBenefitPlanId, }) { - return ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder(dataConnect, vendorBenefitPlanId: vendorBenefitPlanId,); - } - - - ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder listBenefitsDataByVendorBenefitPlanIds ({required List vendorBenefitPlanIds, }) { - return ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder(dataConnect, vendorBenefitPlanIds: vendorBenefitPlanIds,); - } - - - 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,); - } - - - 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,); - } - - - ListFaqDatasVariablesBuilder listFaqDatas () { - return ListFaqDatasVariablesBuilder(dataConnect, ); - } - - - GetFaqDataByIdVariablesBuilder getFaqDataById ({required String id, }) { - return GetFaqDataByIdVariablesBuilder(dataConnect, id: id,); - } - - - FilterFaqDatasVariablesBuilder filterFaqDatas () { - return FilterFaqDatasVariablesBuilder(dataConnect, ); + FilterStaffAvailabilityStatsVariablesBuilder filterStaffAvailabilityStats () { + return FilterStaffAvailabilityStatsVariablesBuilder(dataConnect, ); } 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..5d5af8fb 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 @@ -33,11 +33,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((dc.GetTaxFormsByStaffIdTaxForms e) => _mapToEntity(e)).toList(); // Check if required forms exist, create if not. final Set typesPresent = forms.map((TaxForm f) => f.type).toSet(); @@ -53,21 +53,142 @@ 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((dc.GetTaxFormsByStaffIdTaxForms e) => _mapToEntity(e)).toList(); } return forms; } Future _createInitialForm(String staffId, TaxFormType type) async { + await dataConnect + .createTaxForm( + staffId: staffId, + formType: + dc.TaxFormType.values.byName(TaxFormAdapter.typeToString(type)), + firstName: '', + lastName: '', + socialSN: 0, + address: '', + 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'), + ); + + final builder = dataConnect.updateTaxForm(id: form.id); + + // Map input fields to DataConnect variables + 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('ssn') && data['ssn'] != null) { + builder.socialSN(int.tryParse(data['ssn'].toString()) ?? 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); + } + + // Citizenship / Marital / Bool fields would go here. + // For now, mapping the core identity fields visible in the form logic. + // Assuming UI keys match these: + if (data.containsKey('citizenshipStatus')) { + // Need mapping for enum + } + + await builder.status(dc.TaxFormStatus.SUBMITTED).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(); + } + + TaxForm _mapToEntity(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, + '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, + // Add other fields as they become available in the UI + }; + String title = ''; String subtitle = ''; String description = ''; - if (type == TaxFormType.i9) { + if (form.formType == dc.TaxFormType.I9) { title = 'Form I-9'; subtitle = 'Employment Eligibility Verification'; description = 'Required for all new hires to verify identity.'; @@ -77,72 +198,15 @@ class TaxFormsRepositoryImpl implements TaxFormsRepository { description = 'Determines federal income tax withholding.'; } - await dataConnect - .createTaxForm( - staffId: staffId, - formType: dc.TaxFormType.values.byName(TaxFormAdapter.typeToString(type)), - title: title, - ) - .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(); - } - - @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(); - } - - TaxForm _mapToEntity(dc.GetTaxFormsBystaffIdTaxForms form) { return TaxFormAdapter.fromPrimitives( id: form.id, type: form.formType.stringValue, - title: form.title, - subtitle: form.subtitle, - description: form.description, + title: title, + subtitle: subtitle, + description: description, status: form.status.stringValue, staffId: form.staffId, - formData: form.formData, // Adapter expects dynamic + formData: formData, updatedAt: form.updatedAt?.toDateTime(), ); } 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() {