fix: remove ignored files

This commit is contained in:
mso7nueh
2025-04-18 12:36:11 +03:00
parent 2ba130f875
commit 93236783c7
726 changed files with 818 additions and 131628 deletions

View File

@@ -1,217 +0,0 @@
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
part of 'card_model.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
CardModel _$CardModelFromJson(Map<String, dynamic> json) {
return _CardModel.fromJson(json);
}
/// @nodoc
mixin _$CardModel {
int get id => throw _privateConstructorUsedError;
@JsonKey(name: 'bank_pan')
String get cardNumber => throw _privateConstructorUsedError;
@JsonKey(name: 'is_default', fromJson: parseBool)
bool get isDefault => throw _privateConstructorUsedError;
/// Serializes this CardModel to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of CardModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$CardModelCopyWith<CardModel> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $CardModelCopyWith<$Res> {
factory $CardModelCopyWith(CardModel value, $Res Function(CardModel) then) =
_$CardModelCopyWithImpl<$Res, CardModel>;
@useResult
$Res call(
{int id,
@JsonKey(name: 'bank_pan') String cardNumber,
@JsonKey(name: 'is_default', fromJson: parseBool) bool isDefault});
}
/// @nodoc
class _$CardModelCopyWithImpl<$Res, $Val extends CardModel>
implements $CardModelCopyWith<$Res> {
_$CardModelCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of CardModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? cardNumber = null,
Object? isDefault = null,
}) {
return _then(_value.copyWith(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int,
cardNumber: null == cardNumber
? _value.cardNumber
: cardNumber // ignore: cast_nullable_to_non_nullable
as String,
isDefault: null == isDefault
? _value.isDefault
: isDefault // ignore: cast_nullable_to_non_nullable
as bool,
) as $Val);
}
}
/// @nodoc
abstract class _$$CardModelImplCopyWith<$Res>
implements $CardModelCopyWith<$Res> {
factory _$$CardModelImplCopyWith(
_$CardModelImpl value, $Res Function(_$CardModelImpl) then) =
__$$CardModelImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{int id,
@JsonKey(name: 'bank_pan') String cardNumber,
@JsonKey(name: 'is_default', fromJson: parseBool) bool isDefault});
}
/// @nodoc
class __$$CardModelImplCopyWithImpl<$Res>
extends _$CardModelCopyWithImpl<$Res, _$CardModelImpl>
implements _$$CardModelImplCopyWith<$Res> {
__$$CardModelImplCopyWithImpl(
_$CardModelImpl _value, $Res Function(_$CardModelImpl) _then)
: super(_value, _then);
/// Create a copy of CardModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? cardNumber = null,
Object? isDefault = null,
}) {
return _then(_$CardModelImpl(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int,
cardNumber: null == cardNumber
? _value.cardNumber
: cardNumber // ignore: cast_nullable_to_non_nullable
as String,
isDefault: null == isDefault
? _value.isDefault
: isDefault // ignore: cast_nullable_to_non_nullable
as bool,
));
}
}
/// @nodoc
@JsonSerializable()
class _$CardModelImpl implements _CardModel {
_$CardModelImpl(
{required this.id,
@JsonKey(name: 'bank_pan') required this.cardNumber,
@JsonKey(name: 'is_default', fromJson: parseBool)
required this.isDefault});
factory _$CardModelImpl.fromJson(Map<String, dynamic> json) =>
_$$CardModelImplFromJson(json);
@override
final int id;
@override
@JsonKey(name: 'bank_pan')
final String cardNumber;
@override
@JsonKey(name: 'is_default', fromJson: parseBool)
final bool isDefault;
@override
String toString() {
return 'CardModel(id: $id, cardNumber: $cardNumber, isDefault: $isDefault)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$CardModelImpl &&
(identical(other.id, id) || other.id == id) &&
(identical(other.cardNumber, cardNumber) ||
other.cardNumber == cardNumber) &&
(identical(other.isDefault, isDefault) ||
other.isDefault == isDefault));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, id, cardNumber, isDefault);
/// Create a copy of CardModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$CardModelImplCopyWith<_$CardModelImpl> get copyWith =>
__$$CardModelImplCopyWithImpl<_$CardModelImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$CardModelImplToJson(
this,
);
}
}
abstract class _CardModel implements CardModel {
factory _CardModel(
{required final int id,
@JsonKey(name: 'bank_pan') required final String cardNumber,
@JsonKey(name: 'is_default', fromJson: parseBool)
required final bool isDefault}) = _$CardModelImpl;
factory _CardModel.fromJson(Map<String, dynamic> json) =
_$CardModelImpl.fromJson;
@override
int get id;
@override
@JsonKey(name: 'bank_pan')
String get cardNumber;
@override
@JsonKey(name: 'is_default', fromJson: parseBool)
bool get isDefault;
/// Create a copy of CardModel
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$CardModelImplCopyWith<_$CardModelImpl> get copyWith =>
throw _privateConstructorUsedError;
}

