462 lines
10 KiB
TypeScript
462 lines
10 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 { OnboardingGuard } from './app/guards/onboarding-guard';
|
|
export type { OnboardingGuardProps } from './app/guards/onboarding-guard';
|
|
export { PageError } from './app/screens/organisms/page-error';
|
|
export type { PageErrorProps } from './app/screens/organisms/page-error';
|
|
export {
|
|
BottomNav,
|
|
CHANNEL_PREFIX,
|
|
DesktopHeader,
|
|
loginRoute,
|
|
MobileTopBar,
|
|
ROUTES,
|
|
safeReturnPath,
|
|
} from './app/navigation';
|
|
export type { MobileTopBarProps } 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,
|
|
toChannelUsername,
|
|
toE164Mobile,
|
|
} from './shared/utils';
|
|
export {
|
|
BILLING_PERIOD_MONTHS,
|
|
BILLING_PERIODS,
|
|
CHECKOUT_KINDS,
|
|
COMPARE_SOURCES,
|
|
CONFIRMATION_LANDINGS,
|
|
CONFIRMATION_PHASES,
|
|
MARKETS,
|
|
PAYMENT_STATUSES,
|
|
PAYMENT_UI_STATUSES,
|
|
PAYOUT_WEEKDAY,
|
|
SUBSCRIPTION_RECORD_STATUSES,
|
|
TRANSACTION_KINDS,
|
|
VERIFICATION_STATUSES,
|
|
} from './shared/constants';
|
|
export type {
|
|
BillingPeriod,
|
|
CheckoutKind,
|
|
CompareSource,
|
|
ConfirmationLanding,
|
|
ConfirmationPhase,
|
|
Market,
|
|
PaymentStatus,
|
|
PaymentUiStatus,
|
|
SubscriptionRecordStatus,
|
|
TransactionKind,
|
|
VerificationStatus,
|
|
} from './shared/constants';
|
|
export {
|
|
profileKeys,
|
|
profileRepository,
|
|
TRADING_STYLES,
|
|
} from './features/profile';
|
|
export type {
|
|
CreatorProfilePayload,
|
|
KycStatus,
|
|
SocialLinkArgs,
|
|
SocialLinkPayload,
|
|
TradingStyle,
|
|
UpdateProfileArgs,
|
|
UploadAvatarArgs,
|
|
} from './features/profile';
|
|
export {
|
|
channelKeys,
|
|
channelRepository,
|
|
syncFollowCaches,
|
|
useChannelActionsPart,
|
|
useChannelEntitled,
|
|
useChannelGate,
|
|
useChannelViewer,
|
|
useFollowingPart,
|
|
useShareLink,
|
|
} from './features/channel';
|
|
export type {
|
|
ChannelActionsPartModel,
|
|
ChannelArgs,
|
|
ChannelGate,
|
|
ChannelStanding,
|
|
ChannelViewer,
|
|
FollowingPartModel,
|
|
ShareLinkArgs,
|
|
UseChannelActionsPartOptions,
|
|
PublicCreatorPayload,
|
|
PublicTierPayload,
|
|
TierPromotionPayload,
|
|
} from './features/channel';
|
|
export {
|
|
FOLLOW_EVENTS,
|
|
FOLLOWING_PAGE_LIMIT,
|
|
followCreator,
|
|
followKeys,
|
|
followRepository,
|
|
unfollowCreator,
|
|
} from './features/follow';
|
|
export type {
|
|
FollowArgs,
|
|
FollowChangePayload,
|
|
FollowedCreatorPayload,
|
|
FollowingPagePayload,
|
|
FollowingPayload,
|
|
FollowStatusPayload,
|
|
ListFollowingArgs,
|
|
} 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_ID_PATTERN,
|
|
POST_PAGE_LIMIT,
|
|
postKeys,
|
|
postRepository,
|
|
useChannelFeedPart,
|
|
usePostList,
|
|
usePostPart,
|
|
} from './features/post';
|
|
export type {
|
|
ChannelFeedPartModel,
|
|
CreatePostArgs,
|
|
DeletedPostPayload,
|
|
FileKind,
|
|
FilePagePayload,
|
|
FilePayload,
|
|
FileStatus,
|
|
FileVisibility,
|
|
ListCreatorPostsArgs,
|
|
ListedPost,
|
|
ListMyFilesArgs,
|
|
LockedPostPayload,
|
|
LockedPredictionPayload,
|
|
PostAccessLevel,
|
|
PostImagePayload,
|
|
PostListModel,
|
|
PostListQuery,
|
|
PostMediaArgs,
|
|
PostPagePayload,
|
|
PostPayload,
|
|
PostStatus,
|
|
PostType,
|
|
PredictionArgs,
|
|
PredictionDirection,
|
|
PredictionOutcome,
|
|
PredictionPayload,
|
|
PredictionStatus,
|
|
PostPartModel,
|
|
PurgedPostPayload,
|
|
UnlockedPostPayload,
|
|
UpdatePostArgs,
|
|
UploadFileArgs,
|
|
UploadFileOptions,
|
|
UseChannelFeedPartOptions,
|
|
UsePostListOptions,
|
|
UsePostPartOptions,
|
|
} from './features/post';
|
|
export {
|
|
PREDICTION_ENDPOINTS,
|
|
predictionKeys,
|
|
predictionRepository,
|
|
} from './features/prediction';
|
|
export type { PredictionStatsPayload } from './features/prediction';
|
|
export {
|
|
FEED_ENDPOINT,
|
|
FEED_PAGE_LIMIT,
|
|
feedKeys,
|
|
feedRepository,
|
|
useHomeFeedPart,
|
|
} from './features/feed';
|
|
export type {
|
|
FeedCreatorPayload,
|
|
FeedItemPayload,
|
|
FeedPayload,
|
|
HomeFeedPartModel,
|
|
ListFeedArgs,
|
|
} from './features/feed';
|
|
export {
|
|
PRICING_EVENTS,
|
|
pricingKeys,
|
|
pricingRepository,
|
|
savePricing,
|
|
usePricingCardPart,
|
|
usePricingPage,
|
|
} from './features/pricing';
|
|
export type {
|
|
PricingCardPartModel,
|
|
PricingFieldMessage,
|
|
PricingIssue,
|
|
PricingPageModel,
|
|
PricingPhase,
|
|
PricingPlanRow,
|
|
PricingPromotionView,
|
|
PricingTierView,
|
|
GetPricingFormArgs,
|
|
PricingConfirmationPayload,
|
|
PricingFieldName,
|
|
PricingFormPayload,
|
|
PricingPromotionArgs,
|
|
PricingTierArgs,
|
|
PricingTierField,
|
|
PricingTierPayload,
|
|
PricingTierPromotionPayload,
|
|
PricingValidationPayload,
|
|
SavePricingArgs,
|
|
} from './features/pricing';
|
|
export {
|
|
cancelSaleNotice,
|
|
CHECKOUT_ERROR_CODES,
|
|
CHECKOUT_EVENTS,
|
|
checkoutErrorCode,
|
|
checkoutKeys,
|
|
checkoutRepository,
|
|
joinWaitlist,
|
|
leaveWaitlist,
|
|
requestSaleNotice,
|
|
settleAbandonedPayment,
|
|
startCheckout,
|
|
useCheckoutPage,
|
|
usePaymentResultPage,
|
|
usePaymentReturnPage,
|
|
} from './features/checkout';
|
|
export type {
|
|
AbandonOutcome,
|
|
AbandonPaymentPayload,
|
|
CheckoutCtaState,
|
|
CheckoutErrorCode,
|
|
CheckoutHalt,
|
|
CheckoutMode,
|
|
CheckoutPageModel,
|
|
CheckoutPayload,
|
|
CheckoutPhase,
|
|
CheckoutResultPayload,
|
|
CheckoutTierPayload,
|
|
CodeCheck,
|
|
GrantedSubscriptionPayload,
|
|
PaymentResultKind,
|
|
PaymentResultPageModel,
|
|
PriceChangedPayload,
|
|
ReferralCodeArgs,
|
|
ReferralCodeStatus,
|
|
ReferralValidationPayload,
|
|
SubscribeArgs,
|
|
UseCheckoutPageOptions,
|
|
UsePaymentResultPageOptions,
|
|
UsePaymentReturnPageOptions,
|
|
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,
|
|
useAudiencePart,
|
|
useOwnSubscriberCount,
|
|
} from './features/overview';
|
|
export type {
|
|
AudiencePartModel,
|
|
CreatorDashboardPayload,
|
|
CreatorTierPayload,
|
|
RecentPaymentPayload,
|
|
UseOwnSubscriberCountOptions,
|
|
} from './features/overview';
|
|
export {
|
|
REFERRAL_ERROR_CODES,
|
|
REFERRAL_EVENTS,
|
|
referralErrorCode,
|
|
referralKeys,
|
|
referralRepository,
|
|
requestCapacity,
|
|
useInviteCodeAvailable,
|
|
useInviteCodePart,
|
|
} from './features/referral';
|
|
export type {
|
|
CapacityRequestPayload,
|
|
ReferralCardPayload,
|
|
ReferralErrorCode,
|
|
ReferralStatus,
|
|
RequestCapacityArgs,
|
|
} from './features/referral';
|
|
export {
|
|
earningsKeys,
|
|
earningsRepository,
|
|
FINANCE_EVENTS,
|
|
LEDGER_FILTER_PARAM,
|
|
LEDGER_FILTERS,
|
|
PAYOUT_ACCOUNT_ANCHOR,
|
|
PAYOUT_ACCOUNT_ERROR_CODES,
|
|
payoutAccountKeys,
|
|
payoutAccountRepository,
|
|
savePayoutAccount,
|
|
useBalancePart,
|
|
useLedgerPart,
|
|
usePayoutAccountPart,
|
|
} from './features/finance';
|
|
export type {
|
|
BalancePartModel,
|
|
BalancePayload,
|
|
CheckPayoutAccountArgs,
|
|
CheckPayoutAccountPayload,
|
|
CorrectionLedgerItemPayload,
|
|
IncomeLedgerItemPayload,
|
|
LedgerFilter,
|
|
LedgerItemPayload,
|
|
LedgerPagePayload,
|
|
LedgerPartModel,
|
|
ListLedgerArgs,
|
|
NextPayoutState,
|
|
PayoutAccountPartModel,
|
|
PayoutAccountPayload,
|
|
PayoutAccountPhase,
|
|
PayoutAccountState,
|
|
PayoutLedgerItemPayload,
|
|
PayoutReceiptPayload,
|
|
PayoutStatus,
|
|
RefundLedgerItemPayload,
|
|
SavePayoutAccountArgs,
|
|
} from './features/finance';
|
|
export {
|
|
IDENTITY_ANCHOR,
|
|
resubmitVerification,
|
|
useIdentityBlock,
|
|
VERIFICATION_ERROR_CODES,
|
|
VERIFICATION_EVENTS,
|
|
verificationErrorCode,
|
|
verificationRepository,
|
|
} from './features/verification';
|
|
export type {
|
|
IdentityBlockFormOutput,
|
|
IdentityBlockFormValues,
|
|
IdentityBlockModel,
|
|
ResubmitVerificationArgs,
|
|
UseIdentityBlockOptions,
|
|
VerificationErrorCode,
|
|
VerificationResubmittedEntity,
|
|
VerificationResubmittedPayload,
|
|
} from './features/verification';
|
|
export {
|
|
useAuthStore,
|
|
useCurrentAccount,
|
|
useNeedsProfile,
|
|
useViewerStatus,
|
|
} from './stores/auth';
|
|
export type { AuthState, Session, ViewerStatus } from './stores/auth';
|
|
export {
|
|
acceptAgreement,
|
|
LEGAL_ERROR_CODES,
|
|
LEGAL_EVENTS,
|
|
legalKeys,
|
|
legalRepository,
|
|
parseLegalMarkdown,
|
|
useAgreementAcceptance,
|
|
useAgreementGate,
|
|
useLegalDocument,
|
|
} from './features/legal';
|
|
export type {
|
|
AcceptDocumentArgs,
|
|
AcceptedDocumentPayload,
|
|
AgreementGateModel,
|
|
AgreementGateView,
|
|
LegalAcceptanceEntity,
|
|
LegalAcceptancePayload,
|
|
LegalBlock,
|
|
LegalDocumentEntity,
|
|
LegalDocumentKey,
|
|
LegalDocumentModel,
|
|
LegalDocumentPayload,
|
|
LegalInline,
|
|
} from './features/legal';
|