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
+2
-4
@@ -1,6 +1,4 @@
|
||||
import { UserWithoutPassword } from "~/utils/db/users.db.server";
|
||||
|
||||
export type ImpersonatingSessionDto = {
|
||||
fromUser: UserWithoutPassword;
|
||||
toUser: UserWithoutPassword;
|
||||
fromUser: { id: string; email: string };
|
||||
toUser: { id: string; email: string };
|
||||
};
|
||||
+70
-8
@@ -7,10 +7,6 @@ export const DefaultPermissions = [
|
||||
"admin.account.users",
|
||||
"admin.account.subscription",
|
||||
"admin.account.delete",
|
||||
"admin.accountTypes.view",
|
||||
"admin.accountTypes.create",
|
||||
"admin.accountTypes.update",
|
||||
"admin.accountTypes.delete",
|
||||
"admin.users.view",
|
||||
"admin.users.impersonate",
|
||||
"admin.users.changePassword",
|
||||
@@ -51,6 +47,10 @@ export const DefaultPermissions = [
|
||||
"admin.featureFlags.manage",
|
||||
"admin.marketing.leads.view",
|
||||
"admin.marketing.leads.manage",
|
||||
"admin.leads.read_own",
|
||||
"admin.leads.read_all",
|
||||
"admin.leads.write",
|
||||
"admin.leads.admin",
|
||||
"admin.marketing.integrations.view",
|
||||
"admin.marketing.integrations.manage",
|
||||
"admin.marketing.funnels.view",
|
||||
@@ -65,9 +65,6 @@ export const DefaultPermissions = [
|
||||
"admin.kb.create",
|
||||
"admin.kb.update",
|
||||
"admin.kb.delete",
|
||||
"admin.settings.cookies.view",
|
||||
"admin.settings.cookies.create",
|
||||
"admin.settings.cookies.update",
|
||||
"admin.settings.general.view",
|
||||
"admin.settings.general.update",
|
||||
"admin.settings.authentication.view",
|
||||
@@ -113,6 +110,15 @@ export const DefaultPermissions = [
|
||||
"app.settings.auditTrails.view",
|
||||
"app.plugins.use",
|
||||
"app.plugins.manage",
|
||||
// P26 Customer Portal (VA-P26a/b) — tenant-side portal management only.
|
||||
// PortalUser identities never receive workspace permissions.
|
||||
"portal.read",
|
||||
"portal.manage_users",
|
||||
"portal.manage_access",
|
||||
"portal.delete_user",
|
||||
"portal.activity.read",
|
||||
"portal.activity.manage",
|
||||
"portal.admin",
|
||||
// P4 Files (AK-P4a) — see packages/db permissions-seed (same list).
|
||||
"files.read_own",
|
||||
"files.read_all",
|
||||
@@ -147,6 +153,10 @@ export const DefaultPermissions = [
|
||||
"projects.manage_members",
|
||||
"projects.delete",
|
||||
"projects.admin",
|
||||
// WF-P8 S02-N: read notes marked "Nur Innendienst".
|
||||
"projects.read_internal_notes",
|
||||
// WF-P8 M04: hand a project over into the successor pipeline.
|
||||
"projects.handover",
|
||||
// P9 Plantafel + Abnahme (R-P9b) — see packages/db permissions-seed.
|
||||
"plantafel.read_own",
|
||||
"plantafel.read_all",
|
||||
@@ -164,6 +174,7 @@ export const DefaultPermissions = [
|
||||
"hr.write",
|
||||
"hr.admin",
|
||||
"hr.passwordsafe.use",
|
||||
"hr.passwordsafe.export",
|
||||
"hr.passwordsafe.admin",
|
||||
// P17 HR-Hub workflows (AK-P17b) — see packages/db permissions-seed (same list).
|
||||
"hr.leave.approve",
|
||||
@@ -189,6 +200,21 @@ export const DefaultPermissions = [
|
||||
"integrations.manual_sync",
|
||||
"integrations.view_logs",
|
||||
"integrations.admin",
|
||||
// P15 Telephony (AK-P15a) — see packages/db permissions-seed (same list).
|
||||
// read_own/call are user capabilities; read_all/manage are tenant-admin
|
||||
// capabilities for call history, OAuth setup, bindings and match overrides.
|
||||
"telephony.read_own",
|
||||
"telephony.read_all",
|
||||
"telephony.call",
|
||||
"telephony.manage",
|
||||
// P15 Team-Chat (AK-P15b) — membership-scoped collaboration plus explicit
|
||||
// tenant-wide channel administration and audited read access.
|
||||
"chat.read_own_channels",
|
||||
"chat.write",
|
||||
"chat.create_channel",
|
||||
"chat.create_dm",
|
||||
"chat.admin",
|
||||
"chat.read_all_channels",
|
||||
// P16 Calendar-Sync (AK-P16a) — see packages/db permissions-seed (same list).
|
||||
// connect_own: connect/manage your OWN calendar; admin: tenant-wide oversight
|
||||
// + force-disconnect on user offboarding (M25 Block I).
|
||||
@@ -213,7 +239,7 @@ export const DefaultPermissions = [
|
||||
"signature.send",
|
||||
"signature.revoke",
|
||||
"signature.admin",
|
||||
// P11 Global Search (R-P11a) — search.use opens Cmd+K and full search;
|
||||
// P11 Global Search (R-P11a) — search.use opens the desktop/mobile Spotlight search;
|
||||
// search.admin is reserved for reindex/admin controls.
|
||||
"search.use",
|
||||
"search.admin",
|
||||
@@ -224,6 +250,42 @@ export const DefaultPermissions = [
|
||||
"privacy.avv.read",
|
||||
"privacy.avv.accept",
|
||||
"privacy.subprocessors.read",
|
||||
// P28 Admin identity and platform-sales workspace.
|
||||
"admin_identity.users.read",
|
||||
"admin_identity.users.manage",
|
||||
"admin_identity.roles.read",
|
||||
"admin_identity.roles.manage",
|
||||
"admin_identity.sessions.read",
|
||||
"admin_identity.sessions.revoke",
|
||||
"admin_identity.audit.read",
|
||||
"admin_identity.audit.export",
|
||||
"admin_identity.impersonation.start",
|
||||
"admin_identity.tenants.manage",
|
||||
"admin_sales.crm.read",
|
||||
"admin_sales.crm.read_all",
|
||||
"admin_sales.crm.write",
|
||||
"admin_sales.crm.write_all",
|
||||
"admin_sales.crm.assign",
|
||||
"admin_sales.crm.merge",
|
||||
"admin_sales.crm.export",
|
||||
"admin_sales.communication.read_all",
|
||||
"admin_sales.email.connect",
|
||||
"admin_sales.email.send",
|
||||
"admin_sales.email.track",
|
||||
"admin_sales.email.bulk_send",
|
||||
"admin_sales.phone.call",
|
||||
"admin_sales.phone.recording",
|
||||
"admin_sales.sequence.manage",
|
||||
"admin_sales.sequence.enroll",
|
||||
"admin_sales.booking.manage",
|
||||
"admin_sales.quote.manage",
|
||||
"admin_sales.quote.approve",
|
||||
"admin_sales.signature.manage",
|
||||
"admin_sales.reporting.read",
|
||||
"admin_sales.reporting.read_all",
|
||||
"admin_sales.reporting.manage",
|
||||
"admin_sales.automation.manage",
|
||||
"admin_sales.integrations.manage",
|
||||
// "entity.{name}.view",
|
||||
// "entity.{name}.read",
|
||||
// "entity.{name}.create",
|
||||
|
||||
+5
-2
@@ -2,7 +2,7 @@ import { SubscriptionPriceDto } from "./SubscriptionPriceDto";
|
||||
import { SubscriptionFeatureDto } from "./SubscriptionFeatureDto";
|
||||
import { PricingModel } from "~/application/enums/subscriptions/PricingModel";
|
||||
import { SubscriptionUsageBasedPriceDto } from "./SubscriptionUsageBasedPriceDto";
|
||||
import { TenantSubscriptionProduct, TenantType } from "@hivegrid/db/prisma-browser";
|
||||
import { TenantSubscriptionProduct } from "@hivegrid/db/prisma-browser";
|
||||
|
||||
export interface SubscriptionProductDto {
|
||||
id?: string;
|
||||
@@ -21,8 +21,11 @@ export interface SubscriptionProductDto {
|
||||
translatedTitle?: string;
|
||||
usageBasedPrices?: SubscriptionUsageBasedPriceDto[];
|
||||
tenantProducts?: TenantSubscriptionProduct[];
|
||||
assignsTenantTypes?: TenantType[];
|
||||
tenantProductCount?: number;
|
||||
billingAddressCollection?: string | null;
|
||||
hasQuantity?: boolean;
|
||||
canBuyAgain?: boolean;
|
||||
kind?: "base_plan" | "recurring_add_on" | "one_time_setup" | "contract_override";
|
||||
code?: string | null;
|
||||
lagoPlanCode?: string | null;
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
export type TenantTypeDto = {
|
||||
id?: string;
|
||||
title: string;
|
||||
titlePlural: string;
|
||||
description: string | null;
|
||||
isDefault?: boolean;
|
||||
subscriptionProducts?: { id?: string; title: string }[];
|
||||
_count?: { tenants: number };
|
||||
};
|
||||
Reference in new issue
Block a user