Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,8 @@
|
||||
import { UserSimple } from "~/utils/db/users.db.server";
|
||||
import { OnboardingFilterDto } from "./OnboardingFilterDto";
|
||||
|
||||
export interface OnboardingCandidateDto {
|
||||
user: UserSimple;
|
||||
tenant: { id: string; name: string; slug: string } | null;
|
||||
matchingFilters: OnboardingFilterDto[];
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import { OnboardingFilterType } from "./OnboardingFilterTypes";
|
||||
|
||||
export interface OnboardingFilterDto {
|
||||
type: OnboardingFilterType;
|
||||
value: string | null;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Tenant, Entity, Role } from "@toolctrl/db/prisma-browser";
|
||||
import { SubscriptionProductDto } from "~/application/dtos/subscriptions/SubscriptionProductDto";
|
||||
import { UserSimple } from "~/utils/db/users.db.server";
|
||||
|
||||
export interface OnboardingFilterMetadataDto {
|
||||
users: UserSimple[];
|
||||
tenants: Tenant[];
|
||||
entities: Entity[];
|
||||
subscriptionProducts: SubscriptionProductDto[];
|
||||
roles: Role[];
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
export const OnboardingFilterTypes = [
|
||||
"admin.portal",
|
||||
"user.is",
|
||||
"user.language",
|
||||
"user.firstName.notSet",
|
||||
"user.lastName.notSet",
|
||||
"user.avatar.notSet",
|
||||
"user.roles.contains",
|
||||
"user.roles.notContains",
|
||||
"tenant.portal",
|
||||
"tenant.is",
|
||||
"tenant.members.hasOne",
|
||||
"tenant.members.hasMany",
|
||||
"tenant.subscription.products.has",
|
||||
"tenant.subscription.active",
|
||||
"tenant.subscription.inactive",
|
||||
"tenant.api.used",
|
||||
"tenant.api.notUsed",
|
||||
"tenant.user.entity.hasCreated",
|
||||
"tenant.user.entity.hasNotCreated",
|
||||
] as const;
|
||||
export type OnboardingFilterType = (typeof OnboardingFilterTypes)[number];
|
||||
@@ -0,0 +1,5 @@
|
||||
import { OnboardingSessionFilterMatch, OnboardingFilter } from "@toolctrl/db/prisma-browser";
|
||||
|
||||
export type OnboardingMatchingFilterDto = OnboardingSessionFilterMatch & {
|
||||
onboardingFilter: OnboardingFilter;
|
||||
};
|
||||
@@ -0,0 +1,6 @@
|
||||
export interface OnboardingSessionActionDto {
|
||||
type: "click" | "input";
|
||||
name: string;
|
||||
value: string;
|
||||
createdAt?: Date;
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
export const OnboardingSessionStatuses = ["active", "started", "dismissed", "completed"] as const;
|
||||
export type OnboardingSessionStatus = (typeof OnboardingSessionStatuses)[number];
|
||||
@@ -0,0 +1,4 @@
|
||||
export interface OnboardingStepDto {
|
||||
order: number;
|
||||
block: string;
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
export const OnboardingStepTypes = ["text", "gallery", "form"] as const;
|
||||
export type OnboardingStepType = (typeof OnboardingStepTypes)[number];
|
||||
Reference in new issue
Block a user