Initial commit

This commit is contained in:
fraqtal
2026-07-12 08:15:46 +00:00
commit ee0fec0691
1397 changed files with 127242 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import type { FieldPii } from "./pii-types";
import type { CollectionRetention } from "./retention-types";
import type { CollectionSubject } from "./subject-linkage-types";
declare module "payload" {
// FieldBase.custom is typed as FieldCustom (interface extending Record<string, any>).
// Augmenting it makes pii available on every field type.
interface FieldCustom {
pii?: FieldPii;
}
// CollectionConfig.custom is typed as CollectionCustom (interface extending Record<string, any>).
interface CollectionCustom {
retention?: CollectionRetention;
authPii?: Record<string, FieldPii | null>;
subject?: CollectionSubject | CollectionSubject[];
}
}