EnakPoint & EnakCoin wallet, PIN, outlet, order, community, reward
- Wallet EnakPoint & EnakCoin: beranda, riwayat, saldo kedaluwarsa, kode bayar, tukar EnakCoin, transfer - PIN (buat, ganti, lupa), outlet, riwayat order, game spin - Halaman community, webview, coming soon, dan ikon menu beranda baru - Redesign Reward Saya: kartu tiket, filter chip, detail kode + QR - Hapus customer point loader, menu, dan checkout lama - Base URL ke enaklo-pos-api.altru.id Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
5954510b93
commit
f5e3075205
@@ -0,0 +1,132 @@
|
||||
part of '../wallet_dtos.dart';
|
||||
|
||||
/// Satu DTO untuk daftar dan detail order; field detail kosong di daftar.
|
||||
@freezed
|
||||
abstract class CustomerOrderDto with _$CustomerOrderDto {
|
||||
const factory CustomerOrderDto({
|
||||
@JsonKey(name: 'id') String? id,
|
||||
@JsonKey(name: 'order_number') String? orderNumber,
|
||||
@JsonKey(name: 'outlet_name') String? outletName,
|
||||
@JsonKey(name: 'order_type') String? orderType,
|
||||
@JsonKey(name: 'status') String? status,
|
||||
@JsonKey(name: 'payment_status') String? paymentStatus,
|
||||
@JsonKey(name: 'total_amount') int? totalAmount,
|
||||
@JsonKey(name: 'item_count') int? itemCount,
|
||||
@JsonKey(name: 'is_void') bool? isVoid,
|
||||
@JsonKey(name: 'is_refund') bool? isRefund,
|
||||
@JsonKey(name: 'points_earned') int? pointsEarned,
|
||||
@JsonKey(name: 'coins_earned') int? coinsEarned,
|
||||
@JsonKey(name: 'created_at') String? createdAt,
|
||||
// Detail
|
||||
@JsonKey(name: 'table_number') String? tableNumber,
|
||||
@JsonKey(name: 'subtotal') int? subtotal,
|
||||
@JsonKey(name: 'discount_amount') int? discountAmount,
|
||||
@JsonKey(name: 'tax_amount') int? taxAmount,
|
||||
@JsonKey(name: 'refund_amount') int? refundAmount,
|
||||
@JsonKey(name: 'items') List<CustomerOrderItemDto>? items,
|
||||
@JsonKey(name: 'payments') List<CustomerOrderPaymentDto>? payments,
|
||||
}) = _CustomerOrderDto;
|
||||
|
||||
factory CustomerOrderDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$CustomerOrderDtoFromJson(json);
|
||||
|
||||
const CustomerOrderDto._();
|
||||
|
||||
CustomerOrder toDomain() => CustomerOrder(
|
||||
id: id ?? '',
|
||||
orderNumber: orderNumber ?? '',
|
||||
outletName: outletName ?? '',
|
||||
orderType: orderType ?? '',
|
||||
status: status ?? '',
|
||||
paymentStatus: paymentStatus ?? '',
|
||||
totalAmount: totalAmount ?? 0,
|
||||
itemCount: itemCount ?? 0,
|
||||
isVoid: isVoid ?? false,
|
||||
isRefund: isRefund ?? false,
|
||||
pointsEarned: pointsEarned ?? 0,
|
||||
coinsEarned: coinsEarned ?? 0,
|
||||
createdAt: _parseDateTime(createdAt),
|
||||
);
|
||||
|
||||
CustomerOrderDetail toDetailDomain() => CustomerOrderDetail(
|
||||
order: toDomain(),
|
||||
tableNumber: (tableNumber?.isEmpty ?? true) ? null : tableNumber,
|
||||
subtotal: subtotal ?? 0,
|
||||
discountAmount: discountAmount ?? 0,
|
||||
taxAmount: taxAmount ?? 0,
|
||||
refundAmount: refundAmount ?? 0,
|
||||
items: items?.map((e) => e.toDomain()).toList() ?? [],
|
||||
payments: payments?.map((e) => e.toDomain()).toList() ?? [],
|
||||
);
|
||||
}
|
||||
|
||||
@freezed
|
||||
abstract class CustomerOrderItemDto with _$CustomerOrderItemDto {
|
||||
const factory CustomerOrderItemDto({
|
||||
@JsonKey(name: 'id') String? id,
|
||||
@JsonKey(name: 'product_name') String? productName,
|
||||
@JsonKey(name: 'variant_name') String? variantName,
|
||||
@JsonKey(name: 'quantity') int? quantity,
|
||||
@JsonKey(name: 'weight') double? weight,
|
||||
@JsonKey(name: 'unit_name') String? unitName,
|
||||
@JsonKey(name: 'unit_price') int? unitPrice,
|
||||
@JsonKey(name: 'total_price') int? totalPrice,
|
||||
@JsonKey(name: 'refund_quantity') int? refundQuantity,
|
||||
}) = _CustomerOrderItemDto;
|
||||
|
||||
factory CustomerOrderItemDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$CustomerOrderItemDtoFromJson(json);
|
||||
|
||||
const CustomerOrderItemDto._();
|
||||
|
||||
CustomerOrderItem toDomain() => CustomerOrderItem(
|
||||
id: id ?? '',
|
||||
productName: productName ?? '',
|
||||
variantName: (variantName?.isEmpty ?? true) ? null : variantName,
|
||||
quantity: quantity ?? 0,
|
||||
weight: weight,
|
||||
unitName: unitName,
|
||||
unitPrice: unitPrice ?? 0,
|
||||
totalPrice: totalPrice ?? 0,
|
||||
refundQuantity: refundQuantity ?? 0,
|
||||
);
|
||||
}
|
||||
|
||||
@freezed
|
||||
abstract class CustomerOrderPaymentDto with _$CustomerOrderPaymentDto {
|
||||
const factory CustomerOrderPaymentDto({
|
||||
@JsonKey(name: 'id') String? id,
|
||||
@JsonKey(name: 'method_name') String? methodName,
|
||||
@JsonKey(name: 'method_type') String? methodType,
|
||||
@JsonKey(name: 'amount') int? amount,
|
||||
@JsonKey(name: 'refund_amount') int? refundAmount,
|
||||
@JsonKey(name: 'points_used') int? pointsUsed,
|
||||
}) = _CustomerOrderPaymentDto;
|
||||
|
||||
factory CustomerOrderPaymentDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$CustomerOrderPaymentDtoFromJson(json);
|
||||
|
||||
const CustomerOrderPaymentDto._();
|
||||
|
||||
CustomerOrderPayment toDomain() => CustomerOrderPayment(
|
||||
id: id ?? '',
|
||||
methodName: methodName ?? '',
|
||||
methodType: methodType ?? '',
|
||||
amount: amount ?? 0,
|
||||
refundAmount: refundAmount ?? 0,
|
||||
pointsUsed: pointsUsed,
|
||||
);
|
||||
}
|
||||
|
||||
class CustomerOrderPageDto {
|
||||
final List<CustomerOrderDto> items;
|
||||
final WalletPaginationDto pagination;
|
||||
|
||||
const CustomerOrderPageDto({required this.items, required this.pagination});
|
||||
|
||||
CustomerOrderPage toDomain() => CustomerOrderPage(
|
||||
items: items.map((e) => e.toDomain()).toList(),
|
||||
page: pagination.page ?? 1,
|
||||
totalPages: pagination.totalPages ?? 1,
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
part of '../wallet_dtos.dart';
|
||||
|
||||
@freezed
|
||||
abstract class ExchangePreviewDto with _$ExchangePreviewDto {
|
||||
const factory ExchangePreviewDto({
|
||||
@JsonKey(name: 'coin_amount') int? coinAmount,
|
||||
@JsonKey(name: 'point_amount') int? pointAmount,
|
||||
@JsonKey(name: 'coin_balance') int? coinBalance,
|
||||
@JsonKey(name: 'coins') int? coins,
|
||||
@JsonKey(name: 'points') int? points,
|
||||
@JsonKey(name: 'valid') bool? valid,
|
||||
@JsonKey(name: 'reason') String? reason,
|
||||
}) = _ExchangePreviewDto;
|
||||
|
||||
factory ExchangePreviewDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$ExchangePreviewDtoFromJson(json);
|
||||
|
||||
const ExchangePreviewDto._();
|
||||
|
||||
ExchangePreview toDomain() => ExchangePreview(
|
||||
coinAmount: coinAmount ?? 0,
|
||||
pointAmount: pointAmount ?? 0,
|
||||
coinBalance: coinBalance ?? 0,
|
||||
coins: coins ?? 0,
|
||||
points: points ?? 0,
|
||||
valid: valid ?? false,
|
||||
reason: reason,
|
||||
);
|
||||
}
|
||||
|
||||
@freezed
|
||||
abstract class ExchangeResultDto with _$ExchangeResultDto {
|
||||
const factory ExchangeResultDto({
|
||||
@JsonKey(name: 'coins') int? coins,
|
||||
@JsonKey(name: 'points') int? points,
|
||||
@JsonKey(name: 'coin_balance') int? coinBalance,
|
||||
@JsonKey(name: 'point_balance') int? pointBalance,
|
||||
@JsonKey(name: 'lots') List<WalletLotDto>? lots,
|
||||
@JsonKey(name: 'replayed') bool? replayed,
|
||||
}) = _ExchangeResultDto;
|
||||
|
||||
factory ExchangeResultDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$ExchangeResultDtoFromJson(json);
|
||||
|
||||
const ExchangeResultDto._();
|
||||
|
||||
ExchangeResult toDomain() => ExchangeResult(
|
||||
coins: coins ?? 0,
|
||||
points: points ?? 0,
|
||||
coinBalance: coinBalance ?? 0,
|
||||
pointBalance: pointBalance ?? 0,
|
||||
lots: lots?.map((e) => e.toDomain()).toList() ?? [],
|
||||
replayed: replayed ?? false,
|
||||
);
|
||||
}
|
||||
|
||||
@freezed
|
||||
abstract class WalletLotDto with _$WalletLotDto {
|
||||
const factory WalletLotDto({
|
||||
@JsonKey(name: 'amount') int? amount,
|
||||
@JsonKey(name: 'expires_at') String? expiresAt,
|
||||
}) = _WalletLotDto;
|
||||
|
||||
factory WalletLotDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$WalletLotDtoFromJson(json);
|
||||
|
||||
const WalletLotDto._();
|
||||
|
||||
WalletLot toDomain() =>
|
||||
WalletLot(amount: amount ?? 0, expiresAt: _parseDateTime(expiresAt));
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
part of '../wallet_dtos.dart';
|
||||
|
||||
@freezed
|
||||
abstract class OutletDto with _$OutletDto {
|
||||
const factory OutletDto({
|
||||
@JsonKey(name: 'id') String? id,
|
||||
@JsonKey(name: 'name') String? name,
|
||||
@JsonKey(name: 'address') String? address,
|
||||
@JsonKey(name: 'accepts_point_payment') bool? acceptsPointPayment,
|
||||
@JsonKey(name: 'earns_points') bool? earnsPoints,
|
||||
@JsonKey(name: 'earns_coins') bool? earnsCoins,
|
||||
}) = _OutletDto;
|
||||
|
||||
factory OutletDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$OutletDtoFromJson(json);
|
||||
|
||||
const OutletDto._();
|
||||
|
||||
Outlet toDomain() => Outlet(
|
||||
id: id ?? '',
|
||||
name: name ?? '',
|
||||
address: (address?.trim().isEmpty ?? true) ? null : address!.trim(),
|
||||
acceptsPointPayment: acceptsPointPayment ?? false,
|
||||
earnsPoints: earnsPoints ?? false,
|
||||
earnsCoins: earnsCoins ?? false,
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
part of '../wallet_dtos.dart';
|
||||
|
||||
@freezed
|
||||
abstract class PaymentCodeDto with _$PaymentCodeDto {
|
||||
const factory PaymentCodeDto({
|
||||
@JsonKey(name: 'code') String? code,
|
||||
@JsonKey(name: 'qr_payload') String? qrPayload,
|
||||
@JsonKey(name: 'expires_at') String? expiresAt,
|
||||
}) = _PaymentCodeDto;
|
||||
|
||||
factory PaymentCodeDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$PaymentCodeDtoFromJson(json);
|
||||
|
||||
const PaymentCodeDto._();
|
||||
|
||||
PaymentCode toDomain() => PaymentCode(
|
||||
code: code ?? '',
|
||||
qrPayload: qrPayload ?? '',
|
||||
// Kode berlaku 2 menit; dipakai hanya bila server tidak mengirim expires_at.
|
||||
expiresAt:
|
||||
_parseDateTime(expiresAt) ??
|
||||
DateTime.now().add(const Duration(minutes: 2)),
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
part of '../wallet_dtos.dart';
|
||||
|
||||
@freezed
|
||||
abstract class PinStatusDto with _$PinStatusDto {
|
||||
const factory PinStatusDto({
|
||||
@JsonKey(name: 'has_pin') bool? hasPin,
|
||||
@JsonKey(name: 'locked_until') String? lockedUntil,
|
||||
@JsonKey(name: 'transfer_blocked_until') String? transferBlockedUntil,
|
||||
}) = _PinStatusDto;
|
||||
|
||||
factory PinStatusDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$PinStatusDtoFromJson(json);
|
||||
|
||||
const PinStatusDto._();
|
||||
|
||||
PinStatus toDomain() => PinStatus(
|
||||
hasPin: hasPin ?? false,
|
||||
lockedUntil: _parseDateTime(lockedUntil),
|
||||
transferBlockedUntil: _parseDateTime(transferBlockedUntil),
|
||||
);
|
||||
}
|
||||
|
||||
@freezed
|
||||
abstract class PinOtpDto with _$PinOtpDto {
|
||||
const factory PinOtpDto({
|
||||
@JsonKey(name: 'purpose') String? purpose,
|
||||
@JsonKey(name: 'otp_token') String? otpToken,
|
||||
@JsonKey(name: 'expires_at') String? expiresAt,
|
||||
}) = _PinOtpDto;
|
||||
|
||||
factory PinOtpDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$PinOtpDtoFromJson(json);
|
||||
|
||||
const PinOtpDto._();
|
||||
|
||||
PinOtp toDomain() => PinOtp(
|
||||
purpose: purpose == PinOtpPurpose.reset.apiValue
|
||||
? PinOtpPurpose.reset
|
||||
: PinOtpPurpose.setup,
|
||||
otpToken: otpToken ?? '',
|
||||
expiresAt: _parseDateTime(expiresAt),
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
part of '../wallet_dtos.dart';
|
||||
|
||||
@freezed
|
||||
abstract class TransferRecipientDto with _$TransferRecipientDto {
|
||||
const factory TransferRecipientDto({
|
||||
@JsonKey(name: 'name') String? name,
|
||||
@JsonKey(name: 'phone_number') String? phoneNumber,
|
||||
}) = _TransferRecipientDto;
|
||||
|
||||
factory TransferRecipientDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$TransferRecipientDtoFromJson(json);
|
||||
|
||||
const TransferRecipientDto._();
|
||||
|
||||
TransferRecipient toDomain() =>
|
||||
TransferRecipient(name: name ?? '', phoneNumber: phoneNumber ?? '');
|
||||
}
|
||||
|
||||
@freezed
|
||||
abstract class TransferResultDto with _$TransferResultDto {
|
||||
const factory TransferResultDto({
|
||||
@JsonKey(name: 'currency') String? currency,
|
||||
@JsonKey(name: 'amount') int? amount,
|
||||
@JsonKey(name: 'recipient') TransferRecipientDto? recipient,
|
||||
@JsonKey(name: 'lots') List<WalletLotDto>? lots,
|
||||
@JsonKey(name: 'balance') int? balance,
|
||||
@JsonKey(name: 'replayed') bool? replayed,
|
||||
}) = _TransferResultDto;
|
||||
|
||||
factory TransferResultDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$TransferResultDtoFromJson(json);
|
||||
|
||||
const TransferResultDto._();
|
||||
|
||||
TransferResult toDomain() => TransferResult(
|
||||
currency: WalletCurrency.fromApi(currency),
|
||||
amount: amount ?? 0,
|
||||
recipient:
|
||||
recipient?.toDomain() ??
|
||||
const TransferRecipient(name: '', phoneNumber: ''),
|
||||
lots: lots?.map((e) => e.toDomain()).toList() ?? [],
|
||||
balance: balance ?? 0,
|
||||
replayed: replayed ?? false,
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
part of '../wallet_dtos.dart';
|
||||
|
||||
@freezed
|
||||
abstract class WalletExpiringDto with _$WalletExpiringDto {
|
||||
const factory WalletExpiringDto({
|
||||
@JsonKey(name: 'point') List<ExpiringAmountDto>? point,
|
||||
@JsonKey(name: 'coin') List<ExpiringAmountDto>? coin,
|
||||
}) = _WalletExpiringDto;
|
||||
|
||||
factory WalletExpiringDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$WalletExpiringDtoFromJson(json);
|
||||
|
||||
const WalletExpiringDto._();
|
||||
|
||||
WalletExpiring toDomain() =>
|
||||
WalletExpiring(point: _sorted(point), coin: _sorted(coin));
|
||||
|
||||
/// Paling dekat di atas.
|
||||
List<ExpiringAmount> _sorted(List<ExpiringAmountDto>? list) =>
|
||||
(list ?? []).map((e) => e.toDomain()).whereType<ExpiringAmount>().toList()
|
||||
..sort((a, b) => a.date.compareTo(b.date));
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
part of '../wallet_dtos.dart';
|
||||
|
||||
@freezed
|
||||
abstract class WalletSummaryDto with _$WalletSummaryDto {
|
||||
const factory WalletSummaryDto({
|
||||
@JsonKey(name: 'point_balance') int? pointBalance,
|
||||
@JsonKey(name: 'coin_balance') int? coinBalance,
|
||||
@JsonKey(name: 'point_value') int? pointValue,
|
||||
@JsonKey(name: 'point_discount_value') int? pointDiscountValue,
|
||||
@JsonKey(name: 'nearest_expiring') NearestExpiringDto? nearestExpiring,
|
||||
@JsonKey(name: 'recent_transactions')
|
||||
List<WalletTransactionDto>? recentTransactions,
|
||||
}) = _WalletSummaryDto;
|
||||
|
||||
factory WalletSummaryDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$WalletSummaryDtoFromJson(json);
|
||||
|
||||
const WalletSummaryDto._();
|
||||
|
||||
WalletSummary toDomain() => WalletSummary(
|
||||
pointBalance: pointBalance ?? 0,
|
||||
coinBalance: coinBalance ?? 0,
|
||||
pointValue: pointValue ?? 0,
|
||||
pointDiscountValue: pointDiscountValue ?? 0,
|
||||
nearestExpiringPoint: nearestExpiring?.point?.toDomain(),
|
||||
nearestExpiringCoin: nearestExpiring?.coin?.toDomain(),
|
||||
recentTransactions:
|
||||
recentTransactions?.map((e) => e.toDomain()).toList() ?? [],
|
||||
);
|
||||
}
|
||||
|
||||
@freezed
|
||||
abstract class NearestExpiringDto with _$NearestExpiringDto {
|
||||
const factory NearestExpiringDto({
|
||||
@JsonKey(name: 'point') ExpiringAmountDto? point,
|
||||
@JsonKey(name: 'coin') ExpiringAmountDto? coin,
|
||||
}) = _NearestExpiringDto;
|
||||
|
||||
factory NearestExpiringDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$NearestExpiringDtoFromJson(json);
|
||||
}
|
||||
|
||||
@freezed
|
||||
abstract class ExpiringAmountDto with _$ExpiringAmountDto {
|
||||
const factory ExpiringAmountDto({
|
||||
@JsonKey(name: 'amount') int? amount,
|
||||
@JsonKey(name: 'date') String? date,
|
||||
}) = _ExpiringAmountDto;
|
||||
|
||||
factory ExpiringAmountDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$ExpiringAmountDtoFromJson(json);
|
||||
|
||||
const ExpiringAmountDto._();
|
||||
|
||||
ExpiringAmount? toDomain() {
|
||||
final parsed = _parseDate(date);
|
||||
if (parsed == null) return null;
|
||||
return ExpiringAmount(amount: amount ?? 0, date: parsed);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
part of '../wallet_dtos.dart';
|
||||
|
||||
@freezed
|
||||
abstract class WalletTransactionDto with _$WalletTransactionDto {
|
||||
const factory WalletTransactionDto({
|
||||
@JsonKey(name: 'id') String? id,
|
||||
@JsonKey(name: 'currency') String? currency,
|
||||
@JsonKey(name: 'type') String? type,
|
||||
@JsonKey(name: 'amount') int? amount,
|
||||
@JsonKey(name: 'balance_after') int? balanceAfter,
|
||||
@JsonKey(name: 'description') String? description,
|
||||
@JsonKey(name: 'group_id') String? groupId,
|
||||
@JsonKey(name: 'expires_at') String? expiresAt,
|
||||
@JsonKey(name: 'created_at') String? createdAt,
|
||||
}) = _WalletTransactionDto;
|
||||
|
||||
factory WalletTransactionDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$WalletTransactionDtoFromJson(json);
|
||||
|
||||
const WalletTransactionDto._();
|
||||
|
||||
WalletTransaction toDomain() => WalletTransaction(
|
||||
id: id ?? '',
|
||||
currency: WalletCurrency.fromApi(currency),
|
||||
type: WalletTransactionType.fromApi(type),
|
||||
amount: amount ?? 0,
|
||||
balanceAfter: balanceAfter ?? 0,
|
||||
description: description ?? '',
|
||||
groupId: groupId,
|
||||
expiresAt: _parseDateTime(expiresAt),
|
||||
createdAt: _parseDateTime(createdAt),
|
||||
);
|
||||
}
|
||||
|
||||
@freezed
|
||||
abstract class WalletPaginationDto with _$WalletPaginationDto {
|
||||
const factory WalletPaginationDto({
|
||||
@JsonKey(name: 'page') int? page,
|
||||
@JsonKey(name: 'limit') int? limit,
|
||||
@JsonKey(name: 'total_count') int? totalCount,
|
||||
@JsonKey(name: 'total_pages') int? totalPages,
|
||||
}) = _WalletPaginationDto;
|
||||
|
||||
factory WalletPaginationDto.fromJson(Map<String, dynamic> json) =>
|
||||
_$WalletPaginationDtoFromJson(json);
|
||||
}
|
||||
|
||||
class WalletTransactionPageDto {
|
||||
final List<WalletTransactionDto> items;
|
||||
final WalletPaginationDto pagination;
|
||||
|
||||
const WalletTransactionPageDto({
|
||||
required this.items,
|
||||
required this.pagination,
|
||||
});
|
||||
|
||||
WalletTransactionPage toDomain() => WalletTransactionPage(
|
||||
items: items.map((e) => e.toDomain()).toList(),
|
||||
page: pagination.page ?? 1,
|
||||
totalPages: pagination.totalPages ?? 1,
|
||||
totalCount: pagination.totalCount ?? items.length,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user