View File

@@ -1,21 +0,0 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'card_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
_$CardModelImpl _$$CardModelImplFromJson(Map<String, dynamic> json) =>
_$CardModelImpl(
id: (json['id'] as num).toInt(),
cardNumber: json['bank_pan'] as String,
isDefault: parseBool(json['is_default']),
);
Map<String, dynamic> _$$CardModelImplToJson(_$CardModelImpl instance) =>
<String, dynamic>{
'id': instance.id,
'bank_pan': instance.cardNumber,
'is_default': instance.isDefault,
};

View File

@@ -1,167 +0,0 @@
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
part of 'payment_url_model.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
PaymentUrlModel _$PaymentUrlModelFromJson(Map<String, dynamic> json) {
return _PaymentUrlModel.fromJson(json);
}
/// @nodoc
mixin _$PaymentUrlModel {
String get paymentUrl => throw _privateConstructorUsedError;
/// Serializes this PaymentUrlModel to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of PaymentUrlModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$PaymentUrlModelCopyWith<PaymentUrlModel> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $PaymentUrlModelCopyWith<$Res> {
factory $PaymentUrlModelCopyWith(
PaymentUrlModel value, $Res Function(PaymentUrlModel) then) =
_$PaymentUrlModelCopyWithImpl<$Res, PaymentUrlModel>;
@useResult
$Res call({String paymentUrl});
}
/// @nodoc
class _$PaymentUrlModelCopyWithImpl<$Res, $Val extends PaymentUrlModel>
implements $PaymentUrlModelCopyWith<$Res> {
_$PaymentUrlModelCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of PaymentUrlModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? paymentUrl = null,
}) {
return _then(_value.copyWith(
paymentUrl: null == paymentUrl
? _value.paymentUrl
: paymentUrl // ignore: cast_nullable_to_non_nullable
as String,
) as $Val);
}
}
/// @nodoc
abstract class _$$PaymentUrlModelImplCopyWith<$Res>
implements $PaymentUrlModelCopyWith<$Res> {
factory _$$PaymentUrlModelImplCopyWith(_$PaymentUrlModelImpl value,
$Res Function(_$PaymentUrlModelImpl) then) =
__$$PaymentUrlModelImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String paymentUrl});
}
/// @nodoc
class __$$PaymentUrlModelImplCopyWithImpl<$Res>
extends _$PaymentUrlModelCopyWithImpl<$Res, _$PaymentUrlModelImpl>
implements _$$PaymentUrlModelImplCopyWith<$Res> {
__$$PaymentUrlModelImplCopyWithImpl(
_$PaymentUrlModelImpl _value, $Res Function(_$PaymentUrlModelImpl) _then)
: super(_value, _then);
/// Create a copy of PaymentUrlModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? paymentUrl = null,
}) {
return _then(_$PaymentUrlModelImpl(
paymentUrl: null == paymentUrl
? _value.paymentUrl
: paymentUrl // ignore: cast_nullable_to_non_nullable
as String,
));
}
}
/// @nodoc
@JsonSerializable()
class _$PaymentUrlModelImpl implements _PaymentUrlModel {
_$PaymentUrlModelImpl({required this.paymentUrl});
factory _$PaymentUrlModelImpl.fromJson(Map<String, dynamic> json) =>
_$$PaymentUrlModelImplFromJson(json);
@override
final String paymentUrl;
@override
String toString() {
return 'PaymentUrlModel(paymentUrl: $paymentUrl)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$PaymentUrlModelImpl &&
(identical(other.paymentUrl, paymentUrl) ||
other.paymentUrl == paymentUrl));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, paymentUrl);
/// Create a copy of PaymentUrlModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$PaymentUrlModelImplCopyWith<_$PaymentUrlModelImpl> get copyWith =>
__$$PaymentUrlModelImplCopyWithImpl<_$PaymentUrlModelImpl>(
this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$PaymentUrlModelImplToJson(
this,
);
}
}
abstract class _PaymentUrlModel implements PaymentUrlModel {
factory _PaymentUrlModel({required final String paymentUrl}) =
_$PaymentUrlModelImpl;
factory _PaymentUrlModel.fromJson(Map<String, dynamic> json) =
_$PaymentUrlModelImpl.fromJson;
@override
String get paymentUrl;
/// Create a copy of PaymentUrlModel
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$PaymentUrlModelImplCopyWith<_$PaymentUrlModelImpl> get copyWith =>
throw _privateConstructorUsedError;
}

