Converts secrets list to something more generic
This commit is contained in:
@@ -41,8 +41,13 @@ export type Secret = Document &
|
||||
}
|
||||
>;
|
||||
|
||||
export const RelationshipType = {
|
||||
Secrets: "secrets",
|
||||
DiscoveredIn: "discoveredIn",
|
||||
} as const;
|
||||
|
||||
export type Relationship = RecordModel & {
|
||||
primary: DocumentId;
|
||||
secondary: DocumentId[];
|
||||
type: "plannedSecrets" | "discoveredIn";
|
||||
type: (typeof RelationshipType)[keyof typeof RelationshipType];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user