Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -1,4 +1,6 @@
|
||||
import { useMatches } from "react-router";
|
||||
import type { SeatType } from "@hivegrid/db/prisma-browser";
|
||||
import type { SubscriptionBannerVM } from "@hivegrid/view-models";
|
||||
import { TenantUserType } from "~/application/enums/tenants/TenantUserType";
|
||||
import { TenantSimple } from "../db/tenants.db.server";
|
||||
import { TenantSubscriptionWithDetails } from "../db/tenantSubscriptions.db.server";
|
||||
@@ -7,7 +9,16 @@ import { AppOrAdminData } from "./useAppOrAdminData";
|
||||
export type AppLoaderData = AppOrAdminData & {
|
||||
currentTenant: TenantSimple;
|
||||
mySubscription: TenantSubscriptionWithDetails | null;
|
||||
/**
|
||||
* Root-route decision for the focused first-purchase gate. A persisted
|
||||
* signup selection keeps a new tenant locked even where subscriptions are
|
||||
* not globally required (for example staging demo environments).
|
||||
*/
|
||||
subscriptionActivationRequired?: boolean;
|
||||
billingBanner: SubscriptionBannerVM;
|
||||
currentRole: TenantUserType;
|
||||
/** Effective seat type of the current user in this tenant (office vs field, Fundament C). */
|
||||
effectiveSeatType: SeatType;
|
||||
};
|
||||
|
||||
export function useAppData(): AppLoaderData {
|
||||
|
||||
Reference in new issue
Block a user