80 lines
1.8 KiB
TypeScript
80 lines
1.8 KiB
TypeScript
export const hostProfile = {
|
|
id: 'user-id',
|
|
mobile: '09123456789',
|
|
firstName: 'علی',
|
|
lastName: 'رضایی',
|
|
gender: 'male',
|
|
cityId: 2,
|
|
bio: 'میزبان تست',
|
|
avatarUrl: null,
|
|
status: 'active',
|
|
identityStatus: 'verified',
|
|
role: 'user',
|
|
}
|
|
|
|
export const hostInsights = {
|
|
bookmarkCount: 4,
|
|
registrations: {
|
|
bookedCount: 3,
|
|
reservedCapacity: 0,
|
|
capacity: 20,
|
|
remainingCapacity: 17,
|
|
pendingPaymentCount: 0,
|
|
confirmedCount: 3,
|
|
checkedInCount: 1,
|
|
notCheckedInCount: 2,
|
|
cancelledCount: 0,
|
|
expiredCount: 0,
|
|
refundedCount: 0,
|
|
noShowCount: 0,
|
|
waitlistCount: 2,
|
|
},
|
|
financial: {
|
|
grossAmount: 0,
|
|
commissionAmount: 0,
|
|
guestRefundAmount: 0,
|
|
netAmount: 0,
|
|
heldAmount: 0,
|
|
availableAmount: 0,
|
|
settledAmount: 0,
|
|
},
|
|
}
|
|
|
|
export const createHostEvent = <T extends Record<string, unknown>>(overrides: T) => ({
|
|
id: 'event-1',
|
|
title: 'رویداد میزبان تست',
|
|
slug: 'host-test-event',
|
|
status: 'draft',
|
|
settings: {
|
|
isDiscoverable: true,
|
|
autoCreateGroup: true,
|
|
addressVisibility: 'public',
|
|
generalArea: null,
|
|
waitlistAutoOffer: false,
|
|
sendReviewRequestSms: false,
|
|
},
|
|
startsAt: '2030-01-01T10:00:00.000Z',
|
|
endsAt: '2030-01-01T12:00:00.000Z',
|
|
organizerId: 'user-id',
|
|
categoryId: 10,
|
|
shortDescription: 'توضیح کوتاه',
|
|
description: 'توضیح کامل',
|
|
capacity: 20,
|
|
bookedCount: 0,
|
|
reservedCapacity: 0,
|
|
price: 0,
|
|
isFree: true,
|
|
address: 'تهران، میدان آزادی',
|
|
lat: 35.6892,
|
|
lng: 51.389,
|
|
cityId: 2,
|
|
provinceId: 1,
|
|
cancellationFeePercent: 0,
|
|
cancellationFeePercent12To24Hours: 0,
|
|
cancellationFeePercentMoreThan24Hours: 0,
|
|
discoveryPlacements: [],
|
|
createdAt: '2029-12-01T10:00:00.000Z',
|
|
publishedAt: null,
|
|
...overrides,
|
|
})
|