@paroicms/public-server-lib 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ScSiteSchema, ThemeConf } from "@paroicms/public-anywhere-lib";
|
|
2
|
-
|
|
1
|
+
import type { ParsedSectionId, ScSiteSchema, ThemeConf } from "@paroicms/public-anywhere-lib";
|
|
2
|
+
import type { Request, Response } from "express";
|
|
3
3
|
export interface PluginSiteContext {
|
|
4
4
|
fqdn: string;
|
|
5
5
|
siteUrl: string;
|
|
@@ -19,6 +19,22 @@ export interface PluginSiteContext {
|
|
|
19
19
|
appLog: AppLog;
|
|
20
20
|
},
|
|
21
21
|
) => Promise<void>;
|
|
22
|
+
renderChildPartials(options: {
|
|
23
|
+
req: Request;
|
|
24
|
+
res: Response;
|
|
25
|
+
params: PartialsParamsInput;
|
|
26
|
+
parentDocumentId: ParsedSectionId;
|
|
27
|
+
labeledByTermId?: string;
|
|
28
|
+
}): Promise<void>;
|
|
29
|
+
renderSearchPartials(options: {
|
|
30
|
+
req: Request;
|
|
31
|
+
res: Response;
|
|
32
|
+
language: string;
|
|
33
|
+
words: string[];
|
|
34
|
+
limit: number;
|
|
35
|
+
start: number;
|
|
36
|
+
templateName: string;
|
|
37
|
+
}): Promise<void>;
|
|
22
38
|
}
|
|
23
39
|
|
|
24
40
|
export interface MailData {
|
|
@@ -39,3 +55,10 @@ export interface AppLog {
|
|
|
39
55
|
info(...messages: any[]): void;
|
|
40
56
|
debug(...messages: any[]): void;
|
|
41
57
|
}
|
|
58
|
+
|
|
59
|
+
export interface PartialsParamsInput {
|
|
60
|
+
templateName: string;
|
|
61
|
+
documentId: string;
|
|
62
|
+
offset: string;
|
|
63
|
+
limit: string;
|
|
64
|
+
}
|