payload 3.0.0-alpha.56 → 3.0.0-alpha.57
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/auth/getAccessResults.d.ts.map +1 -1
- package/dist/auth/getAccessResults.js +1 -2
- package/dist/auth/getAccessResults.js.map +1 -1
- package/dist/auth/operations/local/index.d.ts +1 -1
- package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts.map +1 -1
- package/dist/bin/loader/index.d.ts.map +1 -1
- package/dist/bin/loader/index.js +34 -26
- package/dist/bin/loader/index.js.map +1 -1
- package/dist/collections/config/client.d.ts +32 -30
- package/dist/collections/config/client.d.ts.map +1 -1
- package/dist/collections/config/defaults.d.ts +5 -5
- package/dist/collections/config/types.d.ts +3 -1
- package/dist/collections/config/types.d.ts.map +1 -1
- package/dist/collections/config/types.js.map +1 -1
- package/dist/collections/operations/local/index.d.ts +6 -6
- package/dist/database/migrations/readMigrationFiles.d.ts.map +1 -1
- package/dist/fields/config/client.d.ts +68 -68
- package/dist/fields/validations.d.ts +3 -3
- package/dist/translations/getLocalI18n.d.ts.map +1 -1
- package/dist/utilities/formatLabels.d.ts +0 -2
- package/dist/utilities/formatLabels.d.ts.map +1 -1
- package/dist/utilities/isEntityHidden.d.ts.map +1 -1
- package/dist/versions/getLatestGlobalVersion.d.ts.map +1 -1
- package/package.json +2 -2
- package/uploads.d.ts +2 -0
- package/uploads.js +3 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAccessResults.d.ts","sourceRoot":"","sources":["../../src/auth/getAccessResults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAK7C,KAAK,oBAAoB,GAAG;IAC1B,GAAG,EAAE,cAAc,CAAA;CACpB,CAAA;AACD,wBAAsB,gBAAgB,CAAC,EAAE,GAAG,EAAE,EAAE,oBAAoB,GAAG,OAAO,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"getAccessResults.d.ts","sourceRoot":"","sources":["../../src/auth/getAccessResults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAK7C,KAAK,oBAAoB,GAAG;IAC1B,GAAG,EAAE,cAAc,CAAA;CACpB,CAAA;AACD,wBAAsB,gBAAgB,CAAC,EAAE,GAAG,EAAE,EAAE,oBAAoB,GAAG,OAAO,CAAC,WAAW,CAAC,CAyE1F"}
|
|
@@ -7,8 +7,7 @@ export async function getAccessResults({ req }) {
|
|
|
7
7
|
const userCollectionConfig = user && user.collection ? payload.config.collections.find((collection)=>collection.slug === user.collection) : null;
|
|
8
8
|
if (userCollectionConfig) {
|
|
9
9
|
results.canAccessAdmin = userCollectionConfig.access.admin ? await userCollectionConfig.access.admin({
|
|
10
|
-
|
|
11
|
-
user
|
|
10
|
+
req
|
|
12
11
|
}) : isLoggedIn;
|
|
13
12
|
} else {
|
|
14
13
|
results.canAccessAdmin = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/auth/getAccessResults.ts"],"sourcesContent":["import type { AllOperations, PayloadRequest } from '../types/index.js'\nimport type { Permissions } from './types.js'\n\nimport { getEntityPolicies } from '../utilities/getEntityPolicies.js'\nimport isolateObjectProperty from '../utilities/isolateObjectProperty.js'\n\ntype GetAccessResultsArgs = {\n req: PayloadRequest\n}\nexport async function getAccessResults({ req }: GetAccessResultsArgs): Promise<Permissions> {\n const results = {} as Permissions\n const { payload, user } = req\n\n const isLoggedIn = !!user\n const userCollectionConfig =\n user && user.collection\n ? payload.config.collections.find((collection) => collection.slug === user.collection)\n : null\n\n if (userCollectionConfig) {\n results.canAccessAdmin = userCollectionConfig.access.admin\n ? await userCollectionConfig.access.admin({
|
|
1
|
+
{"version":3,"sources":["../../src/auth/getAccessResults.ts"],"sourcesContent":["import type { AllOperations, PayloadRequest } from '../types/index.js'\nimport type { Permissions } from './types.js'\n\nimport { getEntityPolicies } from '../utilities/getEntityPolicies.js'\nimport isolateObjectProperty from '../utilities/isolateObjectProperty.js'\n\ntype GetAccessResultsArgs = {\n req: PayloadRequest\n}\nexport async function getAccessResults({ req }: GetAccessResultsArgs): Promise<Permissions> {\n const results = {} as Permissions\n const { payload, user } = req\n\n const isLoggedIn = !!user\n const userCollectionConfig =\n user && user.collection\n ? payload.config.collections.find((collection) => collection.slug === user.collection)\n : null\n\n if (userCollectionConfig) {\n results.canAccessAdmin = userCollectionConfig.access.admin\n ? await userCollectionConfig.access.admin({ req })\n : isLoggedIn\n } else {\n results.canAccessAdmin = false\n }\n\n await Promise.all(\n payload.config.collections.map(async (collection) => {\n const collectionOperations: AllOperations[] = ['create', 'read', 'update', 'delete']\n\n if (\n collection.auth &&\n typeof collection.auth.maxLoginAttempts !== 'undefined' &&\n collection.auth.maxLoginAttempts !== 0\n ) {\n collectionOperations.push('unlock')\n }\n\n if (collection.versions) {\n collectionOperations.push('readVersions')\n }\n\n const collectionPolicy = await getEntityPolicies({\n type: 'collection',\n entity: collection,\n operations: collectionOperations,\n // Do not re-use our existing req object, as we need a new req.transactionID. Cannot re-use our existing one, as this is run in parallel (Promise.all above) which is\n // not supported on the same transaction ID. Not passing a transaction ID here creates a new transaction ID.\n req: isolateObjectProperty(req, 'transactionID'),\n })\n results.collections = {\n ...results.collections,\n [collection.slug]: collectionPolicy,\n }\n }),\n )\n\n await Promise.all(\n payload.config.globals.map(async (global) => {\n const globalOperations: AllOperations[] = ['read', 'update']\n\n if (global.versions) {\n globalOperations.push('readVersions')\n }\n\n const globalPolicy = await getEntityPolicies({\n type: 'global',\n entity: global,\n operations: globalOperations,\n // Do not re-use our existing req object, as we need a new req.transactionID. Cannot re-use our existing one, as this is run in parallel (Promise.all above) which is\n // not supported on the same transaction ID. Not passing a transaction ID here creates a new transaction ID.\n req: isolateObjectProperty(req, 'transactionID'),\n })\n results.globals = {\n ...results.globals,\n [global.slug]: globalPolicy,\n }\n }),\n )\n\n return results\n}\n"],"names":["getEntityPolicies","isolateObjectProperty","getAccessResults","req","results","payload","user","isLoggedIn","userCollectionConfig","collection","config","collections","find","slug","canAccessAdmin","access","admin","Promise","all","map","collectionOperations","auth","maxLoginAttempts","push","versions","collectionPolicy","type","entity","operations","globals","global","globalOperations","globalPolicy"],"mappings":"AAGA,SAASA,iBAAiB,QAAQ,oCAAmC;AACrE,OAAOC,2BAA2B,wCAAuC;AAKzE,OAAO,eAAeC,iBAAiB,EAAEC,GAAG,EAAwB;IAClE,MAAMC,UAAU,CAAC;IACjB,MAAM,EAAEC,OAAO,EAAEC,IAAI,EAAE,GAAGH;IAE1B,MAAMI,aAAa,CAAC,CAACD;IACrB,MAAME,uBACJF,QAAQA,KAAKG,UAAU,GACnBJ,QAAQK,MAAM,CAACC,WAAW,CAACC,IAAI,CAAC,CAACH,aAAeA,WAAWI,IAAI,KAAKP,KAAKG,UAAU,IACnF;IAEN,IAAID,sBAAsB;QACxBJ,QAAQU,cAAc,GAAGN,qBAAqBO,MAAM,CAACC,KAAK,GACtD,MAAMR,qBAAqBO,MAAM,CAACC,KAAK,CAAC;YAAEb;QAAI,KAC9CI;IACN,OAAO;QACLH,QAAQU,cAAc,GAAG;IAC3B;IAEA,MAAMG,QAAQC,GAAG,CACfb,QAAQK,MAAM,CAACC,WAAW,CAACQ,GAAG,CAAC,OAAOV;QACpC,MAAMW,uBAAwC;YAAC;YAAU;YAAQ;YAAU;SAAS;QAEpF,IACEX,WAAWY,IAAI,IACf,OAAOZ,WAAWY,IAAI,CAACC,gBAAgB,KAAK,eAC5Cb,WAAWY,IAAI,CAACC,gBAAgB,KAAK,GACrC;YACAF,qBAAqBG,IAAI,CAAC;QAC5B;QAEA,IAAId,WAAWe,QAAQ,EAAE;YACvBJ,qBAAqBG,IAAI,CAAC;QAC5B;QAEA,MAAME,mBAAmB,MAAMzB,kBAAkB;YAC/C0B,MAAM;YACNC,QAAQlB;YACRmB,YAAYR;YACZ,qKAAqK;YACrK,4GAA4G;YAC5GjB,KAAKF,sBAAsBE,KAAK;QAClC;QACAC,QAAQO,WAAW,GAAG;YACpB,GAAGP,QAAQO,WAAW;YACtB,CAACF,WAAWI,IAAI,CAAC,EAAEY;QACrB;IACF;IAGF,MAAMR,QAAQC,GAAG,CACfb,QAAQK,MAAM,CAACmB,OAAO,CAACV,GAAG,CAAC,OAAOW;QAChC,MAAMC,mBAAoC;YAAC;YAAQ;SAAS;QAE5D,IAAID,OAAON,QAAQ,EAAE;YACnBO,iBAAiBR,IAAI,CAAC;QACxB;QAEA,MAAMS,eAAe,MAAMhC,kBAAkB;YAC3C0B,MAAM;YACNC,QAAQG;YACRF,YAAYG;YACZ,qKAAqK;YACrK,4GAA4G;YAC5G5B,KAAKF,sBAAsBE,KAAK;QAClC;QACAC,QAAQyB,OAAO,GAAG;YAChB,GAAGzB,QAAQyB,OAAO;YAClB,CAACC,OAAOjB,IAAI,CAAC,EAAEmB;QACjB;IACF;IAGF,OAAO5B;AACT"}
|
|
@@ -4,7 +4,7 @@ import resetPassword from './resetPassword.js';
|
|
|
4
4
|
import unlock from './unlock.js';
|
|
5
5
|
import verifyEmail from './verifyEmail.js';
|
|
6
6
|
declare const _default: {
|
|
7
|
-
auth: (payload: import("
|
|
7
|
+
auth: (payload: import("../../../index.js").Payload, options: import("../auth.js").AuthArgs) => Promise<import("../auth.js").AuthResult>;
|
|
8
8
|
forgotPassword: typeof forgotPassword;
|
|
9
9
|
login: typeof login;
|
|
10
10
|
resetPassword: typeof resetPassword;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generatePasswordSaltHash.d.ts","sourceRoot":"","sources":["../../../../src/auth/strategies/local/generatePasswordSaltHash.ts"],"names":[],"mappings":"AAyBA,KAAK,IAAI,GAAG;IACV,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,wBAAwB,kBAElC,IAAI;
|
|
1
|
+
{"version":3,"file":"generatePasswordSaltHash.d.ts","sourceRoot":"","sources":["../../../../src/auth/strategies/local/generatePasswordSaltHash.ts"],"names":[],"mappings":"AAyBA,KAAK,IAAI,GAAG;IACV,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,wBAAwB,kBAElC,IAAI,KAAG,QAAQ;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAc/C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bin/loader/index.ts"],"names":[],"mappings":"AASA,UAAU,cAAc;IACtB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;CAC9B;AACD,UAAU,aAAa;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,GAAG,EAAE,MAAM,CAAA;CACZ;AACD,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM;IACjB,OAAO,CAAC,EAAE,cAAc;IACxB,WAAW,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,aAAa,CAAC;CAC/D,CAAA;AACD,KAAK,SAAS,GAAG,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC,KAAK,OAAO,CAAC,aAAa,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bin/loader/index.ts"],"names":[],"mappings":"AASA,UAAU,cAAc;IACtB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;CAC9B;AACD,UAAU,aAAa;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,GAAG,EAAE,MAAM,CAAA;CACZ;AACD,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM;IACjB,OAAO,CAAC,EAAE,cAAc;IACxB,WAAW,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,aAAa,CAAC;CAC/D,CAAA;AACD,KAAK,SAAS,GAAG,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC,KAAK,OAAO,CAAC,aAAa,CAAC,CAAA;AA0B3E,eAAO,MAAM,OAAO,EAAE,SAwErB,CAAA;AAED,UAAU,WAAW;IACnB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,MAAM,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAAA;CAClC;AACD,UAAU,UAAU;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,MAAM,EAAE,WAAW,GAAG,iBAAiB,GAAG,UAAU,GAAG,MAAM,CAAA;CAC9D;AACD,KAAK,QAAQ,GAAG;IACd,GAAG,EAAE,MAAM;IACX,OAAO,EAAE,WAAW;IACpB,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC,UAAU,CAAC;CACtD,CAAA;AACD,KAAK,MAAM,GAAG,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,KAAK,OAAO,CAAC,UAAU,CAAC,CAAA;AAelE,eAAO,MAAM,IAAI,EAAE,MAuBlB,CAAA"}
|
package/dist/bin/loader/index.js
CHANGED
|
@@ -6,12 +6,10 @@ import { CLIENT_EXTENSIONS } from './clientExtensions.js';
|
|
|
6
6
|
import { compile } from './compile.js';
|
|
7
7
|
const locatedConfig = getTsconfig();
|
|
8
8
|
const tsconfig = locatedConfig.config.compilerOptions;
|
|
9
|
-
tsconfig.module = ts.ModuleKind.ESNext;
|
|
10
|
-
// Specify bundler resolution for Next.js compatibility.
|
|
11
|
-
// We will use TS to resolve file paths for most flexibility
|
|
12
|
-
tsconfig.moduleResolution = ts.ModuleResolutionKind.Bundler;
|
|
13
9
|
// Don't resolve d.ts files, because we aren't type-checking
|
|
14
10
|
tsconfig.noDtsResolution = true;
|
|
11
|
+
tsconfig.module = ts.ModuleKind.ESNext;
|
|
12
|
+
tsconfig.moduleResolution = ts.ModuleResolutionKind.NodeNext;
|
|
15
13
|
const moduleResolutionCache = ts.createModuleResolutionCache(ts.sys.getCurrentDirectory(), (x)=>x, tsconfig);
|
|
16
14
|
const host = {
|
|
17
15
|
fileExists: ts.sys.fileExists,
|
|
@@ -26,11 +24,13 @@ const TS_EXTENSIONS = [
|
|
|
26
24
|
export const resolve = async (specifier, context, nextResolve)=>{
|
|
27
25
|
const isTS = TS_EXTENSIONS.some((ext)=>specifier.endsWith(ext));
|
|
28
26
|
const isClient = CLIENT_EXTENSIONS.some((ext)=>specifier.endsWith(ext));
|
|
27
|
+
// If a client file is resolved, we'll set `format: client`
|
|
28
|
+
// and short circuit, so the load step
|
|
29
|
+
// will return source code of empty object
|
|
29
30
|
if (isClient) {
|
|
30
31
|
const nextResult = await nextResolve(specifier, context, nextResolve);
|
|
31
|
-
const specifierSegments = specifier.split('.');
|
|
32
32
|
return {
|
|
33
|
-
format: '
|
|
33
|
+
format: 'client',
|
|
34
34
|
shortCircuit: true,
|
|
35
35
|
url: nextResult.url
|
|
36
36
|
};
|
|
@@ -43,31 +43,39 @@ export const resolve = async (specifier, context, nextResolve)=>{
|
|
|
43
43
|
url: specifier
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
//
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
// Try and resolve normally
|
|
47
|
+
// This could fail, so we need to swallow that error
|
|
48
|
+
// and keep going
|
|
49
|
+
let nextResult;
|
|
50
|
+
// First, try to
|
|
51
|
+
if (!isTS) {
|
|
52
|
+
try {
|
|
53
|
+
nextResult = await nextResolve(specifier, context, nextResolve);
|
|
54
|
+
} catch (_) {
|
|
55
|
+
// swallow error
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
if (nextResult) {
|
|
59
|
+
const nextResultIsTS = TS_EXTENSIONS.some((ext)=>nextResult.url.endsWith(ext));
|
|
60
|
+
return {
|
|
61
|
+
...nextResult,
|
|
62
|
+
format: nextResultIsTS ? 'ts' : nextResult.format,
|
|
63
|
+
shortCircuit: true
|
|
64
|
+
};
|
|
49
65
|
}
|
|
50
66
|
const { resolvedModule } = ts.resolveModuleName(specifier, fileURLToPath(context.parentURL), tsconfig, host, moduleResolutionCache);
|
|
51
|
-
// import from local project to local project TS file
|
|
52
67
|
if (resolvedModule) {
|
|
53
|
-
const resolvedIsNodeModule = resolvedModule.resolvedFileName.includes('/node_modules/');
|
|
54
68
|
const resolvedIsTS = TS_EXTENSIONS.includes(resolvedModule.extension);
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
// We want to use TS "Bundler" moduleResolution for just about all files
|
|
63
|
-
// so we pass the TS result here
|
|
64
|
-
return nextResolve(pathToFileURL(resolvedModule.resolvedFileName).href);
|
|
69
|
+
return {
|
|
70
|
+
format: resolvedIsTS ? 'ts' : undefined,
|
|
71
|
+
shortCircuit: true,
|
|
72
|
+
url: pathToFileURL(resolvedModule.resolvedFileName).href
|
|
73
|
+
};
|
|
65
74
|
}
|
|
66
75
|
// import from local project to either:
|
|
67
76
|
// - something TS couldn't resolve
|
|
68
|
-
// - external library
|
|
69
77
|
// - local project non-TS file
|
|
70
|
-
return nextResolve(specifier);
|
|
78
|
+
return nextResolve(specifier, context, nextResolve);
|
|
71
79
|
};
|
|
72
80
|
const swcOptions = {
|
|
73
81
|
...tsconfig,
|
|
@@ -81,10 +89,10 @@ if (tsconfig.paths) {
|
|
|
81
89
|
}
|
|
82
90
|
}
|
|
83
91
|
export const load = async (url, context, nextLoad)=>{
|
|
84
|
-
if (
|
|
85
|
-
const rawSource = '{}';
|
|
92
|
+
if (context.format === 'client') {
|
|
93
|
+
const rawSource = 'export default {}';
|
|
86
94
|
return {
|
|
87
|
-
format: '
|
|
95
|
+
format: 'module',
|
|
88
96
|
shortCircuit: true,
|
|
89
97
|
source: rawSource
|
|
90
98
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/bin/loader/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/unbound-method */\nimport { getTsconfig } from 'get-tsconfig'\nimport path from 'path'\nimport ts from 'typescript'\nimport { fileURLToPath, pathToFileURL } from 'url'\n\nimport { CLIENT_EXTENSIONS } from './clientExtensions.js'\nimport { compile } from './compile.js'\n\ninterface ResolveContext {\n conditions: string[]\n parentURL: string | undefined\n}\ninterface ResolveResult {\n format?: string\n shortCircuit?: boolean\n url: string\n}\ntype ResolveArgs = [\n specifier: string,\n context?: ResolveContext,\n nextResolve?: (...args: ResolveArgs) => Promise<ResolveResult>,\n]\ntype ResolveFn = (...args: Required<ResolveArgs>) => Promise<ResolveResult>\n\nconst locatedConfig = getTsconfig()\nconst tsconfig = locatedConfig.config.compilerOptions as unknown as ts.CompilerOptions\n\
|
|
1
|
+
{"version":3,"sources":["../../../src/bin/loader/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/unbound-method */\nimport { getTsconfig } from 'get-tsconfig'\nimport path from 'path'\nimport ts from 'typescript'\nimport { fileURLToPath, pathToFileURL } from 'url'\n\nimport { CLIENT_EXTENSIONS } from './clientExtensions.js'\nimport { compile } from './compile.js'\n\ninterface ResolveContext {\n conditions: string[]\n parentURL: string | undefined\n}\ninterface ResolveResult {\n format?: string\n shortCircuit?: boolean\n url: string\n}\ntype ResolveArgs = [\n specifier: string,\n context?: ResolveContext,\n nextResolve?: (...args: ResolveArgs) => Promise<ResolveResult>,\n]\ntype ResolveFn = (...args: Required<ResolveArgs>) => Promise<ResolveResult>\n\nconst locatedConfig = getTsconfig()\nconst tsconfig = locatedConfig.config.compilerOptions as unknown as ts.CompilerOptions\n\n// Don't resolve d.ts files, because we aren't type-checking\ntsconfig.noDtsResolution = true\ntsconfig.module = ts.ModuleKind.ESNext\ntsconfig.moduleResolution = ts.ModuleResolutionKind.NodeNext\n\nconst moduleResolutionCache = ts.createModuleResolutionCache(\n ts.sys.getCurrentDirectory(),\n (x) => x,\n tsconfig,\n)\nconst host: ts.ModuleResolutionHost = {\n fileExists: ts.sys.fileExists,\n readFile: ts.sys.readFile,\n}\nconst TS_EXTENSIONS: string[] = [\n ts.Extension.Ts,\n ts.Extension.Tsx,\n ts.Extension.Dts,\n ts.Extension.Mts,\n]\n\nexport const resolve: ResolveFn = async (specifier, context, nextResolve) => {\n const isTS = TS_EXTENSIONS.some((ext) => specifier.endsWith(ext))\n const isClient = CLIENT_EXTENSIONS.some((ext) => specifier.endsWith(ext))\n\n // If a client file is resolved, we'll set `format: client`\n // and short circuit, so the load step\n // will return source code of empty object\n if (isClient) {\n const nextResult = await nextResolve(specifier, context, nextResolve)\n\n return {\n format: 'client',\n shortCircuit: true,\n url: nextResult.url,\n }\n }\n\n // entrypoint\n if (!context.parentURL) {\n return {\n format: isTS ? 'ts' : undefined,\n shortCircuit: true,\n url: specifier,\n }\n }\n\n // Try and resolve normally\n // This could fail, so we need to swallow that error\n // and keep going\n let nextResult: ResolveResult\n\n // First, try to\n if (!isTS) {\n try {\n nextResult = await nextResolve(specifier, context, nextResolve)\n } catch (_) {\n // swallow error\n }\n }\n\n if (nextResult) {\n const nextResultIsTS = TS_EXTENSIONS.some((ext) => nextResult.url.endsWith(ext))\n\n return {\n ...nextResult,\n format: nextResultIsTS ? 'ts' : nextResult.format,\n shortCircuit: true,\n }\n }\n\n const { resolvedModule } = ts.resolveModuleName(\n specifier,\n fileURLToPath(context.parentURL),\n tsconfig,\n host,\n moduleResolutionCache,\n )\n\n if (resolvedModule) {\n const resolvedIsTS = TS_EXTENSIONS.includes(resolvedModule.extension)\n\n return {\n format: resolvedIsTS ? 'ts' : undefined,\n shortCircuit: true,\n url: pathToFileURL(resolvedModule.resolvedFileName).href,\n }\n }\n\n // import from local project to either:\n // - something TS couldn't resolve\n // - local project non-TS file\n return nextResolve(specifier, context, nextResolve)\n}\n\ninterface LoadContext {\n conditions: string[]\n format: null | string | undefined\n}\ninterface LoadResult {\n format: string\n shortCircuit?: boolean\n source: ArrayBuffer | SharedArrayBuffer | Uint8Array | string\n}\ntype LoadArgs = [\n url: string,\n context: LoadContext,\n nextLoad?: (...args: LoadArgs) => Promise<LoadResult>,\n]\ntype LoadFn = (...args: Required<LoadArgs>) => Promise<LoadResult>\n\nconst swcOptions = {\n ...tsconfig,\n baseUrl: path.resolve(''),\n paths: undefined,\n}\n\nif (tsconfig.paths) {\n swcOptions.paths = tsconfig.paths\n if (tsconfig.baseUrl) {\n swcOptions.baseUrl = path.resolve(tsconfig.baseUrl)\n }\n}\n\nexport const load: LoadFn = async (url, context, nextLoad) => {\n if (context.format === 'client') {\n const rawSource = 'export default {}'\n\n return {\n format: 'module',\n shortCircuit: true,\n source: rawSource,\n }\n }\n\n if (context.format === 'ts') {\n const { source } = await nextLoad(url, context)\n const code = typeof source === 'string' ? source : Buffer.from(source).toString()\n const compiled = await compile(code, fileURLToPath(url), swcOptions)\n return {\n format: 'module',\n shortCircuit: true,\n source: compiled,\n }\n } else {\n return nextLoad(url, context)\n }\n}\n"],"names":["getTsconfig","path","ts","fileURLToPath","pathToFileURL","CLIENT_EXTENSIONS","compile","locatedConfig","tsconfig","config","compilerOptions","noDtsResolution","module","ModuleKind","ESNext","moduleResolution","ModuleResolutionKind","NodeNext","moduleResolutionCache","createModuleResolutionCache","sys","getCurrentDirectory","x","host","fileExists","readFile","TS_EXTENSIONS","Extension","Ts","Tsx","Dts","Mts","resolve","specifier","context","nextResolve","isTS","some","ext","endsWith","isClient","nextResult","format","shortCircuit","url","parentURL","undefined","_","nextResultIsTS","resolvedModule","resolveModuleName","resolvedIsTS","includes","extension","resolvedFileName","href","swcOptions","baseUrl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pD;AACF;AAEA,OAAO,MAAME,OAAe,OAAOf,KAAKV,SAAS0B;IAC/C,IAAI1B,QAAQQ,MAAM,KAAK,UAAU;QAC/B,MAAMmB,YAAY;QAElB,OAAO;YACLnB,QAAQ;YACRC,cAAc;YACdmB,QAAQD;QACV;IACF;IAEA,IAAI3B,QAAQQ,MAAM,KAAK,MAAM;QAC3B,MAAM,EAAEoB,MAAM,EAAE,GAAG,MAAMF,SAAShB,KAAKV;QACvC,MAAM6B,OAAO,OAAOD,WAAW,WAAWA,SAASE,OAAOC,IAAI,CAACH,QAAQI,QAAQ;QAC/E,MAAMC,WAAW,MAAM7D,QAAQyD,MAAM5D,cAAcyC,MAAMY;QACzD,OAAO;YACLd,QAAQ;YACRC,cAAc;YACdmB,QAAQK;QACV;IACF,OAAO;QACL,OAAOP,SAAShB,KAAKV;IACvB;AACF,EAAC"}
|
|
@@ -10,11 +10,11 @@ export type ClientCollectionConfig = Omit<SanitizedCollectionConfig, 'admin' | '
|
|
|
10
10
|
import type { ClientFieldConfig } from '../../fields/config/client.js';
|
|
11
11
|
import type { SanitizedCollectionConfig } from './types.js';
|
|
12
12
|
export declare const createClientCollectionConfig: (collection: SanitizedCollectionConfig) => {
|
|
13
|
-
auth: import("
|
|
13
|
+
auth: import("../../auth/types.js").Auth;
|
|
14
14
|
endpoints: false | import("../../config/types.js").Endpoint[];
|
|
15
|
-
fields: import("
|
|
16
|
-
upload: import("
|
|
17
|
-
versions: import("
|
|
15
|
+
fields: import("../../exports/types.js").Field[];
|
|
16
|
+
upload: import("../../uploads/types.js").SanitizedUploadConfig;
|
|
17
|
+
versions: import("../../versions/types.js").SanitizedCollectionVersions;
|
|
18
18
|
admin: {
|
|
19
19
|
components: {
|
|
20
20
|
AfterList: import("react").ComponentType<any>[];
|
|
@@ -22,21 +22,21 @@ export declare const createClientCollectionConfig: (collection: SanitizedCollect
|
|
|
22
22
|
BeforeList: import("react").ComponentType<any>[];
|
|
23
23
|
BeforeListTable: import("react").ComponentType<any>[];
|
|
24
24
|
edit: {
|
|
25
|
-
PreviewButton: import("
|
|
26
|
-
PublishButton: import("
|
|
27
|
-
SaveButton: import("
|
|
28
|
-
SaveDraftButton: import("
|
|
25
|
+
PreviewButton: import("../../admin/types.js").CustomPreviewButton;
|
|
26
|
+
PublishButton: import("../../admin/types.js").CustomPublishButton;
|
|
27
|
+
SaveButton: import("../../admin/types.js").CustomSaveButton;
|
|
28
|
+
SaveDraftButton: import("../../admin/types.js").CustomSaveDraftButton;
|
|
29
29
|
};
|
|
30
30
|
views: {
|
|
31
31
|
Edit: import("../../config/types.js").EditViewComponent | {
|
|
32
32
|
API: import("../../config/types.js").EditViewComponent | {
|
|
33
|
-
Tab: import("
|
|
33
|
+
Tab: import("../../admin/types.js").DocumentTabComponent | {
|
|
34
34
|
Pill: import("react").ComponentType<{}>;
|
|
35
|
-
condition: import("
|
|
35
|
+
condition: import("../../admin/types.js").DocumentTabCondition;
|
|
36
36
|
href: string | ((args: {
|
|
37
37
|
apiURL: string;
|
|
38
38
|
collection: SanitizedCollectionConfig;
|
|
39
|
-
global: import("
|
|
39
|
+
global: import("../../exports/types.js").SanitizedGlobalConfig;
|
|
40
40
|
id?: string;
|
|
41
41
|
routes: {
|
|
42
42
|
admin: string;
|
|
@@ -61,13 +61,13 @@ export declare const createClientCollectionConfig: (collection: SanitizedCollect
|
|
|
61
61
|
actions: import("react").ComponentType<any>[];
|
|
62
62
|
};
|
|
63
63
|
Default: import("../../config/types.js").EditViewComponent | {
|
|
64
|
-
Tab: import("
|
|
64
|
+
Tab: import("../../admin/types.js").DocumentTabComponent | {
|
|
65
65
|
Pill: import("react").ComponentType<{}>;
|
|
66
|
-
condition: import("
|
|
66
|
+
condition: import("../../admin/types.js").DocumentTabCondition;
|
|
67
67
|
href: string | ((args: {
|
|
68
68
|
apiURL: string;
|
|
69
69
|
collection: SanitizedCollectionConfig;
|
|
70
|
-
global: import("
|
|
70
|
+
global: import("../../exports/types.js").SanitizedGlobalConfig;
|
|
71
71
|
id?: string;
|
|
72
72
|
routes: {
|
|
73
73
|
admin: string;
|
|
@@ -92,13 +92,13 @@ export declare const createClientCollectionConfig: (collection: SanitizedCollect
|
|
|
92
92
|
actions: import("react").ComponentType<any>[];
|
|
93
93
|
};
|
|
94
94
|
LivePreview: import("../../config/types.js").EditViewComponent | {
|
|
95
|
-
Tab: import("
|
|
95
|
+
Tab: import("../../admin/types.js").DocumentTabComponent | {
|
|
96
96
|
Pill: import("react").ComponentType<{}>;
|
|
97
|
-
condition: import("
|
|
97
|
+
condition: import("../../admin/types.js").DocumentTabCondition;
|
|
98
98
|
href: string | ((args: {
|
|
99
99
|
apiURL: string;
|
|
100
100
|
collection: SanitizedCollectionConfig;
|
|
101
|
-
global: import("
|
|
101
|
+
global: import("../../exports/types.js").SanitizedGlobalConfig;
|
|
102
102
|
id?: string;
|
|
103
103
|
routes: {
|
|
104
104
|
admin: string;
|
|
@@ -123,13 +123,13 @@ export declare const createClientCollectionConfig: (collection: SanitizedCollect
|
|
|
123
123
|
actions: import("react").ComponentType<any>[];
|
|
124
124
|
};
|
|
125
125
|
Version: import("../../config/types.js").EditViewComponent | {
|
|
126
|
-
Tab: import("
|
|
126
|
+
Tab: import("../../admin/types.js").DocumentTabComponent | {
|
|
127
127
|
Pill: import("react").ComponentType<{}>;
|
|
128
|
-
condition: import("
|
|
128
|
+
condition: import("../../admin/types.js").DocumentTabCondition;
|
|
129
129
|
href: string | ((args: {
|
|
130
130
|
apiURL: string;
|
|
131
131
|
collection: SanitizedCollectionConfig;
|
|
132
|
-
global: import("
|
|
132
|
+
global: import("../../exports/types.js").SanitizedGlobalConfig;
|
|
133
133
|
id?: string;
|
|
134
134
|
routes: {
|
|
135
135
|
admin: string;
|
|
@@ -154,13 +154,13 @@ export declare const createClientCollectionConfig: (collection: SanitizedCollect
|
|
|
154
154
|
actions: import("react").ComponentType<any>[];
|
|
155
155
|
};
|
|
156
156
|
Versions: import("../../config/types.js").EditViewComponent | {
|
|
157
|
-
Tab: import("
|
|
157
|
+
Tab: import("../../admin/types.js").DocumentTabComponent | {
|
|
158
158
|
Pill: import("react").ComponentType<{}>;
|
|
159
|
-
condition: import("
|
|
159
|
+
condition: import("../../admin/types.js").DocumentTabCondition;
|
|
160
160
|
href: string | ((args: {
|
|
161
161
|
apiURL: string;
|
|
162
162
|
collection: SanitizedCollectionConfig;
|
|
163
|
-
global: import("
|
|
163
|
+
global: import("../../exports/types.js").SanitizedGlobalConfig;
|
|
164
164
|
id?: string;
|
|
165
165
|
routes: {
|
|
166
166
|
admin: string;
|
|
@@ -186,13 +186,13 @@ export declare const createClientCollectionConfig: (collection: SanitizedCollect
|
|
|
186
186
|
};
|
|
187
187
|
} | {
|
|
188
188
|
[x: string]: {
|
|
189
|
-
Tab: import("
|
|
189
|
+
Tab: import("../../admin/types.js").DocumentTabComponent | {
|
|
190
190
|
Pill: import("react").ComponentType<{}>;
|
|
191
|
-
condition: import("
|
|
191
|
+
condition: import("../../admin/types.js").DocumentTabCondition;
|
|
192
192
|
href: string | ((args: {
|
|
193
193
|
apiURL: string;
|
|
194
194
|
collection: SanitizedCollectionConfig;
|
|
195
|
-
global: import("
|
|
195
|
+
global: import("../../exports/types.js").SanitizedGlobalConfig;
|
|
196
196
|
id?: string;
|
|
197
197
|
routes: {
|
|
198
198
|
admin: string;
|
|
@@ -233,7 +233,7 @@ export declare const createClientCollectionConfig: (collection: SanitizedCollect
|
|
|
233
233
|
[x: string]: string;
|
|
234
234
|
};
|
|
235
235
|
hidden: boolean | ((args: {
|
|
236
|
-
user: import("
|
|
236
|
+
user: import("../../auth/types.js").ClientUser;
|
|
237
237
|
}) => boolean);
|
|
238
238
|
hideAPIURL: boolean;
|
|
239
239
|
listSearchableFields: string[];
|
|
@@ -247,9 +247,9 @@ export declare const createClientCollectionConfig: (collection: SanitizedCollect
|
|
|
247
247
|
url: string | ((args: {
|
|
248
248
|
collectionConfig?: SanitizedCollectionConfig;
|
|
249
249
|
data: Record<string, any>;
|
|
250
|
-
globalConfig?: import("
|
|
250
|
+
globalConfig?: import("../../exports/types.js").SanitizedGlobalConfig;
|
|
251
251
|
locale: import("../../config/types.js").Locale;
|
|
252
|
-
payload: import("
|
|
252
|
+
payload: import("../../index.js").Payload;
|
|
253
253
|
}) => string | Promise<string>);
|
|
254
254
|
};
|
|
255
255
|
pagination: {
|
|
@@ -288,7 +288,9 @@ export declare const createClientCollectionConfig: (collection: SanitizedCollect
|
|
|
288
288
|
interface: string;
|
|
289
289
|
};
|
|
290
290
|
access: {
|
|
291
|
-
admin: (
|
|
291
|
+
admin: ({ req }: {
|
|
292
|
+
req: import("../../types/index.js").PayloadRequest;
|
|
293
|
+
}) => boolean | Promise<boolean>;
|
|
292
294
|
create: import("../../config/types.js").Access;
|
|
293
295
|
delete: import("../../config/types.js").Access;
|
|
294
296
|
read: import("../../config/types.js").Access;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/collections/config/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAA;AAE/F,MAAM,MAAM,8BAA8B,GAAG,MAAM,IAAI,CACrD,yBAAyB,EACzB,QAAQ,GAAG,WAAW,GAAG,OAAO,CACjC,CAAA;AAED,MAAM,MAAM,mCAAmC,GAAG,MAAM,IAAI,CAC1D,yBAAyB,CAAC,OAAO,CAAC,EAClC,YAAY,GAAG,QAAQ,GAAG,SAAS,CACpC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,IAAI,CACvC,yBAAyB,EACzB,OAAO,GAAG,QAAQ,GAAG,8BAA8B,CACpD,GAAG;IACF,KAAK,EAAE,IAAI,CACT,yBAAyB,CAAC,OAAO,CAAC,EAClC,QAAQ,GAAG,aAAa,GAAG,mCAAmC,CAC/D,GAAG;QACF,WAAW,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,+BAA+B,CAAC,CAAA;KACvE,CAAA;I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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDjF,CAAA;AAED,eAAO,MAAM,6BAA6B,gBAC3B,yBAAyB,EAAE,KACvC,sBAAsB,EACkD,CAAA"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export declare const defaults: {
|
|
2
2
|
access: {
|
|
3
3
|
create: ({ req: { user } }: {
|
|
4
|
-
req: import("
|
|
4
|
+
req: import("../../types/index.js").PayloadRequest;
|
|
5
5
|
}) => boolean;
|
|
6
6
|
delete: ({ req: { user } }: {
|
|
7
|
-
req: import("
|
|
7
|
+
req: import("../../types/index.js").PayloadRequest;
|
|
8
8
|
}) => boolean;
|
|
9
9
|
read: ({ req: { user } }: {
|
|
10
|
-
req: import("
|
|
10
|
+
req: import("../../types/index.js").PayloadRequest;
|
|
11
11
|
}) => boolean;
|
|
12
12
|
unlock: ({ req: { user } }: {
|
|
13
|
-
req: import("
|
|
13
|
+
req: import("../../types/index.js").PayloadRequest;
|
|
14
14
|
}) => boolean;
|
|
15
15
|
update: ({ req: { user } }: {
|
|
16
|
-
req: import("
|
|
16
|
+
req: import("../../types/index.js").PayloadRequest;
|
|
17
17
|
}) => boolean;
|
|
18
18
|
};
|
|
19
19
|
admin: {
|
|
@@ -250,7 +250,9 @@ export type CollectionConfig = {
|
|
|
250
250
|
* Access control
|
|
251
251
|
*/
|
|
252
252
|
access?: {
|
|
253
|
-
admin?: (
|
|
253
|
+
admin?: ({ req }: {
|
|
254
|
+
req: PayloadRequest;
|
|
255
|
+
}) => Promise<boolean> | boolean;
|
|
254
256
|
create?: Access;
|
|
255
257
|
delete?: Access;
|
|
256
258
|
read?: Access;
|
|
@@ -1 +1 @@
|
|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BAA2B,CAAA;CACtC;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,EAAE,yBAAyB,CAAA;IACjC,OAAO,CAAC,EAAE;QACR,GAAG,EAAE,iBAAiB,CAAA;QACtB,iBAAiB,EAAE,cAAc,CAAC,GAAG,CAAC,CAAA;QACtC,aAAa,EAAE,iBAAiB,CAAA;QAChC,IAAI,EAAE,iBAAiB,CAAA;QACvB,uBAAuB,EAAE,cAAc,CAAC,GAAG,CAAC,CAAA;QAC5C,WAAW,EAAE,iBAAiB,CAAA;QAC9B,cAAc,EAAE,sBAAsB,CAAA;KACvC,CAAA;CACF,CAAA;AAED,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,MAAM,cAAc,CAAC,aAAa,CAAC,IAAI;IACnF,IAAI,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC,KAAK,CAAC,EAAE,CAAA;IAC5C,MAAM,EAAE;QACN,EAAE,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAA;QAC9C,OAAO,EAAE,MAAM,CAAA;KAChB,EAAE,CAAA;CACJ,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/collections/config/types.ts"],"sourcesContent":["import type { GraphQLInputObjectType, GraphQLNonNull, GraphQLObjectType } from 'graphql'\nimport type { DeepRequired } from 'ts-essentials'\n\nimport type {\n CustomPreviewButton,\n CustomPublishButton,\n CustomSaveButton,\n CustomSaveDraftButton,\n} from '../../admin/types.js'\nimport type { Auth, ClientUser, IncomingAuthType } from '../../auth/types.js'\nimport type {\n Access,\n EditConfig,\n Endpoint,\n EntityDescription,\n GeneratePreviewURL,\n LivePreviewConfig,\n} from '../../config/types.js'\nimport type { Field } from '../../fields/config/types.js'\nimport type { GeneratedTypes } from '../../index.js'\nimport type { PayloadRequest, RequestContext } from '../../types/index.js'\nimport type { SanitizedUploadConfig, UploadConfig } from '../../uploads/types.js'\nimport type {\n IncomingCollectionVersions,\n SanitizedCollectionVersions,\n} from '../../versions/types.js'\nimport type { AfterOperationArg, AfterOperationMap } from '../operations/utils.js'\n\nexport type HookOperationType =\n | 'autosave'\n | 'create'\n | 'delete'\n | 'forgotPassword'\n | 'login'\n | 'read'\n | 'refresh'\n | 'update'\n\ntype CreateOrUpdateOperation = Extract<HookOperationType, 'create' | 'update'>\n\nexport type BeforeOperationHook = (args: {\n args?: any\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n /**\n * Hook operation being performed\n */\n operation: HookOperationType\n req: PayloadRequest\n}) => any\n\nexport type BeforeValidateHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data?: Partial<T>\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n /**\n * Original document before change\n *\n * `undefined` on 'create' operation\n */\n originalDoc?: T\n req: PayloadRequest\n}) => any\n\nexport type BeforeChangeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data: Partial<T>\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n /**\n * Original document before change\n *\n * `undefined` on 'create' operation\n */\n originalDoc?: T\n req: PayloadRequest\n}) => any\n\nexport type AfterChangeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n previousDoc: T\n req: PayloadRequest\n}) => any\n\nexport type BeforeReadHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n query: { [key: string]: any }\n req: PayloadRequest\n}) => any\n\nexport type AfterReadHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n findMany?: boolean\n query?: { [key: string]: any }\n req: PayloadRequest\n}) => any\n\nexport type BeforeDeleteHook = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n id: number | string\n req: PayloadRequest\n}) => any\n\nexport type AfterDeleteHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n id: number | string\n req: PayloadRequest\n}) => any\n\nexport type AfterOperationHook<T extends TypeWithID = any> = (\n arg: AfterOperationArg<T>,\n) => Promise<ReturnType<AfterOperationMap<T>[keyof AfterOperationMap<T>]>>\n\nexport type AfterErrorHook = (\n err: Error,\n res: unknown,\n context: RequestContext,\n /** The collection which this hook is being run on. This is null if the AfterError hook was be added to the payload-wide config */\n collection: SanitizedCollectionConfig | null,\n) => { response: any; status: number } | void\n\nexport type BeforeLoginHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n user: T\n}) => any\n\nexport type AfterLoginHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n token: string\n user: T\n}) => any\n\nexport type AfterLogoutHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n}) => any\n\nexport type AfterMeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n response: unknown\n}) => any\n\nexport type AfterRefreshHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n exp: number\n req: PayloadRequest\n token: string\n}) => any\n\nexport type AfterForgotPasswordHook = (args: {\n args?: any\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n}) => any\n\nexport type CollectionAdminOptions = {\n /**\n * Custom admin components\n */\n components?: {\n AfterList?: React.ComponentType<any>[]\n AfterListTable?: React.ComponentType<any>[]\n BeforeList?: React.ComponentType<any>[]\n BeforeListTable?: React.ComponentType<any>[]\n /**\n * Components within the edit view\n */\n edit?: {\n /**\n * Replaces the \"Preview\" button\n */\n PreviewButton?: CustomPreviewButton\n /**\n * Replaces the \"Publish\" button\n * + drafts must be enabled\n */\n PublishButton?: CustomPublishButton\n /**\n * Replaces the \"Save\" button\n * + drafts must be disabled\n */\n SaveButton?: CustomSaveButton\n /**\n * Replaces the \"Save Draft\" button\n * + drafts must be enabled\n * + autosave must be disabled\n */\n SaveDraftButton?: CustomSaveDraftButton\n }\n views?: {\n /**\n * Set to a React component to replace the entire \"Edit\" view, including all nested routes.\n * Set to an object to replace or modify individual nested routes, or to add new ones.\n */\n Edit?: EditConfig\n List?:\n | {\n Component?: React.ComponentType<any>\n actions?: React.ComponentType<any>[]\n }\n | React.ComponentType<any>\n }\n }\n /**\n * Default columns to show in list view\n */\n defaultColumns?: string[]\n /**\n * Custom description for collection\n */\n description?: EntityDescription\n enableRichTextLink?: boolean\n enableRichTextRelationship?: boolean\n /**\n * Place collections into a navigational group\n * */\n group?: Record<string, string> | string\n /**\n * Exclude the collection from the admin nav and routes\n */\n hidden?: ((args: { user: ClientUser }) => boolean) | boolean\n /**\n * Hide the API URL within the Edit view\n */\n hideAPIURL?: boolean\n /**\n * Additional fields to be searched via the full text search\n */\n listSearchableFields?: string[]\n /**\n * Live preview options\n */\n livePreview?: LivePreviewConfig\n pagination?: {\n defaultLimit?: number\n limits?: number[]\n }\n /**\n * Function to generate custom preview URL\n */\n preview?: GeneratePreviewURL\n /**\n * Field to use as title in Edit view and first column in List view\n */\n useAsTitle?: string\n}\n\n/** Manage all aspects of a data collection */\nexport type CollectionConfig = {\n /**\n * Access control\n */\n access?: {\n admin?: (args?: any) => Promise<boolean> | boolean\n create?: Access\n delete?: Access\n read?: Access\n readVersions?: Access\n unlock?: Access\n update?: Access\n }\n /**\n * Collection admin options\n */\n admin?: CollectionAdminOptions\n /**\n * Collection login options\n *\n * Use `true` to enable with default options\n */\n auth?: IncomingAuthType | boolean\n /** Extension point to add your custom data. */\n custom?: Record<string, any>\n /**\n * Default field to sort by in collection list view\n */\n defaultSort?: string\n /**\n * When true, do not show the \"Duplicate\" button while editing documents within this collection and prevent `duplicate` from all APIs\n */\n disableDuplicate?: boolean\n /**\n * Custom rest api endpoints, set false to disable all rest endpoints for this collection.\n */\n endpoints?: Omit<Endpoint, 'root'>[] | false\n fields: Field[]\n /**\n * GraphQL configuration\n */\n graphQL?:\n | {\n pluralName?: string\n singularName?: string\n }\n | false\n /**\n * Hooks to modify Payload functionality\n */\n hooks?: {\n afterChange?: AfterChangeHook[]\n afterDelete?: AfterDeleteHook[]\n afterError?: AfterErrorHook\n afterForgotPassword?: AfterForgotPasswordHook[]\n afterLogin?: AfterLoginHook[]\n afterLogout?: AfterLogoutHook[]\n afterMe?: AfterMeHook[]\n afterOperation?: AfterOperationHook[]\n afterRead?: AfterReadHook[]\n afterRefresh?: AfterRefreshHook[]\n beforeChange?: BeforeChangeHook[]\n beforeDelete?: BeforeDeleteHook[]\n beforeLogin?: BeforeLoginHook[]\n beforeOperation?: BeforeOperationHook[]\n beforeRead?: BeforeReadHook[]\n beforeValidate?: BeforeValidateHook[]\n }\n /**\n * Label configuration\n */\n labels?: {\n plural?: Record<string, string> | string\n singular?: Record<string, string> | string\n }\n slug: string\n /**\n * Add `createdAt` and `updatedAt` fields\n *\n * @default true\n */\n timestamps?: boolean\n /**\n * Options used in typescript generation\n */\n typescript?: {\n /**\n * Typescript generation name given to the interface type\n */\n interface?: string\n }\n /**\n * Customize the handling of incoming file uploads\n *\n * @default false // disable uploads\n */\n upload?: UploadConfig | boolean\n /**\n * Customize the handling of incoming file uploads\n *\n * @default false // disable versioning\n */\n versions?: IncomingCollectionVersions | boolean\n}\n\nexport interface SanitizedCollectionConfig\n extends Omit<\n DeepRequired<CollectionConfig>,\n 'auth' | 'endpoints' | 'fields' | 'upload' | 'versions'\n > {\n auth: Auth\n endpoints: Endpoint[] | false\n fields: Field[]\n upload: SanitizedUploadConfig\n versions: SanitizedCollectionVersions\n}\n\nexport type Collection = {\n config: SanitizedCollectionConfig\n graphQL?: {\n JWT: GraphQLObjectType\n mutationInputType: GraphQLNonNull<any>\n paginatedType: GraphQLObjectType\n type: GraphQLObjectType\n updateMutationInputType: GraphQLNonNull<any>\n versionType: GraphQLObjectType\n whereInputType: GraphQLInputObjectType\n }\n}\n\nexport type BulkOperationResult<TSlug extends keyof GeneratedTypes['collections']> = {\n docs: GeneratedTypes['collections'][TSlug][]\n errors: {\n id: GeneratedTypes['collections'][TSlug]['id']\n message: string\n }[]\n}\n\nexport type AuthCollection = {\n config: SanitizedCollectionConfig\n}\n\nexport type TypeWithID = {\n id: number | string\n}\n\nexport type TypeWithTimestamps = {\n [key: string]: unknown\n createdAt: string\n id: number | string\n updatedAt: string\n}\n"],"names":[],"mappings":"AAobA,WAKC"}
|
|
1
|
+
{"version":3,"sources":["../../../src/collections/config/types.ts"],"sourcesContent":["import type { GraphQLInputObjectType, GraphQLNonNull, GraphQLObjectType } from 'graphql'\nimport type { DeepRequired } from 'ts-essentials'\n\nimport type {\n CustomPreviewButton,\n CustomPublishButton,\n CustomSaveButton,\n CustomSaveDraftButton,\n} from '../../admin/types.js'\nimport type { Auth, ClientUser, IncomingAuthType } from '../../auth/types.js'\nimport type {\n Access,\n EditConfig,\n Endpoint,\n EntityDescription,\n GeneratePreviewURL,\n LivePreviewConfig,\n} from '../../config/types.js'\nimport type { Field } from '../../fields/config/types.js'\nimport type { GeneratedTypes } from '../../index.js'\nimport type { PayloadRequest, RequestContext } from '../../types/index.js'\nimport type { SanitizedUploadConfig, UploadConfig } from '../../uploads/types.js'\nimport type {\n IncomingCollectionVersions,\n SanitizedCollectionVersions,\n} from '../../versions/types.js'\nimport type { AfterOperationArg, AfterOperationMap } from '../operations/utils.js'\n\nexport type HookOperationType =\n | 'autosave'\n | 'create'\n | 'delete'\n | 'forgotPassword'\n | 'login'\n | 'read'\n | 'refresh'\n | 'update'\n\ntype CreateOrUpdateOperation = Extract<HookOperationType, 'create' | 'update'>\n\nexport type BeforeOperationHook = (args: {\n args?: any\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n /**\n * Hook operation being performed\n */\n operation: HookOperationType\n req: PayloadRequest\n}) => any\n\nexport type BeforeValidateHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data?: Partial<T>\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n /**\n * Original document before change\n *\n * `undefined` on 'create' operation\n */\n originalDoc?: T\n req: PayloadRequest\n}) => any\n\nexport type BeforeChangeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data: Partial<T>\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n /**\n * Original document before change\n *\n * `undefined` on 'create' operation\n */\n originalDoc?: T\n req: PayloadRequest\n}) => any\n\nexport type AfterChangeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n previousDoc: T\n req: PayloadRequest\n}) => any\n\nexport type BeforeReadHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n query: { [key: string]: any }\n req: PayloadRequest\n}) => any\n\nexport type AfterReadHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n findMany?: boolean\n query?: { [key: string]: any }\n req: PayloadRequest\n}) => any\n\nexport type BeforeDeleteHook = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n id: number | string\n req: PayloadRequest\n}) => any\n\nexport type AfterDeleteHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n id: number | string\n req: PayloadRequest\n}) => any\n\nexport type AfterOperationHook<T extends TypeWithID = any> = (\n arg: AfterOperationArg<T>,\n) => Promise<ReturnType<AfterOperationMap<T>[keyof AfterOperationMap<T>]>>\n\nexport type AfterErrorHook = (\n err: Error,\n res: unknown,\n context: RequestContext,\n /** The collection which this hook is being run on. This is null if the AfterError hook was be added to the payload-wide config */\n collection: SanitizedCollectionConfig | null,\n) => { response: any; status: number } | void\n\nexport type BeforeLoginHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n user: T\n}) => any\n\nexport type AfterLoginHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n token: string\n user: T\n}) => any\n\nexport type AfterLogoutHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n}) => any\n\nexport type AfterMeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n response: unknown\n}) => any\n\nexport type AfterRefreshHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n exp: number\n req: PayloadRequest\n token: string\n}) => any\n\nexport type AfterForgotPasswordHook = (args: {\n args?: any\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n}) => any\n\nexport type CollectionAdminOptions = {\n /**\n * Custom admin components\n */\n components?: {\n AfterList?: React.ComponentType<any>[]\n AfterListTable?: React.ComponentType<any>[]\n BeforeList?: React.ComponentType<any>[]\n BeforeListTable?: React.ComponentType<any>[]\n /**\n * Components within the edit view\n */\n edit?: {\n /**\n * Replaces the \"Preview\" button\n */\n PreviewButton?: CustomPreviewButton\n /**\n * Replaces the \"Publish\" button\n * + drafts must be enabled\n */\n PublishButton?: CustomPublishButton\n /**\n * Replaces the \"Save\" button\n * + drafts must be disabled\n */\n SaveButton?: CustomSaveButton\n /**\n * Replaces the \"Save Draft\" button\n * + drafts must be enabled\n * + autosave must be disabled\n */\n SaveDraftButton?: CustomSaveDraftButton\n }\n views?: {\n /**\n * Set to a React component to replace the entire \"Edit\" view, including all nested routes.\n * Set to an object to replace or modify individual nested routes, or to add new ones.\n */\n Edit?: EditConfig\n List?:\n | {\n Component?: React.ComponentType<any>\n actions?: React.ComponentType<any>[]\n }\n | React.ComponentType<any>\n }\n }\n /**\n * Default columns to show in list view\n */\n defaultColumns?: string[]\n /**\n * Custom description for collection\n */\n description?: EntityDescription\n enableRichTextLink?: boolean\n enableRichTextRelationship?: boolean\n /**\n * Place collections into a navigational group\n * */\n group?: Record<string, string> | string\n /**\n * Exclude the collection from the admin nav and routes\n */\n hidden?: ((args: { user: ClientUser }) => boolean) | boolean\n /**\n * Hide the API URL within the Edit view\n */\n hideAPIURL?: boolean\n /**\n * Additional fields to be searched via the full text search\n */\n listSearchableFields?: string[]\n /**\n * Live preview options\n */\n livePreview?: LivePreviewConfig\n pagination?: {\n defaultLimit?: number\n limits?: number[]\n }\n /**\n * Function to generate custom preview URL\n */\n preview?: GeneratePreviewURL\n /**\n * Field to use as title in Edit view and first column in List view\n */\n useAsTitle?: string\n}\n\n/** Manage all aspects of a data collection */\nexport type CollectionConfig = {\n /**\n * Access control\n */\n access?: {\n admin?: ({ req }: { req: PayloadRequest }) => Promise<boolean> | boolean\n create?: Access\n delete?: Access\n read?: Access\n readVersions?: Access\n unlock?: Access\n update?: Access\n }\n /**\n * Collection admin options\n */\n admin?: CollectionAdminOptions\n /**\n * Collection login options\n *\n * Use `true` to enable with default options\n */\n auth?: IncomingAuthType | boolean\n /** Extension point to add your custom data. */\n custom?: Record<string, any>\n /**\n * Default field to sort by in collection list view\n */\n defaultSort?: string\n /**\n * When true, do not show the \"Duplicate\" button while editing documents within this collection and prevent `duplicate` from all APIs\n */\n disableDuplicate?: boolean\n /**\n * Custom rest api endpoints, set false to disable all rest endpoints for this collection.\n */\n endpoints?: Omit<Endpoint, 'root'>[] | false\n fields: Field[]\n /**\n * GraphQL configuration\n */\n graphQL?:\n | {\n pluralName?: string\n singularName?: string\n }\n | false\n /**\n * Hooks to modify Payload functionality\n */\n hooks?: {\n afterChange?: AfterChangeHook[]\n afterDelete?: AfterDeleteHook[]\n afterError?: AfterErrorHook\n afterForgotPassword?: AfterForgotPasswordHook[]\n afterLogin?: AfterLoginHook[]\n afterLogout?: AfterLogoutHook[]\n afterMe?: AfterMeHook[]\n afterOperation?: AfterOperationHook[]\n afterRead?: AfterReadHook[]\n afterRefresh?: AfterRefreshHook[]\n beforeChange?: BeforeChangeHook[]\n beforeDelete?: BeforeDeleteHook[]\n beforeLogin?: BeforeLoginHook[]\n beforeOperation?: BeforeOperationHook[]\n beforeRead?: BeforeReadHook[]\n beforeValidate?: BeforeValidateHook[]\n }\n /**\n * Label configuration\n */\n labels?: {\n plural?: Record<string, string> | string\n singular?: Record<string, string> | string\n }\n slug: string\n /**\n * Add `createdAt` and `updatedAt` fields\n *\n * @default true\n */\n timestamps?: boolean\n /**\n * Options used in typescript generation\n */\n typescript?: {\n /**\n * Typescript generation name given to the interface type\n */\n interface?: string\n }\n /**\n * Customize the handling of incoming file uploads\n *\n * @default false // disable uploads\n */\n upload?: UploadConfig | boolean\n /**\n * Customize the handling of incoming file uploads\n *\n * @default false // disable versioning\n */\n versions?: IncomingCollectionVersions | boolean\n}\n\nexport interface SanitizedCollectionConfig\n extends Omit<\n DeepRequired<CollectionConfig>,\n 'auth' | 'endpoints' | 'fields' | 'upload' | 'versions'\n > {\n auth: Auth\n endpoints: Endpoint[] | false\n fields: Field[]\n upload: SanitizedUploadConfig\n versions: SanitizedCollectionVersions\n}\n\nexport type Collection = {\n config: SanitizedCollectionConfig\n graphQL?: {\n JWT: GraphQLObjectType\n mutationInputType: GraphQLNonNull<any>\n paginatedType: GraphQLObjectType\n type: GraphQLObjectType\n updateMutationInputType: GraphQLNonNull<any>\n versionType: GraphQLObjectType\n whereInputType: GraphQLInputObjectType\n }\n}\n\nexport type BulkOperationResult<TSlug extends keyof GeneratedTypes['collections']> = {\n docs: GeneratedTypes['collections'][TSlug][]\n errors: {\n id: GeneratedTypes['collections'][TSlug]['id']\n message: string\n }[]\n}\n\nexport type AuthCollection = {\n config: SanitizedCollectionConfig\n}\n\nexport type TypeWithID = {\n id: number | string\n}\n\nexport type TypeWithTimestamps = {\n [key: string]: unknown\n createdAt: string\n id: number | string\n updatedAt: string\n}\n"],"names":[],"mappings":"AAobA,WAKC"}
|
|
@@ -9,12 +9,12 @@ import restoreVersion from './restoreVersion.js';
|
|
|
9
9
|
import update from './update.js';
|
|
10
10
|
declare const _default: {
|
|
11
11
|
auth: {
|
|
12
|
-
auth: (payload: import("
|
|
13
|
-
forgotPassword: typeof import("
|
|
14
|
-
login: typeof import("
|
|
15
|
-
resetPassword: typeof import("
|
|
16
|
-
unlock: typeof import("
|
|
17
|
-
verifyEmail: typeof import("
|
|
12
|
+
auth: (payload: import("../../../index.js").Payload, options: import("../../../auth/operations/auth.js").AuthArgs) => Promise<import("../../../auth/operations/auth.js").AuthResult>;
|
|
13
|
+
forgotPassword: typeof import("../../../auth/operations/local/forgotPassword.js").default;
|
|
14
|
+
login: typeof import("../../../auth/operations/local/login.js").default;
|
|
15
|
+
resetPassword: typeof import("../../../auth/operations/local/resetPassword.js").default;
|
|
16
|
+
unlock: typeof import("../../../auth/operations/local/unlock.js").default;
|
|
17
|
+
verifyEmail: typeof import("../../../auth/operations/local/verifyEmail.js").default;
|
|
18
18
|
};
|
|
19
19
|
create: typeof create;
|
|
20
20
|
deleteLocal: typeof deleteLocal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readMigrationFiles.d.ts","sourceRoot":"","sources":["../../../src/database/migrations/readMigrationFiles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C;;GAEG;AACH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"readMigrationFiles.d.ts","sourceRoot":"","sources":["../../../src/database/migrations/readMigrationFiles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C;;GAEG;AACH,eAAO,MAAM,kBAAkB,iBAE5B;IACD,OAAO,EAAE,OAAO,CAAA;CACjB,KAAG,QAAQ,SAAS,EAAE,CAuCtB,CAAA"}
|
|
@@ -16,7 +16,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
16
16
|
Filter?: import("react").ComponentType<any>;
|
|
17
17
|
};
|
|
18
18
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
19
|
-
description?: import("
|
|
19
|
+
description?: import("../../admin/types.js").Description;
|
|
20
20
|
disableBulkEdit?: boolean;
|
|
21
21
|
disabled?: boolean;
|
|
22
22
|
hidden?: boolean;
|
|
@@ -26,7 +26,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
26
26
|
width?: string;
|
|
27
27
|
} & {
|
|
28
28
|
components?: {
|
|
29
|
-
RowLabel?: import("
|
|
29
|
+
RowLabel?: import("../../admin/types.js").RowLabel;
|
|
30
30
|
} & {
|
|
31
31
|
Cell?: import("react").ComponentType<any>;
|
|
32
32
|
Field?: import("react").ComponentType<any>;
|
|
@@ -52,7 +52,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
52
52
|
saveToJWT?: string | boolean;
|
|
53
53
|
unique?: boolean;
|
|
54
54
|
validate?: import("../../fields/config/types.js").Validate<any, any, any, object>;
|
|
55
|
-
dbName?: import("
|
|
55
|
+
dbName?: import("../../database/types.js").DBIdentifierName;
|
|
56
56
|
fields: Field[];
|
|
57
57
|
interfaceName?: string;
|
|
58
58
|
labels?: import("../../fields/config/types.js").Labels;
|
|
@@ -73,7 +73,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
73
73
|
Filter?: import("react").ComponentType<any>;
|
|
74
74
|
};
|
|
75
75
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
76
|
-
description?: import("
|
|
76
|
+
description?: import("../../admin/types.js").Description;
|
|
77
77
|
disableBulkEdit?: boolean;
|
|
78
78
|
disabled?: boolean;
|
|
79
79
|
hidden?: boolean;
|
|
@@ -121,7 +121,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
121
121
|
Filter?: import("react").ComponentType<any>;
|
|
122
122
|
};
|
|
123
123
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
124
|
-
description?: import("
|
|
124
|
+
description?: import("../../admin/types.js").Description;
|
|
125
125
|
disableBulkEdit?: boolean;
|
|
126
126
|
disabled?: boolean;
|
|
127
127
|
hidden?: boolean;
|
|
@@ -131,8 +131,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
131
131
|
width?: string;
|
|
132
132
|
} & {
|
|
133
133
|
components?: {
|
|
134
|
-
Error?: import("react").ComponentType<import("
|
|
135
|
-
Label?: import("react").ComponentType<import("
|
|
134
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
135
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
136
136
|
afterInput?: import("react").ComponentType<any>[];
|
|
137
137
|
beforeInput?: import("react").ComponentType<any>[];
|
|
138
138
|
};
|
|
@@ -188,7 +188,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
188
188
|
Filter?: import("react").ComponentType<any>;
|
|
189
189
|
};
|
|
190
190
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
191
|
-
description?: import("
|
|
191
|
+
description?: import("../../admin/types.js").Description;
|
|
192
192
|
disableBulkEdit?: boolean;
|
|
193
193
|
disabled?: boolean;
|
|
194
194
|
hidden?: boolean;
|
|
@@ -198,8 +198,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
198
198
|
width?: string;
|
|
199
199
|
} & {
|
|
200
200
|
components?: {
|
|
201
|
-
Error?: import("react").ComponentType<import("
|
|
202
|
-
Label?: import("react").ComponentType<import("
|
|
201
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
202
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
203
203
|
};
|
|
204
204
|
editorOptions?: import("monaco-editor").editor.IStandaloneEditorConstructionOptions;
|
|
205
205
|
language?: string;
|
|
@@ -216,7 +216,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
216
216
|
Filter?: import("react").ComponentType<any>;
|
|
217
217
|
};
|
|
218
218
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
219
|
-
description?: import("
|
|
219
|
+
description?: import("../../admin/types.js").Description;
|
|
220
220
|
disableBulkEdit?: boolean;
|
|
221
221
|
disabled?: boolean;
|
|
222
222
|
hidden?: boolean;
|
|
@@ -249,7 +249,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
249
249
|
unique?: boolean;
|
|
250
250
|
validate?: import("../../fields/config/types.js").Validate<any, any, any, object>;
|
|
251
251
|
fields: Field[];
|
|
252
|
-
label: import("
|
|
252
|
+
label: import("../../admin/types.js").RowLabel;
|
|
253
253
|
type: "collapsible";
|
|
254
254
|
} | {
|
|
255
255
|
access?: {
|
|
@@ -265,7 +265,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
265
265
|
Filter?: import("react").ComponentType<any>;
|
|
266
266
|
};
|
|
267
267
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
268
|
-
description?: import("
|
|
268
|
+
description?: import("../../admin/types.js").Description;
|
|
269
269
|
disableBulkEdit?: boolean;
|
|
270
270
|
disabled?: boolean;
|
|
271
271
|
hidden?: boolean;
|
|
@@ -275,12 +275,12 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
275
275
|
width?: string;
|
|
276
276
|
} & {
|
|
277
277
|
components?: {
|
|
278
|
-
Error?: import("react").ComponentType<import("
|
|
279
|
-
Label?: import("react").ComponentType<import("
|
|
278
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
279
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
280
280
|
afterInput?: import("react").ComponentType<any>[];
|
|
281
281
|
beforeInput?: import("react").ComponentType<any>[];
|
|
282
282
|
};
|
|
283
|
-
date?: import("
|
|
283
|
+
date?: import("../../admin/types.js").ConditionalDateProps;
|
|
284
284
|
placeholder?: string | Record<string, string>;
|
|
285
285
|
};
|
|
286
286
|
custom?: Record<string, any>;
|
|
@@ -316,7 +316,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
316
316
|
Filter?: import("react").ComponentType<any>;
|
|
317
317
|
};
|
|
318
318
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
319
|
-
description?: import("
|
|
319
|
+
description?: import("../../admin/types.js").Description;
|
|
320
320
|
disableBulkEdit?: boolean;
|
|
321
321
|
disabled?: boolean;
|
|
322
322
|
hidden?: boolean;
|
|
@@ -327,8 +327,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
327
327
|
} & {
|
|
328
328
|
autoComplete?: string;
|
|
329
329
|
components?: {
|
|
330
|
-
Error?: import("react").ComponentType<import("
|
|
331
|
-
Label?: import("react").ComponentType<import("
|
|
330
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
331
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
332
332
|
afterInput?: import("react").ComponentType<any>[];
|
|
333
333
|
beforeInput?: import("react").ComponentType<any>[];
|
|
334
334
|
};
|
|
@@ -362,7 +362,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
362
362
|
Filter?: import("react").ComponentType<any>;
|
|
363
363
|
};
|
|
364
364
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
365
|
-
description?: import("
|
|
365
|
+
description?: import("../../admin/types.js").Description;
|
|
366
366
|
disableBulkEdit?: boolean;
|
|
367
367
|
disabled?: boolean;
|
|
368
368
|
hidden?: boolean;
|
|
@@ -430,7 +430,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
430
430
|
Filter?: import("react").ComponentType<any>;
|
|
431
431
|
};
|
|
432
432
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
433
|
-
description?: import("
|
|
433
|
+
description?: import("../../admin/types.js").Description;
|
|
434
434
|
disableBulkEdit?: boolean;
|
|
435
435
|
disabled?: boolean;
|
|
436
436
|
hidden?: boolean;
|
|
@@ -440,8 +440,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
440
440
|
width?: string;
|
|
441
441
|
} & {
|
|
442
442
|
components?: {
|
|
443
|
-
Error?: import("react").ComponentType<import("
|
|
444
|
-
Label?: import("react").ComponentType<import("
|
|
443
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
444
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
445
445
|
};
|
|
446
446
|
editorOptions?: import("monaco-editor").editor.IStandaloneEditorConstructionOptions;
|
|
447
447
|
};
|
|
@@ -460,7 +460,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
460
460
|
Filter?: import("react").ComponentType<any>;
|
|
461
461
|
};
|
|
462
462
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
463
|
-
description?: import("
|
|
463
|
+
description?: import("../../admin/types.js").Description;
|
|
464
464
|
disableBulkEdit?: boolean;
|
|
465
465
|
disabled?: boolean;
|
|
466
466
|
hidden?: boolean;
|
|
@@ -471,8 +471,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
471
471
|
} & {
|
|
472
472
|
autoComplete?: string;
|
|
473
473
|
components?: {
|
|
474
|
-
Error?: import("react").ComponentType<import("
|
|
475
|
-
Label?: import("react").ComponentType<import("
|
|
474
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
475
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
476
476
|
afterInput?: import("react").ComponentType<any>[];
|
|
477
477
|
beforeInput?: import("react").ComponentType<any>[];
|
|
478
478
|
};
|
|
@@ -517,7 +517,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
517
517
|
Filter?: import("react").ComponentType<any>;
|
|
518
518
|
};
|
|
519
519
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
520
|
-
description?: import("
|
|
520
|
+
description?: import("../../admin/types.js").Description;
|
|
521
521
|
disableBulkEdit?: boolean;
|
|
522
522
|
disabled?: boolean;
|
|
523
523
|
hidden?: boolean;
|
|
@@ -528,8 +528,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
528
528
|
} & {
|
|
529
529
|
autoComplete?: string;
|
|
530
530
|
components?: {
|
|
531
|
-
Error?: import("react").ComponentType<import("
|
|
532
|
-
Label?: import("react").ComponentType<import("
|
|
531
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
532
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
533
533
|
afterInput?: import("react").ComponentType<any>[];
|
|
534
534
|
beforeInput?: import("react").ComponentType<any>[];
|
|
535
535
|
};
|
|
@@ -574,7 +574,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
574
574
|
Filter?: import("react").ComponentType<any>;
|
|
575
575
|
};
|
|
576
576
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
577
|
-
description?: import("
|
|
577
|
+
description?: import("../../admin/types.js").Description;
|
|
578
578
|
disableBulkEdit?: boolean;
|
|
579
579
|
disabled?: boolean;
|
|
580
580
|
hidden?: boolean;
|
|
@@ -616,7 +616,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
616
616
|
Filter?: import("react").ComponentType<any>;
|
|
617
617
|
};
|
|
618
618
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
619
|
-
description?: import("
|
|
619
|
+
description?: import("../../admin/types.js").Description;
|
|
620
620
|
disableBulkEdit?: boolean;
|
|
621
621
|
disabled?: boolean;
|
|
622
622
|
hidden?: boolean;
|
|
@@ -626,8 +626,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
626
626
|
width?: string;
|
|
627
627
|
} & {
|
|
628
628
|
components?: {
|
|
629
|
-
Error?: import("react").ComponentType<import("
|
|
630
|
-
Label?: import("react").ComponentType<import("
|
|
629
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
630
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
631
631
|
};
|
|
632
632
|
layout?: "horizontal" | "vertical";
|
|
633
633
|
};
|
|
@@ -649,8 +649,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
649
649
|
saveToJWT?: string | boolean;
|
|
650
650
|
unique?: boolean;
|
|
651
651
|
validate?: import("../../fields/config/types.js").Validate<any, any, any, object>;
|
|
652
|
-
dbName?: import("
|
|
653
|
-
enumName?: import("
|
|
652
|
+
dbName?: import("../../database/types.js").DBIdentifierName;
|
|
653
|
+
enumName?: import("../../database/types.js").DBIdentifierName;
|
|
654
654
|
options: import("../../fields/config/types.js").Option[];
|
|
655
655
|
type: "radio";
|
|
656
656
|
} | {
|
|
@@ -667,7 +667,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
667
667
|
Filter?: import("react").ComponentType<any>;
|
|
668
668
|
};
|
|
669
669
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
670
|
-
description?: import("
|
|
670
|
+
description?: import("../../admin/types.js").Description;
|
|
671
671
|
disableBulkEdit?: boolean;
|
|
672
672
|
disabled?: boolean;
|
|
673
673
|
hidden?: boolean;
|
|
@@ -678,8 +678,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
678
678
|
} & {
|
|
679
679
|
allowCreate?: boolean;
|
|
680
680
|
components?: {
|
|
681
|
-
Error?: import("react").ComponentType<import("
|
|
682
|
-
Label?: import("react").ComponentType<import("
|
|
681
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
682
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
683
683
|
};
|
|
684
684
|
isSortable?: boolean;
|
|
685
685
|
} & {
|
|
@@ -728,7 +728,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
728
728
|
Filter?: import("react").ComponentType<any>;
|
|
729
729
|
};
|
|
730
730
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
731
|
-
description?: import("
|
|
731
|
+
description?: import("../../admin/types.js").Description;
|
|
732
732
|
disableBulkEdit?: boolean;
|
|
733
733
|
disabled?: boolean;
|
|
734
734
|
hidden?: boolean;
|
|
@@ -739,8 +739,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
739
739
|
} & {
|
|
740
740
|
allowCreate?: boolean;
|
|
741
741
|
components?: {
|
|
742
|
-
Error?: import("react").ComponentType<import("
|
|
743
|
-
Label?: import("react").ComponentType<import("
|
|
742
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
743
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
744
744
|
};
|
|
745
745
|
isSortable?: boolean;
|
|
746
746
|
} & {
|
|
@@ -789,7 +789,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
789
789
|
Filter?: import("react").ComponentType<any>;
|
|
790
790
|
};
|
|
791
791
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
792
|
-
description?: import("
|
|
792
|
+
description?: import("../../admin/types.js").Description;
|
|
793
793
|
disableBulkEdit?: boolean;
|
|
794
794
|
disabled?: boolean;
|
|
795
795
|
hidden?: boolean;
|
|
@@ -800,8 +800,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
800
800
|
} & {
|
|
801
801
|
allowCreate?: boolean;
|
|
802
802
|
components?: {
|
|
803
|
-
Error?: import("react").ComponentType<import("
|
|
804
|
-
Label?: import("react").ComponentType<import("
|
|
803
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
804
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
805
805
|
};
|
|
806
806
|
isSortable?: boolean;
|
|
807
807
|
} & {
|
|
@@ -848,7 +848,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
848
848
|
Filter?: import("react").ComponentType<any>;
|
|
849
849
|
};
|
|
850
850
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
851
|
-
description?: import("
|
|
851
|
+
description?: import("../../admin/types.js").Description;
|
|
852
852
|
disableBulkEdit?: boolean;
|
|
853
853
|
disabled?: boolean;
|
|
854
854
|
hidden?: boolean;
|
|
@@ -859,8 +859,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
859
859
|
} & {
|
|
860
860
|
allowCreate?: boolean;
|
|
861
861
|
components?: {
|
|
862
|
-
Error?: import("react").ComponentType<import("
|
|
863
|
-
Label?: import("react").ComponentType<import("
|
|
862
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
863
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
864
864
|
};
|
|
865
865
|
isSortable?: boolean;
|
|
866
866
|
} & {
|
|
@@ -907,7 +907,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
907
907
|
Filter?: import("react").ComponentType<any>;
|
|
908
908
|
};
|
|
909
909
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
910
|
-
description?: import("
|
|
910
|
+
description?: import("../../admin/types.js").Description;
|
|
911
911
|
disableBulkEdit?: boolean;
|
|
912
912
|
disabled?: boolean;
|
|
913
913
|
hidden?: boolean;
|
|
@@ -917,8 +917,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
917
917
|
width?: string;
|
|
918
918
|
} & {
|
|
919
919
|
components?: {
|
|
920
|
-
Error?: import("react").ComponentType<import("
|
|
921
|
-
Label?: import("react").ComponentType<import("
|
|
920
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
921
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
922
922
|
};
|
|
923
923
|
};
|
|
924
924
|
custom?: Record<string, any>;
|
|
@@ -939,7 +939,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
939
939
|
saveToJWT?: string | boolean;
|
|
940
940
|
unique?: boolean;
|
|
941
941
|
validate?: import("../../fields/config/types.js").Validate<any, any, any, object>;
|
|
942
|
-
editor?: import("
|
|
942
|
+
editor?: import("../../admin/RichText.js").RichTextAdapter<any, any, any>;
|
|
943
943
|
type: "richText";
|
|
944
944
|
} | {
|
|
945
945
|
custom?: Record<string, any>;
|
|
@@ -980,7 +980,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
980
980
|
Filter?: import("react").ComponentType<any>;
|
|
981
981
|
};
|
|
982
982
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
983
|
-
description?: import("
|
|
983
|
+
description?: import("../../admin/types.js").Description;
|
|
984
984
|
disableBulkEdit?: boolean;
|
|
985
985
|
disabled?: boolean;
|
|
986
986
|
hidden?: boolean;
|
|
@@ -990,8 +990,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
990
990
|
width?: string;
|
|
991
991
|
} & {
|
|
992
992
|
components?: {
|
|
993
|
-
Error?: import("react").ComponentType<import("
|
|
994
|
-
Label?: import("react").ComponentType<import("
|
|
993
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
994
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
995
995
|
};
|
|
996
996
|
isClearable?: boolean;
|
|
997
997
|
isSortable?: boolean;
|
|
@@ -1014,8 +1014,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
1014
1014
|
saveToJWT?: string | boolean;
|
|
1015
1015
|
unique?: boolean;
|
|
1016
1016
|
validate?: import("../../fields/config/types.js").Validate<any, any, any, object>;
|
|
1017
|
-
dbName?: import("
|
|
1018
|
-
enumName?: import("
|
|
1017
|
+
dbName?: import("../../database/types.js").DBIdentifierName;
|
|
1018
|
+
enumName?: import("../../database/types.js").DBIdentifierName;
|
|
1019
1019
|
hasMany?: boolean;
|
|
1020
1020
|
options: import("../../fields/config/types.js").Option[];
|
|
1021
1021
|
type: "select";
|
|
@@ -1057,7 +1057,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
1057
1057
|
Filter?: import("react").ComponentType<any>;
|
|
1058
1058
|
};
|
|
1059
1059
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
1060
|
-
description?: import("
|
|
1060
|
+
description?: import("../../admin/types.js").Description;
|
|
1061
1061
|
disableBulkEdit?: boolean;
|
|
1062
1062
|
disabled?: boolean;
|
|
1063
1063
|
hidden?: boolean;
|
|
@@ -1068,8 +1068,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
1068
1068
|
} & {
|
|
1069
1069
|
autoComplete?: string;
|
|
1070
1070
|
components?: {
|
|
1071
|
-
Error?: import("react").ComponentType<import("
|
|
1072
|
-
Label?: import("react").ComponentType<import("
|
|
1071
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
1072
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
1073
1073
|
afterInput?: import("react").ComponentType<any>[];
|
|
1074
1074
|
beforeInput?: import("react").ComponentType<any>[];
|
|
1075
1075
|
};
|
|
@@ -1114,7 +1114,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
1114
1114
|
Filter?: import("react").ComponentType<any>;
|
|
1115
1115
|
};
|
|
1116
1116
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
1117
|
-
description?: import("
|
|
1117
|
+
description?: import("../../admin/types.js").Description;
|
|
1118
1118
|
disableBulkEdit?: boolean;
|
|
1119
1119
|
disabled?: boolean;
|
|
1120
1120
|
hidden?: boolean;
|
|
@@ -1125,8 +1125,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
1125
1125
|
} & {
|
|
1126
1126
|
autoComplete?: string;
|
|
1127
1127
|
components?: {
|
|
1128
|
-
Error?: import("react").ComponentType<import("
|
|
1129
|
-
Label?: import("react").ComponentType<import("
|
|
1128
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
1129
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
1130
1130
|
afterInput?: import("react").ComponentType<any>[];
|
|
1131
1131
|
beforeInput?: import("react").ComponentType<any>[];
|
|
1132
1132
|
};
|
|
@@ -1171,7 +1171,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
1171
1171
|
Filter?: import("react").ComponentType<any>;
|
|
1172
1172
|
};
|
|
1173
1173
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
1174
|
-
description?: import("
|
|
1174
|
+
description?: import("../../admin/types.js").Description;
|
|
1175
1175
|
disableBulkEdit?: boolean;
|
|
1176
1176
|
disabled?: boolean;
|
|
1177
1177
|
hidden?: boolean;
|
|
@@ -1181,8 +1181,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
1181
1181
|
width?: string;
|
|
1182
1182
|
} & {
|
|
1183
1183
|
components?: {
|
|
1184
|
-
Error?: import("react").ComponentType<import("
|
|
1185
|
-
Label?: import("react").ComponentType<import("
|
|
1184
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
1185
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
1186
1186
|
afterInput?: import("react").ComponentType<any>[];
|
|
1187
1187
|
beforeInput?: import("react").ComponentType<any>[];
|
|
1188
1188
|
};
|
|
@@ -1241,7 +1241,7 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
1241
1241
|
Filter?: import("react").ComponentType<any>;
|
|
1242
1242
|
};
|
|
1243
1243
|
condition?: import("../../fields/config/types.js").Condition<any, any>;
|
|
1244
|
-
description?: import("
|
|
1244
|
+
description?: import("../../admin/types.js").Description;
|
|
1245
1245
|
disableBulkEdit?: boolean;
|
|
1246
1246
|
disabled?: boolean;
|
|
1247
1247
|
hidden?: boolean;
|
|
@@ -1251,8 +1251,8 @@ export declare const createClientFieldConfig: (f: Field) => {
|
|
|
1251
1251
|
width?: string;
|
|
1252
1252
|
} & {
|
|
1253
1253
|
components?: {
|
|
1254
|
-
Error?: import("react").ComponentType<import("
|
|
1255
|
-
Label?: import("react").ComponentType<import("
|
|
1254
|
+
Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
|
|
1255
|
+
Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
|
|
1256
1256
|
};
|
|
1257
1257
|
};
|
|
1258
1258
|
custom?: Record<string, any>;
|
|
@@ -34,7 +34,7 @@ declare const _default: {
|
|
|
34
34
|
Filter?: import("react").ComponentType<any>;
|
|
35
35
|
};
|
|
36
36
|
condition?: import("./config/types.js").Condition<any, any>;
|
|
37
|
-
description?: import("
|
|
37
|
+
description?: import("../admin/types.js").Description;
|
|
38
38
|
disableBulkEdit?: boolean;
|
|
39
39
|
disabled?: boolean;
|
|
40
40
|
hidden?: boolean;
|
|
@@ -44,8 +44,8 @@ declare const _default: {
|
|
|
44
44
|
width?: string;
|
|
45
45
|
} & {
|
|
46
46
|
components?: {
|
|
47
|
-
Error?: import("react").ComponentType<import("
|
|
48
|
-
Label?: import("react").ComponentType<import("
|
|
47
|
+
Error?: import("react").ComponentType<import("../admin/types.js").ErrorProps>;
|
|
48
|
+
Label?: import("react").ComponentType<import("../admin/types.js").LabelProps>;
|
|
49
49
|
};
|
|
50
50
|
editorOptions?: import("monaco-editor").editor.IStandaloneEditorConstructionOptions;
|
|
51
51
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLocalI18n.d.ts","sourceRoot":"","sources":["../../src/translations/getLocalI18n.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEzD,eAAO,MAAM,YAAY;
|
|
1
|
+
{"version":3,"file":"getLocalI18n.d.ts","sourceRoot":"","sources":["../../src/translations/getLocalI18n.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEzD,eAAO,MAAM,YAAY,0BAGtB;IACD,MAAM,EAAE,eAAe,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,4CAMG,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatLabels.d.ts","sourceRoot":"","sources":["../../src/utilities/formatLabels.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"formatLabels.d.ts","sourceRoot":"","sources":["../../src/utilities/formatLabels.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO,gBAAiB,MAAM,0BAAsB,MAczD,CAAA;AAED,QAAA,MAAM,YAAY,SAAU,MAAM,KAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAWtE,CAAA;AAED,QAAA,MAAM,WAAW,SAAU,MAAM,KAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAWrE,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isEntityHidden.d.ts","sourceRoot":"","sources":["../../src/utilities/isEntityHidden.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAExC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAC/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAEvE,eAAO,MAAM,cAAc;
|
|
1
|
+
{"version":3,"file":"isEntityHidden.d.ts","sourceRoot":"","sources":["../../src/utilities/isEntityHidden.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAExC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAC/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAEvE,eAAO,MAAM,cAAc,sBAGxB;IACD,MAAM,EAAE,yBAAyB,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAA;IAC/F,IAAI,EAAE,IAAI,CAAA;CACX,YAEA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLatestGlobalVersion.d.ts","sourceRoot":"","sources":["../../src/versions/getLatestGlobalVersion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAIjF,KAAK,IAAI,GAAG;IACV,MAAM,EAAE,qBAAqB,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,GAAG,CAAC,EAAE,cAAc,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,KAAK,CAAA;CACb,CAAA;AAED,eAAO,MAAM,sBAAsB,mDAOhC,IAAI;
|
|
1
|
+
{"version":3,"file":"getLatestGlobalVersion.d.ts","sourceRoot":"","sources":["../../src/versions/getLatestGlobalVersion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAIjF,KAAK,IAAI,GAAG;IACV,MAAM,EAAE,qBAAqB,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,GAAG,CAAC,EAAE,cAAc,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,KAAK,CAAA;CACb,CAAA;AAED,eAAO,MAAM,sBAAsB,mDAOhC,IAAI,KAAG,QAAQ;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,YAAY,EAAE,OAAO,CAAA;CAAE,CAwC5D,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "payload",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.57",
|
|
4
4
|
"description": "Node, React and MongoDB Headless CMS and Application Framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"sanitize-filename": "1.6.3",
|
|
50
50
|
"scheduler": "0.23.0",
|
|
51
51
|
"scmp": "2.1.0",
|
|
52
|
-
"@payloadcms/translations": "3.0.0-alpha.
|
|
52
|
+
"@payloadcms/translations": "3.0.0-alpha.57"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@monaco-editor/react": "4.5.1",
|
package/uploads.d.ts
ADDED
package/uploads.js
ADDED