journal library

This library contain Journal and related classes.

It manages services issued by workers:

  • it store worker input as instance of ServiceOfJournal,
  • it send them to server,
  • it archive old services,
  • it send delete requests.

Provider journalProvider return Journal or one of it's subclasses:

The JournalArchive class is a cut version of Journal, that provide access to services at date == appStateProvider.atDate.

The JournalArchiveAll class is a version of JournalArchive, that provides access to all days.

Classes

AllDaysWithServices Providers
Dates at which there are exist archived services (aggregate from daysWithServicesProvider) for each Worker.
ArchiveReaderFamily
See also archiveReader.
ArchiveReaderProvider
See also archiveReader.
DaysWithServices Providers
Dates at which where exist archived services in Worker. Depend on hiveDateTimeBox .
DaysWithServicesFamily Providers
Dates at which where exist archived services in Worker. Depend on hiveDateTimeBox .
DaysWithServicesProvider Providers
Dates at which where exist archived services in Worker. Depend on hiveDateTimeBox .
HiveRepository Journal Providers
This class load/save List of ServiceOfJournal for Journal.
HiveRepositoryFamily Journal Providers
This class load/save List of ServiceOfJournal for Journal.
HiveRepositoryProvider Journal Providers
This class load/save List of ServiceOfJournal for Journal.
Journal Client-Server API Journal
Journal of services.
JournalArchive Journal
This class is for showing archived services at date state.atDate.
JournalArchiveAll Journal
Journal with all archived dates.
JournalArchiveSize Journal Providers UI Settings
Provider of setting - max amount of entries stored in Journal.
JournalFamily
See also journal.
JournalHttpInterface
This class send add/delete request of ServiceOfJournal to server.
JournalProvider
See also journal.
ServiceOfJournal Client-Server API Journal
This class is used to store one entry of Journal (one input service).
ServiceOfJournalAdapter
ServiceStateAdapter

Constants

archiveReaderProvider → const ArchiveReaderFamily
See also archiveReader.
daysWithServicesProvider → const DaysWithServicesFamily Providers
Dates at which where exist archived services in Worker. Depend on hiveDateTimeBox .
hiveRepositoryProvider → const HiveRepositoryFamily Journal Providers
This class load/save List of ServiceOfJournal for Journal.
journalProvider → const JournalFamily
See also journal.

Properties

allDaysWithServicesInited FutureProvider<Set<DateTime>> Providers
Wait for AllDaysWithServices.future() and return AllDaysWithServices.
final
allDaysWithServicesProvider NotifierProviderImpl<AllDaysWithServices, Set<DateTime>> Providers
Dates at which there are exist archived services (aggregate from daysWithServicesProvider) for each Worker.
final
journalArchiveSizeProvider AutoDisposeNotifierProviderImpl<JournalArchiveSize, int> Journal Providers UI Settings
Provider of setting - max amount of entries stored in Journal.
final

Functions

archiveReader(Ref<Object?> ref, String apiKey) List<ServiceOfJournal>
autoServiceOfJournal({required int servId, required int contractId, required int workerId, DateTime? provDate, ServiceState? state}) ServiceOfJournal
Helper for ServiceOfJournal constructor.
journal(Ref<Object?> ref, String apiKey) Journal

Enums

ServiceState Journal
These states are used to describe ServiceOfJournal.

Typedefs

ArchiveReaderRef = ProviderRef<List<ServiceOfJournal>>
JournalRef = ProviderRef<Journal>