report category

This commit is contained in:
efrilm
2025-11-03 23:24:16 +07:00
parent 13941d4881
commit 2a44ce023e
18 changed files with 2163 additions and 1 deletions
+509
View File
@@ -5357,6 +5357,515 @@ abstract class _ProfitLossAnalyticProduct implements ProfitLossAnalyticProduct {
get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
mixin _$CategoryAnalytic {
String get organizationId => throw _privateConstructorUsedError;
String get outletId => throw _privateConstructorUsedError;
DateTime get dateFrom => throw _privateConstructorUsedError;
DateTime get dateTo => throw _privateConstructorUsedError;
List<CategoryAnalyticItem> get data => throw _privateConstructorUsedError;
/// Create a copy of CategoryAnalytic
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$CategoryAnalyticCopyWith<CategoryAnalytic> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $CategoryAnalyticCopyWith<$Res> {
factory $CategoryAnalyticCopyWith(
CategoryAnalytic value,
$Res Function(CategoryAnalytic) then,
) = _$CategoryAnalyticCopyWithImpl<$Res, CategoryAnalytic>;
@useResult
$Res call({
String organizationId,
String outletId,
DateTime dateFrom,
DateTime dateTo,
List<CategoryAnalyticItem> data,
});
}
/// @nodoc
class _$CategoryAnalyticCopyWithImpl<$Res, $Val extends CategoryAnalytic>
implements $CategoryAnalyticCopyWith<$Res> {
_$CategoryAnalyticCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of CategoryAnalytic
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? organizationId = null,
Object? outletId = null,
Object? dateFrom = null,
Object? dateTo = null,
Object? data = null,
}) {
return _then(
_value.copyWith(
organizationId: null == organizationId
? _value.organizationId
: organizationId // ignore: cast_nullable_to_non_nullable
as String,
outletId: null == outletId
? _value.outletId
: outletId // ignore: cast_nullable_to_non_nullable
as String,
dateFrom: null == dateFrom
? _value.dateFrom
: dateFrom // ignore: cast_nullable_to_non_nullable
as DateTime,
dateTo: null == dateTo
? _value.dateTo
: dateTo // ignore: cast_nullable_to_non_nullable
as DateTime,
data: null == data
? _value.data
: data // ignore: cast_nullable_to_non_nullable
as List<CategoryAnalyticItem>,
)
as $Val,
);
}
}
/// @nodoc
abstract class _$$CategoryAnalyticImplCopyWith<$Res>
implements $CategoryAnalyticCopyWith<$Res> {
factory _$$CategoryAnalyticImplCopyWith(
_$CategoryAnalyticImpl value,
$Res Function(_$CategoryAnalyticImpl) then,
) = __$$CategoryAnalyticImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({
String organizationId,
String outletId,
DateTime dateFrom,
DateTime dateTo,
List<CategoryAnalyticItem> data,
});
}
/// @nodoc
class __$$CategoryAnalyticImplCopyWithImpl<$Res>
extends _$CategoryAnalyticCopyWithImpl<$Res, _$CategoryAnalyticImpl>
implements _$$CategoryAnalyticImplCopyWith<$Res> {
__$$CategoryAnalyticImplCopyWithImpl(
_$CategoryAnalyticImpl _value,
$Res Function(_$CategoryAnalyticImpl) _then,
) : super(_value, _then);
/// Create a copy of CategoryAnalytic
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? organizationId = null,
Object? outletId = null,
Object? dateFrom = null,
Object? dateTo = null,
Object? data = null,
}) {
return _then(
_$CategoryAnalyticImpl(
organizationId: null == organizationId
? _value.organizationId
: organizationId // ignore: cast_nullable_to_non_nullable
as String,
outletId: null == outletId
? _value.outletId
: outletId // ignore: cast_nullable_to_non_nullable
as String,
dateFrom: null == dateFrom
? _value.dateFrom
: dateFrom // ignore: cast_nullable_to_non_nullable
as DateTime,
dateTo: null == dateTo
? _value.dateTo
: dateTo // ignore: cast_nullable_to_non_nullable
as DateTime,
data: null == data
? _value._data
: data // ignore: cast_nullable_to_non_nullable
as List<CategoryAnalyticItem>,
),
);
}
}
/// @nodoc
class _$CategoryAnalyticImpl extends _CategoryAnalytic {
const _$CategoryAnalyticImpl({
required this.organizationId,
required this.outletId,
required this.dateFrom,
required this.dateTo,
required final List<CategoryAnalyticItem> data,
}) : _data = data,
super._();
@override
final String organizationId;
@override
final String outletId;
@override
final DateTime dateFrom;
@override
final DateTime dateTo;
final List<CategoryAnalyticItem> _data;
@override
List<CategoryAnalyticItem> get data {
if (_data is EqualUnmodifiableListView) return _data;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_data);
}
@override
String toString() {
return 'CategoryAnalytic(organizationId: $organizationId, outletId: $outletId, dateFrom: $dateFrom, dateTo: $dateTo, data: $data)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$CategoryAnalyticImpl &&
(identical(other.organizationId, organizationId) ||
other.organizationId == organizationId) &&
(identical(other.outletId, outletId) ||
other.outletId == outletId) &&
(identical(other.dateFrom, dateFrom) ||
other.dateFrom == dateFrom) &&
(identical(other.dateTo, dateTo) || other.dateTo == dateTo) &&
const DeepCollectionEquality().equals(other._data, _data));
}
@override
int get hashCode => Object.hash(
runtimeType,
organizationId,
outletId,
dateFrom,
dateTo,
const DeepCollectionEquality().hash(_data),
);
/// Create a copy of CategoryAnalytic
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$CategoryAnalyticImplCopyWith<_$CategoryAnalyticImpl> get copyWith =>
__$$CategoryAnalyticImplCopyWithImpl<_$CategoryAnalyticImpl>(
this,
_$identity,
);
}
abstract class _CategoryAnalytic extends CategoryAnalytic {
const factory _CategoryAnalytic({
required final String organizationId,
required final String outletId,
required final DateTime dateFrom,
required final DateTime dateTo,
required final List<CategoryAnalyticItem> data,
}) = _$CategoryAnalyticImpl;
const _CategoryAnalytic._() : super._();
@override
String get organizationId;
@override
String get outletId;
@override
DateTime get dateFrom;
@override
DateTime get dateTo;
@override
List<CategoryAnalyticItem> get data;
/// Create a copy of CategoryAnalytic
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$CategoryAnalyticImplCopyWith<_$CategoryAnalyticImpl> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
mixin _$CategoryAnalyticItem {
String get categoryId => throw _privateConstructorUsedError;
String get categoryName => throw _privateConstructorUsedError;
int get totalRevenue => throw _privateConstructorUsedError;
int get totalQuantity => throw _privateConstructorUsedError;
int get productCount => throw _privateConstructorUsedError;
int get orderCount => throw _privateConstructorUsedError;
/// Create a copy of CategoryAnalyticItem
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$CategoryAnalyticItemCopyWith<CategoryAnalyticItem> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $CategoryAnalyticItemCopyWith<$Res> {
factory $CategoryAnalyticItemCopyWith(
CategoryAnalyticItem value,
$Res Function(CategoryAnalyticItem) then,
) = _$CategoryAnalyticItemCopyWithImpl<$Res, CategoryAnalyticItem>;
@useResult
$Res call({
String categoryId,
String categoryName,
int totalRevenue,
int totalQuantity,
int productCount,
int orderCount,
});
}
/// @nodoc
class _$CategoryAnalyticItemCopyWithImpl<
$Res,
$Val extends CategoryAnalyticItem
>
implements $CategoryAnalyticItemCopyWith<$Res> {
_$CategoryAnalyticItemCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of CategoryAnalyticItem
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? categoryId = null,
Object? categoryName = null,
Object? totalRevenue = null,
Object? totalQuantity = null,
Object? productCount = null,
Object? orderCount = null,
}) {
return _then(
_value.copyWith(
categoryId: null == categoryId
? _value.categoryId
: categoryId // ignore: cast_nullable_to_non_nullable
as String,
categoryName: null == categoryName
? _value.categoryName
: categoryName // ignore: cast_nullable_to_non_nullable
as String,
totalRevenue: null == totalRevenue
? _value.totalRevenue
: totalRevenue // ignore: cast_nullable_to_non_nullable
as int,
totalQuantity: null == totalQuantity
? _value.totalQuantity
: totalQuantity // ignore: cast_nullable_to_non_nullable
as int,
productCount: null == productCount
? _value.productCount
: productCount // ignore: cast_nullable_to_non_nullable
as int,
orderCount: null == orderCount
? _value.orderCount
: orderCount // ignore: cast_nullable_to_non_nullable
as int,
)
as $Val,
);
}
}
/// @nodoc
abstract class _$$CategoryAnalyticItemImplCopyWith<$Res>
implements $CategoryAnalyticItemCopyWith<$Res> {
factory _$$CategoryAnalyticItemImplCopyWith(
_$CategoryAnalyticItemImpl value,
$Res Function(_$CategoryAnalyticItemImpl) then,
) = __$$CategoryAnalyticItemImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({
String categoryId,
String categoryName,
int totalRevenue,
int totalQuantity,
int productCount,
int orderCount,
});
}
/// @nodoc
class __$$CategoryAnalyticItemImplCopyWithImpl<$Res>
extends _$CategoryAnalyticItemCopyWithImpl<$Res, _$CategoryAnalyticItemImpl>
implements _$$CategoryAnalyticItemImplCopyWith<$Res> {
__$$CategoryAnalyticItemImplCopyWithImpl(
_$CategoryAnalyticItemImpl _value,
$Res Function(_$CategoryAnalyticItemImpl) _then,
) : super(_value, _then);
/// Create a copy of CategoryAnalyticItem
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? categoryId = null,
Object? categoryName = null,
Object? totalRevenue = null,
Object? totalQuantity = null,
Object? productCount = null,
Object? orderCount = null,
}) {
return _then(
_$CategoryAnalyticItemImpl(
categoryId: null == categoryId
? _value.categoryId
: categoryId // ignore: cast_nullable_to_non_nullable
as String,
categoryName: null == categoryName
? _value.categoryName
: categoryName // ignore: cast_nullable_to_non_nullable
as String,
totalRevenue: null == totalRevenue
? _value.totalRevenue
: totalRevenue // ignore: cast_nullable_to_non_nullable
as int,
totalQuantity: null == totalQuantity
? _value.totalQuantity
: totalQuantity // ignore: cast_nullable_to_non_nullable
as int,
productCount: null == productCount
? _value.productCount
: productCount // ignore: cast_nullable_to_non_nullable
as int,
orderCount: null == orderCount
? _value.orderCount
: orderCount // ignore: cast_nullable_to_non_nullable
as int,
),
);
}
}
/// @nodoc
class _$CategoryAnalyticItemImpl implements _CategoryAnalyticItem {
const _$CategoryAnalyticItemImpl({
required this.categoryId,
required this.categoryName,
required this.totalRevenue,
required this.totalQuantity,
required this.productCount,
required this.orderCount,
});
@override
final String categoryId;
@override
final String categoryName;
@override
final int totalRevenue;
@override
final int totalQuantity;
@override
final int productCount;
@override
final int orderCount;
@override
String toString() {
return 'CategoryAnalyticItem(categoryId: $categoryId, categoryName: $categoryName, totalRevenue: $totalRevenue, totalQuantity: $totalQuantity, productCount: $productCount, orderCount: $orderCount)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$CategoryAnalyticItemImpl &&
(identical(other.categoryId, categoryId) ||
other.categoryId == categoryId) &&
(identical(other.categoryName, categoryName) ||
other.categoryName == categoryName) &&
(identical(other.totalRevenue, totalRevenue) ||
other.totalRevenue == totalRevenue) &&
(identical(other.totalQuantity, totalQuantity) ||
other.totalQuantity == totalQuantity) &&
(identical(other.productCount, productCount) ||
other.productCount == productCount) &&
(identical(other.orderCount, orderCount) ||
other.orderCount == orderCount));
}
@override
int get hashCode => Object.hash(
runtimeType,
categoryId,
categoryName,
totalRevenue,
totalQuantity,
productCount,
orderCount,
);
/// Create a copy of CategoryAnalyticItem
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$CategoryAnalyticItemImplCopyWith<_$CategoryAnalyticItemImpl>
get copyWith =>
__$$CategoryAnalyticItemImplCopyWithImpl<_$CategoryAnalyticItemImpl>(
this,
_$identity,
);
}
abstract class _CategoryAnalyticItem implements CategoryAnalyticItem {
const factory _CategoryAnalyticItem({
required final String categoryId,
required final String categoryName,
required final int totalRevenue,
required final int totalQuantity,
required final int productCount,
required final int orderCount,
}) = _$CategoryAnalyticItemImpl;
@override
String get categoryId;
@override
String get categoryName;
@override
int get totalRevenue;
@override
int get totalQuantity;
@override
int get productCount;
@override
int get orderCount;
/// Create a copy of CategoryAnalyticItem
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$CategoryAnalyticItemImplCopyWith<_$CategoryAnalyticItemImpl>
get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
mixin _$AnalyticFailure {
@optionalTypeArgs