@paroicms/server 1.2.1 → 1.3.1
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/express/http-helpers.d.ts +1 -1
- package/dist/express/http-helpers.js +3 -3
- package/dist/express/static-middlewares.js +19 -12
- package/dist/express/static-middlewares.js.map +1 -1
- package/dist/modules/public-site/app-exception-filter.d.ts +1 -1
- package/dist/modules/public-site/app-exception-filter.js +1 -1
- package/dist/plugins/plugin-api.d.ts +3 -0
- package/dist/plugins/plugin-api.js +29 -0
- package/dist/plugins/plugin-api.js.map +1 -0
- package/dist/plugins/plugin-loader.d.ts +9 -0
- package/dist/plugins/plugin-loader.js +78 -0
- package/dist/plugins/plugin-loader.js.map +1 -0
- package/dist/plugins/plugin.helpers.d.ts +4 -0
- package/dist/plugins/plugin.helpers.js +31 -0
- package/dist/plugins/plugin.helpers.js.map +1 -0
- package/dist/site-context/create-site-context.js +4 -1
- package/dist/site-context/create-site-context.js.map +1 -1
- package/dist/site-context/site-context.types.d.ts +2 -0
- package/dist/site-schema/merged-schema-lib.d.ts +10 -1
- package/dist/site-schema/merged-schema-lib.js +22 -10
- package/dist/site-schema/merged-schema-lib.js.map +1 -1
- package/dist/site-schema/site-schema-factory.d.ts +6 -1
- package/dist/site-schema/site-schema-factory.js +34 -12
- package/dist/site-schema/site-schema-factory.js.map +1 -1
- package/dist/types.to.json +1 -1
- package/package.json +10 -9
|
@@ -11,6 +11,6 @@ export declare function serveContent({ res, status, contentType, html, or304, }:
|
|
|
11
11
|
};
|
|
12
12
|
}): void;
|
|
13
13
|
export declare function serve500Html(res: Response, _siteContext?: SiteContext): void;
|
|
14
|
-
export declare function
|
|
14
|
+
export declare function serve404SimpleHtml(res: Response): void;
|
|
15
15
|
export declare function serve304NotModified(res: Response): void;
|
|
16
16
|
export declare function serve301Redirect(res: Response, redirectTo: string): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.serve301Redirect = exports.serve304NotModified = exports.
|
|
3
|
+
exports.serve301Redirect = exports.serve304NotModified = exports.serve404SimpleHtml = exports.serve500Html = exports.serveContent = void 0;
|
|
4
4
|
function serveContent({ res, status, contentType, html, or304, }) {
|
|
5
5
|
res.status(status ?? 200);
|
|
6
6
|
res.setHeader("Content-Type", contentType ?? "text/html");
|
|
@@ -23,14 +23,14 @@ function serve500Html(res, _siteContext) {
|
|
|
23
23
|
res.end();
|
|
24
24
|
}
|
|
25
25
|
exports.serve500Html = serve500Html;
|
|
26
|
-
function
|
|
26
|
+
function serve404SimpleHtml(res) {
|
|
27
27
|
res.status(404);
|
|
28
28
|
res.setHeader("Content-Type", "text/html");
|
|
29
29
|
res.send(`<!DOCTYPE html>
|
|
30
30
|
<p>404 Not Found</p>`);
|
|
31
31
|
res.end();
|
|
32
32
|
}
|
|
33
|
-
exports.
|
|
33
|
+
exports.serve404SimpleHtml = serve404SimpleHtml;
|
|
34
34
|
function serve304NotModified(res) {
|
|
35
35
|
res.status(304);
|
|
36
36
|
res.end();
|
|
@@ -21,7 +21,7 @@ async function themeAssetsMiddleware(req, res, next) {
|
|
|
21
21
|
siteContext = await (0, site_context_1.getSiteContext)(req.hostname);
|
|
22
22
|
}
|
|
23
23
|
catch (error) {
|
|
24
|
-
(0, http_helpers_1.
|
|
24
|
+
(0, http_helpers_1.serve404SimpleHtml)(res);
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
27
|
let pathPrefix;
|
|
@@ -65,7 +65,7 @@ async function boMiddleware(req, res, next) {
|
|
|
65
65
|
siteContext = await (0, site_context_1.getSiteContext)(req.hostname);
|
|
66
66
|
}
|
|
67
67
|
catch (error) {
|
|
68
|
-
(0, http_helpers_1.
|
|
68
|
+
(0, http_helpers_1.serve404SimpleHtml)(res);
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
71
|
try {
|
|
@@ -90,33 +90,40 @@ exports.boMiddleware = boMiddleware;
|
|
|
90
90
|
async function boPluginsMiddleware(req, res, next) {
|
|
91
91
|
const currentSiteConf = context_1.siteConfs.get(req.hostname);
|
|
92
92
|
if (!currentSiteConf) {
|
|
93
|
-
(0, http_helpers_1.
|
|
93
|
+
(0, http_helpers_1.serve404SimpleHtml)(res);
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
if (req.method !== "GET" || !path.startsWith("/adm/plugins/")) {
|
|
96
|
+
const prefix = "/adm/plugins/";
|
|
97
|
+
if (req.method !== "GET" || !req.path.startsWith(prefix)) {
|
|
99
98
|
next();
|
|
100
99
|
return;
|
|
101
100
|
}
|
|
101
|
+
const relPathIndex = req.path.indexOf("/", prefix.length);
|
|
102
|
+
if (relPathIndex === -1) {
|
|
103
|
+
(0, http_helpers_1.serve404SimpleHtml)(res);
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
const urlPath = req.path.substring(prefix.length, relPathIndex);
|
|
107
|
+
const relPath = req.path.substring(relPathIndex + 1);
|
|
102
108
|
let siteContext;
|
|
103
109
|
try {
|
|
104
110
|
siteContext = await (0, site_context_1.getSiteContext)(req.hostname);
|
|
105
111
|
}
|
|
106
112
|
catch (error) {
|
|
107
|
-
(0, http_helpers_1.
|
|
113
|
+
(0, http_helpers_1.serve404SimpleHtml)(res);
|
|
108
114
|
return;
|
|
109
115
|
}
|
|
110
116
|
try {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
117
|
+
const plugin = siteContext.plugins.get(urlPath);
|
|
118
|
+
const boPluginDir = plugin?.plugin.boPluginDir;
|
|
119
|
+
if (!boPluginDir || !(await (0, server_lib_1.pathExists)((0, node_path_1.join)(boPluginDir, relPath)))) {
|
|
120
|
+
(0, http_helpers_1.serve404SimpleHtml)(res);
|
|
114
121
|
return;
|
|
115
122
|
}
|
|
116
|
-
res.sendFile(
|
|
123
|
+
res.sendFile(relPath, { root: boPluginDir }, (error) => {
|
|
117
124
|
if (!error)
|
|
118
125
|
return;
|
|
119
|
-
sendFileErrorHandler(error, siteContext, res,
|
|
126
|
+
sendFileErrorHandler(error, siteContext, res, (0, node_path_1.join)(boPluginDir, relPath));
|
|
120
127
|
});
|
|
121
128
|
}
|
|
122
129
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static-middlewares.js","sourceRoot":"","sources":["../../src/express/static-middlewares.ts"],"names":[],"mappings":";;;AAAA,qCAAoD;AACpD,qDAAkD;AAClD,iDAA+D;AAE/D,yCAAiC;AACjC,uDAA4E;AAC5E,2DAAwD;AACxD,wCAAgD;AAChD,+DAA8D;AAE9D,iDAAkE;AAE3D,KAAK,UAAU,qBAAqB,CAAC,GAAY,EAAE,GAAa,EAAE,IAAgB;IACvF,IAAI,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;IACpB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QACjC,IAAI,EAAE,CAAC;QACP,OAAO;IACT,CAAC;IAED,IAAI,WAAwB,CAAC;IAC7B,IAAI,CAAC;QACH,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACnD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAA,iCAAkB,EAAC,GAAG,CAAC,CAAC;QACxB,OAAO;IACT,CAAC;IAED,IAAI,UAAkB,CAAC;IACvB,IAAI,OAAe,CAAC;IACpB,IAAI,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,EAAE,CAAC;QACzC,UAAU,GAAG,GAAG,IAAA,+BAAiB,GAAE,GAAG,CAAC;QACvC,OAAO,GAAG,kBAAc,CAAC;IAC3B,CAAC;SAAM,CAAC;QACN,UAAU,GAAG,GAAG,IAAA,8BAAgB,EAAC,WAAW,CAAC,GAAG,CAAC;QACjD,OAAO,GAAG,IAAA,gBAAI,EAAC,WAAW,CAAC,QAAQ,EAAE,QAAQ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ACtD,KAAK,cAAc,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IACxC,CAAC;SAAM,CAAC;QACN,IAAI,MAAM,IAAI,KAAK,EAAE,CAAC;YACpB,IAAI,KAAK,CAAC,IAAI,KAAK,cAAc,EAAE,CAAC;gBAClC,GAAG,CAAC,GAAG,EAAE,CAAC;gBACV,OAAO;YACT,CAAC;YACD,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,yBAAyB,IAAI,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAClF,CAAC;QACD,IAAA,2BAAY,EAAC,GAAG,EAAE,WAAW,CAAC,CAAC;IACjC,CAAC;AACH,CAAC;AAED,KAAK,UAAU,cAAc,CAAC,WAAwB,EAAE,GAAa;IACnE,IAAI,CAAC;QACH,MAAM,IAAA,6BAAa,EAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IACxC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;QACzD,IAAA,2BAAY,EAAC,GAAG,EAAE,WAAW,CAAC,CAAC;IACjC,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ArgumentsHost, type ExceptionFilter
|
|
1
|
+
import { NotFoundException, type ArgumentsHost, type ExceptionFilter } from "@nestjs/common";
|
|
2
2
|
export declare class NotFoundExceptionFilter implements ExceptionFilter {
|
|
3
3
|
catch(error: NotFoundException, host: ArgumentsHost): Promise<void>;
|
|
4
4
|
}
|
|
@@ -25,7 +25,7 @@ let NotFoundExceptionFilter = class NotFoundExceptionFilter {
|
|
|
25
25
|
await (0, serve_html_or_1.render404Html)(siteContext, res);
|
|
26
26
|
}
|
|
27
27
|
else {
|
|
28
|
-
(0, http_helpers_1.
|
|
28
|
+
(0, http_helpers_1.serve404SimpleHtml)(res);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
catch (error) {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initialisePlugins = void 0;
|
|
4
|
+
const liquidjs_filter_1 = require("../liquidjs-tools/liquidjs-filter");
|
|
5
|
+
function initialisePlugins(siteContext, plugins) {
|
|
6
|
+
const api = createPluginApi(siteContext);
|
|
7
|
+
for (const { plugin, pluginName } of plugins) {
|
|
8
|
+
try {
|
|
9
|
+
plugin.siteInit?.(api);
|
|
10
|
+
}
|
|
11
|
+
catch (error) {
|
|
12
|
+
siteContext.siteLog.error(`Failed initializing plugin '${pluginName}'`);
|
|
13
|
+
throw error;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.initialisePlugins = initialisePlugins;
|
|
18
|
+
function createPluginApi(siteContext) {
|
|
19
|
+
const { liquidEngine } = siteContext;
|
|
20
|
+
return {
|
|
21
|
+
registerLiquidFilter(filterName, handler, options) {
|
|
22
|
+
liquidEngine.registerFilter(filterName, {
|
|
23
|
+
handler: (0, liquidjs_filter_1.toLiquidJsFilterHandler)(siteContext, handler),
|
|
24
|
+
raw: options?.raw ?? false,
|
|
25
|
+
});
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=plugin-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-api.js","sourceRoot":"","sources":["../../src/plugins/plugin-api.ts"],"names":[],"mappings":";;;AACA,uEAA4E;AAI5E,SAAgB,iBAAiB,CAAC,WAAwB,EAAE,OAAiB;IAC3E,MAAM,GAAG,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC;IACzC,KAAK,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,OAAO,EAAE,CAAC;QAC7C,IAAI,CAAC;YACH,MAAM,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC;QACzB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,+BAA+B,UAAU,GAAG,CAAC,CAAC;YACxE,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;AACH,CAAC;AAVD,8CAUC;AAED,SAAS,eAAe,CAAC,WAAwB;IAC/C,MAAM,EAAE,YAAY,EAAE,GAAG,WAAW,CAAC;IAErC,OAAO;QACL,oBAAoB,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO;YAC/C,YAAY,CAAC,cAAc,CAAC,UAAU,EAAE;gBACtC,OAAO,EAAE,IAAA,yCAAuB,EAAC,WAAW,EAAE,OAAO,CAAC;gBACtD,GAAG,EAAE,OAAO,EAAE,GAAG,IAAI,KAAK;aAC3B,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ParoiCmsPlugin } from "@paroicms/plugin-lib";
|
|
2
|
+
import type { SiteConf } from "../site-context/site-conf";
|
|
3
|
+
export interface Plugin {
|
|
4
|
+
pluginName: string;
|
|
5
|
+
plugin: ParoiCmsPlugin;
|
|
6
|
+
boPluginUrl: string;
|
|
7
|
+
urlPath: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function loadPlugins(siteConf: Pick<SiteConf, "siteDir" | "siteUrl">, pluginNames: string[]): Map<string, Plugin>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadPlugins = void 0;
|
|
4
|
+
const anywhere_lib_1 = require("@paroicms/anywhere-lib");
|
|
5
|
+
const context_1 = require("../context");
|
|
6
|
+
const plugin_helpers_1 = require("./plugin.helpers");
|
|
7
|
+
const importedPlugins = new Map();
|
|
8
|
+
function loadPlugins(siteConf, pluginNames) {
|
|
9
|
+
const urlProvider = createBoPluginUrlProvider(siteConf.siteUrl);
|
|
10
|
+
const map = new Map();
|
|
11
|
+
for (const pluginName of pluginNames) {
|
|
12
|
+
const plugin = getImportedPlugin(siteConf, pluginName);
|
|
13
|
+
if (plugin) {
|
|
14
|
+
const { boPluginUrl, urlPath } = urlProvider(pluginName);
|
|
15
|
+
map.set(pluginName, { pluginName, plugin, boPluginUrl, urlPath });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return map;
|
|
19
|
+
}
|
|
20
|
+
exports.loadPlugins = loadPlugins;
|
|
21
|
+
function createBoPluginUrlProvider(siteUrl) {
|
|
22
|
+
const paths = new Set();
|
|
23
|
+
return (pluginName) => {
|
|
24
|
+
const basePath = (0, plugin_helpers_1.toPluginUrlPathName)(pluginName);
|
|
25
|
+
let urlPath;
|
|
26
|
+
if (paths.has(basePath)) {
|
|
27
|
+
for (let i = 2; i < 100; ++i) {
|
|
28
|
+
const attempt = `${basePath}-${i}`;
|
|
29
|
+
if (!paths.has(attempt)) {
|
|
30
|
+
urlPath = attempt;
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
if (!urlPath)
|
|
35
|
+
throw new Error(`Too many plugins with the same name '${basePath}'`);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
urlPath = basePath;
|
|
39
|
+
}
|
|
40
|
+
paths.add(urlPath);
|
|
41
|
+
return {
|
|
42
|
+
boPluginUrl: `${siteUrl}/adm/plugins/${urlPath}`,
|
|
43
|
+
urlPath,
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function getImportedPlugin(siteConf, pluginName) {
|
|
48
|
+
const jsModuleName = (0, plugin_helpers_1.toJsModuleName)(siteConf, pluginName);
|
|
49
|
+
if (importedPlugins.has(jsModuleName)) {
|
|
50
|
+
return importedPlugins.get(jsModuleName);
|
|
51
|
+
}
|
|
52
|
+
try {
|
|
53
|
+
const plugin = require(jsModuleName);
|
|
54
|
+
checkPluginFormat(plugin);
|
|
55
|
+
importedPlugins.set(jsModuleName, plugin);
|
|
56
|
+
return plugin;
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
context_1.platformLog.error(`Invalid plugin '${pluginName}', used in '${siteConf.siteDir}': ${(0, anywhere_lib_1.messageOf)(error)}`);
|
|
60
|
+
importedPlugins.set(jsModuleName, undefined);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function checkPluginFormat(plugin) {
|
|
64
|
+
if (!plugin || typeof plugin !== "object") {
|
|
65
|
+
throw new Error("should export an object");
|
|
66
|
+
}
|
|
67
|
+
const obj = plugin;
|
|
68
|
+
if (obj.init && typeof obj.init !== "function") {
|
|
69
|
+
throw new Error("'init' should be a function");
|
|
70
|
+
}
|
|
71
|
+
if (!obj.boPluginDir || typeof obj.boPluginDir !== "string") {
|
|
72
|
+
throw new Error("'boPluginDir' should be a string");
|
|
73
|
+
}
|
|
74
|
+
if (!obj.version || typeof obj.version !== "string") {
|
|
75
|
+
throw new Error("'version' should be a string");
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=plugin-loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-loader.js","sourceRoot":"","sources":["../../src/plugins/plugin-loader.ts"],"names":[],"mappings":";;;AAAA,yDAA6D;AAE7D,wCAAyC;AAEzC,qDAAuE;AAEvE,MAAM,eAAe,GAAG,IAAI,GAAG,EAAsC,CAAC;AAStE,SAAgB,WAAW,CACzB,QAA+C,EAC/C,WAAqB;IAErB,MAAM,WAAW,GAAG,yBAAyB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAChE,MAAM,GAAG,GAAG,IAAI,GAAG,EAAkB,CAAC;IACtC,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;QACrC,MAAM,MAAM,GAAG,iBAAiB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QACvD,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,EAAE,WAAW,EAAE,OAAO,EA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0 +1,4 @@
|
|
|
1
|
+
import type { SiteConf } from "../site-context/site-conf";
|
|
2
|
+
export declare function toPluginUrlPathName(pluginName: string): string;
|
|
3
|
+
export declare function unscopePackageName(packageName: string): string;
|
|
4
|
+
export declare function toJsModuleName(siteConf: Pick<SiteConf, "siteDir" | "siteUrl">, pluginName: string): string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toJsModuleName = exports.unscopePackageName = exports.toPluginUrlPathName = void 0;
|
|
4
|
+
const anywhere_lib_1 = require("@paroicms/anywhere-lib");
|
|
5
|
+
const node_path_1 = require("node:path");
|
|
6
|
+
function toPluginUrlPathName(pluginName) {
|
|
7
|
+
if (pluginName.startsWith("site:")) {
|
|
8
|
+
return (0, anywhere_lib_1.generateSlug)(pluginName.slice(5));
|
|
9
|
+
}
|
|
10
|
+
const name = unscopePackageName(pluginName);
|
|
11
|
+
const index = name.indexOf("plugin-");
|
|
12
|
+
if (index === -1)
|
|
13
|
+
return (0, anywhere_lib_1.generateSlug)(name);
|
|
14
|
+
return (0, anywhere_lib_1.generateSlug)(name.slice(index + 7));
|
|
15
|
+
}
|
|
16
|
+
exports.toPluginUrlPathName = toPluginUrlPathName;
|
|
17
|
+
function unscopePackageName(packageName) {
|
|
18
|
+
const match = packageName.match(/^@[^/]+\/(.*)$/);
|
|
19
|
+
if (!match)
|
|
20
|
+
return packageName;
|
|
21
|
+
return match[1];
|
|
22
|
+
}
|
|
23
|
+
exports.unscopePackageName = unscopePackageName;
|
|
24
|
+
function toJsModuleName(siteConf, pluginName) {
|
|
25
|
+
if (pluginName.startsWith("site:")) {
|
|
26
|
+
return (0, node_path_1.join)(siteConf.siteDir, "plugins", pluginName.slice(5), "plugin.cjs");
|
|
27
|
+
}
|
|
28
|
+
return pluginName;
|
|
29
|
+
}
|
|
30
|
+
exports.toJsModuleName = toJsModuleName;
|
|
31
|
+
//# sourceMappingURL=plugin.helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.helpers.js","sourceRoot":"","sources":["../../src/plugins/plugin.helpers.ts"],"names":[],"mappings":";;;AAAA,yDAAsD;AACtD,yCAAiC;AAGjC,SAAgB,mBAAmB,CAAC,UAAkB;IACpD,IAAI,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QACnC,OAAO,IAAA,2BAAY,EAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3C,CAAC;IACD,MAAM,IAAI,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC5C,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC,IAAI,KAAK,KAAK,CAAC,CAAC;QAAE,OAAO,IAAA,2BAAY,EAAC,IAAI,CAAC,CAAC;IAC5C,OAAO,IAAA,2BAAY,EAAC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;AAC7C,CAAC;AARD,kDAQC;AAED,SAAgB,kBAAkB,CAAC,WAAmB;IACpD,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAClD,IAAI,CAAC,KAAK;QAAE,OAAO,WAAW,CAAC;IAC/B,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAJD,gDAIC;AAED,SAAgB,cAAc,CAC5B,QAA+C,EAC/C,UAAkB;IAElB,IAAI,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QACnC,OAAO,IAAA,gBAAI,EAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;IAC9E,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AARD,wCAQC"}
|
|
@@ -28,6 +28,7 @@ const translate_filter_1 = require("../modules/public-site/liquidjs-filters/tran
|
|
|
28
28
|
const get_page_tag_1 = require("../modules/public-site/liquidjs-tags/get-page-tag");
|
|
29
29
|
const get_pages_tag_1 = require("../modules/public-site/liquidjs-tags/get-pages-tag");
|
|
30
30
|
const use_image_tag_1 = require("../modules/public-site/liquidjs-tags/use-image-tag");
|
|
31
|
+
const plugin_api_1 = require("../plugins/plugin-api");
|
|
31
32
|
const site_schema_factory_1 = require("../site-schema/site-schema-factory");
|
|
32
33
|
const db_init_1 = require("./db-init/db-init");
|
|
33
34
|
const init_routing_points_1 = require("./db-init/init-routing-points");
|
|
@@ -39,7 +40,7 @@ async function createSiteContext(siteConf) {
|
|
|
39
40
|
await (0, server_lib_1.ensureDirectory)(dataDir);
|
|
40
41
|
await (0, server_lib_1.ensureDirectory)(cacheDir);
|
|
41
42
|
await (0, server_lib_1.ensureDirectory)(backupDir);
|
|
42
|
-
const siteSchema = await (0, site_schema_factory_1.loadSiteSchema)(
|
|
43
|
+
const { siteSchema, plugins } = await (0, site_schema_factory_1.loadSiteSchema)(siteConf);
|
|
43
44
|
const { mainCn, logNextQuery } = await (0, db_init_1.createOrOpenMainCn)(siteSchema, dataDir, {
|
|
44
45
|
siteName,
|
|
45
46
|
canCreate: !!context_1.appConf.generateMissingDatabases,
|
|
@@ -132,10 +133,12 @@ async function createSiteContext(siteConf) {
|
|
|
132
133
|
themeTranslator,
|
|
133
134
|
multilingual: siteSchema.langs.length > 1,
|
|
134
135
|
themeConf,
|
|
136
|
+
plugins: new Map(plugins.map((plugin) => [plugin.urlPath, plugin])),
|
|
135
137
|
logNextQuery,
|
|
136
138
|
siteLog,
|
|
137
139
|
};
|
|
138
140
|
configureLiquidEngine(siteContext);
|
|
141
|
+
(0, plugin_api_1.initialisePlugins)(siteContext, plugins);
|
|
139
142
|
return siteContext;
|
|
140
143
|
}
|
|
141
144
|
exports.createSiteContext = createSiteContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-site-context.js","sourceRoot":"","sources":["../../src/site-context/create-site-context.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAmD;AACnD,2FAAuE;AACvE,mFAA6E;AAC7E,qDAAuD;AACvD,iFAAoG;AACpG,uCAAkC;AAClC,yCAAiC;AACjC,wCAAkD;AAClD,wDAAgE;AAChE,uEAA4E;AAC5E,mFAA8D;AAC9D,sEAAsE;AACtE,qFAA+F;AAC/F,yFAAmG;AACnG,qFAAyF;AACzF,uGAAgH;AAChH,2GAAqG;AACrG,uFAAiG;AACjG,iFAG2D;AAC3D,iGAA8G;AAC9G,+FAAmG;AACnG,oFAA6F;AAC7F,sFAA+F;AAC/F,sFAA+F;AAC/F,4EAAoE;AACpE,+CAAuD;AACvD,uEAAoE;AAGpE,2DAAwD;AAEjD,KAAK,UAAU,iBAAiB,CAAC,QAAkB;IACxD,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC;IAC3E,MAAM,QAAQ,GAAG,IAAA,gBAAI,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACxC,MAAM,OAAO,GAAG,qBAAW,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAErD,MAAM,IAAA,4BAAe,EAAC,OAAO,CAAC,CAAC;IAC/B,MAAM,IAAA,4BAAe,EAAC,QAAQ,CAAC,CAAC;IAChC,MAAM,IAAA,4BAAe,EAAC,SAAS,CAAC,CAAC;IAEjC,MAAM,UAAU,GAAG,MAAM,IAAA,oCAAc,EAAC,
|
|
1
|
+
{"version":3,"file":"create-site-context.js","sourceRoot":"","sources":["../../src/site-context/create-site-context.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAmD;AACnD,2FAAuE;AACvE,mFAA6E;AAC7E,qDAAuD;AACvD,iFAAoG;AACpG,uCAAkC;AAClC,yCAAiC;AACjC,wCAAkD;AAClD,wDAAgE;AAChE,uEAA4E;AAC5E,mFAA8D;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
|
|
6
6
|
import type { DataSource } from "typeorm";
|
|
7
7
|
import type { SimpleTranslator } from "../helpers/simple-i18n";
|
|
8
|
+
import type { Plugin } from "../plugins/plugin-loader";
|
|
8
9
|
import type { AppLog } from "../share/pino-app-log";
|
|
9
10
|
import type { ThemeConf } from "./theme-conf-types";
|
|
10
11
|
export interface SiteContext {
|
|
@@ -27,6 +28,7 @@ export interface SiteContext {
|
|
|
27
28
|
themeTranslator: SimpleTranslator;
|
|
28
29
|
multilingual: boolean;
|
|
29
30
|
themeConf: ThemeConf;
|
|
31
|
+
plugins: Map<string, Plugin>;
|
|
30
32
|
logNextQuery: (count?: number) => void;
|
|
31
33
|
siteLog: AppLog;
|
|
32
34
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { type Plugin } from "../plugins/plugin-loader";
|
|
2
|
+
import type { SiteConf } from "../site-context/site-conf";
|
|
1
3
|
import type { JsonOfFieldType, JsonOfImageCompressionQualityPolicy, JsonOfMediaPolicy, JsonOfModuleDocumentType, JsonOfPartSchema } from "../typeonly/site-schema-json-types";
|
|
2
4
|
import type { CommonSchema } from "./common-schema-reader";
|
|
3
5
|
import { type GroupedLabelLocales } from "./read-locales";
|
|
4
6
|
import type { SiteSchemaLibrary } from "./site-schema-lib-reader";
|
|
5
7
|
export interface MergedSchemaLib {
|
|
6
8
|
common: CommonSchema;
|
|
9
|
+
plugins?: Map<string, Plugin> | undefined;
|
|
7
10
|
module: {
|
|
8
11
|
siteFieldLib: {
|
|
9
12
|
[fieldName: string]: JsonOfFieldType;
|
|
@@ -27,4 +30,10 @@ export interface MergedSchemaLib {
|
|
|
27
30
|
};
|
|
28
31
|
l10n: GroupedLabelLocales;
|
|
29
32
|
}
|
|
30
|
-
export declare function prepareLib(
|
|
33
|
+
export declare function prepareLib({ siteConf, initialUseModules, initialUsePlugins, siteSchemaLib, langs, }: {
|
|
34
|
+
siteConf: Pick<SiteConf, "siteDir" | "siteUrl">;
|
|
35
|
+
initialUseModules: string[] | undefined;
|
|
36
|
+
initialUsePlugins: string[] | undefined;
|
|
37
|
+
siteSchemaLib: SiteSchemaLibrary;
|
|
38
|
+
langs: string[];
|
|
39
|
+
}): MergedSchemaLib;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.prepareLib = void 0;
|
|
4
|
+
const plugin_loader_1 = require("../plugins/plugin-loader");
|
|
4
5
|
const read_locales_1 = require("./read-locales");
|
|
5
|
-
function prepareLib(
|
|
6
|
+
function prepareLib({ siteConf, initialUseModules, initialUsePlugins, siteSchemaLib, langs, }) {
|
|
7
|
+
const { useModules: allUseModules, usePlugins } = getAllUseModulesAndPlugins({
|
|
8
|
+
initialUseModules,
|
|
9
|
+
initialUsePlugins,
|
|
10
|
+
siteSchemaLib,
|
|
11
|
+
});
|
|
12
|
+
const plugins = usePlugins ? (0, plugin_loader_1.loadPlugins)(siteConf, Array.from(usePlugins)) : undefined;
|
|
6
13
|
const result = {
|
|
7
14
|
common: siteSchemaLib.common,
|
|
15
|
+
plugins,
|
|
8
16
|
module: {
|
|
9
17
|
siteFieldLib: {},
|
|
10
18
|
sectionFieldLib: {},
|
|
@@ -14,9 +22,6 @@ function prepareLib(useModules, siteSchemaLib, langs) {
|
|
|
14
22
|
},
|
|
15
23
|
l10n: (0, read_locales_1.createEmptyGroupedLabelLocales)(langs),
|
|
16
24
|
};
|
|
17
|
-
if (!useModules)
|
|
18
|
-
return result;
|
|
19
|
-
const allUseModules = getAllUseModules(useModules, siteSchemaLib);
|
|
20
25
|
for (const moduleName of allUseModules) {
|
|
21
26
|
const modLib = siteSchemaLib.modules[moduleName];
|
|
22
27
|
if (!modLib)
|
|
@@ -83,13 +88,19 @@ function containsAllLangs(requiredLangs, langsToCheck) {
|
|
|
83
88
|
}
|
|
84
89
|
return true;
|
|
85
90
|
}
|
|
86
|
-
function
|
|
87
|
-
const result = [...
|
|
91
|
+
function getAllUseModulesAndPlugins({ initialUseModules, initialUsePlugins, siteSchemaLib, }) {
|
|
92
|
+
const result = initialUseModules ? [...initialUseModules] : [];
|
|
88
93
|
const processed = new Set();
|
|
89
|
-
|
|
90
|
-
|
|
94
|
+
const usePlugins = new Set(initialUsePlugins);
|
|
95
|
+
if (initialUseModules) {
|
|
96
|
+
walkUseModules(initialUseModules, siteSchemaLib, result, processed, usePlugins);
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
useModules: result.length !== processed.size ? dedup(result) : result,
|
|
100
|
+
usePlugins,
|
|
101
|
+
};
|
|
91
102
|
}
|
|
92
|
-
function walkUseModules(useModules, siteSchemaLib, result, processed) {
|
|
103
|
+
function walkUseModules(useModules, siteSchemaLib, result, processed, usePlugins) {
|
|
93
104
|
for (const moduleName of useModules) {
|
|
94
105
|
if (processed.has(moduleName))
|
|
95
106
|
continue;
|
|
@@ -97,11 +108,12 @@ function walkUseModules(useModules, siteSchemaLib, result, processed) {
|
|
|
97
108
|
const modLib = siteSchemaLib.modules[moduleName];
|
|
98
109
|
if (!modLib)
|
|
99
110
|
throw new Error(`unknown module '${moduleName}'`);
|
|
111
|
+
modLib.module.usePlugins?.forEach((pluginName) => usePlugins.add(pluginName));
|
|
100
112
|
const childUseModules = modLib.module.useModules;
|
|
101
113
|
if (!childUseModules)
|
|
102
114
|
continue;
|
|
103
115
|
result.push(...childUseModules);
|
|
104
|
-
walkUseModules(childUseModules, siteSchemaLib, result, processed);
|
|
116
|
+
walkUseModules(childUseModules, siteSchemaLib, result, processed, usePlugins);
|
|
105
117
|
}
|
|
106
118
|
}
|
|
107
119
|
function dedup(arr) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merged-schema-lib.js","sourceRoot":"","sources":["../../src/site-schema/merged-schema-lib.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"merged-schema-lib.js","sourceRoot":"","sources":["../../src/site-schema/merged-schema-lib.ts"],"names":[],"mappings":";;;AAAA,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E,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC;QAC9E,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;QACjD,IAAI,CAAC,eAAe;YAAE,SAAS;QAC/B,MAAM,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,CAAC;QAChC,cAAc,CAAC,eAAe,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;IAChF,CAAC;AACH,CAAC;AAED,SAAS,KAAK,CAAI,GAAQ;IACxB,MAAM,SAAS,GAAG,IAAI,GAAG,EAAK,CAAC;IAC/B,MAAM,MAAM,GAAQ,EAAE,CAAC;IACvB,KAAK,MAAM,IAAI,IAAI,GAAG,EAAE,CAAC;QACvB,IAAI,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC;YAAE,SAAS;QAClC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { SiteSchema } from "@paroicms/anywhere-lib";
|
|
2
|
-
|
|
2
|
+
import type { Plugin } from "../plugins/plugin-loader";
|
|
3
|
+
import type { SiteConf } from "../site-context/site-conf";
|
|
4
|
+
export declare function loadSiteSchema(siteConf: Pick<SiteConf, "siteDir" | "siteUrl">): Promise<{
|
|
5
|
+
siteSchema: SiteSchema;
|
|
6
|
+
plugins: Plugin[];
|
|
7
|
+
}>;
|
|
@@ -11,9 +11,15 @@ const read_locales_1 = require("./read-locales");
|
|
|
11
11
|
const site_schema_helpers_1 = require("./site-schema-helpers");
|
|
12
12
|
const authorizedClassicRoute = new Set([":relativeId-:slug", ":yyyy/:mm/:dd/:relativeId-:slug"]);
|
|
13
13
|
const invalidFieldNames = ["featuredImage", "boFavicon"];
|
|
14
|
-
async function loadSiteSchema(
|
|
15
|
-
const jsonData = await readJsonOfSiteSchema((0, node_path_1.join)(siteDir, "site-schema.json"));
|
|
16
|
-
const lib = (0, merged_schema_lib_1.prepareLib)(
|
|
14
|
+
async function loadSiteSchema(siteConf) {
|
|
15
|
+
const jsonData = await readJsonOfSiteSchema((0, node_path_1.join)(siteConf.siteDir, "site-schema.json"));
|
|
16
|
+
const lib = (0, merged_schema_lib_1.prepareLib)({
|
|
17
|
+
siteConf,
|
|
18
|
+
initialUseModules: jsonData.useModules,
|
|
19
|
+
initialUsePlugins: jsonData.usePlugins,
|
|
20
|
+
siteSchemaLib: (0, context_1.getSiteSchemaLib)(),
|
|
21
|
+
langs: jsonData.langs,
|
|
22
|
+
});
|
|
17
23
|
const l10n = (0, read_locales_1.createEmptySchemaLocales)(jsonData.langs);
|
|
18
24
|
(0, read_locales_1.importPartOfL10n)({
|
|
19
25
|
from: lib.common.l10n,
|
|
@@ -28,7 +34,7 @@ async function loadSiteSchema(siteDir) {
|
|
|
28
34
|
const jsonSiteFields = jsonData.site?.fields ?? lib.module.site?.fields;
|
|
29
35
|
const siteFields = jsonSiteFields === undefined
|
|
30
36
|
? []
|
|
31
|
-
: jsonSiteFields.map((item) => typeof item === "string" ? importSiteField(item, l10n, lib) : item);
|
|
37
|
+
: jsonSiteFields.map((item) => typeof item === "string" ? importSiteField(item, l10n, lib) : toFieldType(item, lib));
|
|
32
38
|
checkFieldNames(siteFields, { common: lib.common, type: "site" });
|
|
33
39
|
if (jsonData.langs.length === 0)
|
|
34
40
|
throw new Error("missing langs in site-schema");
|
|
@@ -54,9 +60,9 @@ async function loadSiteSchema(siteDir) {
|
|
|
54
60
|
};
|
|
55
61
|
importMediaPolicy(newSchema, lib, "default", { ensureImagePolicy: true });
|
|
56
62
|
appendDocumentTypesToSiteSchema(jsonData, newSchema, lib);
|
|
57
|
-
await (0, read_locales_1.completeSchemaLocales)(siteDir, l10n);
|
|
63
|
+
await (0, read_locales_1.completeSchemaLocales)(siteConf.siteDir, l10n);
|
|
58
64
|
checkRoutingPointDocumentTypes(newSchema);
|
|
59
|
-
return newSchema;
|
|
65
|
+
return { siteSchema: newSchema, plugins: Array.from(lib.plugins?.values() ?? []) };
|
|
60
66
|
}
|
|
61
67
|
exports.loadSiteSchema = loadSiteSchema;
|
|
62
68
|
function appendDocumentTypesToSiteSchema(jsonData, newSchema, lib) {
|
|
@@ -116,7 +122,7 @@ function toDocumentSchema({ newSchema, jsonData, langs, lib, }) {
|
|
|
116
122
|
fillL10nPath: ["documentTypes", jsonData.leafType, "fields"],
|
|
117
123
|
lib,
|
|
118
124
|
})
|
|
119
|
-
: item);
|
|
125
|
+
: toFieldType(item, lib));
|
|
120
126
|
if (fields)
|
|
121
127
|
checkFieldNames(fields, { common: lib.common, type: "document" });
|
|
122
128
|
if (isRoutingPoint)
|
|
@@ -249,7 +255,7 @@ function toPartType(jsonData, l10n, lib) {
|
|
|
249
255
|
fillL10nPath: ["partTypes", jsonData.leafType, "fields"],
|
|
250
256
|
lib,
|
|
251
257
|
})
|
|
252
|
-
: item);
|
|
258
|
+
: toFieldType(item, lib));
|
|
253
259
|
if (fields)
|
|
254
260
|
checkFieldNames(fields, { common: lib.common, type: "part" });
|
|
255
261
|
return {
|
|
@@ -329,9 +335,10 @@ async function readJsonOfSiteSchema(file) {
|
|
|
329
335
|
return data;
|
|
330
336
|
}
|
|
331
337
|
function importSiteField(fieldName, fillL10n, lib) {
|
|
332
|
-
|
|
333
|
-
if (!field)
|
|
338
|
+
if (!(fieldName in lib.module.siteFieldLib)) {
|
|
334
339
|
throw new Error(`unknown site-field '${fieldName}'`);
|
|
340
|
+
}
|
|
341
|
+
const field = toFieldType(lib.module.siteFieldLib[fieldName], lib);
|
|
335
342
|
(0, read_locales_1.importPartOfL10n)({
|
|
336
343
|
from: lib.l10n,
|
|
337
344
|
fromPath: ["siteFieldLib", fieldName],
|
|
@@ -341,9 +348,10 @@ function importSiteField(fieldName, fillL10n, lib) {
|
|
|
341
348
|
return field;
|
|
342
349
|
}
|
|
343
350
|
function importSectionField({ fieldName, fillL10n, fillL10nPath, lib, }) {
|
|
344
|
-
|
|
345
|
-
if (!field)
|
|
351
|
+
if (!(fieldName in lib.module.sectionFieldLib)) {
|
|
346
352
|
throw new Error(`unknown section-field '${fieldName}'`);
|
|
353
|
+
}
|
|
354
|
+
const field = toFieldType(lib.module.sectionFieldLib[fieldName], lib);
|
|
347
355
|
(0, read_locales_1.importPartOfL10n)({
|
|
348
356
|
from: lib.l10n,
|
|
349
357
|
fromPath: ["sectionFieldLib", fieldName],
|
|
@@ -352,6 +360,20 @@ function importSectionField({ fieldName, fillL10n, fillL10nPath, lib, }) {
|
|
|
352
360
|
});
|
|
353
361
|
return field;
|
|
354
362
|
}
|
|
363
|
+
function toFieldType(jsonData, lib) {
|
|
364
|
+
const { plugin, ...rawField } = jsonData;
|
|
365
|
+
const field = rawField;
|
|
366
|
+
if (plugin) {
|
|
367
|
+
field.boPluginUrl = toBoPluginUrl(plugin, lib.plugins);
|
|
368
|
+
}
|
|
369
|
+
return field;
|
|
370
|
+
}
|
|
371
|
+
function toBoPluginUrl(pluginName, plugins) {
|
|
372
|
+
const plugin = plugins?.get(pluginName);
|
|
373
|
+
if (!plugin)
|
|
374
|
+
throw new Error(`plugin '${pluginName}' is not referenced in 'usePlugins'`);
|
|
375
|
+
return plugin.boPluginUrl;
|
|
376
|
+
}
|
|
355
377
|
function makeLangLabels(langs, langLabelsLib) {
|
|
356
378
|
const newLabels = {};
|
|
357
379
|
for (const lang of langs) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-schema-factory.js","sourceRoot":"","sources":["../../src/site-schema/site-schema-factory.ts"],"names":[],"mappings":";;;AAAA,oEAAoD;AAWpD,+CAA4C;AAC5C,yCAAiC;AACjC,wCAAyE;AACzE,0DAA6D;AAS7D,2DAAuE;AACvE,iDAAmG;AACnG,+DAK+B;AAE/B,MAAM,sBAAsB,GAAG,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KAAK,CAAC,0BAA0B,QAAQ,GAAG,CAAC,CAAC;IACtE,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,eAAe,CACtB,MAA0B,EAC1B,EAAE,MAAM,EAAE,IAAI,EAAgE;IAE9E,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;IAC3B,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1F,MAAM,YAAY,GAChB,IAAI,KAAK,MAAM;QACb,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;QAC7C,CAAC,CAAC,IAAI,KAAK,UAAU;YACnB,CAAC,CAAC,CAAC,OAAO,CAAC;YACX,CAAC,CAAC,EAAE,CAAC;IACX,YAAY,CAAC,IAAI,CAAC,GAAG,iBAAiB,CAAC,CAAC;IACxC,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,IAAI,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,uBAAuB,WAAW,GAAG,CAAC,CAAC;IACnF,CAAC;AACH,CAAC"}
|
package/dist/types.to.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"./configuration-types":{"namedTypes":[{"name":"Configuration","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"SingleSiteConfiguration"},{"kind":"localRef","refName":"MultiSiteConfiguration"}]},{"name":"ConfigurationBase","exported":true,"kind":"interface","properties":[{"name":"thisServer","type":{"kind":"localRef","refName":"ThisServerConf"}},{"name":"log","type":{"kind":"localRef","refName":"LogConf"}},{"name":"allowRobots","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"immutableAssets","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"cacheTimeToIdle","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"literal","literal":"disabled"},{"kind":"literal","literal":"infinite"}]},"docComment":"For example: `\"14d\"`."},{"name":"clearCacheAfterStart","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"clearImageCacheAfterStart","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"graphqlDevTools","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"generateMissingDatabases","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"googleAuth","type":{"kind":"localRef","refName":"GoogleAuth"},"optional":true},{"name":"awsSesMail","type":{"kind":"localRef","refName":"AwsSesMailConf"},"optional":true},{"name":"googleRecaptcha","type":{"kind":"localRef","refName":"GoogleRecaptchaConf"},"optional":true},{"name":"imageProcessor","type":{"kind":"localRef","refName":"ImageProcessorConf"},"optional":true},{"name":"devAccount","type":{"kind":"localRef","refName":"DevAccount"},"optional":true},{"name":"platformAdminAccounts","type":{"kind":"array","itemType":{"kind":"localRef","refName":"PlatformAdminAccount"}},"optional":true}]},{"name":"SingleSiteConfiguration","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"ConfigurationBase"},{"kind":"interface","properties":[{"name":"singleSite","type":{"kind":"localRef","refName":"SingleSiteConf"}}]}]},{"name":"MultiSiteConfiguration","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"ConfigurationBase"},{"kind":"interface","properties":[{"name":"platform","type":{"kind":"interface","properties":[{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}}]}},{"name":"sitePacks","type":{"kind":"array","itemType":{"kind":"localRef","refName":"SitePackConf"}}}]}]},{"name":"ThisServerConf","exported":true,"kind":"interface","properties":[{"name":"port","type":{"kind":"name","group":"primitive","refName":"number"}},{"name":"publicPort","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"boPublicPort","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"hostName","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"name","group":"primitive","refName":"null"}]},"optional":true},{"name":"https","type":{"kind":"name","group":"primitive","refName":"boolean"}}]},{"name":"LogConf","exported":true,"kind":"interface","properties":[{"name":"level","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"silent"},{"kind":"literal","literal":"error"},{"kind":"literal","literal":"warn"},{"kind":"literal","literal":"info"},{"kind":"literal","literal":"stats"},{"kind":"literal","literal":"debug"},{"kind":"literal","literal":"trace"}]}},{"name":"file","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"Omit for stdout."}]},{"name":"SingleSiteConf","exported":true,"kind":"interface","properties":[{"name":"siteDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"cacheDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"backupDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"fqdn","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"SitePackConf","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"FqdnSitePackConf"},{"kind":"localRef","refName":"SubDomainSitePackConf"}]},{"name":"SitePackConfBase","exported":true,"kind":"interface","properties":[{"name":"packName","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"sitesDir","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true},{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"cacheDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"backupDir","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"FqdnSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveAs","type":{"kind":"literal","literal":"fqdn"}}]}]},{"name":"SubDomainSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveAs","type":{"kind":"literal","literal":"subDomain"}},{"name":"parentDomain","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},{"name":"GoogleAuth","exported":true,"kind":"interface","properties":[{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"fqdn","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"clientId","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"clientSecret","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"AwsSesMailConf","exported":true,"kind":"interface","properties":[{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"from","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"accessKeyId","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"secretAccessKey","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"region","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"GoogleRecaptchaConf","exported":true,"kind":"interface","properties":[{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"siteKey","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"secretKey","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"ImageProcessorConf","exported":true,"kind":"interface","properties":[{"name":"cpuCoresPerFile","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"oneSharpAtATime","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true}]},{"name":"DevAccount","exported":true,"kind":"interface","properties":[{"name":"email","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"password","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"PlatformAdminAccount","exported":true,"kind":"interface","properties":[{"name":"email","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},"./l10n-types":{"namedTypes":[{"name":"JsonOfLanguageSchemaLocales","exported":true,"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"sectionFieldLib","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"site","type":{"kind":"interface","properties":[{"name":"fields","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true}]},"optional":true},{"name":"documentTypes","type":{"kind":"interface","indexSignature":{"keyName":"leafType","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"partTypes","type":{"kind":"interface","indexSignature":{"keyName":"leafType","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true}]},{"name":"JsonOfLabelLocales","exported":true,"kind":"interface","indexSignature":{"keyName":"key","keyType":"string","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"localRef","refName":"JsonOfLabelLocales"}]}}}]},"./site-schema-json-types":{"namedTypes":[{"name":"JsonOfCommonSchema","exported":true,"docComment":"The common schema is currently an internal file. Here is its typing.","kind":"interface","properties":[{"name":"schemaEngineVersion","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the version of the schema engine."},{"name":"langs","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"docComment":"Specify the list of 2-letters language codes that can be used in the websites.\n\n@example [\"en\", \"fr\"]`"},{"name":"site","type":{"kind":"interface","properties":[{"name":"fields","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}}}]}}]},{"name":"JsonOfSiteSchemaBase","exported":true,"docComment":"This properties are part of a site schema, and part of the internal library as well.","kind":"interface","properties":[{"name":"schemaEngineVersion","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the version of the schema engine."},{"name":"langs","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"docComment":"Specify the list of 2-letters language codes of the website. The first language is the default language.\n\n@example `[\"en\", \"fr\"]`"},{"name":"useModules","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true,"docComment":"Allows you to load other configuration schema in module form\n@example [\"media-policies\", \"simple-page\"]"},{"name":"site","type":{"kind":"localRef","refName":"JsonOfSiteDataSchema"},"optional":true},{"name":"partTypes","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfPartSchema"}},"optional":true,"docComment":"The different parts that can be used in documents."},{"name":"mediaPolicies","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfMediaPolicy"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"Media policies"},{"name":"imageQualityPolicy","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfImageCompressionQualityPolicy"}},"optional":true,"docComment":"We can set the image compression quality here. The list must be ordered from the lowest area\nto the highest.\n@example\n```json\n{\n \"areaLimitPx\": 120000,\n \"quality\": 90\n},\n{\n \"areaLimitPx\": 750000,\n \"quality\": 80\n},\n{\n \"quality\": 70\n}\n```"}]},{"name":"JsonOfSiteDataSchema","exported":true,"kind":"interface","properties":[{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"The fields of the site. They will be added to the required fields `[\"title\", \"contactEmail\", \"favicon\", \"ogImage\"]`.\n\n@example `[\"logo\", \"slogan\", \"phone\"]`"}]},{"name":"JsonOfSiteSchema","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfSiteSchemaBase"},{"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"sectionFieldLib","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"documentTypes","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfDocumentType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"If missing, then `[\"home\"]` is taken by default."}]}]},{"name":"JsonOfSiteSchemaModule","exported":true,"docComment":"The site schema module","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfSiteSchemaBase"},{"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}},"optional":true,"docComment":"Allows you to specify the different fields to add as site properties.\n\nParoiCMS is a dynamic CMS; then it does not impose a structure regarding the\nsite configuration values. As an example of configuration data, we have the\ntitle, logo, slogan, contacts etc...\n\n@see {@link JsonOfFieldType}"},{"name":"sectionFieldLib","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}},"optional":true,"docComment":"Allows you to specify the different fields of a document\n\nThe structure of a document is not imposed. You can choose to\nhave for your document to have the following fields: title, content, media gallery.\n@see {@link JsonOfFieldType}\n@see {@link JsonOfModuleDocumentType}"},{"name":"documentTypes","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfModuleDocumentType"}},"optional":true,"docComment":"Allows you to add the different types of documents that will be handled on the site.\n@see {@link JsonOfModuleDocumentType}"}]}]},{"name":"JsonOfModuleDocumentType","exported":true,"docComment":"A document is a web page. For example, a block article, a service, or a contact page is\na document. What all these elements have in common is that they can be edited in the back-office\nand published on the public site.","kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the document type."},{"name":"route","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"interface","indexSignature":{"keyName":"lang","keyType":"string","type":{"kind":"name","group":"primitive","refName":"string"}}}]},"optional":true,"docComment":"@example\n```json\n \"route\": {\n \"en\": \"posts\",\n \"fr\": \"articles\"\n },\n```"},{"name":"relativeIdGenerator","type":{"kind":"array","itemType":{"kind":"name","group":"ts","refName":"any"}},"optional":true,"docComment":"@example `[\"default\", 6]`"},{"name":"children","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true,"docComment":"Types of children that are allowed for the document."},{"name":"childOrdering","type":{"kind":"localRef","refName":"JsonOfChildOrdering"},"optional":true,"docComment":"We define how to order the children here."},{"name":"childLimit","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"The maximum number of children."},{"name":"partLists","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfPartListSchema"}},"optional":true,"docComment":"The lists of parts in the document."},{"name":"useTaxonomies","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfUseTaxonomy"}},"optional":true,"docComment":"The list of taxonomies used in the document."},{"name":"withData","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true,"docComment":"Value `false` means that the document is just a hierarchy parent for other documents. But it\nhas no content itself."},{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"The list of fields in the document."},{"name":"mediaPolicy","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"The name of the media policy."},{"name":"ogType","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"@see[Open Graph Protocol](https://ogp.me/)\n@example `\"article\"`"},{"name":"autoPublish","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true,"docComment":"Value `true` means that the document will be automatically published without being a\ndraft before."}]},{"name":"JsonOfChildOrdering","exported":true,"docComment":"Child odering method.\n@default \"manual\"","kind":"composite","op":"union","types":[{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},{"kind":"literal","literal":"manual"},{"kind":"name","group":"primitive","refName":"string"}]},{"name":"JsonOfDocumentType","exported":true,"docComment":"Document type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfModuleDocumentType"},{"kind":"interface","properties":[{"name":"from","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfPartListSchema","exported":true,"docComment":"This is the definition of a list of parts.","kind":"interface","properties":[{"name":"listName","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the part list."},{"name":"orderBy","type":{"kind":"literal","literal":"manual"},"docComment":"Only `\"manual\"` is currently supported."},{"name":"partLeafTypes","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"docComment":"Part types that can be in the list."},{"name":"partLimit","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Maximum number of parts in the list."}]},{"name":"JsonOfPartSchema","exported":true,"docComment":"This is part schema","kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the part type."},{"name":"withData","type":{"kind":"name","group":"primitive","refName":"boolean"},"docComment":"Always `true`."},{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"The list of fields in the part."},{"name":"mediaPolicy","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"Give the name of the media policy, if there is one."}]},{"name":"JsonOfUseTaxonomy","exported":true,"docComment":"This object reprensents a link to a taxonomy. A taxonomy is a document type.","kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the taxonomy's document type."},{"name":"relation","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"single"},{"kind":"literal","literal":"multiple"}]},"docComment":"A _single_ relation means that the document can only have one term. A _multiple_ relation\nmeans that the document can have multiple terms."},{"name":"withLeadTerm","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"single"},{"kind":"literal","literal":"multiple"}]},"optional":true,"docComment":"A _lead term_ is a term that is shown first."}]},{"name":"JsonOfFieldType","exported":true,"docComment":"This is field type. It can be varchar, text, leafMedia, leafGallery.\n@see {@link JsonOfVarcharFieldType}\n@see {@link JsonOfTextFieldType}\n@see {@link JsonOfLeafMediaFieldType}\n@see {@link JsonOfLeafGalleryFieldType}","kind":"composite","op":"union","types":[{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfVarcharFieldType"},{"kind":"localRef","refName":"JsonOfTextFieldType"},{"kind":"localRef","refName":"JsonOfLeafMediaFieldType"},{"kind":"localRef","refName":"JsonOfLeafGalleryFieldType"}]}]},{"name":"JsonOfFieldTypeBase","exported":true,"docComment":"This is the base type for other types: varchar text, leafMedia, leafGallery.\n@see {@link JsonOfVarcharFieldType}\n@see {@link JsonOfTextFieldType}\n@see {@link JsonOfLeafMediaFieldType}\n@see {@link JsonOfLeafGalleryFieldType}","kind":"interface","properties":[{"name":"storedOn","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"leaf"},{"kind":"literal","literal":"section"}]},"docComment":"The field value can be attached to\n- `leaf`: all the translations of the same document will share the same value\n- `section`: each translation will have its own value."},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"The field name."},{"name":"componentUri","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]},{"name":"JsonOfVarcharFieldType","exported":true,"docComment":"This is the base type for data varchar types: stringVarchar, numberVarchar, booleanVarchar\n@see {@link JsonOfStringVarcharFieldType}\n@see {@link JsonOfNumberVarcharFieldType}\n@see {@link JsonOfBooleanVarcharFieldType}","kind":"composite","op":"union","types":[{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfStringVarcharFieldType"},{"kind":"localRef","refName":"JsonOfNumberVarcharFieldType"},{"kind":"localRef","refName":"JsonOfBooleanVarcharFieldType"}]}]},{"name":"JsonOfStringVarcharFieldType","exported":true,"docComment":"This is string type with varchar data type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"string"}}]}]},{"name":"JsonOfNumberVarcharFieldType","exported":true,"docComment":"This is number type with varchar data type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"number"}},{"name":"currency","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"@example `\"EUR\"`"}]}]},{"name":"JsonOfBooleanVarcharFieldType","exported":true,"docComment":"This is boolean type with varchar data type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"boolean"}}]}]},{"name":"JsonOfTextFieldType","exported":true,"docComment":"@see {@link JsonOfFTextFieldType}\n@see {@link JsonOfJsonFieldType}","kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFTextFieldType"},{"kind":"localRef","refName":"JsonOfJsonFieldType"}]},{"name":"JsonOfFTextFieldType","exported":true,"docComment":"Formatted Text field (with HTML content).","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"text"}},{"name":"dataType","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"quillDelta"},{"kind":"literal","literal":"html"}]}},{"name":"useAsExcerpt","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"},{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"},{"name":"withGallery","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true,"docComment":"\n@example"},{"name":"backOffice","type":{"kind":"localRef","refName":"JsonOfFTextFieldBackOffice"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfJsonFieldType","exported":true,"docComment":"This is JSON type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"text"}},{"name":"dataType","type":{"kind":"literal","literal":"json"}}]}]},{"name":"JsonOfFTextFieldBackOffice","exported":true,"docComment":"This is the back office properties of a formatted text field (ie. a text editor).","kind":"interface","properties":[{"name":"editorRows","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true}]},{"name":"JsonOfGalleryFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"mediaHandle"}},{"name":"dataType","type":{"kind":"literal","literal":"gallery"}},{"name":"accept","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"refuse","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfLeafGalleryFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfGalleryFieldType"},{"kind":"interface","properties":[{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfMediaFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"mediaHandle"},"docComment":"\n@example"},{"name":"dataType","type":{"kind":"literal","literal":"media"},"docComment":"\n@example"},{"name":"accept","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"\n@example"},{"name":"refuse","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfLeafMediaFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfMediaFieldType"},{"kind":"interface","properties":[{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfMediaPolicy","exported":true,"docComment":"These properties define the rules that are applied to medias.","kind":"interface","properties":[{"name":"policyName","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"The internal name of the policy.\n@example `\"myPolicyName\"`"},{"name":"mediaLimitPerDocument","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Max media limit uploaded in a document.\n@example `10`"},{"name":"mediaLimitPerPart","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Max media limit uploaded in a part.\n@example `10`"},{"name":"attachedDocument","type":{"kind":"localRef","refName":"JsonOfAttachedDocumentPolicy"},"optional":true,"docComment":"Rules about non-image medias (like PDF files)."},{"name":"image","type":{"kind":"localRef","refName":"JsonOfImagePolicy"},"optional":true,"docComment":"Rules about images."}]},{"name":"JsonOfAttachedDocumentPolicy","exported":true,"docComment":"These properties define the rules that are applied to\ndocument uploaded in document and document part","kind":"interface","properties":[{"name":"siteWeightLimitB","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Size limit in bytes.\n@example `2000000`"}]},{"name":"JsonOfImagePolicy","exported":true,"docComment":"These properties define the rules that are applied to\nimages contained in document and document part","kind":"interface","properties":[{"name":"weightLimitB","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Size limit in bytes.\n@example `2000000`"},{"name":"areaLimitPx","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Maximum area (width × height, in pixels) of an image.\n@example `2000000`"}]},{"name":"JsonOfImageCompressionQualityPolicy","exported":true,"docComment":"These properties define the rules applied to image\ncompression across all sites","kind":"interface","properties":[{"name":"areaLimitPx","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"The quality will apply for image with area smaller than this value.\n@example `600000`"},{"name":"quality","type":{"kind":"name","group":"primitive","refName":"number"},"docComment":"Webp quality loss, in percents.\n@example `80`"}]}]},"./theme-json-types":{"namedTypes":[{"name":"JsonOfThemeConf","exported":true,"kind":"interface","properties":[{"name":"fTextImages","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}}}]}]}}
|
|
1
|
+
{"./configuration-types":{"namedTypes":[{"name":"Configuration","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"SingleSiteConfiguration"},{"kind":"localRef","refName":"MultiSiteConfiguration"}]},{"name":"ConfigurationBase","exported":true,"kind":"interface","properties":[{"name":"thisServer","type":{"kind":"localRef","refName":"ThisServerConf"}},{"name":"log","type":{"kind":"localRef","refName":"LogConf"}},{"name":"allowRobots","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"immutableAssets","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"cacheTimeToIdle","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"literal","literal":"disabled"},{"kind":"literal","literal":"infinite"}]},"docComment":"For example: `\"14d\"`."},{"name":"clearCacheAfterStart","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"clearImageCacheAfterStart","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"graphqlDevTools","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"generateMissingDatabases","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"googleAuth","type":{"kind":"localRef","refName":"GoogleAuth"},"optional":true},{"name":"awsSesMail","type":{"kind":"localRef","refName":"AwsSesMailConf"},"optional":true},{"name":"googleRecaptcha","type":{"kind":"localRef","refName":"GoogleRecaptchaConf"},"optional":true},{"name":"imageProcessor","type":{"kind":"localRef","refName":"ImageProcessorConf"},"optional":true},{"name":"devAccount","type":{"kind":"localRef","refName":"DevAccount"},"optional":true},{"name":"platformAdminAccounts","type":{"kind":"array","itemType":{"kind":"localRef","refName":"PlatformAdminAccount"}},"optional":true}]},{"name":"SingleSiteConfiguration","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"ConfigurationBase"},{"kind":"interface","properties":[{"name":"singleSite","type":{"kind":"localRef","refName":"SingleSiteConf"}}]}]},{"name":"MultiSiteConfiguration","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"ConfigurationBase"},{"kind":"interface","properties":[{"name":"platform","type":{"kind":"interface","properties":[{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}}]}},{"name":"sitePacks","type":{"kind":"array","itemType":{"kind":"localRef","refName":"SitePackConf"}}}]}]},{"name":"ThisServerConf","exported":true,"kind":"interface","properties":[{"name":"port","type":{"kind":"name","group":"primitive","refName":"number"}},{"name":"publicPort","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"boPublicPort","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"hostName","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"name","group":"primitive","refName":"null"}]},"optional":true},{"name":"https","type":{"kind":"name","group":"primitive","refName":"boolean"}}]},{"name":"LogConf","exported":true,"kind":"interface","properties":[{"name":"level","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"silent"},{"kind":"literal","literal":"error"},{"kind":"literal","literal":"warn"},{"kind":"literal","literal":"info"},{"kind":"literal","literal":"stats"},{"kind":"literal","literal":"debug"},{"kind":"literal","literal":"trace"}]}},{"name":"file","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"Omit for stdout."}]},{"name":"SingleSiteConf","exported":true,"kind":"interface","properties":[{"name":"siteDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"cacheDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"backupDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"fqdn","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"SitePackConf","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"FqdnSitePackConf"},{"kind":"localRef","refName":"SubDomainSitePackConf"}]},{"name":"SitePackConfBase","exported":true,"kind":"interface","properties":[{"name":"packName","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"sitesDir","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true},{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"cacheDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"backupDir","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"FqdnSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveAs","type":{"kind":"literal","literal":"fqdn"}}]}]},{"name":"SubDomainSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveAs","type":{"kind":"literal","literal":"subDomain"}},{"name":"parentDomain","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},{"name":"GoogleAuth","exported":true,"kind":"interface","properties":[{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"fqdn","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"clientId","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"clientSecret","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"AwsSesMailConf","exported":true,"kind":"interface","properties":[{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"from","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"accessKeyId","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"secretAccessKey","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"region","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"GoogleRecaptchaConf","exported":true,"kind":"interface","properties":[{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"siteKey","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"secretKey","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"ImageProcessorConf","exported":true,"kind":"interface","properties":[{"name":"cpuCoresPerFile","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"oneSharpAtATime","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true}]},{"name":"DevAccount","exported":true,"kind":"interface","properties":[{"name":"email","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"password","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"PlatformAdminAccount","exported":true,"kind":"interface","properties":[{"name":"email","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},"./l10n-types":{"namedTypes":[{"name":"JsonOfLanguageSchemaLocales","exported":true,"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"sectionFieldLib","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"site","type":{"kind":"interface","properties":[{"name":"fields","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true}]},"optional":true},{"name":"documentTypes","type":{"kind":"interface","indexSignature":{"keyName":"leafType","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"partTypes","type":{"kind":"interface","indexSignature":{"keyName":"leafType","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true}]},{"name":"JsonOfLabelLocales","exported":true,"kind":"interface","indexSignature":{"keyName":"key","keyType":"string","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"localRef","refName":"JsonOfLabelLocales"}]}}}]},"./site-schema-json-types":{"namedTypes":[{"name":"JsonOfCommonSchema","exported":true,"docComment":"The common schema is currently an internal file. Here is its typing.","kind":"interface","properties":[{"name":"schemaEngineVersion","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the version of the schema engine."},{"name":"langs","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"docComment":"Specify the list of 2-letters language codes that can be used in the websites.\n\n@example [\"en\", \"fr\"]`"},{"name":"site","type":{"kind":"interface","properties":[{"name":"fields","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}}}]}}]},{"name":"JsonOfSiteSchemaBase","exported":true,"docComment":"This properties are part of a site schema, and part of the internal library as well.","kind":"interface","properties":[{"name":"schemaEngineVersion","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the version of the schema engine."},{"name":"langs","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"docComment":"Specify the list of 2-letters language codes of the website. The first language is the default language.\n\n@example `[\"en\", \"fr\"]`"},{"name":"usePlugins","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true,"docComment":"List of plugins that are used in the schema.\n@example [\"site:video\"]"},{"name":"useModules","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true,"docComment":"Allows you to load other configuration schema in module form\n@example [\"media-policies\", \"simple-page\"]"},{"name":"site","type":{"kind":"localRef","refName":"JsonOfSiteDataSchema"},"optional":true},{"name":"partTypes","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfPartSchema"}},"optional":true,"docComment":"The different parts that can be used in documents."},{"name":"mediaPolicies","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfMediaPolicy"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"Media policies"},{"name":"imageQualityPolicy","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfImageCompressionQualityPolicy"}},"optional":true,"docComment":"We can set the image compression quality here. The list must be ordered from the lowest area\nto the highest.\n@example\n```json\n{\n \"areaLimitPx\": 120000,\n \"quality\": 90\n},\n{\n \"areaLimitPx\": 750000,\n \"quality\": 80\n},\n{\n \"quality\": 70\n}\n```"}]},{"name":"JsonOfSiteDataSchema","exported":true,"kind":"interface","properties":[{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"The fields of the site. They will be added to the required fields `[\"title\", \"contactEmail\", \"favicon\", \"ogImage\"]`.\n\n@example `[\"logo\", \"slogan\", \"phone\"]`"}]},{"name":"JsonOfSiteSchema","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfSiteSchemaBase"},{"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"sectionFieldLib","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"documentTypes","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfDocumentType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"If missing, then `[\"home\"]` is taken by default."}]}]},{"name":"JsonOfSiteSchemaModule","exported":true,"docComment":"The site schema module","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfSiteSchemaBase"},{"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}},"optional":true,"docComment":"Allows you to specify the different fields to add as site properties.\n\nParoiCMS is a dynamic CMS; then it does not impose a structure regarding the\nsite configuration values. As an example of configuration data, we have the\ntitle, logo, slogan, contacts etc...\n\n@see {@link JsonOfFieldType}"},{"name":"sectionFieldLib","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}},"optional":true,"docComment":"Allows you to specify the different fields of a document\n\nThe structure of a document is not imposed. You can choose to\nhave for your document to have the following fields: title, content, media gallery.\n@see {@link JsonOfFieldType}\n@see {@link JsonOfModuleDocumentType}"},{"name":"documentTypes","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfModuleDocumentType"}},"optional":true,"docComment":"Allows you to add the different types of documents that will be handled on the site.\n@see {@link JsonOfModuleDocumentType}"}]}]},{"name":"JsonOfModuleDocumentType","exported":true,"docComment":"A document is a web page. For example, a block article, a service, or a contact page is\na document. What all these elements have in common is that they can be edited in the back-office\nand published on the public site.","kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the document type."},{"name":"route","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"interface","indexSignature":{"keyName":"lang","keyType":"string","type":{"kind":"name","group":"primitive","refName":"string"}}}]},"optional":true,"docComment":"@example\n```json\n \"route\": {\n \"en\": \"posts\",\n \"fr\": \"articles\"\n },\n```"},{"name":"relativeIdGenerator","type":{"kind":"array","itemType":{"kind":"name","group":"ts","refName":"any"}},"optional":true,"docComment":"@example `[\"default\", 6]`"},{"name":"children","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true,"docComment":"Types of children that are allowed for the document."},{"name":"childOrdering","type":{"kind":"localRef","refName":"JsonOfChildOrdering"},"optional":true,"docComment":"We define how to order the children here."},{"name":"childLimit","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"The maximum number of children."},{"name":"partLists","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfPartListSchema"}},"optional":true,"docComment":"The lists of parts in the document."},{"name":"useTaxonomies","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfUseTaxonomy"}},"optional":true,"docComment":"The list of taxonomies used in the document."},{"name":"withData","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true,"docComment":"Value `false` means that the document is just a hierarchy parent for other documents. But it\nhas no content itself."},{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"The list of fields in the document."},{"name":"mediaPolicy","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"The name of the media policy."},{"name":"ogType","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"@see[Open Graph Protocol](https://ogp.me/)\n@example `\"article\"`"},{"name":"autoPublish","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true,"docComment":"Value `true` means that the document will be automatically published without being a\ndraft before."}]},{"name":"JsonOfChildOrdering","exported":true,"docComment":"Child odering method.\n@default \"manual\"","kind":"composite","op":"union","types":[{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},{"kind":"literal","literal":"manual"},{"kind":"name","group":"primitive","refName":"string"}]},{"name":"JsonOfDocumentType","exported":true,"docComment":"Document type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfModuleDocumentType"},{"kind":"interface","properties":[{"name":"from","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfPartListSchema","exported":true,"docComment":"This is the definition of a list of parts.","kind":"interface","properties":[{"name":"listName","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the part list."},{"name":"orderBy","type":{"kind":"literal","literal":"manual"},"docComment":"Only `\"manual\"` is currently supported."},{"name":"partLeafTypes","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"docComment":"Part types that can be in the list."},{"name":"partLimit","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Maximum number of parts in the list."}]},{"name":"JsonOfPartSchema","exported":true,"docComment":"This is part schema","kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the part type."},{"name":"withData","type":{"kind":"name","group":"primitive","refName":"boolean"},"docComment":"Always `true`."},{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"The list of fields in the part."},{"name":"mediaPolicy","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"Give the name of the media policy, if there is one."}]},{"name":"JsonOfUseTaxonomy","exported":true,"docComment":"This object reprensents a link to a taxonomy. A taxonomy is a document type.","kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the taxonomy's document type."},{"name":"relation","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"single"},{"kind":"literal","literal":"multiple"}]},"docComment":"A _single_ relation means that the document can only have one term. A _multiple_ relation\nmeans that the document can have multiple terms."},{"name":"withLeadTerm","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"single"},{"kind":"literal","literal":"multiple"}]},"optional":true,"docComment":"A _lead term_ is a term that is shown first."}]},{"name":"JsonOfFieldType","exported":true,"docComment":"This is field type. It can be varchar, text, leafMedia, leafGallery.\n@see {@link JsonOfVarcharFieldType}\n@see {@link JsonOfTextFieldType}\n@see {@link JsonOfLeafMediaFieldType}\n@see {@link JsonOfLeafGalleryFieldType}","kind":"composite","op":"union","types":[{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfVarcharFieldType"},{"kind":"localRef","refName":"JsonOfTextFieldType"},{"kind":"localRef","refName":"JsonOfLeafMediaFieldType"},{"kind":"localRef","refName":"JsonOfLeafGalleryFieldType"}]}]},{"name":"JsonOfFieldTypeBase","exported":true,"docComment":"This is the base type for other types: varchar text, leafMedia, leafGallery.\n@see {@link JsonOfVarcharFieldType}\n@see {@link JsonOfTextFieldType}\n@see {@link JsonOfLeafMediaFieldType}\n@see {@link JsonOfLeafGalleryFieldType}","kind":"interface","properties":[{"name":"storedOn","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"leaf"},{"kind":"literal","literal":"section"}]},"docComment":"The field value can be attached to\n- `leaf`: all the translations of the same document will share the same value\n- `section`: each translation will have its own value."},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"The field name."},{"name":"plugin","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]},{"name":"JsonOfVarcharFieldType","exported":true,"docComment":"This is the base type for data varchar types: stringVarchar, numberVarchar, booleanVarchar\n@see {@link JsonOfStringVarcharFieldType}\n@see {@link JsonOfNumberVarcharFieldType}\n@see {@link JsonOfBooleanVarcharFieldType}","kind":"composite","op":"union","types":[{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfStringVarcharFieldType"},{"kind":"localRef","refName":"JsonOfNumberVarcharFieldType"},{"kind":"localRef","refName":"JsonOfBooleanVarcharFieldType"}]}]},{"name":"JsonOfStringVarcharFieldType","exported":true,"docComment":"This is string type with varchar data type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"string"}}]}]},{"name":"JsonOfNumberVarcharFieldType","exported":true,"docComment":"This is number type with varchar data type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"number"}},{"name":"currency","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"@example `\"EUR\"`"}]}]},{"name":"JsonOfBooleanVarcharFieldType","exported":true,"docComment":"This is boolean type with varchar data type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"boolean"}}]}]},{"name":"JsonOfTextFieldType","exported":true,"docComment":"@see {@link JsonOfFTextFieldType}\n@see {@link JsonOfJsonFieldType}","kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFTextFieldType"},{"kind":"localRef","refName":"JsonOfJsonFieldType"}]},{"name":"JsonOfFTextFieldType","exported":true,"docComment":"Formatted Text field (with HTML content).","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"text"}},{"name":"dataType","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"quillDelta"},{"kind":"literal","literal":"html"}]}},{"name":"useAsExcerpt","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"},{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"},{"name":"withGallery","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true,"docComment":"\n@example"},{"name":"backOffice","type":{"kind":"localRef","refName":"JsonOfFTextFieldBackOffice"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfJsonFieldType","exported":true,"docComment":"This is JSON type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"text"}},{"name":"dataType","type":{"kind":"literal","literal":"json"}}]}]},{"name":"JsonOfFTextFieldBackOffice","exported":true,"docComment":"This is the back office properties of a formatted text field (ie. a text editor).","kind":"interface","properties":[{"name":"editorRows","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true}]},{"name":"JsonOfGalleryFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"mediaHandle"}},{"name":"dataType","type":{"kind":"literal","literal":"gallery"}},{"name":"accept","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"refuse","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfLeafGalleryFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfGalleryFieldType"},{"kind":"interface","properties":[{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfMediaFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"mediaHandle"},"docComment":"\n@example"},{"name":"dataType","type":{"kind":"literal","literal":"media"},"docComment":"\n@example"},{"name":"accept","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"\n@example"},{"name":"refuse","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfLeafMediaFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfMediaFieldType"},{"kind":"interface","properties":[{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfMediaPolicy","exported":true,"docComment":"These properties define the rules that are applied to medias.","kind":"interface","properties":[{"name":"policyName","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"The internal name of the policy.\n@example `\"myPolicyName\"`"},{"name":"mediaLimitPerDocument","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Max media limit uploaded in a document.\n@example `10`"},{"name":"mediaLimitPerPart","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Max media limit uploaded in a part.\n@example `10`"},{"name":"attachedDocument","type":{"kind":"localRef","refName":"JsonOfAttachedDocumentPolicy"},"optional":true,"docComment":"Rules about non-image medias (like PDF files)."},{"name":"image","type":{"kind":"localRef","refName":"JsonOfImagePolicy"},"optional":true,"docComment":"Rules about images."}]},{"name":"JsonOfAttachedDocumentPolicy","exported":true,"docComment":"These properties define the rules that are applied to\ndocument uploaded in document and document part","kind":"interface","properties":[{"name":"siteWeightLimitB","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Size limit in bytes.\n@example `2000000`"}]},{"name":"JsonOfImagePolicy","exported":true,"docComment":"These properties define the rules that are applied to\nimages contained in document and document part","kind":"interface","properties":[{"name":"weightLimitB","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Size limit in bytes.\n@example `2000000`"},{"name":"areaLimitPx","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Maximum area (width × height, in pixels) of an image.\n@example `2000000`"}]},{"name":"JsonOfImageCompressionQualityPolicy","exported":true,"docComment":"These properties define the rules applied to image\ncompression across all sites","kind":"interface","properties":[{"name":"areaLimitPx","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"The quality will apply for image with area smaller than this value.\n@example `600000`"},{"name":"quality","type":{"kind":"name","group":"primitive","refName":"number"},"docComment":"Webp quality loss, in percents.\n@example `80`"}]}]},"./theme-json-types":{"namedTypes":[{"name":"JsonOfThemeConf","exported":true,"kind":"interface","properties":[{"name":"fTextImages","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}}}]}]}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paroicms/server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "The ParoiCMS server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms",
|
|
@@ -47,13 +47,14 @@
|
|
|
47
47
|
"@nestjs/throttler": "~5.1.2",
|
|
48
48
|
"@paroi/async-lib": "~0.1.2",
|
|
49
49
|
"@paroi/data-formatters-lib": "~0.1.2",
|
|
50
|
-
"@paroicms/anywhere-lib": "1.
|
|
51
|
-
"@paroicms/bo": "1.
|
|
52
|
-
"@paroicms/
|
|
53
|
-
"@paroicms/server-
|
|
54
|
-
"@paroicms/server-
|
|
55
|
-
"@paroicms/server-
|
|
56
|
-
"@paroicms/
|
|
50
|
+
"@paroicms/anywhere-lib": "1.3.0",
|
|
51
|
+
"@paroicms/bo": "1.2.0",
|
|
52
|
+
"@paroicms/plugin-lib": "0.2.0",
|
|
53
|
+
"@paroicms/server-database-media-storage": "1.1.0",
|
|
54
|
+
"@paroicms/server-image-cache-engine": "1.1.0",
|
|
55
|
+
"@paroicms/server-lib": "1.1.0",
|
|
56
|
+
"@paroicms/server-text-cache-system": "1.1.0",
|
|
57
|
+
"@paroicms/site-app": "1.1.0",
|
|
57
58
|
"@typeonly/validator": "~0.6.0",
|
|
58
59
|
"archiver": "~6.0.1",
|
|
59
60
|
"bcrypt": "~5.1.0",
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
"nodemon": "~3.0.2",
|
|
88
89
|
"pino-pretty": "~10.3.0",
|
|
89
90
|
"rimraf": "~5.0.5",
|
|
90
|
-
"sass": "
|
|
91
|
+
"sass": "^1.72.0",
|
|
91
92
|
"source-map-support": "~0.5.20",
|
|
92
93
|
"ts-loader": "~9.5.1",
|
|
93
94
|
"ts-node": "~10.9.2",
|