257 lines
6.1 KiB
TypeScript
257 lines
6.1 KiB
TypeScript
// Public client-safe API. Re-export each module by name; never `export *`.
|
|
export { AppShell } from './app/app-shell';
|
|
export type { AppShellProps } from './app/app-shell';
|
|
export {
|
|
ErrorFallback,
|
|
PartBoundary,
|
|
StatusEmptyState,
|
|
} from './app/error-boundaries';
|
|
export type {
|
|
ErrorFallbackProps,
|
|
ErrorFallbackSize,
|
|
FallbackKind,
|
|
PartBoundaryProps,
|
|
StatusEmptyStateProps,
|
|
StatusVariant,
|
|
} from './app/error-boundaries';
|
|
export { mapApiErrorBody } from './app/http';
|
|
export type { ApiErrorEnvelope } from './app/http';
|
|
export { AuthGuard } from './app/guards/auth-guard';
|
|
export type { AuthGuardProps } from './app/guards/auth-guard';
|
|
export { GuestGuard } from './app/guards/guest-guard';
|
|
export type { GuestGuardProps } from './app/guards/guest-guard';
|
|
export { PageError } from './app/screens/organisms/page-error';
|
|
export type { PageErrorProps } from './app/screens/organisms/page-error';
|
|
export {
|
|
CHANNEL_PREFIX,
|
|
loginRoute,
|
|
ROUTES,
|
|
safeReturnPath,
|
|
} from './app/navigation';
|
|
export { getEnv, setEnv } from './env';
|
|
export type { MarketEnv } from './env';
|
|
export {
|
|
DEFAULT_LOCALE,
|
|
DEFAULT_NAMESPACE,
|
|
NAMESPACES,
|
|
resources,
|
|
} from './shared/locales';
|
|
export {
|
|
accountKeys,
|
|
accountRepository,
|
|
AUTH_ENDPOINTS,
|
|
AUTH_EVENTS,
|
|
authRepository,
|
|
login,
|
|
logout,
|
|
registerCreator,
|
|
registerInvestor,
|
|
restoreSession,
|
|
} from './features/auth';
|
|
export type {
|
|
AccountPayload,
|
|
CreatorRegisteredPayload,
|
|
LogoutReason,
|
|
OtpSentPayload,
|
|
RegisterCreatorArgs,
|
|
RegisterInvestorArgs,
|
|
RegistrationVerifiedPayload,
|
|
SendOtpArgs,
|
|
SessionPayload,
|
|
SessionStatePayload,
|
|
UpdateAccountArgs,
|
|
UserRole,
|
|
UserStatus,
|
|
VerifyOtpArgs,
|
|
} from './features/auth';
|
|
export { renameFieldErrors, toApiUrl, toE164Mobile } from './shared/utils';
|
|
export {
|
|
BILLING_PERIODS,
|
|
CHECKOUT_KINDS,
|
|
COMPARE_SOURCES,
|
|
CONFIRMATION_LANDINGS,
|
|
CONFIRMATION_PHASES,
|
|
PAYMENT_STATUSES,
|
|
PAYMENT_UI_STATUSES,
|
|
SUBSCRIPTION_RECORD_STATUSES,
|
|
VERIFICATION_STATUSES,
|
|
} from './shared/constants';
|
|
export type {
|
|
BillingPeriod,
|
|
CheckoutKind,
|
|
CompareSource,
|
|
ConfirmationLanding,
|
|
ConfirmationPhase,
|
|
PaymentStatus,
|
|
PaymentUiStatus,
|
|
SubscriptionRecordStatus,
|
|
VerificationStatus,
|
|
} from './shared/constants';
|
|
export {
|
|
MARKETS,
|
|
PROFILE_LIMITS,
|
|
profileKeys,
|
|
profileRepository,
|
|
TRADING_STYLES,
|
|
} from './features/profile';
|
|
export type {
|
|
CreatorProfilePayload,
|
|
KycStatus,
|
|
Market,
|
|
SocialLinkArgs,
|
|
SocialLinkPayload,
|
|
TradingStyle,
|
|
UpdateProfileArgs,
|
|
UploadAvatarArgs,
|
|
} from './features/profile';
|
|
export { channelKeys, channelRepository } from './features/channel';
|
|
export type {
|
|
ChannelArgs,
|
|
PublicCreatorPayload,
|
|
PublicTierPayload,
|
|
TierPromotionPayload,
|
|
} from './features/channel';
|
|
export { followKeys, followRepository } from './features/follow';
|
|
export type {
|
|
FollowArgs,
|
|
FollowChangePayload,
|
|
FollowStatusPayload,
|
|
} from './features/follow';
|
|
export {
|
|
notificationKeys,
|
|
notificationRepository,
|
|
UNREAD_BADGE_CAP,
|
|
} from './features/notification';
|
|
export type {
|
|
InboxPayload,
|
|
MarkReadArgs,
|
|
NotificationPayload,
|
|
NotificationType,
|
|
UnreadCountPayload,
|
|
} from './features/notification';
|
|
export {
|
|
FILE_ENDPOINTS,
|
|
fileKeys,
|
|
fileRepository,
|
|
POST_ENDPOINTS,
|
|
POST_PAGE_LIMIT,
|
|
postKeys,
|
|
postRepository,
|
|
} from './features/post';
|
|
export type {
|
|
CreatePostArgs,
|
|
DeletedPostPayload,
|
|
FileKind,
|
|
FilePagePayload,
|
|
FilePayload,
|
|
FileStatus,
|
|
FileVisibility,
|
|
ListCreatorPostsArgs,
|
|
ListMyFilesArgs,
|
|
LockedPostPayload,
|
|
LockedPredictionPayload,
|
|
PostAccessLevel,
|
|
PostImagePayload,
|
|
PostImagePreviewPayload,
|
|
PostMediaArgs,
|
|
PostPagePayload,
|
|
PostPayload,
|
|
PostStatus,
|
|
PostType,
|
|
PredictionArgs,
|
|
PredictionDirection,
|
|
PredictionOutcome,
|
|
PredictionPayload,
|
|
PredictionStatus,
|
|
PurgedPostPayload,
|
|
UnlockedPostPayload,
|
|
UpdatePostArgs,
|
|
UploadFileArgs,
|
|
UploadFileOptions,
|
|
} from './features/post';
|
|
export {
|
|
PREDICTION_ENDPOINTS,
|
|
predictionKeys,
|
|
predictionRepository,
|
|
} from './features/prediction';
|
|
export type {
|
|
ClosePredictionArgs,
|
|
PredictionStatsPayload,
|
|
} from './features/prediction';
|
|
export {
|
|
FEED_ENDPOINT,
|
|
FEED_PAGE_LIMIT,
|
|
feedKeys,
|
|
feedRepository,
|
|
} from './features/feed';
|
|
export type { FeedPayload, ListFeedArgs } from './features/feed';
|
|
export { pricingKeys, pricingRepository } from './features/pricing';
|
|
export type {
|
|
GetPricingFormArgs,
|
|
PricingConfirmationPayload,
|
|
PricingFieldName,
|
|
PricingFormPayload,
|
|
PricingPromotionArgs,
|
|
PricingTierArgs,
|
|
PricingTierField,
|
|
PricingTierPayload,
|
|
PricingTierPromotionPayload,
|
|
PricingValidationPayload,
|
|
SavePricingArgs,
|
|
} from './features/pricing';
|
|
export { checkoutKeys, checkoutRepository } from './features/checkout';
|
|
export type {
|
|
CheckoutCtaState,
|
|
CheckoutPayload,
|
|
CheckoutResultPayload,
|
|
CheckoutTierPayload,
|
|
GrantedSubscriptionPayload,
|
|
PriceChangedPayload,
|
|
ReferralCodeArgs,
|
|
ReferralCodeStatus,
|
|
ReferralValidationPayload,
|
|
SubscribeArgs,
|
|
WaitlistJoinedPayload,
|
|
} from './features/checkout';
|
|
export {
|
|
subscriptionKeys,
|
|
subscriptionRepository,
|
|
} from './features/subscription';
|
|
export type {
|
|
ReactivateArgs,
|
|
RenewalKind,
|
|
RenewalPreviewArgs,
|
|
RenewalPreviewPayload,
|
|
RenewalTierPayload,
|
|
RenewArgs,
|
|
SubscriptionCreatorPayload,
|
|
SubscriptionDashboardPayload,
|
|
SubscriptionDetailPayload,
|
|
SubscriptionPayload,
|
|
SubscriptionReceiptPayload,
|
|
SubscriptionStatus,
|
|
} from './features/subscription';
|
|
export { transactionKeys, transactionRepository } from './features/transaction';
|
|
export type {
|
|
AccessConfirmationPayload,
|
|
ListTransactionsArgs,
|
|
TransactionDetailPayload,
|
|
TransactionFilter,
|
|
TransactionPagePayload,
|
|
TransactionPayload,
|
|
} from './features/transaction';
|
|
export { creatorDashboardRepository, overviewKeys } from './features/overview';
|
|
export type {
|
|
CreatorDashboardPayload,
|
|
CreatorTierPayload,
|
|
RecentPaymentPayload,
|
|
} from './features/overview';
|
|
export { creatorPaymentRepository, financeKeys } from './features/finance';
|
|
export type { CreatorPaymentPayload } from './features/finance';
|
|
export {
|
|
useAuthStore,
|
|
useCurrentAccount,
|
|
useViewerStatus,
|
|
} from './stores/auth';
|
|
export type { AuthState, Session, ViewerStatus } from './stores/auth';
|