Files
2026-07-27 14:42:23 +02:00

217 lines
6.9 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'node_repository.dart';
// **************************************************************************
// RiverpodGenerator
// **************************************************************************
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint, type=warning
/// Null when no connection is active — mirrors [apiClientProvider] so every
/// downstream provider that watches this gets the same "no connection"
/// signal without re-deriving it from the connection state itself.
@ProviderFor(nodeRepository)
const nodeRepositoryProvider = NodeRepositoryProvider._();
/// Null when no connection is active — mirrors [apiClientProvider] so every
/// downstream provider that watches this gets the same "no connection"
/// signal without re-deriving it from the connection state itself.
final class NodeRepositoryProvider
extends
$FunctionalProvider<NodeRepository?, NodeRepository?, NodeRepository?>
with $Provider<NodeRepository?> {
/// Null when no connection is active — mirrors [apiClientProvider] so every
/// downstream provider that watches this gets the same "no connection"
/// signal without re-deriving it from the connection state itself.
const NodeRepositoryProvider._()
: super(
from: null,
argument: null,
retry: null,
name: r'nodeRepositoryProvider',
isAutoDispose: true,
dependencies: null,
$allTransitiveDependencies: null,
);
@override
String debugGetCreateSourceHash() => _$nodeRepositoryHash();
@$internal
@override
$ProviderElement<NodeRepository?> $createElement($ProviderPointer pointer) =>
$ProviderElement(pointer);
@override
NodeRepository? create(Ref ref) {
return nodeRepository(ref);
}
/// {@macro riverpod.override_with_value}
Override overrideWithValue(NodeRepository? value) {
return $ProviderOverride(
origin: this,
providerOverride: $SyncValueProvider<NodeRepository?>(value),
);
}
}
String _$nodeRepositoryHash() => r'c7cf7aac4b407fd4a21a56f5c3d34c81fa9abe5e';
/// The active connection's node info, or null if no connection is
/// configured. Exceptions from an unreachable/misbehaving node surface as
/// [AsyncError] — this is also the smoke-test path proving the client →
/// repository → provider chain works end to end against a live server.
@ProviderFor(currentNode)
const currentNodeProvider = CurrentNodeProvider._();
/// The active connection's node info, or null if no connection is
/// configured. Exceptions from an unreachable/misbehaving node surface as
/// [AsyncError] — this is also the smoke-test path proving the client →
/// repository → provider chain works end to end against a live server.
final class CurrentNodeProvider
extends
$FunctionalProvider<
AsyncValue<NodeInfo?>,
NodeInfo?,
FutureOr<NodeInfo?>
>
with $FutureModifier<NodeInfo?>, $FutureProvider<NodeInfo?> {
/// The active connection's node info, or null if no connection is
/// configured. Exceptions from an unreachable/misbehaving node surface as
/// [AsyncError] — this is also the smoke-test path proving the client →
/// repository → provider chain works end to end against a live server.
const CurrentNodeProvider._()
: super(
from: null,
argument: null,
retry: null,
name: r'currentNodeProvider',
isAutoDispose: true,
dependencies: null,
$allTransitiveDependencies: null,
);
@override
String debugGetCreateSourceHash() => _$currentNodeHash();
@$internal
@override
$FutureProviderElement<NodeInfo?> $createElement($ProviderPointer pointer) =>
$FutureProviderElement(pointer);
@override
FutureOr<NodeInfo?> create(Ref ref) {
return currentNode(ref);
}
}
String _$currentNodeHash() => r'e1742b62ba610695d0e8a560d554902fa29d128c';
/// The node-level backup config — manual-refresh only, same reasoning as
/// `servicesListProvider`: this backs a detail-heavy screen with its own
/// edit dialog, where a silent background refresh could yank state out
/// from under an in-progress edit.
@ProviderFor(backupConfig)
const backupConfigProvider = BackupConfigProvider._();
/// The node-level backup config — manual-refresh only, same reasoning as
/// `servicesListProvider`: this backs a detail-heavy screen with its own
/// edit dialog, where a silent background refresh could yank state out
/// from under an in-progress edit.
final class BackupConfigProvider
extends
$FunctionalProvider<
AsyncValue<BackupConfig?>,
BackupConfig?,
FutureOr<BackupConfig?>
>
with $FutureModifier<BackupConfig?>, $FutureProvider<BackupConfig?> {
/// The node-level backup config — manual-refresh only, same reasoning as
/// `servicesListProvider`: this backs a detail-heavy screen with its own
/// edit dialog, where a silent background refresh could yank state out
/// from under an in-progress edit.
const BackupConfigProvider._()
: super(
from: null,
argument: null,
retry: null,
name: r'backupConfigProvider',
isAutoDispose: true,
dependencies: null,
$allTransitiveDependencies: null,
);
@override
String debugGetCreateSourceHash() => _$backupConfigHash();
@$internal
@override
$FutureProviderElement<BackupConfig?> $createElement(
$ProviderPointer pointer,
) => $FutureProviderElement(pointer);
@override
FutureOr<BackupConfig?> create(Ref ref) {
return backupConfig(ref);
}
}
String _$backupConfigHash() => r'd3eeedd7536dd8610b34b922bd5658c507c91efe';
/// The OS update log — manual-refresh only, same reasoning as the other
/// list providers in this app.
@ProviderFor(updatesList)
const updatesListProvider = UpdatesListProvider._();
/// The OS update log — manual-refresh only, same reasoning as the other
/// list providers in this app.
final class UpdatesListProvider
extends
$FunctionalProvider<
AsyncValue<List<UpdateRecord>>,
List<UpdateRecord>,
FutureOr<List<UpdateRecord>>
>
with
$FutureModifier<List<UpdateRecord>>,
$FutureProvider<List<UpdateRecord>> {
/// The OS update log — manual-refresh only, same reasoning as the other
/// list providers in this app.
const UpdatesListProvider._()
: super(
from: null,
argument: null,
retry: null,
name: r'updatesListProvider',
isAutoDispose: true,
dependencies: null,
$allTransitiveDependencies: null,
);
@override
String debugGetCreateSourceHash() => _$updatesListHash();
@$internal
@override
$FutureProviderElement<List<UpdateRecord>> $createElement(
$ProviderPointer pointer,
) => $FutureProviderElement(pointer);
@override
FutureOr<List<UpdateRecord>> create(Ref ref) {
return updatesList(ref);
}
}
String _$updatesListHash() => r'01c6dd3b69dfd8f98e57f29e43e3fa60d014a6e4';