@easy-cms/core 0.32.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +241 -6
- package/dist/index.js +1000 -226
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -741,6 +741,194 @@ type UpdateInput<C extends Config, S extends CollectionSlug<C>> = Partial<Create
|
|
|
741
741
|
/** Data accepted by `updateGlobal`. */
|
|
742
742
|
type GlobalInput<C extends Config, S extends GlobalSlug<C>> = Partial<Simplify<FieldsInput<GlobalBySlug<C, S>['fields']> & StatusInput<GlobalBySlug<C, S>>>>;
|
|
743
743
|
|
|
744
|
+
/** What a role may do with a collection or global, ticked in Settings → Roles. */
|
|
745
|
+
declare const ROLE_OPERATIONS: readonly ["read", "create", "update", "delete", "publish"];
|
|
746
|
+
type RoleOperation = (typeof ROLE_OPERATIONS)[number];
|
|
747
|
+
/** A field a role may only read, or not see at all; fields not listed follow the collection. */
|
|
748
|
+
type FieldRule = 'read' | 'hidden';
|
|
749
|
+
type FieldRules = Readonly<Record<string, Readonly<Record<string, FieldRule>>>>;
|
|
750
|
+
/**
|
|
751
|
+
* Stored in a role's `permissions`. Anything not listed is not allowed. A slug listed with no
|
|
752
|
+
* operations has been looked at and given nothing (it is not "new" in Settings → Roles).
|
|
753
|
+
*/
|
|
754
|
+
interface RolePermissions {
|
|
755
|
+
readonly collections?: Readonly<Record<string, readonly RoleOperation[]>>;
|
|
756
|
+
readonly globals?: Readonly<Record<string, readonly RoleOperation[]>>;
|
|
757
|
+
/** Admin pages: `status`, `deliveries`, `page:<path>` (`admin.pages`), `widget:<tag>` (`admin.dashboard`). */
|
|
758
|
+
readonly admin?: readonly string[];
|
|
759
|
+
/** Operations of `collections` allowed only on the role's own documents (see `admin.ownerField`). */
|
|
760
|
+
readonly own?: Readonly<Record<string, readonly RoleOperation[]>>;
|
|
761
|
+
/** Top-level fields the role may only read or not see, by collection or global slug. */
|
|
762
|
+
readonly fields?: {
|
|
763
|
+
readonly collections?: FieldRules;
|
|
764
|
+
readonly globals?: FieldRules;
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
/** One role as Settings → Roles shows it (`GET <api>/admin/roles`). */
|
|
768
|
+
interface AdminRole {
|
|
769
|
+
id: ID;
|
|
770
|
+
key: string;
|
|
771
|
+
/** The name shown in the admin; empty for roles from the config that were not renamed. */
|
|
772
|
+
name: string;
|
|
773
|
+
/** From `auth.roles`: can't be deleted. */
|
|
774
|
+
system: boolean;
|
|
775
|
+
/** Users with this role. */
|
|
776
|
+
users: number;
|
|
777
|
+
permissions: RolePermissions;
|
|
778
|
+
updatedAt: string;
|
|
779
|
+
}
|
|
780
|
+
/** A top-level field whose permission can be set per role. */
|
|
781
|
+
interface AdminRoleField {
|
|
782
|
+
name: string;
|
|
783
|
+
label?: Label;
|
|
784
|
+
/** Required without a default value: roles that create documents must be able to fill it. */
|
|
785
|
+
required: boolean;
|
|
786
|
+
/** The collection's owner field (`admin.ownerField`). */
|
|
787
|
+
owner?: boolean;
|
|
788
|
+
}
|
|
789
|
+
/** A row of the permissions table. */
|
|
790
|
+
interface AdminRoleTarget {
|
|
791
|
+
slug: string;
|
|
792
|
+
/** Operations that make sense here (`publish` with drafts). */
|
|
793
|
+
ops: RoleOperation[];
|
|
794
|
+
/** No role has been given anything here yet (added to the config since). */
|
|
795
|
+
new: boolean;
|
|
796
|
+
fields: AdminRoleField[];
|
|
797
|
+
}
|
|
798
|
+
/** A page or dashboard panel that can be given to roles. */
|
|
799
|
+
interface AdminRoleView {
|
|
800
|
+
id: string;
|
|
801
|
+
/** For plugin pages and panels; the admin names `status` and `deliveries` itself. */
|
|
802
|
+
label?: Label;
|
|
803
|
+
}
|
|
804
|
+
/** Settings → Roles (`GET <api>/admin/roles`). */
|
|
805
|
+
interface AdminRoles {
|
|
806
|
+
roles: AdminRole[];
|
|
807
|
+
collections: (AdminRoleTarget & {
|
|
808
|
+
/** Collections its relationship and upload fields point to. */
|
|
809
|
+
references: string[];
|
|
810
|
+
/** Can be limited to own documents: the field that names the owner (`createdBy` by default). */
|
|
811
|
+
owner?: string;
|
|
812
|
+
})[];
|
|
813
|
+
globals: AdminRoleTarget[];
|
|
814
|
+
views: AdminRoleView[];
|
|
815
|
+
}
|
|
816
|
+
/** One change to a role (`GET <api>/admin/roles/:id/history`). */
|
|
817
|
+
interface AdminRoleChange {
|
|
818
|
+
id: ID;
|
|
819
|
+
/** Email of who saved it, or `null` when it was the system (first start). */
|
|
820
|
+
author: string | null;
|
|
821
|
+
createdAt: string;
|
|
822
|
+
name: string;
|
|
823
|
+
permissions: RolePermissions;
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
826
|
+
* Roles and their permissions (`auth.rbac`), on top of access rules: an operation is allowed
|
|
827
|
+
* when both allow it. Admins may do everything; requests that are not logged in are left to
|
|
828
|
+
* access rules alone.
|
|
829
|
+
*/
|
|
830
|
+
declare class Roles {
|
|
831
|
+
private readonly config;
|
|
832
|
+
private readonly db;
|
|
833
|
+
private readonly log?;
|
|
834
|
+
readonly enabled: boolean;
|
|
835
|
+
private readonly versions;
|
|
836
|
+
private cache;
|
|
837
|
+
private synced;
|
|
838
|
+
constructor(config: ResolvedConfig, db: Database, log?: ((message: string) => void) | undefined);
|
|
839
|
+
/**
|
|
840
|
+
* Whether the user's role allows an operation: `true`, `false`, or for their own account
|
|
841
|
+
* (users without read or update on `users`) a constraint to it.
|
|
842
|
+
*/
|
|
843
|
+
allows(user: AuthUser | null, target: {
|
|
844
|
+
collection: string;
|
|
845
|
+
} | {
|
|
846
|
+
global: string;
|
|
847
|
+
}, operation: RoleOperation): Promise<boolean | Where>;
|
|
848
|
+
/**
|
|
849
|
+
* Whether the user may open an admin page: admins always; with roles, those whose role has
|
|
850
|
+
* it; without roles, nobody else (`status`, `deliveries`) or everybody (plugin pages).
|
|
851
|
+
*/
|
|
852
|
+
canView(user: AuthUser, id: string): Promise<boolean>;
|
|
853
|
+
/**
|
|
854
|
+
* The field that names a collection's owner, for "own documents only": `admin.ownerField`, or
|
|
855
|
+
* `createdBy`. `undefined` without roles, and for users and collections roles don't cover.
|
|
856
|
+
*/
|
|
857
|
+
ownerOf(slug: string): string | undefined;
|
|
858
|
+
/**
|
|
859
|
+
* The user's field rules (top-level fields their role may only read, or not see), for field
|
|
860
|
+
* access checks. Roles that may update only their own documents can't change the owner field.
|
|
861
|
+
*/
|
|
862
|
+
fieldRules(user: AuthUser | null): Promise<ReadonlyMap<Field, FieldRule> | undefined>;
|
|
863
|
+
/** A new document is its creator's: sets `createdBy`, and an empty owner field. */
|
|
864
|
+
fillOwner(slug: string, data: Record<string, unknown>, user: AuthUser | null): void;
|
|
865
|
+
/** Documents a user owns, by collection (`createdBy` and owner fields), for deleting them. */
|
|
866
|
+
owned(userId: ID): Promise<{
|
|
867
|
+
collection: string;
|
|
868
|
+
count: number;
|
|
869
|
+
}[]>;
|
|
870
|
+
/** Gives a deleted user's documents to another user, or to nobody (`null`). */
|
|
871
|
+
transfer(from: ID, to: ID | null): Promise<void>;
|
|
872
|
+
/** Forgets cached permissions, after a role changed. */
|
|
873
|
+
invalidate(): void;
|
|
874
|
+
/**
|
|
875
|
+
* Adds the roles of `auth.roles` that are missing; on the first start, gives them everything.
|
|
876
|
+
* Runs once, on first use (not on startup: `easy-cms migrate` opens the CMS before the table exists).
|
|
877
|
+
*/
|
|
878
|
+
sync(): Promise<void>;
|
|
879
|
+
private addMissing;
|
|
880
|
+
/**
|
|
881
|
+
* Documents from before roles have no `createdBy`: it is filled from who saved their first
|
|
882
|
+
* version, for collections with versions. Only while no document of the collection has one,
|
|
883
|
+
* so it runs once (and finds nothing to do afterwards).
|
|
884
|
+
*/
|
|
885
|
+
private backfillCreators;
|
|
886
|
+
/** Whether a role exists (users can only be given existing roles). */
|
|
887
|
+
exists(key: string): Promise<boolean>;
|
|
888
|
+
/** Roles a user can be given, those of `auth.roles` first; `name` may be empty. */
|
|
889
|
+
options(): Promise<{
|
|
890
|
+
key: string;
|
|
891
|
+
name: string;
|
|
892
|
+
}[]>;
|
|
893
|
+
list(): Promise<AdminRoles>;
|
|
894
|
+
create(input: {
|
|
895
|
+
key?: unknown;
|
|
896
|
+
name?: unknown;
|
|
897
|
+
permissions?: unknown;
|
|
898
|
+
}, author: AuthUser): Promise<AdminRole>;
|
|
899
|
+
update(id: ID, input: {
|
|
900
|
+
name?: unknown;
|
|
901
|
+
permissions?: unknown;
|
|
902
|
+
}, author: AuthUser): Promise<AdminRole>;
|
|
903
|
+
delete(id: ID): Promise<void>;
|
|
904
|
+
history(id: ID): Promise<AdminRoleChange[]>;
|
|
905
|
+
/** Pages and panels roles can be given. */
|
|
906
|
+
private views;
|
|
907
|
+
/** Every collection and global, and the plugin pages and panels: what roles had before roles. */
|
|
908
|
+
private everything;
|
|
909
|
+
/** Keeps only known collections, globals, operations and pages; `read` comes with the others. */
|
|
910
|
+
private clean;
|
|
911
|
+
/**
|
|
912
|
+
* Keeps rules for known top-level fields. A field that must be filled in (required, without a
|
|
913
|
+
* default) can't be read-only or hidden for a role that creates documents.
|
|
914
|
+
*/
|
|
915
|
+
private cleanRules;
|
|
916
|
+
/** Fields that name a collection's owner (`createdBy`, and `admin.ownerField`). */
|
|
917
|
+
private ownerColumns;
|
|
918
|
+
/** Sets one field of every matching document, keeping the rest as stored. */
|
|
919
|
+
private setWhere;
|
|
920
|
+
private cleanName;
|
|
921
|
+
private permissionsOf;
|
|
922
|
+
private load;
|
|
923
|
+
private rows;
|
|
924
|
+
private row;
|
|
925
|
+
private users;
|
|
926
|
+
private insert;
|
|
927
|
+
/** Keeps the role as saved, for its history. */
|
|
928
|
+
private record;
|
|
929
|
+
private toRole;
|
|
930
|
+
}
|
|
931
|
+
|
|
744
932
|
interface StoredFile {
|
|
745
933
|
readonly body: Uint8Array;
|
|
746
934
|
readonly size: number;
|
|
@@ -882,6 +1070,8 @@ declare class EasyCMS<C extends Config = Config> {
|
|
|
882
1070
|
readonly storage: StorageAdapter;
|
|
883
1071
|
/** Project root: relative paths in the config (e.g. `admin.modules`) start here. */
|
|
884
1072
|
readonly cwd: string;
|
|
1073
|
+
/** Roles and their permissions (`auth.rbac`, Settings → Roles). */
|
|
1074
|
+
readonly roles: Roles;
|
|
885
1075
|
private readonly versions;
|
|
886
1076
|
private readonly webhooks;
|
|
887
1077
|
private readonly mailer;
|
|
@@ -974,7 +1164,13 @@ declare class EasyCMS<C extends Config = Config> {
|
|
|
974
1164
|
private previewURL;
|
|
975
1165
|
private versionTarget;
|
|
976
1166
|
private updateDocument;
|
|
977
|
-
|
|
1167
|
+
/**
|
|
1168
|
+
* Deletes a document. Deleting a user with roles from the admin (`auth.rbac`): `transferTo`
|
|
1169
|
+
* gives the documents they own to another user; without it they have no owner.
|
|
1170
|
+
*/
|
|
1171
|
+
delete<S extends Slug<C>>(collection: S, id: ID, options?: AccessOptions & {
|
|
1172
|
+
transferTo?: ID | null;
|
|
1173
|
+
}): Promise<Doc<C, S>>;
|
|
978
1174
|
findGlobal<S extends GSlug<C>>(slug: S, options?: ReadOptions): Promise<GDoc<C, S>>;
|
|
979
1175
|
updateGlobal<S extends GSlug<C>>(slug: S, data: GInput<C, S>, options?: DepthOptions): Promise<GDoc<C, S>>;
|
|
980
1176
|
/** Takes a global off the site (`status: 'draft'`). See `unpublish`. */
|
|
@@ -1101,13 +1297,23 @@ declare class EasyCMS<C extends Config = Config> {
|
|
|
1101
1297
|
/** @internal */
|
|
1102
1298
|
collection(slug: string): CollectionConfig;
|
|
1103
1299
|
private global;
|
|
1104
|
-
/**
|
|
1105
|
-
|
|
1300
|
+
/**
|
|
1301
|
+
* Refuses what a request's API key (see `ApiKeyPermissions`) or the user's role (`auth.rbac`)
|
|
1302
|
+
* does not allow. Returns a constraint when the role allows only the user's own account.
|
|
1303
|
+
*/
|
|
1304
|
+
private checkGrant;
|
|
1106
1305
|
/** The query constraint read access adds, or `undefined` when there is none. Throws when denied. */
|
|
1107
1306
|
private readWhere;
|
|
1108
1307
|
private checkDocumentAccess;
|
|
1109
1308
|
private checkGlobalAccess;
|
|
1110
1309
|
private fieldChecker;
|
|
1310
|
+
/**
|
|
1311
|
+
* Refuses filtering or sorting by fields the caller may not read: the results would tell
|
|
1312
|
+
* their values. Checks each field along a dotted path, through groups, arrays and blocks.
|
|
1313
|
+
*/
|
|
1314
|
+
private checkQueryFields;
|
|
1315
|
+
/** `checkGrant` for one document: a role limited to its own documents must own it. */
|
|
1316
|
+
private checkDocumentGrant;
|
|
1111
1317
|
/** Runs afterRead hooks, populates relationships and removes what the caller may not see. */
|
|
1112
1318
|
private output;
|
|
1113
1319
|
/** Creates a document: access, input filtering, hooks, validation, then afterChange. */
|
|
@@ -1502,6 +1708,11 @@ interface CollectionAdmin extends ContainerAdmin {
|
|
|
1502
1708
|
*/
|
|
1503
1709
|
readonly group?: 'settings';
|
|
1504
1710
|
readonly list?: CollectionListAdmin;
|
|
1711
|
+
/**
|
|
1712
|
+
* With `auth.rbac`: the relationship field to `users` that names a document's owner, e.g.
|
|
1713
|
+
* `author`, for roles given "own documents only". Default: who created it (`createdBy`).
|
|
1714
|
+
*/
|
|
1715
|
+
readonly ownerField?: string;
|
|
1505
1716
|
}
|
|
1506
1717
|
interface CollectionListAdmin {
|
|
1507
1718
|
/**
|
|
@@ -1603,6 +1814,8 @@ interface DashboardWidget {
|
|
|
1603
1814
|
readonly component: AdminComponent;
|
|
1604
1815
|
/** `half` (default): the side column, beside drafts and recent edits; `full`: below both. */
|
|
1605
1816
|
readonly width?: 'half' | 'full';
|
|
1817
|
+
/** Its name in Settings → Roles (`auth.rbac`). Default: the component's tag. */
|
|
1818
|
+
readonly label?: Label;
|
|
1606
1819
|
/** Who sees it. */
|
|
1607
1820
|
readonly access?: AdminViewAccess;
|
|
1608
1821
|
}
|
|
@@ -1679,8 +1892,16 @@ interface RoutesConfig {
|
|
|
1679
1892
|
readonly api?: string;
|
|
1680
1893
|
}
|
|
1681
1894
|
interface AuthConfig {
|
|
1682
|
-
/**
|
|
1895
|
+
/**
|
|
1896
|
+
* Roles a user can have. Must include `admin`. Default `['admin', 'editor']`. With `rbac`, these
|
|
1897
|
+
* are the roles that always exist; admins can add more in Settings → Roles.
|
|
1898
|
+
*/
|
|
1683
1899
|
readonly roles?: readonly string[];
|
|
1900
|
+
/**
|
|
1901
|
+
* Roles and their permissions from the admin (Settings → Roles): admins tick what each role
|
|
1902
|
+
* may do with each collection, global and admin page, on top of access rules. Default `false`.
|
|
1903
|
+
*/
|
|
1904
|
+
readonly rbac?: boolean;
|
|
1684
1905
|
/** Session lifetime in seconds. Default 7 days. */
|
|
1685
1906
|
readonly tokenExpiration?: number;
|
|
1686
1907
|
/** Failed logins allowed per email (and IP) within `lockWindow`. Default 5. */
|
|
@@ -2279,7 +2500,10 @@ interface AdminCollection {
|
|
|
2279
2500
|
create: boolean;
|
|
2280
2501
|
update: boolean;
|
|
2281
2502
|
delete: boolean;
|
|
2503
|
+
publish: boolean;
|
|
2282
2504
|
};
|
|
2505
|
+
/** With `auth.rbac`: the field naming a document's owner (`createdBy` or `admin.ownerField`). */
|
|
2506
|
+
owner?: string;
|
|
2283
2507
|
}
|
|
2284
2508
|
interface AdminGlobal {
|
|
2285
2509
|
slug: string;
|
|
@@ -2297,6 +2521,7 @@ interface AdminGlobal {
|
|
|
2297
2521
|
permissions: {
|
|
2298
2522
|
read: boolean;
|
|
2299
2523
|
update: boolean;
|
|
2524
|
+
publish: boolean;
|
|
2300
2525
|
};
|
|
2301
2526
|
}
|
|
2302
2527
|
/** A page of its own in the admin (`admin.pages`) that this user may open. */
|
|
@@ -2330,11 +2555,21 @@ interface AdminSchema {
|
|
|
2330
2555
|
modules: string[];
|
|
2331
2556
|
/** Files can be uploaded from links (`upload.fromURL`). */
|
|
2332
2557
|
uploadFromURL: boolean;
|
|
2333
|
-
/**
|
|
2558
|
+
/** Which saved deliveries the admin can show (webhooks, emails), for users who may see them. */
|
|
2334
2559
|
deliveries?: {
|
|
2335
2560
|
webhook: boolean;
|
|
2336
2561
|
email: boolean;
|
|
2337
2562
|
};
|
|
2563
|
+
/** Admin pages this user may open: Settings → Backups, Email, Roles; deliveries; the status panel. */
|
|
2564
|
+
views: {
|
|
2565
|
+
status: boolean;
|
|
2566
|
+
deliveries: boolean;
|
|
2567
|
+
backups: boolean;
|
|
2568
|
+
email: boolean;
|
|
2569
|
+
roles: boolean;
|
|
2570
|
+
};
|
|
2571
|
+
/** Roles from the admin are on (`auth.rbac`): documents have owners. */
|
|
2572
|
+
rbac: boolean;
|
|
2338
2573
|
/** Pages this user may open (`admin.pages`). */
|
|
2339
2574
|
pages: AdminPageRef[];
|
|
2340
2575
|
/** Dashboard panels this user may see (`admin.dashboard`). */
|
|
@@ -2433,4 +2668,4 @@ declare function validateConfig(config: Config): ConfigIssue[];
|
|
|
2433
2668
|
/** The version of `@easy-cms/core`, set when the package is built. */
|
|
2434
2669
|
declare const VERSION: string;
|
|
2435
2670
|
|
|
2436
|
-
export { ADMIN_ICONS, API_KEYS, API_KEY_GLOBAL_OPERATIONS, API_KEY_OPERATIONS, type Access, type AccessArgs, type AccessOptions, type AdminAttention, type AdminBackup, type AdminBackups, type AdminBrand, type AdminCollection, type AdminComponent, type AdminComponentRef, type AdminConfig, type AdminDeliveries, type AdminDelivery, type AdminEmail, type AdminEmailDelivery, type AdminField, type AdminGlobal, type AdminIcon, type AdminLocale, type AdminPage, type AdminPageRef, type AdminSchema, type AdminStatus, type AdminViewAccess, type AdminWebhookDelivery, type AdminWidgetRef, type AfterChangeHook, type AfterDeleteHook, type AfterReadHook, type ApiKeyContext, type ApiKeyGlobalOperation, type ApiKeyOperation, type ApiKeyPermissions, type ArrayField, Auth, type AuthConfig, type AuthUser, BUILTIN_COLLECTIONS, type BackupState, type BackupsConfig, type BeforeChangeHook, type BeforeDeleteHook, type BeforeValidateHook, type Block, type BlocksField, type BooleanField, type BuiltinApiKeysCollection, type BuiltinMediaCollection, type BuiltinUsersCollection, type BundleHints, CONFIG_FILE_NAMES, CSRF_COOKIE, CSRF_HEADER, type CliCommand, type CollectionAccess, type CollectionAdmin, type CollectionConfig, type CollectionDocument, type CollectionHooks, type CollectionListAdmin, type CollectionSlug, type Config, ConfigError, type ConfigIssue, type ContainerAdmin, type CopyProgress, type CopyResult, type CreateEasyCMSOptions, type CreateInput, type CreateMigrationResult, type CustomField, type CustomFieldTypes, DEFAULT_ADMIN_PATH, DEFAULT_API_PATH, DEFAULT_DEPTH, DEFAULT_MAX_FILE_SIZE, DEFAULT_MAX_VERSIONS, DEFAULT_PASSWORD_EMAILS, DEFAULT_TOKEN_EXPIRATION, type DashboardWidget, type Database, type DatabaseAdapter, type DatabaseInitArgs, type DatabaseTransfer, type DateField, type DeliveryKind, type DeliveryState, type DepthOptions, type DocumentOf, EXTENSIONS, EasyCMS, EasyCMSError, type EmailAdapter, type EmailCheck, type EmailField, type EmailMessage, type EmailSetting, type Endpoint, type EndpointRequest, FIELD_TYPES, FIELD_TYPE_BASES, type Field, type FieldAccess, type FieldAccessFn, type FieldAdmin, type FieldError, type FieldType, type FieldTypeBase, type FieldTypeDefinition, type FieldTypeValidateContext, type FieldValidate, type FieldValidateContext, type FieldValue, type FieldsInput, type FieldsValue, type FilterOptions, type FilterOptionsArgs, type FindArgs, type FindOptions, ForbiddenError, type GlobalAccess, type GlobalConfig, type GlobalDocument, type GlobalHooks, type GlobalInput, type GlobalSlug, type GroupField, type ID, INTERNAL_COLLECTIONS, type ImageSize, type InferCollection, type InferGlobal, type JsonField, type Label, type LivePreview, type LoadConfigOptions, type LocalStorageOptions, type LocalizationConfig, type Logger, type LoginArgs, MAX_DEPTH, MEDIA, MIN_PASSWORD_LENGTH, MIN_SECRET_LENGTH, type MediaDocument, type MediaSize, type MigrationInfo, NotFoundError, type NumberField, type Operation, type PaginatedDocs, type PasswordEmail, type PasswordEmailArgs, type PasswordEmailFn, type PasswordLinkOptions, PayloadTooLargeError, type Plugin, type PluginInfo, type PluginTypes, type PreviewTarget, type PreviewURL, QueryError, type RawDocument, type ReadOptions, type RelationshipField, type ResolvedConfig, type RestHandler, type RestHandlerOptions, type RichTextDocument, type RichTextField, type Role, type RoutesConfig, SESSION_COOKIE, type ScheduledJob, SchemaError, type SchemaMode, type SelectField, type SelectOption, type Session, type SlugField, type SlugOf, type StorageAdapter, type StoredFile, type TextField, type TextareaField, TooManyRequestsError, type TypedPlugin, UnauthorizedError, type UpdateInput, type UpdateOptions, type UploadConfig, type UploadField, type UploadFromURLConfig, VERSION, ValidationError, type Version, type VersionSummary, type VersionsConfig, WEBHOOK_EVENTS, type WebhookConfig, type WebhookEvent, type WebhookPayload, type Where, type WhereOperators, anyone, applyDefaults, applyPlugins, configSignature, consoleEmail, consoleLogger, copyDatabase, createEasyCMS, createRestHandler, createRootEndpointHandler, defineConfig, defineFieldType, definePlugin, fillMissing, findConfigFile, generateSlugs, generateTypes, hasRows, hashPassword, imageDimensions, importConfig, isAdmin, isHasMany, isLoggedIn, keyAllows, loadConfig, localStorage, mergeForUpdate, mimeAllowed, mimeAllowedBy, parseId, populate, readCookie, resolveAdminModule, resolveConfig, rowFields, silentLogger, singularize, slugify, sniffMimeType, validateConfig, validateFields, verifyPassword, writeBackupFile };
|
|
2671
|
+
export { ADMIN_ICONS, API_KEYS, API_KEY_GLOBAL_OPERATIONS, API_KEY_OPERATIONS, type Access, type AccessArgs, type AccessOptions, type AdminAttention, type AdminBackup, type AdminBackups, type AdminBrand, type AdminCollection, type AdminComponent, type AdminComponentRef, type AdminConfig, type AdminDeliveries, type AdminDelivery, type AdminEmail, type AdminEmailDelivery, type AdminField, type AdminGlobal, type AdminIcon, type AdminLocale, type AdminPage, type AdminPageRef, type AdminRole, type AdminRoleChange, type AdminRoleField, type AdminRoleTarget, type AdminRoleView, type AdminRoles, type AdminSchema, type AdminStatus, type AdminViewAccess, type AdminWebhookDelivery, type AdminWidgetRef, type AfterChangeHook, type AfterDeleteHook, type AfterReadHook, type ApiKeyContext, type ApiKeyGlobalOperation, type ApiKeyOperation, type ApiKeyPermissions, type ArrayField, Auth, type AuthConfig, type AuthUser, BUILTIN_COLLECTIONS, type BackupState, type BackupsConfig, type BeforeChangeHook, type BeforeDeleteHook, type BeforeValidateHook, type Block, type BlocksField, type BooleanField, type BuiltinApiKeysCollection, type BuiltinMediaCollection, type BuiltinUsersCollection, type BundleHints, CONFIG_FILE_NAMES, CSRF_COOKIE, CSRF_HEADER, type CliCommand, type CollectionAccess, type CollectionAdmin, type CollectionConfig, type CollectionDocument, type CollectionHooks, type CollectionListAdmin, type CollectionSlug, type Config, ConfigError, type ConfigIssue, type ContainerAdmin, type CopyProgress, type CopyResult, type CreateEasyCMSOptions, type CreateInput, type CreateMigrationResult, type CustomField, type CustomFieldTypes, DEFAULT_ADMIN_PATH, DEFAULT_API_PATH, DEFAULT_DEPTH, DEFAULT_MAX_FILE_SIZE, DEFAULT_MAX_VERSIONS, DEFAULT_PASSWORD_EMAILS, DEFAULT_TOKEN_EXPIRATION, type DashboardWidget, type Database, type DatabaseAdapter, type DatabaseInitArgs, type DatabaseTransfer, type DateField, type DeliveryKind, type DeliveryState, type DepthOptions, type DocumentOf, EXTENSIONS, EasyCMS, EasyCMSError, type EmailAdapter, type EmailCheck, type EmailField, type EmailMessage, type EmailSetting, type Endpoint, type EndpointRequest, FIELD_TYPES, FIELD_TYPE_BASES, type Field, type FieldAccess, type FieldAccessFn, type FieldAdmin, type FieldError, type FieldRule, type FieldType, type FieldTypeBase, type FieldTypeDefinition, type FieldTypeValidateContext, type FieldValidate, type FieldValidateContext, type FieldValue, type FieldsInput, type FieldsValue, type FilterOptions, type FilterOptionsArgs, type FindArgs, type FindOptions, ForbiddenError, type GlobalAccess, type GlobalConfig, type GlobalDocument, type GlobalHooks, type GlobalInput, type GlobalSlug, type GroupField, type ID, INTERNAL_COLLECTIONS, type ImageSize, type InferCollection, type InferGlobal, type JsonField, type Label, type LivePreview, type LoadConfigOptions, type LocalStorageOptions, type LocalizationConfig, type Logger, type LoginArgs, MAX_DEPTH, MEDIA, MIN_PASSWORD_LENGTH, MIN_SECRET_LENGTH, type MediaDocument, type MediaSize, type MigrationInfo, NotFoundError, type NumberField, type Operation, type PaginatedDocs, type PasswordEmail, type PasswordEmailArgs, type PasswordEmailFn, type PasswordLinkOptions, PayloadTooLargeError, type Plugin, type PluginInfo, type PluginTypes, type PreviewTarget, type PreviewURL, QueryError, ROLE_OPERATIONS, type RawDocument, type ReadOptions, type RelationshipField, type ResolvedConfig, type RestHandler, type RestHandlerOptions, type RichTextDocument, type RichTextField, type Role, type RoleOperation, type RolePermissions, Roles, type RoutesConfig, SESSION_COOKIE, type ScheduledJob, SchemaError, type SchemaMode, type SelectField, type SelectOption, type Session, type SlugField, type SlugOf, type StorageAdapter, type StoredFile, type TextField, type TextareaField, TooManyRequestsError, type TypedPlugin, UnauthorizedError, type UpdateInput, type UpdateOptions, type UploadConfig, type UploadField, type UploadFromURLConfig, VERSION, ValidationError, type Version, type VersionSummary, type VersionsConfig, WEBHOOK_EVENTS, type WebhookConfig, type WebhookEvent, type WebhookPayload, type Where, type WhereOperators, anyone, applyDefaults, applyPlugins, configSignature, consoleEmail, consoleLogger, copyDatabase, createEasyCMS, createRestHandler, createRootEndpointHandler, defineConfig, defineFieldType, definePlugin, fillMissing, findConfigFile, generateSlugs, generateTypes, hasRows, hashPassword, imageDimensions, importConfig, isAdmin, isHasMany, isLoggedIn, keyAllows, loadConfig, localStorage, mergeForUpdate, mimeAllowed, mimeAllowedBy, parseId, populate, readCookie, resolveAdminModule, resolveConfig, rowFields, silentLogger, singularize, slugify, sniffMimeType, validateConfig, validateFields, verifyPassword, writeBackupFile };
|