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
-8
@@ -1,8 +0,0 @@
|
||||
export type ApiKeyEntityPermissionDto = {
|
||||
id: string;
|
||||
name: string;
|
||||
create: boolean;
|
||||
read: boolean;
|
||||
update: boolean;
|
||||
delete: boolean;
|
||||
};
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
export type BillingProviderCouponDto = {
|
||||
amount_off?: number | null;
|
||||
percent_off?: number | null;
|
||||
currency?: string | null;
|
||||
applies_to?: {
|
||||
products: string[];
|
||||
} | null;
|
||||
};
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
import type { BillingGatewayInvoice } from "@hivegrid/billing";
|
||||
|
||||
export type CustomerBillingInvoiceDto = {
|
||||
id: string;
|
||||
number: string | null;
|
||||
issuingDate: string | null;
|
||||
amountCents: number | null;
|
||||
currency: string | null;
|
||||
status: BillingGatewayInvoice["status"];
|
||||
paymentStatus: BillingGatewayInvoice["paymentStatus"];
|
||||
invoiceType: string | null;
|
||||
downloadHref: string | null;
|
||||
};
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
import { Entity, Property } from "@toolctrl/db/prisma-browser";
|
||||
import { EntityRelationshipWithDetails } from "~/utils/db/entities/entityRelationships.db.server";
|
||||
|
||||
export interface RowFiltersDto {
|
||||
customRow: boolean;
|
||||
entity: Entity;
|
||||
query: string | null;
|
||||
properties: {
|
||||
property?: Property;
|
||||
name?: string;
|
||||
value: string | string[] | null;
|
||||
condition?: string;
|
||||
match?: "and" | "or";
|
||||
parentEntity?: EntityRelationshipWithDetails;
|
||||
}[];
|
||||
tags: string[];
|
||||
}
|
||||
-4
@@ -1,8 +1,4 @@
|
||||
import { Entity, Property } from "@toolctrl/db/prisma-browser";
|
||||
|
||||
export interface SortedByDto {
|
||||
name: string;
|
||||
direction: "asc" | "desc";
|
||||
property?: Property;
|
||||
entity?: Entity;
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
import { Entity, Property, RowValue } from "@toolctrl/db/prisma-browser";
|
||||
|
||||
export interface RowDynamicValuesDto {
|
||||
form: Entity | undefined;
|
||||
name: string;
|
||||
total: number;
|
||||
headers: (RowValue & { property: Property })[];
|
||||
// details: RequestDetailDto[];
|
||||
}
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
import { RowMedia, RowValueMultiple, RowValueRange } from "@toolctrl/db/prisma-browser";
|
||||
import { PropertyWithDetails } from "~/utils/db/entities/entities.db.server";
|
||||
|
||||
export type RowValueDto = {
|
||||
id?: string | null;
|
||||
property: PropertyWithDetails;
|
||||
propertyId: string;
|
||||
textValue?: string | undefined;
|
||||
numberValue?: number | undefined;
|
||||
dateValue?: Date | undefined;
|
||||
booleanValue?: boolean | undefined;
|
||||
selectedOption?: string | undefined;
|
||||
media?: RowMedia[];
|
||||
multiple?: RowValueMultiple[];
|
||||
range?: RowValueRange | undefined;
|
||||
};
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
export type SetupItem = {
|
||||
title: string;
|
||||
description: string;
|
||||
completed: boolean;
|
||||
path: string | undefined;
|
||||
};
|
||||
+109
-16
@@ -27,12 +27,6 @@ export const DefaultPermissions = [
|
||||
"admin.roles.update",
|
||||
"admin.roles.delete",
|
||||
"admin.roles.set",
|
||||
"admin.analytics.view",
|
||||
"admin.analytics.delete",
|
||||
"admin.entities.view",
|
||||
"admin.entities.create",
|
||||
"admin.entities.update",
|
||||
"admin.entities.delete",
|
||||
// "admin.workflows.view",
|
||||
// "admin.workflows.create",
|
||||
// "admin.workflows.update",
|
||||
@@ -51,10 +45,6 @@ export const DefaultPermissions = [
|
||||
"admin.emails.create",
|
||||
"admin.emails.update",
|
||||
"admin.emails.delete",
|
||||
"admin.onboarding.view",
|
||||
"admin.onboarding.create",
|
||||
"admin.onboarding.update",
|
||||
"admin.onboarding.delete",
|
||||
"admin.notifications.view",
|
||||
"admin.notifications.manage",
|
||||
"admin.featureFlags.view",
|
||||
@@ -68,10 +58,6 @@ export const DefaultPermissions = [
|
||||
"admin.prompts.create",
|
||||
"admin.prompts.update",
|
||||
"admin.prompts.delete",
|
||||
"admin.formulas.view",
|
||||
"admin.formulas.create",
|
||||
"admin.formulas.update",
|
||||
"admin.formulas.delete",
|
||||
"admin.metrics.view",
|
||||
"admin.metrics.update",
|
||||
"admin.metrics.delete",
|
||||
@@ -86,13 +72,19 @@ export const DefaultPermissions = [
|
||||
"admin.settings.general.update",
|
||||
"admin.settings.authentication.view",
|
||||
"admin.settings.authentication.update",
|
||||
"admin.settings.analytics.view",
|
||||
"admin.settings.analytics.update",
|
||||
"admin.settings.seo.update",
|
||||
"admin.settings.internationalization.view",
|
||||
"admin.settings.internationalization.update",
|
||||
"admin.settings.danger.reset",
|
||||
"app.dashboard.view",
|
||||
// P11 Dashboard (R-P11b) — see packages/db permissions-seed.
|
||||
"dashboard.read",
|
||||
"dashboard.customize",
|
||||
// P12 Automation (R-P12a) — see packages/db permissions-seed.
|
||||
"automation.read",
|
||||
"automation.manage",
|
||||
"automation.run",
|
||||
"automation.admin",
|
||||
"app.settings.members.view",
|
||||
"app.settings.members.create",
|
||||
"app.settings.members.update",
|
||||
@@ -105,6 +97,8 @@ export const DefaultPermissions = [
|
||||
"app.settings.subscription.update",
|
||||
"app.settings.subscription.delete",
|
||||
"app.settings.subscription.invoices.view",
|
||||
"app.onboarding.demoData.manage",
|
||||
"app.onboarding.checklist.update",
|
||||
"app.settings.account.view",
|
||||
"app.settings.account.update",
|
||||
"app.settings.account.delete",
|
||||
@@ -131,6 +125,105 @@ export const DefaultPermissions = [
|
||||
"tasks.write",
|
||||
"tasks.delete",
|
||||
"tasks.admin",
|
||||
// P6 CRM core (R-P6) — see packages/db permissions-seed (same list).
|
||||
"crm.read_own",
|
||||
"crm.read_all",
|
||||
"crm.write",
|
||||
"crm.delete",
|
||||
"crm.admin",
|
||||
// P7 Lead-Inbox (R-P7) — see packages/db permissions-seed (same list).
|
||||
"leads.read_own",
|
||||
"leads.read_all",
|
||||
"leads.write",
|
||||
"leads.delete",
|
||||
"leads.admin",
|
||||
// P8 Projekt/Pipelines (R-P8a) — see packages/db permissions-seed.
|
||||
"projects.read_own",
|
||||
"projects.read_own_member",
|
||||
"projects.read_own_pl",
|
||||
"projects.read_all",
|
||||
"projects.write",
|
||||
"projects.change_stage",
|
||||
"projects.manage_members",
|
||||
"projects.delete",
|
||||
"projects.admin",
|
||||
// P9 Plantafel + Abnahme (R-P9b) — see packages/db permissions-seed.
|
||||
"plantafel.read_own",
|
||||
"plantafel.read_all",
|
||||
"plantafel.write",
|
||||
"plantafel.bulk_reassign",
|
||||
"acceptance.read",
|
||||
"acceptance.write",
|
||||
"acceptance.admin",
|
||||
"deals.read_volume_own",
|
||||
"deals.read_volume_all",
|
||||
"deals.read_aggregates",
|
||||
// P17 HR-Hub core (AK-P17a) — see packages/db permissions-seed (same list).
|
||||
"hr.read_own",
|
||||
"hr.read_all",
|
||||
"hr.write",
|
||||
"hr.admin",
|
||||
"hr.passwordsafe.use",
|
||||
"hr.passwordsafe.admin",
|
||||
// P17 HR-Hub workflows (AK-P17b) — see packages/db permissions-seed (same list).
|
||||
"hr.leave.approve",
|
||||
"hr.surveys.results",
|
||||
// P14 Email (AK-P14a) — tenant-side sending-domain management (see packages/db
|
||||
// permissions-seed, same list). The module itself is feature-gated
|
||||
// (email-marketing); these gate viewing/managing the sending domain + suppression.
|
||||
"email.domain.view",
|
||||
"email.domain.manage",
|
||||
// P14 Email-Marketing (AK-P14b) — see packages/db permissions-seed (same list).
|
||||
"emailMarketing.view",
|
||||
"emailMarketing.manage",
|
||||
// P23 Postfach-Sync (VA-P23) — see packages/db permissions-seed (same list).
|
||||
// read_own: mails of the user's OWN connected mailboxes; read_all: every
|
||||
// tenant mailbox; write: compose/send over the own mailbox (M09 Block I).
|
||||
"email.read_own",
|
||||
"email.read_all",
|
||||
"email.write",
|
||||
// P5 Apps-Engine (R-P5) — see packages/db permissions-seed (same list).
|
||||
"integrations.read",
|
||||
"integrations.connect",
|
||||
"integrations.disconnect",
|
||||
"integrations.manual_sync",
|
||||
"integrations.view_logs",
|
||||
"integrations.admin",
|
||||
// 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).
|
||||
"calendar.connect_own",
|
||||
"calendar.admin",
|
||||
// P16 Booking (AK-P16b) — see packages/db permissions-seed (same list). Cumulative
|
||||
// bundle (M06 Block K): read_own < read_all < write < admin. read_own/write are
|
||||
// owner-filtered server-side (provider_user_id = self).
|
||||
"bookings.read_own",
|
||||
"bookings.read_all",
|
||||
"bookings.write",
|
||||
"bookings.admin",
|
||||
// P16 Forms (AK-P16c) — see packages/db permissions-seed (same list).
|
||||
"forms.basic",
|
||||
"forms.builder",
|
||||
"forms.publisher",
|
||||
"forms.admin",
|
||||
// P16 Signature (AK-P16d) — see packages/db permissions-seed (same list).
|
||||
// Cumulative bundle: read < send < revoke < admin. read/send are owner-filtered
|
||||
// server-side through the linked Projekt; admin can manage every tenant document.
|
||||
"signature.read",
|
||||
"signature.send",
|
||||
"signature.revoke",
|
||||
"signature.admin",
|
||||
// P11 Global Search (R-P11a) — search.use opens Cmd+K and full search;
|
||||
// search.admin is reserved for reindex/admin controls.
|
||||
"search.use",
|
||||
"search.admin",
|
||||
// P21 Privacy/GDPR (AK-P21) — see packages/db permissions-seed (same list).
|
||||
"privacy.user_export.self",
|
||||
"privacy.tenant_export",
|
||||
"privacy.tenant_deletion",
|
||||
"privacy.avv.read",
|
||||
"privacy.avv.accept",
|
||||
"privacy.subprocessors.read",
|
||||
// "entity.{name}.view",
|
||||
// "entity.{name}.read",
|
||||
// "entity.{name}.create",
|
||||
|
||||
+2
-2
@@ -1,12 +1,12 @@
|
||||
import { SubscriptionProductDto } from "./SubscriptionProductDto";
|
||||
import { SubscriptionPriceType } from "~/application/enums/subscriptions/SubscriptionPriceType";
|
||||
import { SubscriptionBillingPeriod } from "~/application/enums/subscriptions/SubscriptionBillingPeriod";
|
||||
import { SubscriptionUsageBasedTier } from "@toolctrl/db/prisma-browser";
|
||||
import { SubscriptionUsageBasedTier } from "@hivegrid/db/prisma-browser";
|
||||
import { Decimal } from "decimal.js";
|
||||
|
||||
export interface SubscriptionPriceDto {
|
||||
id?: string;
|
||||
stripeId: string;
|
||||
billingProviderId: string;
|
||||
type: SubscriptionPriceType;
|
||||
billingPeriod: SubscriptionBillingPeriod;
|
||||
price: number | Decimal;
|
||||
|
||||
+2
-2
@@ -2,11 +2,11 @@ import { SubscriptionPriceDto } from "./SubscriptionPriceDto";
|
||||
import { SubscriptionFeatureDto } from "./SubscriptionFeatureDto";
|
||||
import { PricingModel } from "~/application/enums/subscriptions/PricingModel";
|
||||
import { SubscriptionUsageBasedPriceDto } from "./SubscriptionUsageBasedPriceDto";
|
||||
import { TenantSubscriptionProduct, TenantType } from "@toolctrl/db/prisma-browser";
|
||||
import { TenantSubscriptionProduct, TenantType } from "@hivegrid/db/prisma-browser";
|
||||
|
||||
export interface SubscriptionProductDto {
|
||||
id?: string;
|
||||
stripeId: string;
|
||||
billingProviderId: string;
|
||||
order: number;
|
||||
title: string;
|
||||
description: string | null;
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import { SubscriptionUsageBasedTierDto } from "./SubscriptionUsageBasedTierDto";
|
||||
export interface SubscriptionUsageBasedPriceDto {
|
||||
id: string;
|
||||
subscriptionProductId: string;
|
||||
stripeId: string;
|
||||
billingProviderId: string;
|
||||
billingPeriod: SubscriptionBillingPeriod;
|
||||
currency: string;
|
||||
unit: string;
|
||||
|
||||
Reference in new issue
Block a user