@easy-cms/core 1.4.0 → 1.4.2
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/{chunk-B2J2KPHA.js → chunk-M4LMZIP4.js} +25 -3
- package/dist/{config-CBssruvP.d.ts → config-CB8mhU2a.d.ts} +74 -29
- package/dist/{handler-BcFlwRK8.d.ts → handler-bybEUkpd.d.ts} +1 -1
- package/dist/index.d.ts +11 -5
- package/dist/index.js +1 -1
- package/dist/internal.d.ts +3 -3
- package/dist/internal.js +1 -1
- package/dist/{plugin-CnqJrjt8.d.ts → plugin-CJCqvyo_.d.ts} +1 -1
- package/dist/plugin.d.ts +2 -2
- package/package.json +1 -1
|
@@ -7651,14 +7651,22 @@ var EasyCMS = class {
|
|
|
7651
7651
|
(error) => this.logger.error(`Backups: ${error.message}`)
|
|
7652
7652
|
);
|
|
7653
7653
|
await this.audit.upkeep(now).catch((error) => this.logger.error(`Audit log: ${error.message}`));
|
|
7654
|
-
|
|
7654
|
+
const result = {
|
|
7655
7655
|
scheduled,
|
|
7656
7656
|
webhooks: await this.retryWebhooks(now),
|
|
7657
7657
|
emails: await this.mailer.retry(now),
|
|
7658
7658
|
jobs: await this.runConfigJobs(now)
|
|
7659
7659
|
};
|
|
7660
|
+
const ranAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
7661
|
+
await this.db.updateGlobal({ slug: JOBS_RAN, data: { at: ranAt, updatedAt: ranAt } }).catch((error) => this.logger.error(`Jobs: ${error.message}`));
|
|
7662
|
+
return result;
|
|
7660
7663
|
});
|
|
7661
7664
|
}
|
|
7665
|
+
/** @internal When jobs last ran (the scheduler, the cron endpoint or `easy-cms jobs:run`). */
|
|
7666
|
+
async jobsLastRan() {
|
|
7667
|
+
const row = await this.db.findGlobal({ slug: JOBS_RAN });
|
|
7668
|
+
return typeof row?.at === "string" ? row.at : null;
|
|
7669
|
+
}
|
|
7662
7670
|
/**
|
|
7663
7671
|
* `jobs` of the config that are due. When each last ran is a row of `job-runs`; an instance
|
|
7664
7672
|
* claims a run by moving `lastRunAt` from the value it read, so each run happens once however
|
|
@@ -8893,6 +8901,7 @@ function jobSchedule(job, row) {
|
|
|
8893
8901
|
};
|
|
8894
8902
|
return { every: job.every, at: job.at, overridden: false };
|
|
8895
8903
|
}
|
|
8904
|
+
var JOBS_RAN = "easy-cms:jobs-ran";
|
|
8896
8905
|
var LEGACY_JOB_RUNS = "easy-cms:jobs";
|
|
8897
8906
|
var JOB_LEASE = 10 * 6e4;
|
|
8898
8907
|
function durationSeconds(value) {
|
|
@@ -8936,7 +8945,20 @@ async function adminJobs(cms, user) {
|
|
|
8936
8945
|
lastDurationMs: typeof row?.lastDurationMs === "number" ? row.lastDurationMs : null
|
|
8937
8946
|
};
|
|
8938
8947
|
});
|
|
8939
|
-
const
|
|
8948
|
+
const builtIn = [
|
|
8949
|
+
...has(config, SCHEDULED_JOBS) ? ["scheduled"] : [],
|
|
8950
|
+
...has(config, WEBHOOK_DELIVERIES) ? ["webhooks"] : [],
|
|
8951
|
+
...has(config, EMAIL_DELIVERIES) ? ["emails"] : [],
|
|
8952
|
+
...config.backups?.frequency ? ["backups"] : [],
|
|
8953
|
+
...config.audit ? ["audit"] : []
|
|
8954
|
+
];
|
|
8955
|
+
const head = {
|
|
8956
|
+
jobs,
|
|
8957
|
+
lastRanAt: await cms.jobsLastRan(),
|
|
8958
|
+
builtIn,
|
|
8959
|
+
timeZone: config.timeZone ?? null,
|
|
8960
|
+
canChange: isSystemAdmin(user)
|
|
8961
|
+
};
|
|
8940
8962
|
if (!has(config, SCHEDULED_JOBS)) return { ...head, scheduled: null };
|
|
8941
8963
|
const { docs } = await cms.db.find({
|
|
8942
8964
|
collection: SCHEDULED_JOBS,
|
|
@@ -9666,7 +9688,7 @@ async function readAdminModule(cms, index) {
|
|
|
9666
9688
|
}
|
|
9667
9689
|
|
|
9668
9690
|
// src/version.ts
|
|
9669
|
-
var VERSION = true ? "1.4.
|
|
9691
|
+
var VERSION = true ? "1.4.2" : "0.0.0-dev";
|
|
9670
9692
|
|
|
9671
9693
|
// src/rest/admin-deliveries.ts
|
|
9672
9694
|
var PER_PAGE = 50;
|
|
@@ -1019,7 +1019,26 @@ type GlobalBySlug<C extends Config, S> = WithPluginFields<C, Extract<NonNullable
|
|
|
1019
1019
|
readonly slug: S;
|
|
1020
1020
|
}>, 'globalFields'>;
|
|
1021
1021
|
/** Relationships are ids at depth 0 and documents when populated. */
|
|
1022
|
-
type RelationValue<C extends Config, S> = [CollectionBySlug<C, S>] extends [
|
|
1022
|
+
type RelationValue<C extends Config, S, A extends boolean> = [CollectionBySlug<C, S>] extends [
|
|
1023
|
+
never
|
|
1024
|
+
] ? ID | Record<string, unknown> : ID | CollectionDocument<C, S & string, A>;
|
|
1025
|
+
/** The content locales of a config (`localization.locales`); `string` when not literal. */
|
|
1026
|
+
type LocaleOf<C extends Config> = C extends {
|
|
1027
|
+
readonly localization: {
|
|
1028
|
+
readonly locales: readonly (infer L extends string)[];
|
|
1029
|
+
};
|
|
1030
|
+
} ? L : string;
|
|
1031
|
+
/**
|
|
1032
|
+
* A localized field read with `locale: 'all'`: its value per locale, which may be missing or
|
|
1033
|
+
* empty for a locale. Relationships in it are ids (they are not populated).
|
|
1034
|
+
*/
|
|
1035
|
+
type LocaleMap<F extends Field, C extends Config> = {
|
|
1036
|
+
[L in LocaleOf<C>]?: (F extends {
|
|
1037
|
+
readonly type: 'relationship' | 'upload';
|
|
1038
|
+
} ? F extends {
|
|
1039
|
+
readonly hasMany: true;
|
|
1040
|
+
} ? ID[] : ID : FieldValue<F, C>) | null;
|
|
1041
|
+
};
|
|
1023
1042
|
interface MediaSize {
|
|
1024
1043
|
filename: string;
|
|
1025
1044
|
width: number;
|
|
@@ -1049,7 +1068,14 @@ interface MediaDocument {
|
|
|
1049
1068
|
updatedAt: string;
|
|
1050
1069
|
[field: string]: unknown;
|
|
1051
1070
|
}
|
|
1052
|
-
|
|
1071
|
+
/**
|
|
1072
|
+
* The value of a field as read. With `AllLocales` (reads with `locale: 'all'`), localized fields
|
|
1073
|
+
* are `{ [locale]: value }` maps.
|
|
1074
|
+
*/
|
|
1075
|
+
type FieldValue<F extends Field, C extends Config = Config, AllLocales extends boolean = false> = AllLocales extends true ? F extends {
|
|
1076
|
+
readonly localized: true;
|
|
1077
|
+
} ? LocaleMap<F, C> : OneLocaleValue<F, C, true> : OneLocaleValue<F, C, false>;
|
|
1078
|
+
type OneLocaleValue<F extends Field, C extends Config, A extends boolean> = F extends {
|
|
1053
1079
|
readonly type: 'text' | 'textarea' | 'email' | 'slug' | 'date';
|
|
1054
1080
|
} ? string : F extends {
|
|
1055
1081
|
readonly type: 'number';
|
|
@@ -1070,18 +1096,18 @@ type FieldValue<F extends Field, C extends Config = Config> = F extends {
|
|
|
1070
1096
|
readonly to: infer S;
|
|
1071
1097
|
} ? F extends {
|
|
1072
1098
|
readonly hasMany: true;
|
|
1073
|
-
} ? RelationValue<C, S>[] : RelationValue<C, S> : F extends {
|
|
1099
|
+
} ? RelationValue<C, S, A>[] : RelationValue<C, S, A> : F extends {
|
|
1074
1100
|
readonly type: 'array';
|
|
1075
1101
|
readonly fields: infer Sub extends readonly Field[];
|
|
1076
|
-
} ? Simplify<FieldsValue<Sub, C> & {
|
|
1102
|
+
} ? Simplify<FieldsValue<Sub, C, A> & {
|
|
1077
1103
|
id: string;
|
|
1078
1104
|
}>[] : F extends {
|
|
1079
1105
|
readonly type: 'group';
|
|
1080
1106
|
readonly fields: infer Sub extends readonly Field[];
|
|
1081
|
-
} ? FieldsValue<Sub, C> : F extends {
|
|
1107
|
+
} ? FieldsValue<Sub, C, A> : F extends {
|
|
1082
1108
|
readonly type: 'blocks';
|
|
1083
1109
|
readonly blocks: infer B extends readonly Block[];
|
|
1084
|
-
} ? BlockValue<B[number], C>[] : CustomValue<F>;
|
|
1110
|
+
} ? BlockValue<B[number], C, A>[] : CustomValue<F>;
|
|
1085
1111
|
/** The value of a field of an added type (`CustomFieldTypes`). */
|
|
1086
1112
|
type CustomValue<F> = F extends {
|
|
1087
1113
|
readonly type: infer T extends keyof CustomFieldTypes;
|
|
@@ -1089,10 +1115,10 @@ type CustomValue<F> = F extends {
|
|
|
1089
1115
|
value: infer V;
|
|
1090
1116
|
} ? V : unknown : never;
|
|
1091
1117
|
/** One row of a `blocks` field: the block's fields plus `id` and `blockType` (distributes over kinds). */
|
|
1092
|
-
type BlockValue<B, C extends Config> = B extends {
|
|
1118
|
+
type BlockValue<B, C extends Config, A extends boolean> = B extends {
|
|
1093
1119
|
readonly slug: infer S;
|
|
1094
1120
|
readonly fields: infer Sub extends readonly Field[];
|
|
1095
|
-
} ? Simplify<FieldsValue<Sub, C> & {
|
|
1121
|
+
} ? Simplify<FieldsValue<Sub, C, A> & {
|
|
1096
1122
|
id: string;
|
|
1097
1123
|
blockType: S;
|
|
1098
1124
|
}> : never;
|
|
@@ -1116,11 +1142,11 @@ type Present = {
|
|
|
1116
1142
|
};
|
|
1117
1143
|
type RequiredFields<Fs extends readonly Field[]> = Extract<Visible<Fs>, Present>;
|
|
1118
1144
|
type OptionalFields<Fs extends readonly Field[]> = Exclude<Visible<Fs>, Present>;
|
|
1119
|
-
/** The shape of the data described by a list of fields. */
|
|
1120
|
-
type FieldsValue<Fs extends readonly Field[], C extends Config = Config> = Simplify<{
|
|
1121
|
-
-readonly [F in RequiredFields<Fs> as F['name']]: FieldValue<F, C>;
|
|
1145
|
+
/** The shape of the data described by a list of fields (`AllLocales`: see `FieldValue`). */
|
|
1146
|
+
type FieldsValue<Fs extends readonly Field[], C extends Config = Config, AllLocales extends boolean = false> = Simplify<{
|
|
1147
|
+
-readonly [F in RequiredFields<Fs> as F['name']]: FieldValue<F, C, AllLocales>;
|
|
1122
1148
|
} & {
|
|
1123
|
-
-readonly [F in OptionalFields<Fs> as F['name']]?: FieldValue<F, C> | null;
|
|
1149
|
+
-readonly [F in OptionalFields<Fs> as F['name']]?: FieldValue<F, C, AllLocales> | null;
|
|
1124
1150
|
}>;
|
|
1125
1151
|
type SystemFields<T extends {
|
|
1126
1152
|
readonly drafts?: unknown;
|
|
@@ -1138,8 +1164,8 @@ type FieldsOwner = {
|
|
|
1138
1164
|
readonly fields: readonly Field[];
|
|
1139
1165
|
readonly drafts?: unknown;
|
|
1140
1166
|
};
|
|
1141
|
-
type InferCollection<T extends FieldsOwner, C extends Config = Config> = Simplify<SystemFields<T> & FieldsValue<T['fields'], C>>;
|
|
1142
|
-
type InferGlobal<T extends FieldsOwner, C extends Config = Config> = Simplify<
|
|
1167
|
+
type InferCollection<T extends FieldsOwner, C extends Config = Config, AllLocales extends boolean = false> = Simplify<SystemFields<T> & FieldsValue<T['fields'], C, AllLocales>>;
|
|
1168
|
+
type InferGlobal<T extends FieldsOwner, C extends Config = Config, AllLocales extends boolean = false> = Simplify<
|
|
1143
1169
|
/** `null` until the global is saved for the first time. */
|
|
1144
1170
|
{
|
|
1145
1171
|
updatedAt: string | null;
|
|
@@ -1147,13 +1173,16 @@ type InferGlobal<T extends FieldsOwner, C extends Config = Config> = Simplify<
|
|
|
1147
1173
|
readonly drafts: true;
|
|
1148
1174
|
} ? {
|
|
1149
1175
|
status: 'draft' | 'published';
|
|
1150
|
-
} : unknown) & FieldsValue<T['fields'], C>>;
|
|
1176
|
+
} : unknown) & FieldsValue<T['fields'], C, AllLocales>>;
|
|
1151
1177
|
type CollectionSlug<C extends Config> = OwnCollections<C>['slug'] | 'users' | 'media' | ApiKeysOf<C>['slug'] | FoldersOf<C>['slug'] | PluginCollections<C>['slug'];
|
|
1152
1178
|
type GlobalSlug<C extends Config> = NonNullable<C['globals']>[number]['slug'];
|
|
1153
|
-
/**
|
|
1154
|
-
type
|
|
1155
|
-
|
|
1156
|
-
|
|
1179
|
+
/**
|
|
1180
|
+
* Document type of a collection, e.g. `CollectionDocument<typeof config, 'posts'>`. With
|
|
1181
|
+
* `AllLocales` (reads with `locale: 'all'`), localized fields are `{ [locale]: value }` maps.
|
|
1182
|
+
*/
|
|
1183
|
+
type CollectionDocument<C extends Config, S extends CollectionSlug<C>, AllLocales extends boolean = false> = S extends 'media' ? MediaDocument : InferCollection<CollectionBySlug<C, S>, C, AllLocales>;
|
|
1184
|
+
/** Data type of a global, e.g. `GlobalDocument<typeof config, 'site'>` (`AllLocales`: as above). */
|
|
1185
|
+
type GlobalDocument<C extends Config, S extends GlobalSlug<C>, AllLocales extends boolean = false> = InferGlobal<GlobalBySlug<C, S>, C, AllLocales>;
|
|
1157
1186
|
type InputValue<F extends Field> = F extends {
|
|
1158
1187
|
readonly type: 'relationship';
|
|
1159
1188
|
} ? F extends {
|
|
@@ -1537,18 +1566,28 @@ interface Version<T = Record<string, unknown>> extends VersionSummary {
|
|
|
1537
1566
|
type Data$1 = Record<string, unknown>;
|
|
1538
1567
|
type Slug<C extends Config> = string extends CollectionSlug<C> ? string : CollectionSlug<C>;
|
|
1539
1568
|
type GSlug<C extends Config> = string extends GlobalSlug<C> ? string : GlobalSlug<C>;
|
|
1540
|
-
|
|
1569
|
+
/**
|
|
1570
|
+
* Whether reads with the locale `L` return localized fields as `{ [locale]: value }` maps: only
|
|
1571
|
+
* the literal `'all'`, with `localization` set. A locale typed `string` reads as one locale.
|
|
1572
|
+
*/
|
|
1573
|
+
type AllLocales<C extends Config, L> = [L] extends ['all'] ? C extends {
|
|
1574
|
+
readonly localization: {
|
|
1575
|
+
readonly locales: readonly string[];
|
|
1576
|
+
};
|
|
1577
|
+
} ? true : false : false;
|
|
1578
|
+
type Doc<C extends Config, S, L = undefined> = string extends CollectionSlug<C> ? RawDocument : CollectionDocument<C, S & CollectionSlug<C>, AllLocales<C, L>>;
|
|
1541
1579
|
type Create<C extends Config, S> = string extends CollectionSlug<C> ? Data$1 : CreateInput<C, S & CollectionSlug<C>>;
|
|
1542
1580
|
type Update<C extends Config, S> = string extends CollectionSlug<C> ? Data$1 : UpdateInput<C, S & CollectionSlug<C>>;
|
|
1543
|
-
type GDoc<C extends Config, S> = string extends GlobalSlug<C> ? Data$1 : GlobalDocument<C, S & GlobalSlug<C>>;
|
|
1581
|
+
type GDoc<C extends Config, S, L = undefined> = string extends GlobalSlug<C> ? Data$1 : GlobalDocument<C, S & GlobalSlug<C>, AllLocales<C, L>>;
|
|
1544
1582
|
type GInput<C extends Config, S> = string extends GlobalSlug<C> ? Data$1 : GlobalInput<C, S & GlobalSlug<C>>;
|
|
1545
1583
|
/** A collection slug of the config `C` (any string when the config isn't a literal). */
|
|
1546
1584
|
type SlugOf<C extends Config> = Slug<C>;
|
|
1547
1585
|
/**
|
|
1548
1586
|
* A document of collection `S` as the Local API returns it, e.g. for helpers that take an
|
|
1549
|
-
* `EasyCMS<C>`: inferred from a literal config, loose otherwise.
|
|
1587
|
+
* `EasyCMS<C>`: inferred from a literal config, loose otherwise. `L` is the locale read
|
|
1588
|
+
* (`'all'`: localized fields are `{ [locale]: value }` maps).
|
|
1550
1589
|
*/
|
|
1551
|
-
type DocumentOf<C extends Config, S> = Doc<C, S>;
|
|
1590
|
+
type DocumentOf<C extends Config, S, L = undefined> = Doc<C, S, L>;
|
|
1552
1591
|
interface AccessOptions {
|
|
1553
1592
|
/**
|
|
1554
1593
|
* The Local API trusts its caller and skips access rules by default.
|
|
@@ -1670,8 +1709,12 @@ declare class EasyCMS<C extends Config = Config> {
|
|
|
1670
1709
|
user: AuthUser | null;
|
|
1671
1710
|
context: RequestContext;
|
|
1672
1711
|
}>;
|
|
1673
|
-
find<S extends Slug<C
|
|
1674
|
-
|
|
1712
|
+
find<S extends Slug<C>, L extends string | undefined = undefined>(collection: S, options?: FindOptions & {
|
|
1713
|
+
readonly locale?: L;
|
|
1714
|
+
}): Promise<PaginatedDocs<Doc<C, S, L>>>;
|
|
1715
|
+
findById<S extends Slug<C>, L extends string | undefined = undefined>(collection: S, id: ID, options?: ReadOptions & {
|
|
1716
|
+
readonly locale?: L;
|
|
1717
|
+
}): Promise<Doc<C, S, L> | null>;
|
|
1675
1718
|
count<S extends Slug<C>>(collection: S, options?: {
|
|
1676
1719
|
where?: Where;
|
|
1677
1720
|
draft?: boolean;
|
|
@@ -1850,7 +1893,9 @@ declare class EasyCMS<C extends Config = Config> {
|
|
|
1850
1893
|
delete<S extends Slug<C>>(collection: S, id: ID, options?: AccessOptions & {
|
|
1851
1894
|
transferTo?: ID | null;
|
|
1852
1895
|
}): Promise<Doc<C, S>>;
|
|
1853
|
-
findGlobal<S extends GSlug<C
|
|
1896
|
+
findGlobal<S extends GSlug<C>, L extends string | undefined = undefined>(slug: S, options?: ReadOptions & {
|
|
1897
|
+
readonly locale?: L;
|
|
1898
|
+
}): Promise<GDoc<C, S, L>>;
|
|
1854
1899
|
/** A global as stored under `key` (see `globalKey`); empty when there is no key. */
|
|
1855
1900
|
private readGlobal;
|
|
1856
1901
|
/**
|
|
@@ -1863,9 +1908,9 @@ declare class EasyCMS<C extends Config = Config> {
|
|
|
1863
1908
|
private writeKey;
|
|
1864
1909
|
updateGlobal<S extends GSlug<C>>(slug: S, data: GInput<C, S>, options?: DepthOptions): Promise<GDoc<C, S>>;
|
|
1865
1910
|
/** Takes a global off the site (`status: 'draft'`). See `unpublish`. */
|
|
1866
|
-
unpublishGlobal<S extends GSlug<C>>(slug: S, options?: DepthOptions): Promise<GDoc<C, S>>;
|
|
1911
|
+
unpublishGlobal<S extends GSlug<C>>(slug: S, options?: DepthOptions): Promise<GDoc<C, S, undefined>>;
|
|
1867
1912
|
/** Throws away the unpublished draft of a published global. */
|
|
1868
|
-
discardGlobalDraft<S extends GSlug<C>>(slug: S, options?: DepthOptions): Promise<GDoc<C, S>>;
|
|
1913
|
+
discardGlobalDraft<S extends GSlug<C>>(slug: S, options?: DepthOptions): Promise<GDoc<C, S, string>>;
|
|
1869
1914
|
/** Saved versions of a global, newest first. Needs update access. */
|
|
1870
1915
|
findGlobalVersions<S extends GSlug<C>>(slug: S, options?: AccessOptions & {
|
|
1871
1916
|
limit?: number;
|
|
@@ -3267,4 +3312,4 @@ interface ResolvedConfig extends Omit<Config, 'cors' | 'localization' | 'routes'
|
|
|
3267
3312
|
*/
|
|
3268
3313
|
declare function defineConfig<const TConfig extends Config>(config: TConfig): TConfig;
|
|
3269
3314
|
|
|
3270
|
-
export { type BuiltinMediaCollection as $, ADAPTER_API_VERSION as A, type ApiKeyOperation as B, type ApiKeyPermissions as C, type ArrayField as D, type EmailSetting as E, type AuditChange as F, type AuditConfig as G, type AuditEntry as H, type ID as I, AuditLog as J, type AuditPage as K, type AuditVerification as L, Auth as M, type AuthConfig as N, type AuthProvider as O, type PaginatedDocs as P, type AuthProviderProfile as Q, type AuthProviderRequest as R, type AuthUser as S, type BackupsConfig as T, type BeforeChangeHook as U, type BeforeDeleteHook as V, type BeforeValidateHook as W, type Block as X, type BlocksField as Y, type BooleanField as Z, type BuiltinApiKeysCollection as _, ADMIN_ICONS as a, type GlobalDocument as a$, type BuiltinMediaFoldersCollection as a0, type BuiltinUsersCollection as a1, type BundleHints as a2, type CliCommand as a3, type CollectionAccess as a4, type CollectionAdmin as a5, type CollectionConfig as a6, type CollectionDocument as a7, type CollectionHooks as a8, type CollectionListAdmin as a9, type EndpointRequest as aA, type ErrorCode as aB, FIELD_TYPES as aC, type Field as aD, type FieldAccess as aE, type FieldAccessFn as aF, type FieldAdmin as aG, type FieldError as aH, type FieldRule as aI, type FieldType as aJ, type FieldTypeBase as aK, type FieldTypeDefinition as aL, type FieldTypeValidateContext as aM, type FieldValidate as aN, type FieldValidateContext as aO, type FieldValue as aP, type FieldsInput as aQ, type FieldsValue as aR, type FilterOptions as aS, type FilterOptionsArgs as aT, type FindArgs as aU, type FindOptions as aV, type FolderLevel as aW, type FolderPermissions as aX, ForbiddenError as aY, type GlobalAccess as aZ, type GlobalConfig as a_, type CollectionSlug as aa, type Config as ab, ConfigError as ac, type ConfigIssue as ad, type ContainerAdmin as ae, type CreateEasyCMSOptions as af, type CreateInput as ag, type CreateMigrationResult as ah, type CustomField as ai, type CustomFieldTypes as aj, type DashboardWidget as ak, type Database as al, type DatabaseAdapter as am, type DatabaseInitArgs as an, type DatabaseTransfer as ao, type DateField as ap, type DepthOptions as aq, type DirectUpload as ar, type DiskStorageOptions as as, type DocumentOf as at, EasyCMS as au, EasyCMSError as av, type EmailAdapter as aw, type EmailField as ax, type EmailMessage as ay, type Endpoint as az, type Access as b, type
|
|
3315
|
+
export { type BuiltinMediaCollection as $, ADAPTER_API_VERSION as A, type ApiKeyOperation as B, type ApiKeyPermissions as C, type ArrayField as D, type EmailSetting as E, type AuditChange as F, type AuditConfig as G, type AuditEntry as H, type ID as I, AuditLog as J, type AuditPage as K, type AuditVerification as L, Auth as M, type AuthConfig as N, type AuthProvider as O, type PaginatedDocs as P, type AuthProviderProfile as Q, type AuthProviderRequest as R, type AuthUser as S, type BackupsConfig as T, type BeforeChangeHook as U, type BeforeDeleteHook as V, type BeforeValidateHook as W, type Block as X, type BlocksField as Y, type BooleanField as Z, type BuiltinApiKeysCollection as _, ADMIN_ICONS as a, type GlobalDocument as a$, type BuiltinMediaFoldersCollection as a0, type BuiltinUsersCollection as a1, type BundleHints as a2, type CliCommand as a3, type CollectionAccess as a4, type CollectionAdmin as a5, type CollectionConfig as a6, type CollectionDocument as a7, type CollectionHooks as a8, type CollectionListAdmin as a9, type EndpointRequest as aA, type ErrorCode as aB, FIELD_TYPES as aC, type Field as aD, type FieldAccess as aE, type FieldAccessFn as aF, type FieldAdmin as aG, type FieldError as aH, type FieldRule as aI, type FieldType as aJ, type FieldTypeBase as aK, type FieldTypeDefinition as aL, type FieldTypeValidateContext as aM, type FieldValidate as aN, type FieldValidateContext as aO, type FieldValue as aP, type FieldsInput as aQ, type FieldsValue as aR, type FilterOptions as aS, type FilterOptionsArgs as aT, type FindArgs as aU, type FindOptions as aV, type FolderLevel as aW, type FolderPermissions as aX, ForbiddenError as aY, type GlobalAccess as aZ, type GlobalConfig as a_, type CollectionSlug as aa, type Config as ab, ConfigError as ac, type ConfigIssue as ad, type ContainerAdmin as ae, type CreateEasyCMSOptions as af, type CreateInput as ag, type CreateMigrationResult as ah, type CustomField as ai, type CustomFieldTypes as aj, type DashboardWidget as ak, type Database as al, type DatabaseAdapter as am, type DatabaseInitArgs as an, type DatabaseTransfer as ao, type DateField as ap, type DepthOptions as aq, type DirectUpload as ar, type DiskStorageOptions as as, type DocumentOf as at, EasyCMS as au, EasyCMSError as av, type EmailAdapter as aw, type EmailField as ax, type EmailMessage as ay, type Endpoint as az, type Access as b, type SlugField as b$, type GlobalHooks as b0, type GlobalInput as b1, type GlobalSlug as b2, type GroupField as b3, type ImageSize as b4, type IncrementOptions as b5, type InferCollection as b6, type InferGlobal as b7, type JobConfig as b8, type JsonField as b9, type PluginTypes as bA, type PreviewTarget as bB, type PreviewURL as bC, QueryError as bD, ROLE_OPERATIONS as bE, type RawDocument as bF, type ReadOptions as bG, type RelationshipField as bH, type RequestContext as bI, type ResolvedConfig as bJ, type RichTextDocument as bK, type RichTextField as bL, type Role as bM, type RoleOperation as bN, type RolePermissions as bO, Roles as bP, type RoutesConfig as bQ, type ScheduledPublish as bR, SchemaError as bS, type SchemaMode as bT, type SelectField as bU, type SelectOption as bV, type Session as bW, type SidebarPanel as bX, type SignupArgs as bY, type SignupResult as bZ, SingleSignOn as b_, type Label as ba, type LayoutNode as bb, type LivePreview as bc, type LocaleOf as bd, type LocalizationConfig as be, type Logger as bf, type LoginArgs as bg, type MediaDocument as bh, type MediaSize as bi, type MembersConfig as bj, type MembersSignup as bk, type MigrationInfo as bl, type NavGroup as bm, NotFoundError as bn, type NumberField as bo, type OnRequest as bp, type OnRequestArgs as bq, type Operation as br, PLUGIN_API_VERSION as bs, type PasswordEmail as bt, type PasswordEmailArgs as bu, type PasswordEmailFn as bv, type PasswordLinkOptions as bw, PayloadTooLargeError as bx, type Plugin as by, type PluginInfo as bz, type AccessArgs as c, type SlugOf as c0, type SsoOutcome as c1, type SsoProviderRef as c2, type StorageAdapter as c3, type StoredFile as c4, type TextField as c5, type TextareaField as c6, TooManyRequestsError as c7, type TypedPlugin as c8, UnauthorizedError as c9, isHasMany as cA, isSignedIn as cB, isStaff as cC, isSystemAdmin as cD, mimeAllowedBy as cE, rowFields as cF, silentLogger as cG, uniqueWithinOf as cH, API_KEYS as cI, API_KEY_GLOBAL_OPERATIONS as cJ, API_KEY_OPERATIONS as cK, DEFAULT_MAX_VERSIONS as cL, DEFAULT_PASSWORD_EMAILS as cM, FIELD_TYPE_BASES as cN, FOLDER_LEVELS as cO, MediaFolders as cP, SSO_COOKIE as cQ, codeOfStatus as cR, keyAllows as cS, type UpdateInput as ca, type UpdateOptions as cb, type UploadConfig as cc, type UploadField as cd, type UploadFromURLConfig as ce, type UserIdentity as cf, ValidationError as cg, type Version as ch, type VersionSummary as ci, type VersionsConfig as cj, WEBHOOK_EVENTS as ck, type WebhookConfig as cl, type WebhookEvent as cm, type WebhookPayload as cn, type Where as co, type WhereOperators as cp, anyone as cq, consoleEmail as cr, consoleLogger as cs, createEasyCMS as ct, defineConfig as cu, defineFieldType as cv, definePlugin as cw, diskStorage as cx, hasRows as cy, isAdmin as cz, type AccessOptions as d, type AdminBrand as e, type AdminCommand as f, type AdminComponent as g, type AdminConfig as h, type AdminFieldArgs as i, type AdminIcon as j, type AdminLocale as k, type AdminPage as l, type AdminRole as m, type AdminRoleChange as n, type AdminRoleField as o, type AdminRoleTarget as p, type AdminRoleView as q, type AdminRoles as r, type AdminSso as s, type AdminSwitcher as t, type AdminViewAccess as u, type AfterChangeHook as v, type AfterDeleteHook as w, type AfterReadHook as x, type ApiKeyContext as y, type ApiKeyGlobalOperation as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as ID, ab as Config, au as EasyCMS,
|
|
1
|
+
import { I as ID, ab as Config, au as EasyCMS, be as LocalizationConfig, aD as Field, aH as FieldError, aS as FilterOptions, af as CreateEasyCMSOptions, bJ as ResolvedConfig } from './config-CB8mhU2a.js';
|
|
2
2
|
|
|
3
3
|
/** Decrypts a file from `encryptBackup`; throws for another key or a changed file. */
|
|
4
4
|
declare function decryptBackup(data: Uint8Array, encryptionKey: string): Uint8Array;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as PaginatedDocs, I as ID, E as EmailSetting } from './config-
|
|
2
|
-
export { A as ADAPTER_API_VERSION, a as ADMIN_ICONS, b as Access, c as AccessArgs, d as AccessOptions, e as AdminBrand, f as AdminCommand, g as AdminComponent, h as AdminConfig, i as AdminFieldArgs, j as AdminIcon, k as AdminLocale, l as AdminPage, m as AdminRole, n as AdminRoleChange, o as AdminRoleField, p as AdminRoleTarget, q as AdminRoleView, r as AdminRoles, s as AdminSso, t as AdminSwitcher, u as AdminViewAccess, v as AfterChangeHook, w as AfterDeleteHook, x as AfterReadHook, y as ApiKeyContext, z as ApiKeyGlobalOperation, B as ApiKeyOperation, C as ApiKeyPermissions, D as ArrayField, F as AuditChange, G as AuditConfig, H as AuditEntry, J as AuditLog, K as AuditPage, L as AuditVerification, M as Auth, N as AuthConfig, O as AuthProvider, Q as AuthProviderProfile, R as AuthProviderRequest, S as AuthUser, T as BackupsConfig, U as BeforeChangeHook, V as BeforeDeleteHook, W as BeforeValidateHook, X as Block, Y as BlocksField, Z as BooleanField, _ as BuiltinApiKeysCollection, $ as BuiltinMediaCollection, a0 as BuiltinMediaFoldersCollection, a1 as BuiltinUsersCollection, a2 as BundleHints, a3 as CliCommand, a4 as CollectionAccess, a5 as CollectionAdmin, a6 as CollectionConfig, a7 as CollectionDocument, a8 as CollectionHooks, a9 as CollectionListAdmin, aa as CollectionSlug, ab as Config, ac as ConfigError, ad as ConfigIssue, ae as ContainerAdmin, af as CreateEasyCMSOptions, ag as CreateInput, ah as CreateMigrationResult, ai as CustomField, aj as CustomFieldTypes, ak as DashboardWidget, al as Database, am as DatabaseAdapter, an as DatabaseInitArgs, ao as DatabaseTransfer, ap as DateField, aq as DepthOptions, ar as DirectUpload, as as DiskStorageOptions, at as DocumentOf, au as EasyCMS, av as EasyCMSError, aw as EmailAdapter, ax as EmailField, ay as EmailMessage, az as Endpoint, aA as EndpointRequest, aB as ErrorCode, aC as FIELD_TYPES, aD as Field, aE as FieldAccess, aF as FieldAccessFn, aG as FieldAdmin, aH as FieldError, aI as FieldRule, aJ as FieldType, aK as FieldTypeBase, aL as FieldTypeDefinition, aM as FieldTypeValidateContext, aN as FieldValidate, aO as FieldValidateContext, aP as FieldValue, aQ as FieldsInput, aR as FieldsValue, aS as FilterOptions, aT as FilterOptionsArgs, aU as FindArgs, aV as FindOptions, aW as FolderLevel, aX as FolderPermissions, aY as ForbiddenError, aZ as GlobalAccess, a_ as GlobalConfig, a$ as GlobalDocument, b0 as GlobalHooks, b1 as GlobalInput, b2 as GlobalSlug, b3 as GroupField, b4 as ImageSize, b5 as IncrementOptions, b6 as InferCollection, b7 as InferGlobal, b8 as JobConfig, b9 as JsonField, ba as Label, bb as LayoutNode, bc as LivePreview, bd as
|
|
3
|
-
export { A as ADMIN_API_VERSION, a as AdminCollection, b as AdminComponentRef, c as AdminElementProps, d as AdminField, e as AdminGlobal, f as AdminLayoutNode, g as AdminNavGroup, h as AdminNavItem, i as AdminNavNode, j as AdminPageRef, k as AdminPageRoute, l as AdminSchema, m as AdminWidgetRef, S as SetFieldDetail, w as warnDeprecated } from './plugin-
|
|
4
|
-
export { A as AdminBackup, a as AdminBackups, b as ApiHandlerOptions, B as BackupState, L as LoadConfigOptions, R as RestHandler, c as RestHandlerOptions, d as createApiHandler, e as createRestHandler, l as loadConfig, r as resolveConfig, s as sharedEasyCMS, f as slugify } from './handler-
|
|
1
|
+
import { P as PaginatedDocs, I as ID, E as EmailSetting } from './config-CB8mhU2a.js';
|
|
2
|
+
export { A as ADAPTER_API_VERSION, a as ADMIN_ICONS, b as Access, c as AccessArgs, d as AccessOptions, e as AdminBrand, f as AdminCommand, g as AdminComponent, h as AdminConfig, i as AdminFieldArgs, j as AdminIcon, k as AdminLocale, l as AdminPage, m as AdminRole, n as AdminRoleChange, o as AdminRoleField, p as AdminRoleTarget, q as AdminRoleView, r as AdminRoles, s as AdminSso, t as AdminSwitcher, u as AdminViewAccess, v as AfterChangeHook, w as AfterDeleteHook, x as AfterReadHook, y as ApiKeyContext, z as ApiKeyGlobalOperation, B as ApiKeyOperation, C as ApiKeyPermissions, D as ArrayField, F as AuditChange, G as AuditConfig, H as AuditEntry, J as AuditLog, K as AuditPage, L as AuditVerification, M as Auth, N as AuthConfig, O as AuthProvider, Q as AuthProviderProfile, R as AuthProviderRequest, S as AuthUser, T as BackupsConfig, U as BeforeChangeHook, V as BeforeDeleteHook, W as BeforeValidateHook, X as Block, Y as BlocksField, Z as BooleanField, _ as BuiltinApiKeysCollection, $ as BuiltinMediaCollection, a0 as BuiltinMediaFoldersCollection, a1 as BuiltinUsersCollection, a2 as BundleHints, a3 as CliCommand, a4 as CollectionAccess, a5 as CollectionAdmin, a6 as CollectionConfig, a7 as CollectionDocument, a8 as CollectionHooks, a9 as CollectionListAdmin, aa as CollectionSlug, ab as Config, ac as ConfigError, ad as ConfigIssue, ae as ContainerAdmin, af as CreateEasyCMSOptions, ag as CreateInput, ah as CreateMigrationResult, ai as CustomField, aj as CustomFieldTypes, ak as DashboardWidget, al as Database, am as DatabaseAdapter, an as DatabaseInitArgs, ao as DatabaseTransfer, ap as DateField, aq as DepthOptions, ar as DirectUpload, as as DiskStorageOptions, at as DocumentOf, au as EasyCMS, av as EasyCMSError, aw as EmailAdapter, ax as EmailField, ay as EmailMessage, az as Endpoint, aA as EndpointRequest, aB as ErrorCode, aC as FIELD_TYPES, aD as Field, aE as FieldAccess, aF as FieldAccessFn, aG as FieldAdmin, aH as FieldError, aI as FieldRule, aJ as FieldType, aK as FieldTypeBase, aL as FieldTypeDefinition, aM as FieldTypeValidateContext, aN as FieldValidate, aO as FieldValidateContext, aP as FieldValue, aQ as FieldsInput, aR as FieldsValue, aS as FilterOptions, aT as FilterOptionsArgs, aU as FindArgs, aV as FindOptions, aW as FolderLevel, aX as FolderPermissions, aY as ForbiddenError, aZ as GlobalAccess, a_ as GlobalConfig, a$ as GlobalDocument, b0 as GlobalHooks, b1 as GlobalInput, b2 as GlobalSlug, b3 as GroupField, b4 as ImageSize, b5 as IncrementOptions, b6 as InferCollection, b7 as InferGlobal, b8 as JobConfig, b9 as JsonField, ba as Label, bb as LayoutNode, bc as LivePreview, bd as LocaleOf, be as LocalizationConfig, bf as Logger, bg as LoginArgs, bh as MediaDocument, bi as MediaSize, bj as MembersConfig, bk as MembersSignup, bl as MigrationInfo, bm as NavGroup, bn as NotFoundError, bo as NumberField, bp as OnRequest, bq as OnRequestArgs, br as Operation, bs as PLUGIN_API_VERSION, bt as PasswordEmail, bu as PasswordEmailArgs, bv as PasswordEmailFn, bw as PasswordLinkOptions, bx as PayloadTooLargeError, by as Plugin, bz as PluginInfo, bA as PluginTypes, bB as PreviewTarget, bC as PreviewURL, bD as QueryError, bE as ROLE_OPERATIONS, bF as RawDocument, bG as ReadOptions, bH as RelationshipField, bI as RequestContext, bJ as ResolvedConfig, bK as RichTextDocument, bL as RichTextField, bM as Role, bN as RoleOperation, bO as RolePermissions, bP as Roles, bQ as RoutesConfig, bR as ScheduledPublish, bS as SchemaError, bT as SchemaMode, bU as SelectField, bV as SelectOption, bW as Session, bX as SidebarPanel, bY as SignupArgs, bZ as SignupResult, b_ as SingleSignOn, b$ as SlugField, c0 as SlugOf, c1 as SsoOutcome, c2 as SsoProviderRef, c3 as StorageAdapter, c4 as StoredFile, c5 as TextField, c6 as TextareaField, c7 as TooManyRequestsError, c8 as TypedPlugin, c9 as UnauthorizedError, ca as UpdateInput, cb as UpdateOptions, cc as UploadConfig, cd as UploadField, ce as UploadFromURLConfig, cf as UserIdentity, cg as ValidationError, ch as Version, ci as VersionSummary, cj as VersionsConfig, ck as WEBHOOK_EVENTS, cl as WebhookConfig, cm as WebhookEvent, cn as WebhookPayload, co as Where, cp as WhereOperators, cq as anyone, cr as consoleEmail, cs as consoleLogger, ct as createEasyCMS, cu as defineConfig, cv as defineFieldType, cw as definePlugin, cx as diskStorage, cy as hasRows, cz as isAdmin, cA as isHasMany, cB as isSignedIn, cC as isStaff, cD as isSystemAdmin, cE as mimeAllowedBy, cF as rowFields, cG as silentLogger, cH as uniqueWithinOf } from './config-CB8mhU2a.js';
|
|
3
|
+
export { A as ADMIN_API_VERSION, a as AdminCollection, b as AdminComponentRef, c as AdminElementProps, d as AdminField, e as AdminGlobal, f as AdminLayoutNode, g as AdminNavGroup, h as AdminNavItem, i as AdminNavNode, j as AdminPageRef, k as AdminPageRoute, l as AdminSchema, m as AdminWidgetRef, S as SetFieldDetail, w as warnDeprecated } from './plugin-CJCqvyo_.js';
|
|
4
|
+
export { A as AdminBackup, a as AdminBackups, b as ApiHandlerOptions, B as BackupState, L as LoadConfigOptions, R as RestHandler, c as RestHandlerOptions, d as createApiHandler, e as createRestHandler, l as loadConfig, r as resolveConfig, s as sharedEasyCMS, f as slugify } from './handler-bybEUkpd.js';
|
|
5
5
|
export { FieldCondition, matchesCondition } from './conditions.js';
|
|
6
6
|
|
|
7
7
|
type DeliveryKind = 'webhook' | 'email';
|
|
@@ -113,8 +113,14 @@ interface AdminScheduledJob {
|
|
|
113
113
|
doc: ID;
|
|
114
114
|
}
|
|
115
115
|
/** What Settings → Jobs shows (`GET <api>/admin/jobs`). */
|
|
116
|
+
/** Work Easy CMS itself does with every run of the jobs, when it is set up. */
|
|
117
|
+
type BuiltInJob = 'scheduled' | 'webhooks' | 'emails' | 'backups' | 'audit';
|
|
116
118
|
interface AdminJobs {
|
|
117
119
|
jobs: AdminJob[];
|
|
120
|
+
/** When jobs last ran (the scheduler, the cron endpoint), `null` if never. */
|
|
121
|
+
lastRanAt: string | null;
|
|
122
|
+
/** Built-in work done with every run, in the order it runs. */
|
|
123
|
+
builtIn: BuiltInJob[];
|
|
118
124
|
/** The time zone of `at` (`timeZone` in the config), `null`: the server's. */
|
|
119
125
|
timeZone: string | null;
|
|
120
126
|
/** This user may pause jobs and change schedules (admins of the whole system). */
|
|
@@ -215,4 +221,4 @@ interface AdminStatus {
|
|
|
215
221
|
/** The version of `@easy-cms/core`, set when the package is built. */
|
|
216
222
|
declare const VERSION: string;
|
|
217
223
|
|
|
218
|
-
export { type AdminAttention, type AdminDeliveries, type AdminDelivery, type AdminEmail, type AdminEmailDelivery, type AdminJob, type AdminJobs, type AdminScheduledJob, type AdminStatus, type AdminWebhookDelivery, type DeliveryKind, type DeliveryState, type EmailCheck, EmailSetting, ID, PaginatedDocs, type SearchHit, VERSION };
|
|
224
|
+
export { type AdminAttention, type AdminDeliveries, type AdminDelivery, type AdminEmail, type AdminEmailDelivery, type AdminJob, type AdminJobs, type AdminScheduledJob, type AdminStatus, type AdminWebhookDelivery, type BuiltInJob, type DeliveryKind, type DeliveryState, type EmailCheck, EmailSetting, ID, PaginatedDocs, type SearchHit, VERSION };
|
package/dist/index.js
CHANGED
package/dist/internal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ab as Config, al as Database,
|
|
2
|
-
export {
|
|
3
|
-
export { C as CONFIG_FILE_NAMES, g as CSRF_COOKIE, h as CSRF_HEADER, D as DEFAULT_ADMIN_PATH, i as DEFAULT_API_PATH, j as DEFAULT_MAX_FILE_SIZE, k as DEFAULT_TOKEN_EXPIRATION, m as applyDefaults, n as applyPlugins, o as createRootEndpointHandler, p as decryptBackup, q as fillMissing, t as findConfigFile, u as forwardedClientIp, v as generateSlugs, w as importConfig, x as mergeForUpdate, y as parseId, z as platformClientIp, E as readCookie, F as validateFields, G as writeBackupFile } from './handler-
|
|
1
|
+
import { ab as Config, al as Database, bm as NavGroup, a6 as CollectionConfig, I as ID, bF as RawDocument, aD as Field, bJ as ResolvedConfig, ad as ConfigIssue } from './config-CB8mhU2a.js';
|
|
2
|
+
export { cI as API_KEYS, cJ as API_KEY_GLOBAL_OPERATIONS, cK as API_KEY_OPERATIONS, cL as DEFAULT_MAX_VERSIONS, cM as DEFAULT_PASSWORD_EMAILS, cN as FIELD_TYPE_BASES, cO as FOLDER_LEVELS, cP as MediaFolders, cQ as SSO_COOKIE, cR as codeOfStatus, cy as hasRows, cA as isHasMany, cS as keyAllows, cE as mimeAllowedBy, cF as rowFields, cH as uniqueWithinOf } from './config-CB8mhU2a.js';
|
|
3
|
+
export { C as CONFIG_FILE_NAMES, g as CSRF_COOKIE, h as CSRF_HEADER, D as DEFAULT_ADMIN_PATH, i as DEFAULT_API_PATH, j as DEFAULT_MAX_FILE_SIZE, k as DEFAULT_TOKEN_EXPIRATION, m as applyDefaults, n as applyPlugins, o as createRootEndpointHandler, p as decryptBackup, q as fillMissing, t as findConfigFile, u as forwardedClientIp, v as generateSlugs, w as importConfig, x as mergeForUpdate, y as parseId, z as platformClientIp, E as readCookie, F as validateFields, G as writeBackupFile } from './handler-bybEUkpd.js';
|
|
4
4
|
export { conditionIssues } from './conditions.js';
|
|
5
5
|
|
|
6
6
|
/** The session cookie the REST API sets at login. */
|
package/dist/internal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ba as Label, aD as Field, I as ID, k as AdminLocale, t as AdminSwitcher,
|
|
1
|
+
import { ba as Label, aD as Field, I as ID, k as AdminLocale, t as AdminSwitcher, c2 as SsoProviderRef } from './config-CB8mhU2a.js';
|
|
2
2
|
import { FieldCondition } from './conditions.js';
|
|
3
3
|
|
|
4
4
|
/** A Web Component from an admin module, with its `props` (plain JSON). */
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a as ADMIN_ICONS, g as AdminComponent, j as AdminIcon, S as AuthUser, a3 as CliCommand, a4 as CollectionAccess, a6 as CollectionConfig, ab as Config, ac as ConfigError, ak as DashboardWidget, av as EasyCMSError, az as Endpoint, aA as EndpointRequest, aB as ErrorCode, aD as Field, aE as FieldAccess, aH as FieldError, aK as FieldTypeBase, aL as FieldTypeDefinition, aM as FieldTypeValidateContext, aY as ForbiddenError, a_ as GlobalConfig, I as ID, b8 as JobConfig, ba as Label,
|
|
2
|
-
export { A as ADMIN_API_VERSION, c as AdminElementProps, k as AdminPageRoute, S as SetFieldDetail, w as warnDeprecated } from './plugin-
|
|
1
|
+
export { a as ADMIN_ICONS, g as AdminComponent, j as AdminIcon, S as AuthUser, a3 as CliCommand, a4 as CollectionAccess, a6 as CollectionConfig, ab as Config, ac as ConfigError, ak as DashboardWidget, av as EasyCMSError, az as Endpoint, aA as EndpointRequest, aB as ErrorCode, aD as Field, aE as FieldAccess, aH as FieldError, aK as FieldTypeBase, aL as FieldTypeDefinition, aM as FieldTypeValidateContext, aY as ForbiddenError, a_ as GlobalConfig, I as ID, b8 as JobConfig, ba as Label, bm as NavGroup, bn as NotFoundError, bp as OnRequest, bq as OnRequestArgs, bs as PLUGIN_API_VERSION, bx as PayloadTooLargeError, by as Plugin, bz as PluginInfo, bA as PluginTypes, bD as QueryError, bI as RequestContext, c7 as TooManyRequestsError, c8 as TypedPlugin, c9 as UnauthorizedError, cg as ValidationError, co as Where, cv as defineFieldType, cw as definePlugin } from './config-CB8mhU2a.js';
|
|
2
|
+
export { A as ADMIN_API_VERSION, c as AdminElementProps, k as AdminPageRoute, S as SetFieldDetail, w as warnDeprecated } from './plugin-CJCqvyo_.js';
|
|
3
3
|
import './conditions.js';
|