@easy-cms/core 0.31.0 → 0.33.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 +235 -5
- package/dist/index.js +1269 -425
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -187,6 +187,8 @@ interface Database {
|
|
|
187
187
|
readonly backup?: ((file: string) => Promise<void>) | undefined;
|
|
188
188
|
/** Raw table access for copying a whole database to another (`easy-cms copy`). */
|
|
189
189
|
readonly transfer?: DatabaseTransfer | undefined;
|
|
190
|
+
/** The prefix of its tables (`tablePrefix`), so a copy (a backup) can use the same. */
|
|
191
|
+
readonly tablePrefix?: string | undefined;
|
|
190
192
|
destroy(): Promise<void>;
|
|
191
193
|
}
|
|
192
194
|
/**
|
|
@@ -739,6 +741,137 @@ type UpdateInput<C extends Config, S extends CollectionSlug<C>> = Partial<Create
|
|
|
739
741
|
/** Data accepted by `updateGlobal`. */
|
|
740
742
|
type GlobalInput<C extends Config, S extends GlobalSlug<C>> = Partial<Simplify<FieldsInput<GlobalBySlug<C, S>['fields']> & StatusInput<GlobalBySlug<C, S>>>>;
|
|
741
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
|
+
/**
|
|
748
|
+
* Stored in a role's `permissions`. Anything not listed is not allowed. A slug listed with no
|
|
749
|
+
* operations has been looked at and given nothing (it is not "new" in Settings → Roles).
|
|
750
|
+
*/
|
|
751
|
+
interface RolePermissions {
|
|
752
|
+
readonly collections?: Readonly<Record<string, readonly RoleOperation[]>>;
|
|
753
|
+
readonly globals?: Readonly<Record<string, readonly RoleOperation[]>>;
|
|
754
|
+
/** Admin pages: `status`, `deliveries`, `page:<path>` (`admin.pages`), `widget:<tag>` (`admin.dashboard`). */
|
|
755
|
+
readonly admin?: readonly string[];
|
|
756
|
+
}
|
|
757
|
+
/** One role as Settings → Roles shows it (`GET <api>/admin/roles`). */
|
|
758
|
+
interface AdminRole {
|
|
759
|
+
id: ID;
|
|
760
|
+
key: string;
|
|
761
|
+
/** The name shown in the admin; empty for roles from the config that were not renamed. */
|
|
762
|
+
name: string;
|
|
763
|
+
/** From `auth.roles`: can't be deleted. */
|
|
764
|
+
system: boolean;
|
|
765
|
+
/** Users with this role. */
|
|
766
|
+
users: number;
|
|
767
|
+
permissions: RolePermissions;
|
|
768
|
+
updatedAt: string;
|
|
769
|
+
}
|
|
770
|
+
/** A row of the permissions table. */
|
|
771
|
+
interface AdminRoleTarget {
|
|
772
|
+
slug: string;
|
|
773
|
+
/** Operations that make sense here (`publish` with drafts). */
|
|
774
|
+
ops: RoleOperation[];
|
|
775
|
+
/** No role has been given anything here yet (added to the config since). */
|
|
776
|
+
new: boolean;
|
|
777
|
+
}
|
|
778
|
+
/** A page or dashboard panel that can be given to roles. */
|
|
779
|
+
interface AdminRoleView {
|
|
780
|
+
id: string;
|
|
781
|
+
/** For plugin pages and panels; the admin names `status` and `deliveries` itself. */
|
|
782
|
+
label?: Label;
|
|
783
|
+
}
|
|
784
|
+
/** Settings → Roles (`GET <api>/admin/roles`). */
|
|
785
|
+
interface AdminRoles {
|
|
786
|
+
roles: AdminRole[];
|
|
787
|
+
collections: (AdminRoleTarget & {
|
|
788
|
+
/** Collections its relationship and upload fields point to. */
|
|
789
|
+
references: string[];
|
|
790
|
+
})[];
|
|
791
|
+
globals: AdminRoleTarget[];
|
|
792
|
+
views: AdminRoleView[];
|
|
793
|
+
}
|
|
794
|
+
/** One change to a role (`GET <api>/admin/roles/:id/history`). */
|
|
795
|
+
interface AdminRoleChange {
|
|
796
|
+
id: ID;
|
|
797
|
+
/** Email of who saved it, or `null` when it was the system (first start). */
|
|
798
|
+
author: string | null;
|
|
799
|
+
createdAt: string;
|
|
800
|
+
name: string;
|
|
801
|
+
permissions: RolePermissions;
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
* Roles and their permissions (`auth.rbac`), on top of access rules: an operation is allowed
|
|
805
|
+
* when both allow it. Admins may do everything; requests that are not logged in are left to
|
|
806
|
+
* access rules alone.
|
|
807
|
+
*/
|
|
808
|
+
declare class Roles {
|
|
809
|
+
private readonly config;
|
|
810
|
+
private readonly db;
|
|
811
|
+
readonly enabled: boolean;
|
|
812
|
+
private readonly versions;
|
|
813
|
+
private cache;
|
|
814
|
+
private synced;
|
|
815
|
+
constructor(config: ResolvedConfig, db: Database);
|
|
816
|
+
/**
|
|
817
|
+
* Whether the user's role allows an operation: `true`, `false`, or for their own account
|
|
818
|
+
* (users without read or update on `users`) a constraint to it.
|
|
819
|
+
*/
|
|
820
|
+
allows(user: AuthUser | null, target: {
|
|
821
|
+
collection: string;
|
|
822
|
+
} | {
|
|
823
|
+
global: string;
|
|
824
|
+
}, operation: RoleOperation): Promise<boolean | Where>;
|
|
825
|
+
/**
|
|
826
|
+
* Whether the user may open an admin page: admins always; with roles, those whose role has
|
|
827
|
+
* it; without roles, nobody else (`status`, `deliveries`) or everybody (plugin pages).
|
|
828
|
+
*/
|
|
829
|
+
canView(user: AuthUser, id: string): Promise<boolean>;
|
|
830
|
+
/** Forgets cached permissions, after a role changed. */
|
|
831
|
+
invalidate(): void;
|
|
832
|
+
/**
|
|
833
|
+
* Adds the roles of `auth.roles` that are missing; on the first start, gives them everything.
|
|
834
|
+
* Runs once, on first use (not on startup: `easy-cms migrate` opens the CMS before the table exists).
|
|
835
|
+
*/
|
|
836
|
+
sync(): Promise<void>;
|
|
837
|
+
private addMissing;
|
|
838
|
+
/** Whether a role exists (users can only be given existing roles). */
|
|
839
|
+
exists(key: string): Promise<boolean>;
|
|
840
|
+
/** Roles a user can be given, those of `auth.roles` first; `name` may be empty. */
|
|
841
|
+
options(): Promise<{
|
|
842
|
+
key: string;
|
|
843
|
+
name: string;
|
|
844
|
+
}[]>;
|
|
845
|
+
list(): Promise<AdminRoles>;
|
|
846
|
+
create(input: {
|
|
847
|
+
key?: unknown;
|
|
848
|
+
name?: unknown;
|
|
849
|
+
permissions?: unknown;
|
|
850
|
+
}, author: AuthUser): Promise<AdminRole>;
|
|
851
|
+
update(id: ID, input: {
|
|
852
|
+
name?: unknown;
|
|
853
|
+
permissions?: unknown;
|
|
854
|
+
}, author: AuthUser): Promise<AdminRole>;
|
|
855
|
+
delete(id: ID): Promise<void>;
|
|
856
|
+
history(id: ID): Promise<AdminRoleChange[]>;
|
|
857
|
+
/** Pages and panels roles can be given. */
|
|
858
|
+
private views;
|
|
859
|
+
/** Every collection and global, and the plugin pages and panels: what roles had before roles. */
|
|
860
|
+
private everything;
|
|
861
|
+
/** Keeps only known collections, globals, operations and pages; `read` comes with the others. */
|
|
862
|
+
private clean;
|
|
863
|
+
private cleanName;
|
|
864
|
+
private permissionsOf;
|
|
865
|
+
private load;
|
|
866
|
+
private rows;
|
|
867
|
+
private row;
|
|
868
|
+
private users;
|
|
869
|
+
private insert;
|
|
870
|
+
/** Keeps the role as saved, for its history. */
|
|
871
|
+
private record;
|
|
872
|
+
private toRole;
|
|
873
|
+
}
|
|
874
|
+
|
|
742
875
|
interface StoredFile {
|
|
743
876
|
readonly body: Uint8Array;
|
|
744
877
|
readonly size: number;
|
|
@@ -880,6 +1013,8 @@ declare class EasyCMS<C extends Config = Config> {
|
|
|
880
1013
|
readonly storage: StorageAdapter;
|
|
881
1014
|
/** Project root: relative paths in the config (e.g. `admin.modules`) start here. */
|
|
882
1015
|
readonly cwd: string;
|
|
1016
|
+
/** Roles and their permissions (`auth.rbac`, Settings → Roles). */
|
|
1017
|
+
readonly roles: Roles;
|
|
883
1018
|
private readonly versions;
|
|
884
1019
|
private readonly webhooks;
|
|
885
1020
|
private readonly mailer;
|
|
@@ -1099,8 +1234,11 @@ declare class EasyCMS<C extends Config = Config> {
|
|
|
1099
1234
|
/** @internal */
|
|
1100
1235
|
collection(slug: string): CollectionConfig;
|
|
1101
1236
|
private global;
|
|
1102
|
-
/**
|
|
1103
|
-
|
|
1237
|
+
/**
|
|
1238
|
+
* Refuses what a request's API key (see `ApiKeyPermissions`) or the user's role (`auth.rbac`)
|
|
1239
|
+
* does not allow. Returns a constraint when the role allows only the user's own account.
|
|
1240
|
+
*/
|
|
1241
|
+
private checkGrant;
|
|
1104
1242
|
/** The query constraint read access adds, or `undefined` when there is none. Throws when denied. */
|
|
1105
1243
|
private readWhere;
|
|
1106
1244
|
private checkDocumentAccess;
|
|
@@ -1601,6 +1739,8 @@ interface DashboardWidget {
|
|
|
1601
1739
|
readonly component: AdminComponent;
|
|
1602
1740
|
/** `half` (default): the side column, beside drafts and recent edits; `full`: below both. */
|
|
1603
1741
|
readonly width?: 'half' | 'full';
|
|
1742
|
+
/** Its name in Settings → Roles (`auth.rbac`). Default: the component's tag. */
|
|
1743
|
+
readonly label?: Label;
|
|
1604
1744
|
/** Who sees it. */
|
|
1605
1745
|
readonly access?: AdminViewAccess;
|
|
1606
1746
|
}
|
|
@@ -1677,8 +1817,16 @@ interface RoutesConfig {
|
|
|
1677
1817
|
readonly api?: string;
|
|
1678
1818
|
}
|
|
1679
1819
|
interface AuthConfig {
|
|
1680
|
-
/**
|
|
1820
|
+
/**
|
|
1821
|
+
* Roles a user can have. Must include `admin`. Default `['admin', 'editor']`. With `rbac`, these
|
|
1822
|
+
* are the roles that always exist; admins can add more in Settings → Roles.
|
|
1823
|
+
*/
|
|
1681
1824
|
readonly roles?: readonly string[];
|
|
1825
|
+
/**
|
|
1826
|
+
* Roles and their permissions from the admin (Settings → Roles): admins tick what each role
|
|
1827
|
+
* may do with each collection, global and admin page, on top of access rules. Default `false`.
|
|
1828
|
+
*/
|
|
1829
|
+
readonly rbac?: boolean;
|
|
1682
1830
|
/** Session lifetime in seconds. Default 7 days. */
|
|
1683
1831
|
readonly tokenExpiration?: number;
|
|
1684
1832
|
/** Failed logins allowed per email (and IP) within `lockWindow`. Default 5. */
|
|
@@ -1803,6 +1951,27 @@ type TypedPlugin<T extends PluginTypes> = Plugin & {
|
|
|
1803
1951
|
* ```
|
|
1804
1952
|
*/
|
|
1805
1953
|
declare function definePlugin<const T extends PluginTypes = Record<never, never>>(plugin: Plugin, info?: PluginInfo): TypedPlugin<T>;
|
|
1954
|
+
/** Database backups (Settings → Backups): one compressed SQLite file each. */
|
|
1955
|
+
interface BackupsConfig {
|
|
1956
|
+
/** Back up automatically every day or week. Default: only by hand. */
|
|
1957
|
+
readonly every?: 'day' | 'week';
|
|
1958
|
+
/** When, as `HH:MM` in the server's time zone. Default `03:00`. */
|
|
1959
|
+
readonly at?: string;
|
|
1960
|
+
/** How many finished backups to keep; older ones are deleted. Default 7. */
|
|
1961
|
+
readonly keep?: number;
|
|
1962
|
+
/** Folder for the default local storage, from the project root. Default `backups`. Never served publicly. */
|
|
1963
|
+
readonly dir?: string;
|
|
1964
|
+
/** Where backups are stored instead, e.g. `s3Storage()` with a private bucket. */
|
|
1965
|
+
readonly storage?: StorageAdapter;
|
|
1966
|
+
/**
|
|
1967
|
+
* For Postgres: the SQLite adapter that writes the backup file, `sqlite` from
|
|
1968
|
+
* `@easy-cms/db-sqlite`. SQLite databases back themselves up and don't need it.
|
|
1969
|
+
*/
|
|
1970
|
+
readonly sqlite?: (options: {
|
|
1971
|
+
url: string;
|
|
1972
|
+
tablePrefix?: string;
|
|
1973
|
+
}) => DatabaseAdapter;
|
|
1974
|
+
}
|
|
1806
1975
|
interface Config {
|
|
1807
1976
|
/** Signs sessions. At least 32 characters; read it from `process.env.EASY_CMS_SECRET`. */
|
|
1808
1977
|
readonly secret: string;
|
|
@@ -1858,6 +2027,11 @@ interface Config {
|
|
|
1858
2027
|
* database and retried until sent.
|
|
1859
2028
|
*/
|
|
1860
2029
|
readonly email?: EmailAdapter;
|
|
2030
|
+
/**
|
|
2031
|
+
* Database backups, made on a schedule and from the admin (Settings → Backups). Without
|
|
2032
|
+
* `every`, admins can still back up by hand.
|
|
2033
|
+
*/
|
|
2034
|
+
readonly backups?: BackupsConfig;
|
|
1861
2035
|
readonly plugins?: readonly Plugin[];
|
|
1862
2036
|
}
|
|
1863
2037
|
/** The config after plugins ran, validation passed and defaults were applied. */
|
|
@@ -1917,6 +2091,46 @@ declare function hashPassword(password: string): Promise<string>;
|
|
|
1917
2091
|
/** Checks a password against a hash in constant time. Malformed hashes never match. */
|
|
1918
2092
|
declare function verifyPassword(password: string, stored: string): Promise<boolean>;
|
|
1919
2093
|
|
|
2094
|
+
type BackupState = 'pending' | 'running' | 'done' | 'failed';
|
|
2095
|
+
/** One backup as the admin shows it (`GET <api>/admin/backups`). */
|
|
2096
|
+
interface AdminBackup {
|
|
2097
|
+
id: ID;
|
|
2098
|
+
state: BackupState;
|
|
2099
|
+
trigger: 'manual' | 'scheduled';
|
|
2100
|
+
/** The file's name, e.g. `my-site-2026-10-04-0300.db.gz`. */
|
|
2101
|
+
filename: string | null;
|
|
2102
|
+
/** Bytes, compressed. */
|
|
2103
|
+
size: number | null;
|
|
2104
|
+
startedAt: string | null;
|
|
2105
|
+
finishedAt: string | null;
|
|
2106
|
+
error: string | null;
|
|
2107
|
+
/** Who started it (manual backups). */
|
|
2108
|
+
author: string | null;
|
|
2109
|
+
downloadedBy: string | null;
|
|
2110
|
+
downloadedAt: string | null;
|
|
2111
|
+
}
|
|
2112
|
+
/** Settings → Backups (`GET <api>/admin/backups`). */
|
|
2113
|
+
interface AdminBackups {
|
|
2114
|
+
settings: {
|
|
2115
|
+
every: 'day' | 'week' | null;
|
|
2116
|
+
at: string;
|
|
2117
|
+
keep: number;
|
|
2118
|
+
/** The storage adapter's name, e.g. `local` or `s3`. */
|
|
2119
|
+
storage: string;
|
|
2120
|
+
/** The folder, for local storage. */
|
|
2121
|
+
dir: string | null;
|
|
2122
|
+
database: string;
|
|
2123
|
+
/** Why backups can't be made with this setup, if they can't. */
|
|
2124
|
+
unavailable: string | null;
|
|
2125
|
+
};
|
|
2126
|
+
backups: AdminBackup[];
|
|
2127
|
+
}
|
|
2128
|
+
/**
|
|
2129
|
+
* Writes a consistent copy of the database to `file` as SQLite, while the CMS keeps running:
|
|
2130
|
+
* SQLite copies itself; other databases are copied into a new SQLite file (`backups.sqlite`).
|
|
2131
|
+
*/
|
|
2132
|
+
declare function writeBackupFile<C extends Config>(cms: EasyCMS<C>, file: string): Promise<void>;
|
|
2133
|
+
|
|
1920
2134
|
declare const MEDIA = "media";
|
|
1921
2135
|
/** Collections Easy CMS uses internally. Not exposed over REST or in the admin UI. */
|
|
1922
2136
|
declare const INTERNAL_COLLECTIONS: ReadonlySet<string>;
|
|
@@ -2211,6 +2425,7 @@ interface AdminCollection {
|
|
|
2211
2425
|
create: boolean;
|
|
2212
2426
|
update: boolean;
|
|
2213
2427
|
delete: boolean;
|
|
2428
|
+
publish: boolean;
|
|
2214
2429
|
};
|
|
2215
2430
|
}
|
|
2216
2431
|
interface AdminGlobal {
|
|
@@ -2229,6 +2444,7 @@ interface AdminGlobal {
|
|
|
2229
2444
|
permissions: {
|
|
2230
2445
|
read: boolean;
|
|
2231
2446
|
update: boolean;
|
|
2447
|
+
publish: boolean;
|
|
2232
2448
|
};
|
|
2233
2449
|
}
|
|
2234
2450
|
/** A page of its own in the admin (`admin.pages`) that this user may open. */
|
|
@@ -2262,11 +2478,19 @@ interface AdminSchema {
|
|
|
2262
2478
|
modules: string[];
|
|
2263
2479
|
/** Files can be uploaded from links (`upload.fromURL`). */
|
|
2264
2480
|
uploadFromURL: boolean;
|
|
2265
|
-
/**
|
|
2481
|
+
/** Which saved deliveries the admin can show (webhooks, emails), for users who may see them. */
|
|
2266
2482
|
deliveries?: {
|
|
2267
2483
|
webhook: boolean;
|
|
2268
2484
|
email: boolean;
|
|
2269
2485
|
};
|
|
2486
|
+
/** Admin pages this user may open: Settings → Backups, Email, Roles; deliveries; the status panel. */
|
|
2487
|
+
views: {
|
|
2488
|
+
status: boolean;
|
|
2489
|
+
deliveries: boolean;
|
|
2490
|
+
backups: boolean;
|
|
2491
|
+
email: boolean;
|
|
2492
|
+
roles: boolean;
|
|
2493
|
+
};
|
|
2270
2494
|
/** Pages this user may open (`admin.pages`). */
|
|
2271
2495
|
pages: AdminPageRef[];
|
|
2272
2496
|
/** Dashboard panels this user may see (`admin.dashboard`). */
|
|
@@ -2298,6 +2522,12 @@ type AdminAttention =
|
|
|
2298
2522
|
/** In production without `serverURL`: links in emails can't be made. */
|
|
2299
2523
|
| {
|
|
2300
2524
|
id: 'no-server-url';
|
|
2525
|
+
}
|
|
2526
|
+
/** The last scheduled backup failed, or none finished in two periods (`backups.every`). */
|
|
2527
|
+
| {
|
|
2528
|
+
id: 'backups';
|
|
2529
|
+
failed: boolean;
|
|
2530
|
+
lastDone: string | null;
|
|
2301
2531
|
};
|
|
2302
2532
|
/** What the dashboard shows admins (`GET <api>/admin/status`). */
|
|
2303
2533
|
interface AdminStatus {
|
|
@@ -2359,4 +2589,4 @@ declare function validateConfig(config: Config): ConfigIssue[];
|
|
|
2359
2589
|
/** The version of `@easy-cms/core`, set when the package is built. */
|
|
2360
2590
|
declare const VERSION: string;
|
|
2361
2591
|
|
|
2362
|
-
export { ADMIN_ICONS, API_KEYS, API_KEY_GLOBAL_OPERATIONS, API_KEY_OPERATIONS, type Access, type AccessArgs, type AccessOptions, type AdminAttention, 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 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 };
|
|
2592
|
+
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 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 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 };
|