View File

@@ -1,19 +0,0 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'payment_url_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
_$PaymentUrlModelImpl _$$PaymentUrlModelImplFromJson(
Map<String, dynamic> json) =>
_$PaymentUrlModelImpl(
paymentUrl: json['paymentUrl'] as String,
);
Map<String, dynamic> _$$PaymentUrlModelImplToJson(
_$PaymentUrlModelImpl instance) =>
<String, dynamic>{
'paymentUrl': instance.paymentUrl,
};

View File

@@ -1,193 +0,0 @@
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
part of 'user_cards_state.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
/// @nodoc
mixin _$UserCardsState {
List<CardModel> get cards => throw _privateConstructorUsedError;
String? get error => throw _privateConstructorUsedError;
BaseState get state => throw _privateConstructorUsedError;
/// Create a copy of UserCardsState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$UserCardsStateCopyWith<UserCardsState> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $UserCardsStateCopyWith<$Res> {
factory $UserCardsStateCopyWith(
UserCardsState value, $Res Function(UserCardsState) then) =
_$UserCardsStateCopyWithImpl<$Res, UserCardsState>;
@useResult
$Res call({List<CardModel> cards, String? error, BaseState state});
}
/// @nodoc
class _$UserCardsStateCopyWithImpl<$Res, $Val extends UserCardsState>
implements $UserCardsStateCopyWith<$Res> {
_$UserCardsStateCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of UserCardsState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? cards = null,
Object? error = freezed,
Object? state = null,
}) {
return _then(_value.copyWith(
cards: null == cards
? _value.cards
: cards // ignore: cast_nullable_to_non_nullable
as List<CardModel>,
error: freezed == error
? _value.error
: error // ignore: cast_nullable_to_non_nullable
as String?,
state: null == state
? _value.state
: state // ignore: cast_nullable_to_non_nullable
as BaseState,
) as $Val);
}
}
/// @nodoc
abstract class _$$UserCardsStateImplCopyWith<$Res>
implements $UserCardsStateCopyWith<$Res> {
factory _$$UserCardsStateImplCopyWith(_$UserCardsStateImpl value,
$Res Function(_$UserCardsStateImpl) then) =
__$$UserCardsStateImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({List<CardModel> cards, String? error, BaseState state});
}
/// @nodoc
class __$$UserCardsStateImplCopyWithImpl<$Res>
extends _$UserCardsStateCopyWithImpl<$Res, _$UserCardsStateImpl>
implements _$$UserCardsStateImplCopyWith<$Res> {
__$$UserCardsStateImplCopyWithImpl(
_$UserCardsStateImpl _value, $Res Function(_$UserCardsStateImpl) _then)
: super(_value, _then);
/// Create a copy of UserCardsState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? cards = null,
Object? error = freezed,
Object? state = null,
}) {
return _then(_$UserCardsStateImpl(
cards: null == cards
? _value._cards
: cards // ignore: cast_nullable_to_non_nullable
as List<CardModel>,
error: freezed == error
? _value.error
: error // ignore: cast_nullable_to_non_nullable
as String?,
state: null == state
? _value.state
: state // ignore: cast_nullable_to_non_nullable
as BaseState,
));
}
}
/// @nodoc
class _$UserCardsStateImpl implements _UserCardsState {
_$UserCardsStateImpl(
{final List<CardModel> cards = const [],
this.error = null,
this.state = BaseState.initial})
: _cards = cards;
final List<CardModel> _cards;
@override
@JsonKey()
List<CardModel> get cards {
if (_cards is EqualUnmodifiableListView) return _cards;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_cards);
}
@override
@JsonKey()
final String? error;
@override
@JsonKey()
final BaseState state;
@override
String toString() {
return 'UserCardsState(cards: $cards, error: $error, state: $state)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$UserCardsStateImpl &&
const DeepCollectionEquality().equals(other._cards, _cards) &&
(identical(other.error, error) || other.error == error) &&
(identical(other.state, state) || other.state == state));
}
@override
int get hashCode => Object.hash(
runtimeType, const DeepCollectionEquality().hash(_cards), error, state);
/// Create a copy of UserCardsState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$UserCardsStateImplCopyWith<_$UserCardsStateImpl> get copyWith =>
__$$UserCardsStateImplCopyWithImpl<_$UserCardsStateImpl>(
this, _$identity);
}
abstract class _UserCardsState implements UserCardsState {
factory _UserCardsState(
{final List<CardModel> cards,
final String? error,
final BaseState state}) = _$UserCardsStateImpl;
@override
List<CardModel> get cards;
@override
String? get error;
@override
BaseState get state;
/// Create a copy of UserCardsState
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$UserCardsStateImplCopyWith<_$UserCardsStateImpl> get copyWith =>
throw _privateConstructorUsedError;
}

