Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { getDbClient } from "./client.server.js";
|
||||
import type { Tenant, TenantInboundAddress, TenantIpAddress, TenantSettingsRow, TenantType, TenantUser } from "./prisma-browser.js";
|
||||
import type { Tenant, TenantInboundAddress, TenantIpAddress, TenantType, TenantUser } from "./prisma-browser.js";
|
||||
import type { TenantSubscriptionWithDetails } from "./subscriptions.server.js";
|
||||
|
||||
const ACTIVE_TENANT_USER_STATUS = 2;
|
||||
@@ -39,7 +39,6 @@ export type LegacyTenantWithDetails = Tenant & {
|
||||
user: LegacyTenantUserSummary;
|
||||
})[];
|
||||
subscription: TenantSubscriptionWithDetails | null;
|
||||
tenantSettingsRow: (TenantSettingsRow & { row: unknown }) | null;
|
||||
types: TenantType[];
|
||||
};
|
||||
|
||||
@@ -134,56 +133,6 @@ const includeAuthBoundaryTenantMembership = {
|
||||
user: { select: selectLegacyTenantUserSummary },
|
||||
} as const;
|
||||
|
||||
const includeLegacyRowDetails = {
|
||||
createdByUser: { select: selectLegacyTenantUserSummary },
|
||||
createdByApiKey: true,
|
||||
tenant: true,
|
||||
values: { include: { media: true, multiple: true, range: true } },
|
||||
tags: { include: { tag: true } },
|
||||
parentRows: {
|
||||
include: {
|
||||
parent: {
|
||||
include: {
|
||||
createdByUser: { select: selectLegacyTenantUserSummary },
|
||||
createdByApiKey: true,
|
||||
values: { include: { media: true, multiple: true, range: true } },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
childRows: {
|
||||
include: {
|
||||
child: {
|
||||
include: {
|
||||
createdByUser: { select: selectLegacyTenantUserSummary },
|
||||
createdByApiKey: true,
|
||||
values: { include: { media: true, multiple: true, range: true } },
|
||||
parentRows: {
|
||||
include: {
|
||||
parent: {
|
||||
include: {
|
||||
values: { include: { media: true, multiple: true, range: true } },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
childRows: {
|
||||
include: {
|
||||
child: {
|
||||
include: {
|
||||
values: { include: { media: true, multiple: true, range: true } },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
permissions: true,
|
||||
sampleCustomEntity: true,
|
||||
} as const;
|
||||
|
||||
export const legacyTenantDetailsInclude = {
|
||||
inboundAddresses: true,
|
||||
users: {
|
||||
@@ -200,7 +149,6 @@ export const legacyTenantDetailsInclude = {
|
||||
},
|
||||
},
|
||||
},
|
||||
tenantSettingsRow: { include: { row: { include: includeLegacyRowDetails } } },
|
||||
types: true,
|
||||
} as const;
|
||||
|
||||
|
||||
Reference in new issue
Block a user