payload 3.0.0-beta.67 → 3.0.0-beta.68
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/admin/RichText.d.ts +4 -4
- package/dist/admin/RichText.d.ts.map +1 -1
- package/dist/admin/RichText.js.map +1 -1
- package/dist/auth/operations/resetPassword.js +1 -1
- package/dist/auth/operations/resetPassword.js.map +1 -1
- package/dist/auth/strategies/jwt.d.ts.map +1 -1
- package/dist/auth/strategies/jwt.js +29 -0
- package/dist/auth/strategies/jwt.js.map +1 -1
- package/dist/auth/strategies/local/incrementLoginAttempts.d.ts.map +1 -1
- package/dist/auth/strategies/local/incrementLoginAttempts.js +1 -1
- package/dist/auth/strategies/local/incrementLoginAttempts.js.map +1 -1
- package/dist/auth/strategies/local/register.d.ts +2 -2
- package/dist/auth/strategies/local/register.d.ts.map +1 -1
- package/dist/auth/strategies/local/register.js.map +1 -1
- package/dist/bin/generateTypes.js +2 -2
- package/dist/bin/generateTypes.js.map +1 -1
- package/dist/collections/config/client.d.ts.map +1 -1
- package/dist/collections/config/defaults.d.ts +4 -69
- package/dist/collections/config/defaults.d.ts.map +1 -1
- package/dist/collections/config/defaults.js.map +1 -1
- package/dist/collections/config/reservedFieldNames.d.ts +15 -0
- package/dist/collections/config/reservedFieldNames.d.ts.map +1 -0
- package/dist/collections/config/reservedFieldNames.js +104 -0
- package/dist/collections/config/reservedFieldNames.js.map +1 -0
- package/dist/collections/config/reservedFieldNames.spec.js +148 -0
- package/dist/collections/config/reservedFieldNames.spec.js.map +1 -0
- package/dist/collections/config/sanitize.d.ts.map +1 -1
- package/dist/collections/config/sanitize.js +13 -9
- package/dist/collections/config/sanitize.js.map +1 -1
- package/dist/collections/config/types.d.ts +2 -2
- package/dist/collections/config/types.d.ts.map +1 -1
- package/dist/collections/config/types.js.map +1 -1
- package/dist/collections/dataloader.d.ts.map +1 -1
- package/dist/collections/dataloader.js.map +1 -1
- package/dist/collections/operations/create.d.ts.map +1 -1
- package/dist/collections/operations/create.js.map +1 -1
- package/dist/collections/operations/deleteByID.d.ts.map +1 -1
- package/dist/collections/operations/deleteByID.js.map +1 -1
- package/dist/collections/operations/duplicate.js.map +1 -1
- package/dist/collections/operations/update.js.map +1 -1
- package/dist/collections/operations/updateByID.js.map +1 -1
- package/dist/config/client.d.ts.map +1 -1
- package/dist/config/client.js +26 -26
- package/dist/config/client.js.map +1 -1
- package/dist/config/sanitize.d.ts.map +1 -1
- package/dist/config/sanitize.js +4 -7
- package/dist/config/sanitize.js.map +1 -1
- package/dist/config/types.d.ts +3 -4
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js.map +1 -1
- package/dist/errors/APIError.d.ts +1 -0
- package/dist/errors/APIError.d.ts.map +1 -1
- package/dist/errors/APIError.js +3 -0
- package/dist/errors/APIError.js.map +1 -1
- package/dist/errors/ValidationError.d.ts +1 -0
- package/dist/errors/ValidationError.d.ts.map +1 -1
- package/dist/errors/ValidationError.js +3 -0
- package/dist/errors/ValidationError.js.map +1 -1
- package/dist/errors/index.d.ts +2 -2
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +2 -2
- package/dist/errors/index.js.map +1 -1
- package/dist/exports/shared.d.ts +3 -2
- package/dist/exports/shared.d.ts.map +1 -1
- package/dist/exports/shared.js +3 -2
- package/dist/exports/shared.js.map +1 -1
- package/dist/fields/config/sanitize.d.ts +3 -2
- package/dist/fields/config/sanitize.d.ts.map +1 -1
- package/dist/fields/config/sanitize.js +8 -16
- package/dist/fields/config/sanitize.js.map +1 -1
- package/dist/fields/config/sanitize.spec.js +1 -17
- package/dist/fields/config/sanitize.spec.js.map +1 -1
- package/dist/fields/getDefaultValue.d.ts +5 -5
- package/dist/fields/getDefaultValue.d.ts.map +1 -1
- package/dist/fields/getDefaultValue.js +4 -6
- package/dist/fields/getDefaultValue.js.map +1 -1
- package/dist/fields/hooks/afterChange/index.d.ts +6 -6
- package/dist/fields/hooks/afterChange/index.d.ts.map +1 -1
- package/dist/fields/hooks/afterChange/index.js +2 -2
- package/dist/fields/hooks/afterChange/index.js.map +1 -1
- package/dist/fields/hooks/afterChange/promise.d.ts +7 -7
- package/dist/fields/hooks/afterChange/promise.d.ts.map +1 -1
- package/dist/fields/hooks/afterChange/promise.js.map +1 -1
- package/dist/fields/hooks/afterChange/traverseFields.d.ts +7 -7
- package/dist/fields/hooks/afterChange/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/afterChange/traverseFields.js.map +1 -1
- package/dist/fields/hooks/afterRead/index.d.ts +4 -4
- package/dist/fields/hooks/afterRead/index.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/index.js +2 -2
- package/dist/fields/hooks/afterRead/index.js.map +1 -1
- package/dist/fields/hooks/afterRead/promise.d.ts +3 -3
- package/dist/fields/hooks/afterRead/promise.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/promise.js +2 -2
- package/dist/fields/hooks/afterRead/promise.js.map +1 -1
- package/dist/fields/hooks/afterRead/traverseFields.d.ts +3 -3
- package/dist/fields/hooks/afterRead/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/traverseFields.js.map +1 -1
- package/dist/fields/hooks/beforeChange/cloneDataFromOriginalDoc.d.ts +2 -1
- package/dist/fields/hooks/beforeChange/cloneDataFromOriginalDoc.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/cloneDataFromOriginalDoc.js.map +1 -1
- package/dist/fields/hooks/beforeChange/getExistingRowDoc.d.ts +2 -1
- package/dist/fields/hooks/beforeChange/getExistingRowDoc.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/getExistingRowDoc.js.map +1 -1
- package/dist/fields/hooks/beforeChange/index.d.ts +6 -6
- package/dist/fields/hooks/beforeChange/index.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/index.js +2 -2
- package/dist/fields/hooks/beforeChange/index.js.map +1 -1
- package/dist/fields/hooks/beforeChange/promise.d.ts +7 -7
- package/dist/fields/hooks/beforeChange/promise.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/promise.js +3 -7
- package/dist/fields/hooks/beforeChange/promise.js.map +1 -1
- package/dist/fields/hooks/beforeChange/traverseFields.d.ts +7 -7
- package/dist/fields/hooks/beforeChange/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/traverseFields.js.map +1 -1
- package/dist/fields/hooks/beforeValidate/index.d.ts +5 -5
- package/dist/fields/hooks/beforeValidate/index.d.ts.map +1 -1
- package/dist/fields/hooks/beforeValidate/index.js +2 -2
- package/dist/fields/hooks/beforeValidate/index.js.map +1 -1
- package/dist/fields/hooks/beforeValidate/promise.d.ts +3 -3
- package/dist/fields/hooks/beforeValidate/promise.d.ts.map +1 -1
- package/dist/fields/hooks/beforeValidate/promise.js +2 -2
- package/dist/fields/hooks/beforeValidate/promise.js.map +1 -1
- package/dist/fields/hooks/beforeValidate/traverseFields.d.ts +3 -3
- package/dist/fields/hooks/beforeValidate/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/beforeValidate/traverseFields.js.map +1 -1
- package/dist/fields/mergeBaseFields.d.ts.map +1 -1
- package/dist/fields/mergeBaseFields.js +2 -2
- package/dist/fields/mergeBaseFields.js.map +1 -1
- package/dist/globals/operations/findOne.d.ts.map +1 -1
- package/dist/globals/operations/findOne.js.map +1 -1
- package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
- package/dist/globals/operations/findVersionByID.js +2 -1
- package/dist/globals/operations/findVersionByID.js.map +1 -1
- package/dist/globals/operations/findVersions.js.map +1 -1
- package/dist/globals/operations/update.d.ts.map +1 -1
- package/dist/globals/operations/update.js +2 -1
- package/dist/globals/operations/update.js.map +1 -1
- package/dist/index.d.ts +11 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -12
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +8 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/uploads/imageResizer.d.ts.map +1 -1
- package/dist/uploads/imageResizer.js +16 -18
- package/dist/uploads/imageResizer.js.map +1 -1
- package/dist/utilities/deepCopyObject.d.ts +18 -1
- package/dist/utilities/deepCopyObject.d.ts.map +1 -1
- package/dist/utilities/deepCopyObject.js +147 -16
- package/dist/utilities/deepCopyObject.js.map +1 -1
- package/dist/utilities/deepMerge.d.ts +18 -1
- package/dist/utilities/deepMerge.d.ts.map +1 -1
- package/dist/utilities/deepMerge.js +38 -13
- package/dist/utilities/deepMerge.js.map +1 -1
- package/dist/utilities/isPlainObject.d.ts +1 -1
- package/dist/utilities/isPlainObject.d.ts.map +1 -1
- package/dist/utilities/isPlainObject.js +4 -18
- package/dist/utilities/isPlainObject.js.map +1 -1
- package/dist/utilities/logger.d.ts +5 -7
- package/dist/utilities/logger.d.ts.map +1 -1
- package/dist/utilities/logger.js +4 -7
- package/dist/utilities/logger.js.map +1 -1
- package/dist/utilities/telemetry/events/adminInit.d.ts.map +1 -1
- package/dist/utilities/telemetry/events/adminInit.js.map +1 -1
- package/dist/versions/baseFields.d.ts.map +1 -1
- package/dist/versions/baseFields.js +1 -0
- package/dist/versions/baseFields.js.map +1 -1
- package/dist/versions/drafts/replaceWithDraftIfAvailable.d.ts.map +1 -1
- package/dist/versions/drafts/replaceWithDraftIfAvailable.js +2 -1
- package/dist/versions/drafts/replaceWithDraftIfAvailable.js.map +1 -1
- package/dist/versions/saveVersion.d.ts.map +1 -1
- package/dist/versions/saveVersion.js +2 -2
- package/dist/versions/saveVersion.js.map +1 -1
- package/package.json +5 -7
- package/dist/collections/config/schema.d.ts +0 -4
- package/dist/collections/config/schema.d.ts.map +0 -1
- package/dist/collections/config/schema.js +0 -191
- package/dist/collections/config/schema.js.map +0 -1
- package/dist/config/schema.d.ts +0 -5
- package/dist/config/schema.d.ts.map +0 -1
- package/dist/config/schema.js +0 -179
- package/dist/config/schema.js.map +0 -1
- package/dist/config/shared/adminViewSchema.d.ts +0 -3
- package/dist/config/shared/adminViewSchema.d.ts.map +0 -1
- package/dist/config/shared/adminViewSchema.js +0 -11
- package/dist/config/shared/adminViewSchema.js.map +0 -1
- package/dist/config/shared/componentSchema.d.ts +0 -16
- package/dist/config/shared/componentSchema.d.ts.map +0 -1
- package/dist/config/shared/componentSchema.js +0 -27
- package/dist/config/shared/componentSchema.js.map +0 -1
- package/dist/config/shared/openGraphSchema.d.ts +0 -3
- package/dist/config/shared/openGraphSchema.d.ts.map +0 -1
- package/dist/config/shared/openGraphSchema.js +0 -16
- package/dist/config/shared/openGraphSchema.js.map +0 -1
- package/dist/config/validate.d.ts +0 -4
- package/dist/config/validate.d.ts.map +0 -1
- package/dist/config/validate.js +0 -89
- package/dist/config/validate.js.map +0 -1
- package/dist/fields/config/schema.d.ts +0 -29
- package/dist/fields/config/schema.d.ts.map +0 -1
- package/dist/fields/config/schema.js +0 -508
- package/dist/fields/config/schema.js.map +0 -1
- package/dist/globals/config/schema.d.ts +0 -4
- package/dist/globals/config/schema.d.ts.map +0 -1
- package/dist/globals/config/schema.js +0 -79
- package/dist/globals/config/schema.js.map +0 -1
- package/dist/utilities/combineMerge.d.ts +0 -2
- package/dist/utilities/combineMerge.d.ts.map +0 -1
- package/dist/utilities/combineMerge.js +0 -16
- package/dist/utilities/combineMerge.js.map +0 -1
- package/dist/utilities/convertData.d.ts +0 -5
- package/dist/utilities/convertData.d.ts.map +0 -1
- package/dist/utilities/convertData.js +0 -16
- package/dist/utilities/convertData.js.map +0 -1
- package/dist/utilities/getCSSVariable.d.ts +0 -3
- package/dist/utilities/getCSSVariable.d.ts.map +0 -1
- package/dist/utilities/getCSSVariable.js +0 -3
- package/dist/utilities/getCSSVariable.js.map +0 -1
- package/dist/utilities/overwriteMerge.d.ts +0 -3
- package/dist/utilities/overwriteMerge.d.ts.map +0 -1
- package/dist/utilities/overwriteMerge.js +0 -4
- package/dist/utilities/overwriteMerge.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "payload",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.68",
|
|
4
4
|
"description": "Node, React, Headless CMS and Application Framework built on Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"admin panel",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"bin.js"
|
|
72
72
|
],
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@next/env": "^15.0.0-
|
|
74
|
+
"@next/env": "^15.0.0-canary.53",
|
|
75
75
|
"@swc-node/core": "1.13.1",
|
|
76
76
|
"@swc-node/sourcemap-support": "0.5.0",
|
|
77
77
|
"ajv": "8.14.0",
|
|
@@ -85,25 +85,23 @@
|
|
|
85
85
|
"get-tsconfig": "^4.7.2",
|
|
86
86
|
"http-status": "1.6.2",
|
|
87
87
|
"image-size": "^1.1.1",
|
|
88
|
-
"joi": "^17.12.1",
|
|
89
88
|
"json-schema-to-typescript": "11.0.3",
|
|
90
89
|
"jsonwebtoken": "9.0.1",
|
|
91
90
|
"minimist": "1.2.8",
|
|
92
91
|
"monaco-editor": "0.38.0",
|
|
93
|
-
"pino": "
|
|
94
|
-
"pino-pretty": "
|
|
92
|
+
"pino": "9.3.1",
|
|
93
|
+
"pino-pretty": "11.2.1",
|
|
95
94
|
"pluralize": "8.0.0",
|
|
96
95
|
"sanitize-filename": "1.6.3",
|
|
97
96
|
"scmp": "2.1.0",
|
|
98
97
|
"ts-essentials": "7.0.3",
|
|
99
98
|
"uuid": "10.0.0",
|
|
100
|
-
"@payloadcms/translations": "3.0.0-beta.
|
|
99
|
+
"@payloadcms/translations": "3.0.0-beta.68"
|
|
101
100
|
},
|
|
102
101
|
"devDependencies": {
|
|
103
102
|
"@hyrious/esbuild-plugin-commonjs": "^0.2.4",
|
|
104
103
|
"@monaco-editor/react": "4.5.1",
|
|
105
104
|
"@types/express-fileupload": "1.4.1",
|
|
106
|
-
"@types/joi": "14.3.4",
|
|
107
105
|
"@types/json-schema": "7.0.15",
|
|
108
106
|
"@types/jsonwebtoken": "8.5.9",
|
|
109
107
|
"@types/minimist": "1.2.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/collections/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,KAAK,CAAA;AAUrB,QAAA,MAAM,gBAAgB,uBAmOpB,CAAA;AAEF,eAAe,gBAAgB,CAAA"}
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import joi from 'joi';
|
|
2
|
-
import { endpointsSchema } from '../../config/schema.js';
|
|
3
|
-
import { componentSchema, customViewSchema, livePreviewSchema } from '../../config/shared/componentSchema.js';
|
|
4
|
-
import { openGraphSchema } from '../../config/shared/openGraphSchema.js';
|
|
5
|
-
const collectionSchema = joi.object().keys({
|
|
6
|
-
slug: joi.string().required(),
|
|
7
|
-
access: joi.object({
|
|
8
|
-
admin: joi.func(),
|
|
9
|
-
create: joi.func(),
|
|
10
|
-
delete: joi.func(),
|
|
11
|
-
read: joi.func(),
|
|
12
|
-
readVersions: joi.func(),
|
|
13
|
-
unlock: joi.func(),
|
|
14
|
-
update: joi.func()
|
|
15
|
-
}),
|
|
16
|
-
admin: joi.object({
|
|
17
|
-
components: joi.object({
|
|
18
|
-
afterList: joi.array().items(componentSchema),
|
|
19
|
-
afterListTable: joi.array().items(componentSchema),
|
|
20
|
-
beforeList: joi.array().items(componentSchema),
|
|
21
|
-
beforeListTable: joi.array().items(componentSchema),
|
|
22
|
-
edit: joi.object({
|
|
23
|
-
Description: componentSchema,
|
|
24
|
-
PreviewButton: componentSchema,
|
|
25
|
-
PublishButton: componentSchema,
|
|
26
|
-
SaveButton: componentSchema,
|
|
27
|
-
SaveDraftButton: componentSchema,
|
|
28
|
-
Upload: componentSchema
|
|
29
|
-
}),
|
|
30
|
-
views: joi.object({
|
|
31
|
-
Edit: joi.alternatives().try(componentSchema, joi.object({
|
|
32
|
-
API: joi.alternatives().try(componentSchema, customViewSchema),
|
|
33
|
-
Default: joi.alternatives().try(componentSchema, customViewSchema),
|
|
34
|
-
LivePreview: joi.alternatives().try(componentSchema, customViewSchema),
|
|
35
|
-
Version: joi.alternatives().try(componentSchema, customViewSchema),
|
|
36
|
-
Versions: joi.alternatives().try(componentSchema, customViewSchema)
|
|
37
|
-
})),
|
|
38
|
-
List: joi.alternatives().try(componentSchema, joi.object({
|
|
39
|
-
Component: componentSchema,
|
|
40
|
-
actions: joi.array().items(componentSchema)
|
|
41
|
-
}))
|
|
42
|
-
})
|
|
43
|
-
}),
|
|
44
|
-
custom: joi.object().pattern(joi.string(), joi.any()),
|
|
45
|
-
defaultColumns: joi.array().items(joi.string()),
|
|
46
|
-
description: joi.alternatives().try(joi.func(), joi.object().pattern(joi.string(), [
|
|
47
|
-
joi.string()
|
|
48
|
-
]), joi.string()),
|
|
49
|
-
enableRichTextLink: joi.boolean(),
|
|
50
|
-
enableRichTextRelationship: joi.boolean(),
|
|
51
|
-
group: joi.alternatives().try(joi.string(), joi.object().pattern(joi.string(), [
|
|
52
|
-
joi.string()
|
|
53
|
-
])),
|
|
54
|
-
hidden: joi.alternatives().try(joi.boolean(), joi.func()),
|
|
55
|
-
hideAPIURL: joi.bool(),
|
|
56
|
-
listSearchableFields: joi.array().items(joi.string()),
|
|
57
|
-
livePreview: joi.object(livePreviewSchema),
|
|
58
|
-
meta: joi.object({
|
|
59
|
-
description: joi.string(),
|
|
60
|
-
openGraph: openGraphSchema
|
|
61
|
-
}),
|
|
62
|
-
pagination: joi.object({
|
|
63
|
-
defaultLimit: joi.number(),
|
|
64
|
-
limits: joi.array().items(joi.number())
|
|
65
|
-
}),
|
|
66
|
-
preview: joi.func(),
|
|
67
|
-
useAsTitle: joi.string()
|
|
68
|
-
}),
|
|
69
|
-
auth: joi.alternatives().try(joi.object({
|
|
70
|
-
cookies: joi.object().keys({
|
|
71
|
-
domain: joi.string(),
|
|
72
|
-
sameSite: joi.string(),
|
|
73
|
-
secure: joi.boolean()
|
|
74
|
-
}),
|
|
75
|
-
depth: joi.number(),
|
|
76
|
-
disableLocalStrategy: joi.boolean().valid(true),
|
|
77
|
-
forgotPassword: joi.object().keys({
|
|
78
|
-
generateEmailHTML: joi.func(),
|
|
79
|
-
generateEmailSubject: joi.func()
|
|
80
|
-
}),
|
|
81
|
-
lockTime: joi.number(),
|
|
82
|
-
loginWithUsername: joi.alternatives().try(joi.boolean(), joi.object().keys({
|
|
83
|
-
allowEmailLogin: joi.boolean(),
|
|
84
|
-
requireEmail: joi.boolean()
|
|
85
|
-
})),
|
|
86
|
-
maxLoginAttempts: joi.number(),
|
|
87
|
-
removeTokenFromResponses: joi.boolean().valid(true),
|
|
88
|
-
strategies: joi.array().items(joi.object().keys({
|
|
89
|
-
name: joi.string().required(),
|
|
90
|
-
authenticate: joi.func().required()
|
|
91
|
-
})),
|
|
92
|
-
tokenExpiration: joi.number(),
|
|
93
|
-
useAPIKey: joi.boolean(),
|
|
94
|
-
verify: joi.alternatives().try(joi.boolean(), joi.object().keys({
|
|
95
|
-
generateEmailHTML: joi.func(),
|
|
96
|
-
generateEmailSubject: joi.func()
|
|
97
|
-
}))
|
|
98
|
-
}), joi.boolean()),
|
|
99
|
-
custom: joi.object().pattern(joi.string(), joi.any()),
|
|
100
|
-
dbName: joi.alternatives().try(joi.string(), joi.func()),
|
|
101
|
-
defaultSort: joi.string(),
|
|
102
|
-
disableDuplicate: joi.bool(),
|
|
103
|
-
endpoints: endpointsSchema,
|
|
104
|
-
fields: joi.array(),
|
|
105
|
-
graphQL: joi.alternatives().try(joi.object().keys({
|
|
106
|
-
pluralName: joi.string(),
|
|
107
|
-
singularName: joi.string()
|
|
108
|
-
}), joi.boolean()),
|
|
109
|
-
hooks: joi.object({
|
|
110
|
-
afterChange: joi.array().items(joi.func()),
|
|
111
|
-
afterDelete: joi.array().items(joi.func()),
|
|
112
|
-
afterForgotPassword: joi.array().items(joi.func()),
|
|
113
|
-
afterLogin: joi.array().items(joi.func()),
|
|
114
|
-
afterLogout: joi.array().items(joi.func()),
|
|
115
|
-
afterMe: joi.array().items(joi.func()),
|
|
116
|
-
afterOperation: joi.array().items(joi.func()),
|
|
117
|
-
afterRead: joi.array().items(joi.func()),
|
|
118
|
-
afterRefresh: joi.array().items(joi.func()),
|
|
119
|
-
beforeChange: joi.array().items(joi.func()),
|
|
120
|
-
beforeDelete: joi.array().items(joi.func()),
|
|
121
|
-
beforeLogin: joi.array().items(joi.func()),
|
|
122
|
-
beforeOperation: joi.array().items(joi.func()),
|
|
123
|
-
beforeRead: joi.array().items(joi.func()),
|
|
124
|
-
beforeValidate: joi.array().items(joi.func()),
|
|
125
|
-
me: joi.array().items(joi.func()),
|
|
126
|
-
refresh: joi.array().items(joi.func())
|
|
127
|
-
}),
|
|
128
|
-
labels: joi.object({
|
|
129
|
-
plural: joi.alternatives().try(joi.func(), joi.string(), joi.object().pattern(joi.string(), [
|
|
130
|
-
joi.string()
|
|
131
|
-
])),
|
|
132
|
-
singular: joi.alternatives().try(joi.func(), joi.string(), joi.object().pattern(joi.string(), [
|
|
133
|
-
joi.string()
|
|
134
|
-
]))
|
|
135
|
-
}),
|
|
136
|
-
timestamps: joi.boolean(),
|
|
137
|
-
typescript: joi.object().keys({
|
|
138
|
-
interface: joi.string()
|
|
139
|
-
}),
|
|
140
|
-
upload: joi.alternatives().try(joi.object({
|
|
141
|
-
adapter: joi.string(),
|
|
142
|
-
adminThumbnail: joi.alternatives().try(joi.string(), componentSchema),
|
|
143
|
-
crop: joi.bool(),
|
|
144
|
-
disableLocalStorage: joi.bool(),
|
|
145
|
-
externalFileHeaderFilter: joi.func(),
|
|
146
|
-
filesRequiredOnCreate: joi.bool(),
|
|
147
|
-
focalPoint: joi.bool(),
|
|
148
|
-
formatOptions: joi.object().keys({
|
|
149
|
-
format: joi.string(),
|
|
150
|
-
options: joi.object()
|
|
151
|
-
}),
|
|
152
|
-
handlers: joi.array().items(joi.func()),
|
|
153
|
-
imageSizes: joi.array().items(joi.object().keys({
|
|
154
|
-
name: joi.string(),
|
|
155
|
-
crop: joi.string(),
|
|
156
|
-
height: joi.number().integer().allow(null),
|
|
157
|
-
width: joi.number().integer().allow(null)
|
|
158
|
-
}).unknown()),
|
|
159
|
-
mimeTypes: joi.array().items(joi.string()),
|
|
160
|
-
modifyResponseHeaders: joi.func(),
|
|
161
|
-
resizeOptions: joi.object().keys({
|
|
162
|
-
background: joi.string(),
|
|
163
|
-
fastShrinkOnLoad: joi.bool(),
|
|
164
|
-
fit: joi.string(),
|
|
165
|
-
height: joi.number().allow(null),
|
|
166
|
-
kernel: joi.string(),
|
|
167
|
-
position: joi.alternatives().try(joi.string(), joi.number()),
|
|
168
|
-
width: joi.number().allow(null),
|
|
169
|
-
withoutEnlargement: joi.bool()
|
|
170
|
-
}).allow(null),
|
|
171
|
-
staticDir: joi.string(),
|
|
172
|
-
tempFileDir: joi.string(),
|
|
173
|
-
trimOptions: joi.alternatives().try(joi.object().keys({
|
|
174
|
-
format: joi.string(),
|
|
175
|
-
options: joi.object()
|
|
176
|
-
}), joi.string(), joi.number()),
|
|
177
|
-
useTempFiles: joi.bool()
|
|
178
|
-
}), joi.boolean()),
|
|
179
|
-
versions: joi.alternatives().try(joi.object({
|
|
180
|
-
drafts: joi.alternatives().try(joi.object({
|
|
181
|
-
autosave: joi.alternatives().try(joi.boolean(), joi.object({
|
|
182
|
-
interval: joi.number()
|
|
183
|
-
})),
|
|
184
|
-
validate: joi.boolean()
|
|
185
|
-
}), joi.boolean()),
|
|
186
|
-
maxPerDoc: joi.number()
|
|
187
|
-
}), joi.boolean())
|
|
188
|
-
});
|
|
189
|
-
export default collectionSchema;
|
|
190
|
-
|
|
191
|
-
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/collections/config/schema.ts"],"sourcesContent":["import joi from 'joi'\n\nimport { endpointsSchema } from '../../config/schema.js'\nimport {\n componentSchema,\n customViewSchema,\n livePreviewSchema,\n} from '../../config/shared/componentSchema.js'\nimport { openGraphSchema } from '../../config/shared/openGraphSchema.js'\n\nconst collectionSchema = joi.object().keys({\n slug: joi.string().required(),\n access: joi.object({\n admin: joi.func(),\n create: joi.func(),\n delete: joi.func(),\n read: joi.func(),\n readVersions: joi.func(),\n unlock: joi.func(),\n update: joi.func(),\n }),\n admin: joi.object({\n components: joi.object({\n afterList: joi.array().items(componentSchema),\n afterListTable: joi.array().items(componentSchema),\n beforeList: joi.array().items(componentSchema),\n beforeListTable: joi.array().items(componentSchema),\n edit: joi.object({\n Description: componentSchema,\n PreviewButton: componentSchema,\n PublishButton: componentSchema,\n SaveButton: componentSchema,\n SaveDraftButton: componentSchema,\n Upload: componentSchema,\n }),\n views: joi.object({\n Edit: joi.alternatives().try(\n componentSchema,\n joi.object({\n API: joi.alternatives().try(componentSchema, customViewSchema),\n Default: joi.alternatives().try(componentSchema, customViewSchema),\n LivePreview: joi.alternatives().try(componentSchema, customViewSchema),\n Version: joi.alternatives().try(componentSchema, customViewSchema),\n Versions: joi.alternatives().try(componentSchema, customViewSchema),\n // Relationships\n // References\n }),\n ),\n List: joi.alternatives().try(\n componentSchema,\n joi.object({\n Component: componentSchema,\n actions: joi.array().items(componentSchema),\n }),\n ),\n }),\n }),\n custom: joi.object().pattern(joi.string(), joi.any()),\n defaultColumns: joi.array().items(joi.string()),\n description: joi\n .alternatives()\n .try(joi.func(), joi.object().pattern(joi.string(), [joi.string()]), joi.string()),\n enableRichTextLink: joi.boolean(),\n enableRichTextRelationship: joi.boolean(),\n group: joi.alternatives().try(joi.string(), joi.object().pattern(joi.string(), [joi.string()])),\n hidden: joi.alternatives().try(joi.boolean(), joi.func()),\n hideAPIURL: joi.bool(),\n listSearchableFields: joi.array().items(joi.string()),\n livePreview: joi.object(livePreviewSchema),\n meta: joi.object({\n description: joi.string(),\n openGraph: openGraphSchema,\n }),\n pagination: joi.object({\n defaultLimit: joi.number(),\n limits: joi.array().items(joi.number()),\n }),\n preview: joi.func(),\n useAsTitle: joi.string(),\n }),\n auth: joi.alternatives().try(\n joi.object({\n cookies: joi.object().keys({\n domain: joi.string(),\n sameSite: joi.string(), // TODO: add further specificity with joi.xor\n secure: joi.boolean(),\n }),\n depth: joi.number(),\n disableLocalStrategy: joi.boolean().valid(true),\n forgotPassword: joi.object().keys({\n generateEmailHTML: joi.func(),\n generateEmailSubject: joi.func(),\n }),\n lockTime: joi.number(),\n loginWithUsername: joi.alternatives().try(\n joi.boolean(),\n joi.object().keys({\n allowEmailLogin: joi.boolean(),\n requireEmail: joi.boolean(),\n }),\n ),\n maxLoginAttempts: joi.number(),\n removeTokenFromResponses: joi.boolean().valid(true),\n strategies: joi.array().items(\n joi.object().keys({\n name: joi.string().required(),\n authenticate: joi.func().required(),\n }),\n ),\n tokenExpiration: joi.number(),\n useAPIKey: joi.boolean(),\n verify: joi.alternatives().try(\n joi.boolean(),\n joi.object().keys({\n generateEmailHTML: joi.func(),\n generateEmailSubject: joi.func(),\n }),\n ),\n }),\n joi.boolean(),\n ),\n custom: joi.object().pattern(joi.string(), joi.any()),\n dbName: joi.alternatives().try(joi.string(), joi.func()),\n defaultSort: joi.string(),\n disableDuplicate: joi.bool(),\n endpoints: endpointsSchema,\n fields: joi.array(),\n graphQL: joi.alternatives().try(\n joi.object().keys({\n pluralName: joi.string(),\n singularName: joi.string(),\n }),\n joi.boolean(),\n ),\n hooks: joi.object({\n afterChange: joi.array().items(joi.func()),\n afterDelete: joi.array().items(joi.func()),\n afterForgotPassword: joi.array().items(joi.func()),\n afterLogin: joi.array().items(joi.func()),\n afterLogout: joi.array().items(joi.func()),\n afterMe: joi.array().items(joi.func()),\n afterOperation: joi.array().items(joi.func()),\n afterRead: joi.array().items(joi.func()),\n afterRefresh: joi.array().items(joi.func()),\n beforeChange: joi.array().items(joi.func()),\n beforeDelete: joi.array().items(joi.func()),\n beforeLogin: joi.array().items(joi.func()),\n beforeOperation: joi.array().items(joi.func()),\n beforeRead: joi.array().items(joi.func()),\n beforeValidate: joi.array().items(joi.func()),\n me: joi.array().items(joi.func()),\n refresh: joi.array().items(joi.func()),\n }),\n labels: joi.object({\n plural: joi\n .alternatives()\n .try(joi.func(), joi.string(), joi.object().pattern(joi.string(), [joi.string()])),\n singular: joi\n .alternatives()\n .try(joi.func(), joi.string(), joi.object().pattern(joi.string(), [joi.string()])),\n }),\n timestamps: joi.boolean(),\n typescript: joi.object().keys({\n interface: joi.string(),\n }),\n upload: joi.alternatives().try(\n joi.object({\n adapter: joi.string(),\n adminThumbnail: joi.alternatives().try(joi.string(), componentSchema),\n crop: joi.bool(),\n disableLocalStorage: joi.bool(),\n externalFileHeaderFilter: joi.func(),\n filesRequiredOnCreate: joi.bool(),\n focalPoint: joi.bool(),\n formatOptions: joi.object().keys({\n format: joi.string(),\n options: joi.object(),\n }),\n handlers: joi.array().items(joi.func()),\n imageSizes: joi.array().items(\n joi\n .object()\n .keys({\n name: joi.string(),\n crop: joi.string(), // TODO: add further specificity with joi.xor\n height: joi.number().integer().allow(null),\n width: joi.number().integer().allow(null),\n })\n .unknown(),\n ),\n mimeTypes: joi.array().items(joi.string()),\n modifyResponseHeaders: joi.func(),\n resizeOptions: joi\n .object()\n .keys({\n background: joi.string(),\n fastShrinkOnLoad: joi.bool(),\n fit: joi.string(),\n height: joi.number().allow(null),\n kernel: joi.string(),\n position: joi.alternatives().try(joi.string(), joi.number()),\n width: joi.number().allow(null),\n withoutEnlargement: joi.bool(),\n })\n .allow(null),\n staticDir: joi.string(),\n tempFileDir: joi.string(),\n trimOptions: joi.alternatives().try(\n joi.object().keys({\n format: joi.string(),\n options: joi.object(),\n }),\n joi.string(),\n joi.number(),\n ),\n useTempFiles: joi.bool(),\n }),\n joi.boolean(),\n ),\n versions: joi.alternatives().try(\n joi.object({\n drafts: joi.alternatives().try(\n joi.object({\n autosave: joi.alternatives().try(\n joi.boolean(),\n joi.object({\n interval: joi.number(),\n }),\n ),\n validate: joi.boolean(),\n }),\n joi.boolean(),\n ),\n maxPerDoc: joi.number(),\n }),\n joi.boolean(),\n ),\n})\n\nexport default collectionSchema\n"],"names":["joi","endpointsSchema","componentSchema","customViewSchema","livePreviewSchema","openGraphSchema","collectionSchema","object","keys","slug","string","required","access","admin","func","create","delete","read","readVersions","unlock","update","components","afterList","array","items","afterListTable","beforeList","beforeListTable","edit","Description","PreviewButton","PublishButton","SaveButton","SaveDraftButton","Upload","views","Edit","alternatives","try","API","Default","LivePreview","Version","Versions","List","Component","actions","custom","pattern","any","defaultColumns","description","enableRichTextLink","boolean","enableRichTextRelationship","group","hidden","hideAPIURL","bool","listSearchableFields","livePreview","meta","openGraph","pagination","defaultLimit","number","limits","preview","useAsTitle","auth","cookies","domain","sameSite","secure","depth","disableLocalStrategy","valid","forgotPassword","generateEmailHTML","generateEmailSubject","lockTime","loginWithUsername","allowEmailLogin","requireEmail","maxLoginAttempts","removeTokenFromResponses","strategies","name","authenticate","tokenExpiration","useAPIKey","verify","dbName","defaultSort","disableDuplicate","endpoints","fields","graphQL","pluralName","singularName","hooks","afterChange","afterDelete","afterForgotPassword","afterLogin","afterLogout","afterMe","afterOperation","afterRead","afterRefresh","beforeChange","beforeDelete","beforeLogin","beforeOperation","beforeRead","beforeValidate","me","refresh","labels","plural","singular","timestamps","typescript","interface","upload","adapter","adminThumbnail","crop","disableLocalStorage","externalFileHeaderFilter","filesRequiredOnCreate","focalPoint","formatOptions","format","options","handlers","imageSizes","height","integer","allow","width","unknown","mimeTypes","modifyResponseHeaders","resizeOptions","background","fastShrinkOnLoad","fit","kernel","position","withoutEnlargement","staticDir","tempFileDir","trimOptions","useTempFiles","versions","drafts","autosave","interval","validate","maxPerDoc"],"mappings":"AAAA,OAAOA,SAAS,MAAK;AAErB,SAASC,eAAe,QAAQ,yBAAwB;AACxD,SACEC,eAAe,EACfC,gBAAgB,EAChBC,iBAAiB,QACZ,yCAAwC;AAC/C,SAASC,eAAe,QAAQ,yCAAwC;AAExE,MAAMC,mBAAmBN,IAAIO,MAAM,GAAGC,IAAI,CAAC;IACzCC,MAAMT,IAAIU,MAA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tC,IAAIO,MAAM,CAAC;YACTsJ,UAAU7J,IAAIqC,YAAY,GAAGC,GAAG,CAC9BtC,IAAIqD,OAAO,IACXrD,IAAIO,MAAM,CAAC;gBACTuJ,UAAU9J,IAAIiE,MAAM;YACtB;YAEF8F,UAAU/J,IAAIqD,OAAO;QACvB,IACArD,IAAIqD,OAAO;QAEb2G,WAAWhK,IAAIiE,MAAM;IACvB,IACAjE,IAAIqD,OAAO;AAEf;AAEA,eAAe/C,iBAAgB"}
|
package/dist/config/schema.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,KAAK,CAAA;AAQrB,eAAO,MAAM,eAAe,6BAa3B,CAAA;;AAED,wBAiME"}
|
package/dist/config/schema.js
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import joi from 'joi';
|
|
2
|
-
import { adminViewSchema } from './shared/adminViewSchema.js';
|
|
3
|
-
import { componentSchema, livePreviewSchema } from './shared/componentSchema.js';
|
|
4
|
-
import { openGraphSchema } from './shared/openGraphSchema.js';
|
|
5
|
-
const component = joi.alternatives().try(joi.object().unknown(), joi.func());
|
|
6
|
-
export const endpointsSchema = joi.alternatives().try(joi.array().items(joi.object({
|
|
7
|
-
custom: joi.object().pattern(joi.string(), joi.any()),
|
|
8
|
-
handler: joi.alternatives().try(joi.array().items(joi.func()), joi.func()),
|
|
9
|
-
method: joi.string().valid('get', 'head', 'post', 'put', 'patch', 'delete', 'connect', 'options'),
|
|
10
|
-
path: joi.string(),
|
|
11
|
-
root: joi.bool()
|
|
12
|
-
})), joi.boolean());
|
|
13
|
-
export default joi.object({
|
|
14
|
-
admin: joi.object({
|
|
15
|
-
autoLogin: joi.alternatives().try(joi.object().keys({
|
|
16
|
-
email: joi.string(),
|
|
17
|
-
password: joi.string(),
|
|
18
|
-
prefillOnly: joi.boolean(),
|
|
19
|
-
username: joi.string()
|
|
20
|
-
}), joi.boolean()),
|
|
21
|
-
avatar: joi.alternatives().try(joi.string(), component),
|
|
22
|
-
buildPath: joi.string(),
|
|
23
|
-
components: joi.object().keys({
|
|
24
|
-
Nav: component,
|
|
25
|
-
actions: joi.array().items(component),
|
|
26
|
-
afterDashboard: joi.array().items(component),
|
|
27
|
-
afterLogin: joi.array().items(component),
|
|
28
|
-
afterNavLinks: joi.array().items(component),
|
|
29
|
-
beforeDashboard: joi.array().items(component),
|
|
30
|
-
beforeLogin: joi.array().items(component),
|
|
31
|
-
beforeNavLinks: joi.array().items(component),
|
|
32
|
-
graphics: joi.object({
|
|
33
|
-
Icon: component,
|
|
34
|
-
Logo: component
|
|
35
|
-
}),
|
|
36
|
-
logout: joi.object({
|
|
37
|
-
Button: component
|
|
38
|
-
}),
|
|
39
|
-
providers: joi.array().items(component),
|
|
40
|
-
views: joi.alternatives().try(joi.object({
|
|
41
|
-
Account: joi.alternatives().try(component, adminViewSchema),
|
|
42
|
-
Dashboard: joi.alternatives().try(component, adminViewSchema)
|
|
43
|
-
}), joi.object().pattern(joi.string(), component))
|
|
44
|
-
}),
|
|
45
|
-
custom: joi.object().pattern(joi.string(), joi.any()),
|
|
46
|
-
dateFormat: joi.string(),
|
|
47
|
-
disable: joi.bool(),
|
|
48
|
-
livePreview: joi.object({
|
|
49
|
-
...livePreviewSchema,
|
|
50
|
-
collections: joi.array().items(joi.string()),
|
|
51
|
-
globals: joi.array().items(joi.string())
|
|
52
|
-
}),
|
|
53
|
-
meta: joi.object().keys({
|
|
54
|
-
defaultOGImageType: joi.string().valid('off', 'dynamic', 'static'),
|
|
55
|
-
description: joi.string(),
|
|
56
|
-
icons: joi.array().items(joi.object().keys({
|
|
57
|
-
type: joi.string(),
|
|
58
|
-
color: joi.string(),
|
|
59
|
-
fetchPriority: joi.string().valid('auto', 'high', 'low'),
|
|
60
|
-
media: joi.string(),
|
|
61
|
-
rel: joi.string(),
|
|
62
|
-
sizes: joi.string(),
|
|
63
|
-
url: joi.string()
|
|
64
|
-
})),
|
|
65
|
-
openGraph: openGraphSchema,
|
|
66
|
-
titleSuffix: joi.string()
|
|
67
|
-
}),
|
|
68
|
-
routes: joi.object({
|
|
69
|
-
account: joi.string(),
|
|
70
|
-
createFirstUser: joi.string(),
|
|
71
|
-
forgot: joi.string(),
|
|
72
|
-
inactivity: joi.string(),
|
|
73
|
-
login: joi.string(),
|
|
74
|
-
logout: joi.string(),
|
|
75
|
-
reset: joi.string(),
|
|
76
|
-
unauthorized: joi.string()
|
|
77
|
-
}),
|
|
78
|
-
user: joi.string()
|
|
79
|
-
}),
|
|
80
|
-
bin: joi.array().items(joi.object().keys({
|
|
81
|
-
key: joi.string(),
|
|
82
|
-
scriptPath: joi.string()
|
|
83
|
-
})),
|
|
84
|
-
collections: joi.array(),
|
|
85
|
-
cookiePrefix: joi.string(),
|
|
86
|
-
cors: [
|
|
87
|
-
joi.string().valid('*'),
|
|
88
|
-
joi.array().items(joi.string()),
|
|
89
|
-
joi.object().keys({
|
|
90
|
-
headers: joi.array().items(joi.string()),
|
|
91
|
-
origins: [
|
|
92
|
-
joi.string().valid('*'),
|
|
93
|
-
joi.array().items(joi.string())
|
|
94
|
-
]
|
|
95
|
-
})
|
|
96
|
-
],
|
|
97
|
-
csrf: joi.array().items(joi.string().allow('')).sparse(),
|
|
98
|
-
custom: joi.object().pattern(joi.string(), joi.any()),
|
|
99
|
-
db: joi.any(),
|
|
100
|
-
debug: joi.boolean(),
|
|
101
|
-
defaultDepth: joi.number().min(0).max(30),
|
|
102
|
-
defaultMaxTextLength: joi.number(),
|
|
103
|
-
editor: joi.object().optional().keys({
|
|
104
|
-
CellComponent: componentSchema.optional(),
|
|
105
|
-
FieldComponent: componentSchema.optional(),
|
|
106
|
-
afterReadPromise: joi.func().optional(),
|
|
107
|
-
outputSchema: joi.func().optional(),
|
|
108
|
-
populationPromise: joi.func().optional(),
|
|
109
|
-
validate: joi.func().required()
|
|
110
|
-
}).unknown(),
|
|
111
|
-
email: joi.alternatives().try(joi.object(), joi.func()),
|
|
112
|
-
endpoints: endpointsSchema,
|
|
113
|
-
globals: joi.array(),
|
|
114
|
-
graphQL: joi.object().keys({
|
|
115
|
-
disable: joi.boolean(),
|
|
116
|
-
disablePlaygroundInProduction: joi.boolean(),
|
|
117
|
-
maxComplexity: joi.number(),
|
|
118
|
-
mutations: joi.function(),
|
|
119
|
-
queries: joi.function(),
|
|
120
|
-
schemaOutputFile: joi.string()
|
|
121
|
-
}),
|
|
122
|
-
hooks: joi.object().keys({
|
|
123
|
-
afterError: joi.func()
|
|
124
|
-
}),
|
|
125
|
-
i18n: joi.object(),
|
|
126
|
-
indexSortableFields: joi.boolean(),
|
|
127
|
-
local: joi.boolean(),
|
|
128
|
-
localization: joi.alternatives().try(joi.object().keys({
|
|
129
|
-
defaultLocale: joi.string(),
|
|
130
|
-
fallback: joi.boolean(),
|
|
131
|
-
localeCodes: joi.array().items(joi.string()),
|
|
132
|
-
locales: joi.alternatives().try(joi.array().items(joi.object().keys({
|
|
133
|
-
code: joi.string(),
|
|
134
|
-
fallbackLocale: joi.string(),
|
|
135
|
-
label: joi.alternatives().try(joi.object().pattern(joi.string(), [
|
|
136
|
-
joi.string()
|
|
137
|
-
]), joi.string(), joi.valid(false)),
|
|
138
|
-
rtl: joi.boolean(),
|
|
139
|
-
toString: joi.func()
|
|
140
|
-
})), joi.array().items(joi.string()))
|
|
141
|
-
}), joi.boolean()),
|
|
142
|
-
maxDepth: joi.number().min(0).max(100),
|
|
143
|
-
onInit: joi.func(),
|
|
144
|
-
plugins: joi.array().items(joi.func()),
|
|
145
|
-
routes: joi.object({
|
|
146
|
-
admin: joi.string(),
|
|
147
|
-
api: joi.string(),
|
|
148
|
-
graphQL: joi.string(),
|
|
149
|
-
graphQLPlayground: joi.string()
|
|
150
|
-
}),
|
|
151
|
-
secret: joi.string(),
|
|
152
|
-
serverURL: joi.string().uri().allow('').custom((value, helper)=>{
|
|
153
|
-
const urlWithoutProtocol = value.split('//')[1];
|
|
154
|
-
if (!urlWithoutProtocol) {
|
|
155
|
-
return helper.message({
|
|
156
|
-
custom: 'You need to include either "https://" or "http://" in your serverURL.'
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
if (urlWithoutProtocol.indexOf('/') > -1) {
|
|
160
|
-
return helper.message({
|
|
161
|
-
custom: 'Your serverURL cannot have a path. It can only contain a protocol, a domain, and an optional port.'
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
return value;
|
|
165
|
-
}),
|
|
166
|
-
sharp: joi.any(),
|
|
167
|
-
telemetry: joi.boolean(),
|
|
168
|
-
typescript: joi.object({
|
|
169
|
-
autoGenerate: joi.boolean(),
|
|
170
|
-
declare: joi.alternatives().try(joi.boolean(), joi.object({
|
|
171
|
-
ignoreTSError: joi.boolean()
|
|
172
|
-
})),
|
|
173
|
-
outputFile: joi.string(),
|
|
174
|
-
schema: joi.array().items(joi.func())
|
|
175
|
-
}),
|
|
176
|
-
upload: joi.object()
|
|
177
|
-
});
|
|
178
|
-
|
|
179
|
-
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/schema.ts"],"sourcesContent":["import joi from 'joi'\n\nimport { adminViewSchema } from './shared/adminViewSchema.js'\nimport { componentSchema, livePreviewSchema } from './shared/componentSchema.js'\nimport { openGraphSchema } from './shared/openGraphSchema.js'\n\nconst component = joi.alternatives().try(joi.object().unknown(), joi.func())\n\nexport const endpointsSchema = joi.alternatives().try(\n joi.array().items(\n joi.object({\n custom: joi.object().pattern(joi.string(), joi.any()),\n handler: joi.alternatives().try(joi.array().items(joi.func()), joi.func()),\n method: joi\n .string()\n .valid('get', 'head', 'post', 'put', 'patch', 'delete', 'connect', 'options'),\n path: joi.string(),\n root: joi.bool(),\n }),\n ),\n joi.boolean(),\n)\n\nexport default joi.object({\n admin: joi.object({\n autoLogin: joi.alternatives().try(\n joi.object().keys({\n email: joi.string(),\n password: joi.string(),\n prefillOnly: joi.boolean(),\n username: joi.string(),\n }),\n joi.boolean(),\n ),\n avatar: joi.alternatives().try(joi.string(), component),\n buildPath: joi.string(),\n components: joi.object().keys({\n Nav: component,\n actions: joi.array().items(component),\n afterDashboard: joi.array().items(component),\n afterLogin: joi.array().items(component),\n afterNavLinks: joi.array().items(component),\n beforeDashboard: joi.array().items(component),\n beforeLogin: joi.array().items(component),\n beforeNavLinks: joi.array().items(component),\n graphics: joi.object({\n Icon: component,\n Logo: component,\n }),\n logout: joi.object({\n Button: component,\n }),\n providers: joi.array().items(component),\n views: joi.alternatives().try(\n joi.object({\n Account: joi.alternatives().try(component, adminViewSchema),\n Dashboard: joi.alternatives().try(component, adminViewSchema),\n }),\n joi.object().pattern(joi.string(), component),\n ),\n }),\n custom: joi.object().pattern(joi.string(), joi.any()),\n dateFormat: joi.string(),\n disable: joi.bool(),\n livePreview: joi.object({\n ...livePreviewSchema,\n collections: joi.array().items(joi.string()),\n globals: joi.array().items(joi.string()),\n }),\n meta: joi.object().keys({\n defaultOGImageType: joi.string().valid('off', 'dynamic', 'static'),\n description: joi.string(),\n icons: joi.array().items(\n joi.object().keys({\n type: joi.string(),\n color: joi.string(),\n fetchPriority: joi.string().valid('auto', 'high', 'low'),\n media: joi.string(),\n rel: joi.string(),\n sizes: joi.string(),\n url: joi.string(),\n }),\n ),\n openGraph: openGraphSchema,\n titleSuffix: joi.string(),\n }),\n routes: joi.object({\n account: joi.string(),\n createFirstUser: joi.string(),\n forgot: joi.string(),\n inactivity: joi.string(),\n login: joi.string(),\n logout: joi.string(),\n reset: joi.string(),\n unauthorized: joi.string(),\n }),\n user: joi.string(),\n }),\n bin: joi.array().items(\n joi.object().keys({\n key: joi.string(),\n scriptPath: joi.string(),\n }),\n ),\n collections: joi.array(),\n cookiePrefix: joi.string(),\n cors: [\n joi.string().valid('*'),\n joi.array().items(joi.string()),\n joi.object().keys({\n headers: joi.array().items(joi.string()),\n origins: [joi.string().valid('*'), joi.array().items(joi.string())],\n }),\n ],\n csrf: joi.array().items(joi.string().allow('')).sparse(),\n custom: joi.object().pattern(joi.string(), joi.any()),\n db: joi.any(),\n debug: joi.boolean(),\n defaultDepth: joi.number().min(0).max(30),\n defaultMaxTextLength: joi.number(),\n editor: joi\n .object()\n .optional()\n .keys({\n CellComponent: componentSchema.optional(),\n FieldComponent: componentSchema.optional(),\n afterReadPromise: joi.func().optional(),\n outputSchema: joi.func().optional(),\n populationPromise: joi.func().optional(),\n validate: joi.func().required(),\n })\n .unknown(),\n email: joi.alternatives().try(joi.object(), joi.func()),\n endpoints: endpointsSchema,\n globals: joi.array(),\n graphQL: joi.object().keys({\n disable: joi.boolean(),\n disablePlaygroundInProduction: joi.boolean(),\n maxComplexity: joi.number(),\n mutations: joi.function(),\n queries: joi.function(),\n schemaOutputFile: joi.string(),\n }),\n hooks: joi.object().keys({\n afterError: joi.func(),\n }),\n i18n: joi.object(),\n indexSortableFields: joi.boolean(),\n local: joi.boolean(),\n localization: joi.alternatives().try(\n joi.object().keys({\n defaultLocale: joi.string(),\n fallback: joi.boolean(),\n localeCodes: joi.array().items(joi.string()),\n locales: joi.alternatives().try(\n joi.array().items(\n joi.object().keys({\n code: joi.string(),\n fallbackLocale: joi.string(),\n label: joi\n .alternatives()\n .try(\n joi.object().pattern(joi.string(), [joi.string()]),\n joi.string(),\n joi.valid(false),\n ),\n rtl: joi.boolean(),\n toString: joi.func(),\n }),\n ),\n joi.array().items(joi.string()),\n ),\n }),\n joi.boolean(),\n ),\n maxDepth: joi.number().min(0).max(100),\n onInit: joi.func(),\n plugins: joi.array().items(joi.func()),\n routes: joi.object({\n admin: joi.string(),\n api: joi.string(),\n graphQL: joi.string(),\n graphQLPlayground: joi.string(),\n }),\n secret: joi.string(),\n serverURL: joi\n .string()\n .uri()\n .allow('')\n .custom((value, helper) => {\n const urlWithoutProtocol = value.split('//')[1]\n\n if (!urlWithoutProtocol) {\n return helper.message({\n custom: 'You need to include either \"https://\" or \"http://\" in your serverURL.',\n })\n }\n\n if (urlWithoutProtocol.indexOf('/') > -1) {\n return helper.message({\n custom:\n 'Your serverURL cannot have a path. It can only contain a protocol, a domain, and an optional port.',\n })\n }\n\n return value\n }),\n sharp: joi.any(),\n telemetry: joi.boolean(),\n typescript: joi.object({\n autoGenerate: joi.boolean(),\n declare: joi.alternatives().try(joi.boolean(), joi.object({ ignoreTSError: joi.boolean() })),\n outputFile: joi.string(),\n schema: joi.array().items(joi.func()),\n }),\n upload: joi.object(),\n})\n"],"names":["joi","adminViewSchema","componentSchema","livePreviewSchema","openGraphSchema","component","alternatives","try","object","unknown","func","endpointsSchema","array","items","custom","pattern","string","any","handler","method","valid","path","root","bool","boolean","admin","autoLogin","keys","email","password","prefillOnly","username","avatar","buildPath","components","Nav","actions","afterDashboard","afterLogin","afterNavLinks","beforeDashboard","beforeLogin","beforeNavLinks","graphics","Icon","Logo","logout","Button","providers","views","Account","Dashboard","dateFormat","disable","livePreview","collections","globals","meta","defaultOGImageType","description","icons","type","color","fetchPriority","media","rel","sizes","url","openGraph","titleSuffix","routes","account","createFirstUser","forgot","inactivity","login","reset","unauthorized","user","bin","key","scriptPath","cookiePrefix","cors","headers","origins","csrf","allow","sparse","db","debug","defaultDepth","number","min","max","defaultMaxTextLength","editor","optional","CellComponent","FieldComponent","afterReadPromise","outputSchema","populationPromise","validate","required","endpoints","graphQL","disablePlaygroundInProduction","maxComplexity","mutations","function","queries","schemaOutputFile","hooks","afterError","i18n","indexSortableFields","local","localization","defaultLocale","fallback","localeCodes","locales","code","fallbackLocale","label","rtl","toString","maxDepth","onInit","plugins","api","graphQLPlayground","secret","serverURL","uri","value","helper","urlWithoutProtocol","split","message","indexOf","sharp","telemetry","typescript","autoGenerate","declare","ignoreTSError","outputFile","schema","upload"],"mappings":"AAAA,OAAOA,SAAS,MAAK;AAErB,SAASC,eAAe,QAAQ,8BAA6B;AAC7D,SAASC,eAAe,EAAEC,iBAAiB,QAAQ,8BAA6B;AAChF,SAASC,eAAe,QAAQ,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I,CAACD,oBAAoB;YACvB,OAAOD,OAAOG,OAAO,CAAC;gBACpB9H,QAAQ;YACV;QACF;QAEA,IAAI4H,mBAAmBG,OAAO,CAAC,OAAO,CAAC,GAAG;YACxC,OAAOJ,OAAOG,OAAO,CAAC;gBACpB9H,QACE;YACJ;QACF;QAEA,OAAO0H;IACT;IACFM,OAAO9I,IAAIiB,GAAG;IACd8H,WAAW/I,IAAIwB,OAAO;IACtBwH,YAAYhJ,IAAIQ,MAAM,CAAC;QACrByI,cAAcjJ,IAAIwB,OAAO;QACzB0H,SAASlJ,IAAIM,YAAY,GAAGC,GAAG,CAACP,IAAIwB,OAAO,IAAIxB,IAAIQ,MAAM,CAAC;YAAE2I,eAAenJ,IAAIwB,OAAO;QAAG;QACzF4H,YAAYpJ,IAAIgB,MAAM;QACtBqI,QAAQrJ,IAAIY,KAAK,GAAGC,KAAK,CAACb,IAAIU,IAAI;IACpC;IACA4I,QAAQtJ,IAAIQ,MAAM;AACpB,GAAE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adminViewSchema.d.ts","sourceRoot":"","sources":["../../../src/config/shared/adminViewSchema.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,KAAK,CAAA;AAIrB,eAAO,MAAM,eAAe,wBAQ3B,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import joi from 'joi';
|
|
2
|
-
import { componentSchema } from './componentSchema.js';
|
|
3
|
-
export const adminViewSchema = joi.array().items(joi.object().keys({
|
|
4
|
-
Component: componentSchema,
|
|
5
|
-
exact: joi.bool(),
|
|
6
|
-
path: joi.string().required(),
|
|
7
|
-
sensitive: joi.bool(),
|
|
8
|
-
strict: joi.bool()
|
|
9
|
-
}));
|
|
10
|
-
|
|
11
|
-
//# sourceMappingURL=adminViewSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/shared/adminViewSchema.ts"],"sourcesContent":["import joi from 'joi'\n\nimport { componentSchema } from './componentSchema.js'\n\nexport const adminViewSchema = joi.array().items(\n joi.object().keys({\n Component: componentSchema,\n exact: joi.bool(),\n path: joi.string().required(),\n sensitive: joi.bool(),\n strict: joi.bool(),\n }),\n)\n"],"names":["joi","componentSchema","adminViewSchema","array","items","object","keys","Component","exact","bool","path","string","required","sensitive","strict"],"mappings":"AAAA,OAAOA,SAAS,MAAK;AAErB,SAASC,eAAe,QAAQ,uBAAsB;AAEtD,OAAO,MAAMC,kBAAkBF,IAAIG,KAAK,GAAGC,KAAK,CAC9CJ,IAAIK,MAAM,GAAGC,IAAI,CAAC;IAChBC,WAAWN;IACXO,OAAOR,IAAIS,IAAI;IACfC,MAAMV,IAAIW,MAAM,GAAGC,QAAQ;IAC3BC,WAAWb,IAAIS,IAAI;IACnBK,QAAQd,IAAIS,IAAI;AAClB,IACD"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import joi from 'joi';
|
|
2
|
-
export declare const componentSchema: joi.AlternativesSchema<any>;
|
|
3
|
-
export declare const documentTabSchema: {
|
|
4
|
-
condition: joi.FunctionSchema<Function>;
|
|
5
|
-
href: joi.AlternativesSchema<any>;
|
|
6
|
-
isActive: joi.AlternativesSchema<any>;
|
|
7
|
-
label: joi.AlternativesSchema<any>;
|
|
8
|
-
newTab: joi.BooleanSchema<boolean>;
|
|
9
|
-
pillLabel: joi.AlternativesSchema<any>;
|
|
10
|
-
};
|
|
11
|
-
export declare const customViewSchema: joi.ObjectSchema<any>;
|
|
12
|
-
export declare const livePreviewSchema: {
|
|
13
|
-
breakpoints: joi.ArraySchema<any[]>;
|
|
14
|
-
url: joi.AlternativesSchema<any>;
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=componentSchema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"componentSchema.d.ts","sourceRoot":"","sources":["../../../src/config/shared/componentSchema.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,eAAe,6BAA6D,CAAA;AAEzF,eAAO,MAAM,iBAAiB;;;;;;;CAO7B,CAAA;AAED,eAAO,MAAM,gBAAgB,uBAK3B,CAAA;AAEF,eAAO,MAAM,iBAAiB;;;CAU7B,CAAA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import joi from 'joi';
|
|
2
|
-
export const componentSchema = joi.alternatives().try(joi.object().unknown(), joi.func());
|
|
3
|
-
export const documentTabSchema = {
|
|
4
|
-
condition: joi.func(),
|
|
5
|
-
href: joi.alternatives().try(joi.string(), joi.func()).required(),
|
|
6
|
-
isActive: joi.alternatives().try(joi.func(), joi.boolean()),
|
|
7
|
-
label: joi.alternatives().try(joi.string(), joi.func()).required(),
|
|
8
|
-
newTab: joi.boolean(),
|
|
9
|
-
pillLabel: joi.alternatives().try(joi.string(), joi.func())
|
|
10
|
-
};
|
|
11
|
-
export const customViewSchema = joi.object({
|
|
12
|
-
Component: componentSchema,
|
|
13
|
-
Tab: joi.alternatives().try(documentTabSchema, componentSchema),
|
|
14
|
-
actions: joi.array().items(componentSchema),
|
|
15
|
-
path: joi.string()
|
|
16
|
-
});
|
|
17
|
-
export const livePreviewSchema = {
|
|
18
|
-
breakpoints: joi.array().items(joi.object({
|
|
19
|
-
name: joi.string(),
|
|
20
|
-
height: joi.alternatives().try(joi.number(), joi.string()),
|
|
21
|
-
label: joi.string(),
|
|
22
|
-
width: joi.alternatives().try(joi.number(), joi.string())
|
|
23
|
-
})),
|
|
24
|
-
url: joi.alternatives().try(joi.string(), joi.func())
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
//# sourceMappingURL=componentSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/shared/componentSchema.ts"],"sourcesContent":["import joi from 'joi'\n\nexport const componentSchema = joi.alternatives().try(joi.object().unknown(), joi.func())\n\nexport const documentTabSchema = {\n condition: joi.func(),\n href: joi.alternatives().try(joi.string(), joi.func()).required(),\n isActive: joi.alternatives().try(joi.func(), joi.boolean()),\n label: joi.alternatives().try(joi.string(), joi.func()).required(),\n newTab: joi.boolean(),\n pillLabel: joi.alternatives().try(joi.string(), joi.func()),\n}\n\nexport const customViewSchema = joi.object({\n Component: componentSchema,\n Tab: joi.alternatives().try(documentTabSchema, componentSchema),\n actions: joi.array().items(componentSchema),\n path: joi.string(),\n})\n\nexport const livePreviewSchema = {\n breakpoints: joi.array().items(\n joi.object({\n name: joi.string(),\n height: joi.alternatives().try(joi.number(), joi.string()),\n label: joi.string(),\n width: joi.alternatives().try(joi.number(), joi.string()),\n }),\n ),\n url: joi.alternatives().try(joi.string(), joi.func()),\n}\n"],"names":["joi","componentSchema","alternatives","try","object","unknown","func","documentTabSchema","condition","href","string","required","isActive","boolean","label","newTab","pillLabel","customViewSchema","Component","Tab","actions","array","items","path","livePreviewSchema","breakpoints","name","height","number","width","url"],"mappings":"AAAA,OAAOA,SAAS,MAAK;AAErB,OAAO,MAAMC,kBAAkBD,IAAIE,YAAY,GAAGC,GAAG,CAACH,IAAII,MAAM,GAAGC,OAAO,IAAIL,IAAIM,IAAI,IAAG;AAEzF,OAAO,MAAMC,oBAAoB;IAC/BC,WAAWR,IAAIM,IAAI;IACnBG,MAAMT,IAAIE,YAAY,GAAGC,GAAG,CAACH,IAAIU,MAAM,IAAIV,IAAIM,IAAI,IAAIK,QAAQ;IAC/DC,UAAUZ,IAAIE,YAAY,GAAGC,GAAG,CAACH,IAAIM,IAAI,IAAIN,IAAIa,OAAO;IACxDC,OAAOd,IAAIE,YAAY,GAAGC,GAAG,CAACH,IAAIU,MAAM,IAAIV,IAAIM,IAAI,IAAIK,QAAQ;IAChEI,QAAQf,IAAIa,OAAO;IACnBG,WAAWhB,IAAIE,YAAY,GAAGC,GAAG,CAACH,IAAIU,MAAM,IAAIV,IAAIM,IAAI;AAC1D,EAAC;AAED,OAAO,MAAMW,mBAAmBjB,IAAII,MAAM,CAAC;IACzCc,WAAWjB;IACXkB,KAAKnB,IAAIE,YAAY,GAAGC,GAAG,CAACI,mBAAmBN;IAC/CmB,SAASpB,IAAIqB,KAAK,GAAGC,KAAK,CAACrB;IAC3BsB,MAAMvB,IAAIU,MAAM;AAClB,GAAE;AAEF,OAAO,MAAMc,oBAAoB;IAC/BC,aAAazB,IAAIqB,KAAK,GAAGC,KAAK,CAC5BtB,IAAII,MAAM,CAAC;QACTsB,MAAM1B,IAAIU,MAAM;QAChBiB,QAAQ3B,IAAIE,YAAY,GAAGC,GAAG,CAACH,IAAI4B,MAAM,IAAI5B,IAAIU,MAAM;QACvDI,OAAOd,IAAIU,MAAM;QACjBmB,OAAO7B,IAAIE,YAAY,GAAGC,GAAG,CAACH,IAAI4B,MAAM,IAAI5B,IAAIU,MAAM;IACxD;IAEFoB,KAAK9B,IAAIE,YAAY,GAAGC,GAAG,CAACH,IAAIU,MAAM,IAAIV,IAAIM,IAAI;AACpD,EAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"openGraphSchema.d.ts","sourceRoot":"","sources":["../../../src/config/shared/openGraphSchema.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,KAAK,CAAA;AAUrB,eAAO,MAAM,eAAe,uBAK1B,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import joi from 'joi';
|
|
2
|
-
const ogImageObj = joi.object({
|
|
3
|
-
type: joi.string(),
|
|
4
|
-
alt: joi.string(),
|
|
5
|
-
height: joi.alternatives().try(joi.string(), joi.number()),
|
|
6
|
-
url: joi.string(),
|
|
7
|
-
width: joi.alternatives().try(joi.string(), joi.number())
|
|
8
|
-
});
|
|
9
|
-
export const openGraphSchema = joi.object({
|
|
10
|
-
description: joi.string(),
|
|
11
|
-
images: joi.alternatives().try(ogImageObj, joi.array().items(ogImageObj)),
|
|
12
|
-
siteName: joi.string(),
|
|
13
|
-
title: joi.string()
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
//# sourceMappingURL=openGraphSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/config/shared/openGraphSchema.ts"],"sourcesContent":["import joi from 'joi'\n\nconst ogImageObj = joi.object({\n type: joi.string(),\n alt: joi.string(),\n height: joi.alternatives().try(joi.string(), joi.number()),\n url: joi.string(),\n width: joi.alternatives().try(joi.string(), joi.number()),\n})\n\nexport const openGraphSchema = joi.object({\n description: joi.string(),\n images: joi.alternatives().try(ogImageObj, joi.array().items(ogImageObj)),\n siteName: joi.string(),\n title: joi.string(),\n})\n"],"names":["joi","ogImageObj","object","type","string","alt","height","alternatives","try","number","url","width","openGraphSchema","description","images","array","items","siteName","title"],"mappings":"AAAA,OAAOA,SAAS,MAAK;AAErB,MAAMC,aAAaD,IAAIE,MAAM,CAAC;IAC5BC,MAAMH,IAAII,MAAM;IAChBC,KAAKL,IAAII,MAAM;IACfE,QAAQN,IAAIO,YAAY,GAAGC,GAAG,CAACR,IAAII,MAAM,IAAIJ,IAAIS,MAAM;IACvDC,KAAKV,IAAII,MAAM;IACfO,OAAOX,IAAIO,YAAY,GAAGC,GAAG,CAACR,IAAII,MAAM,IAAIJ,IAAIS,MAAM;AACxD;AAEA,OAAO,MAAMG,kBAAkBZ,IAAIE,MAAM,CAAC;IACxCW,aAAab,IAAII,MAAM;IACvBU,QAAQd,IAAIO,YAAY,GAAGC,GAAG,CAACP,YAAYD,IAAIe,KAAK,GAAGC,KAAK,CAACf;IAC7DgB,UAAUjB,IAAII,MAAM;IACpBc,OAAOlB,IAAII,MAAM;AACnB,GAAE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/config/validate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAIlC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAwEjD,eAAO,MAAM,cAAc,WAAY,eAAe,UAAU,MAAM,KAAG,eAiCxE,CAAA"}
|