View File

@@ -1,140 +0,0 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'cards_service.dart';
// **************************************************************************
// RetrofitGenerator
// **************************************************************************
// ignore_for_file: unnecessary_brace_in_string_interps,no_leading_underscores_for_local_identifiers,unused_element,unnecessary_string_interpolations
class _CardsService implements CardsService {
_CardsService(this._dio, {this.baseUrl, this.errorLogger});
final Dio _dio;
String? baseUrl;
final ParseErrorLogger? errorLogger;
@override
Future<List<CardModel>> getCards() async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
const Map<String, dynamic>? _data = null;
final _options = _setStreamType<List<CardModel>>(
Options(method: 'GET', headers: _headers, extra: _extra)
.compose(
_dio.options,
'/api/finances/cards',
queryParameters: queryParameters,
data: _data,
)
.copyWith(baseUrl: _combineBaseUrls(_dio.options.baseUrl, baseUrl)),
);
final _result = await _dio.fetch<List<dynamic>>(_options);
late List<CardModel> _value;
try {
_value = _result.data!
.map((dynamic i) => CardModel.fromJson(i as Map<String, dynamic>))
.toList();
} on Object catch (e, s) {
errorLogger?.logError(e, s, _options);
rethrow;
}
return _value;
}
@override
Future<PaymentUrlModel> addCard() async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
const Map<String, dynamic>? _data = null;
final _options = _setStreamType<PaymentUrlModel>(
Options(method: 'POST', headers: _headers, extra: _extra)
.compose(
_dio.options,
'/api/finances/cards/add',
queryParameters: queryParameters,
data: _data,
)
.copyWith(baseUrl: _combineBaseUrls(_dio.options.baseUrl, baseUrl)),
);
final _result = await _dio.fetch<Map<String, dynamic>>(_options);
late PaymentUrlModel _value;
try {
_value = PaymentUrlModel.fromJson(_result.data!);
} on Object catch (e, s) {
errorLogger?.logError(e, s, _options);
rethrow;
}
return _value;
}
@override
Future<void> markAsDefault({required int id}) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
const Map<String, dynamic>? _data = null;
final _options = _setStreamType<void>(
Options(method: 'POST', headers: _headers, extra: _extra)
.compose(
_dio.options,
'/api/finances/cards/${id}/default',
queryParameters: queryParameters,
data: _data,
)
.copyWith(baseUrl: _combineBaseUrls(_dio.options.baseUrl, baseUrl)),
);
await _dio.fetch<void>(_options);
}
@override
Future<void> deleteCard({required int id}) async {
final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{};
const Map<String, dynamic>? _data = null;
final _options = _setStreamType<void>(
Options(method: 'POST', headers: _headers, extra: _extra)
.compose(
_dio.options,
'/api/finances/cards/${id}/remove',
queryParameters: queryParameters,
data: _data,
)
.copyWith(baseUrl: _combineBaseUrls(_dio.options.baseUrl, baseUrl)),
);
await _dio.fetch<void>(_options);
}
RequestOptions _setStreamType<T>(RequestOptions requestOptions) {
if (T != dynamic &&
!(requestOptions.responseType == ResponseType.bytes ||
requestOptions.responseType == ResponseType.stream)) {
if (T == String) {
requestOptions.responseType = ResponseType.plain;
} else {
requestOptions.responseType = ResponseType.json;
}
}
return requestOptions;
}
String _combineBaseUrls(String dioBaseUrl, String? baseUrl) {
if (baseUrl == null || baseUrl.trim().isEmpty) {
return dioBaseUrl;
}
final url = Uri.parse(baseUrl);
if (url.isAbsolute) {
return url.toString();
}
return Uri.parse(dioBaseUrl).resolveUri(url).toString();
}
}