@paroicms/server 1.14.12 → 1.16.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/dist/common/child-ordering-query.d.ts +3 -1
- package/dist/common/child-ordering-query.js +17 -9
- package/dist/common/child-ordering-query.js.map +1 -1
- package/dist/modules/core/section/section-wrap.resolver.d.ts +3 -3
- package/dist/modules/core/section/section-wrap.resolver.js +8 -4
- package/dist/modules/core/section/section-wrap.resolver.js.map +1 -1
- package/dist/modules/core/section/section.queries.d.ts +4 -2
- package/dist/modules/core/section/section.queries.js +8 -4
- package/dist/modules/core/section/section.queries.js.map +1 -1
- package/dist/modules/core/section/section.schema.d.ts +4 -0
- package/dist/modules/core/section/section.schema.js +17 -1
- package/dist/modules/core/section/section.schema.js.map +1 -1
- package/dist/modules/public-api/public-api-controller.js +3 -8
- package/dist/modules/public-api/public-api-controller.js.map +1 -1
- package/dist/modules/public-api/search-text/search-text.queries.d.ts +8 -2
- package/dist/modules/public-api/search-text/search-text.queries.js +27 -6
- package/dist/modules/public-api/search-text/search-text.queries.js.map +1 -1
- package/dist/modules/public-site/helpers/medias.helpers.d.ts +5 -1
- package/dist/modules/public-site/helpers/medias.helpers.js +3 -1
- package/dist/modules/public-site/helpers/medias.helpers.js.map +1 -1
- package/dist/public-payload/create-page-drop.js +8 -2
- package/dist/public-payload/create-page-drop.js.map +1 -1
- package/dist/public-payload/create-page-part-drop.js +3 -1
- package/dist/public-payload/create-page-part-drop.js.map +1 -1
- package/dist/public-payload/load-default-image.js +3 -1
- package/dist/public-payload/load-default-image.js.map +1 -1
- package/dist/site-schema/site-schema-factory.js +2 -0
- package/dist/site-schema/site-schema-factory.js.map +1 -1
- package/dist/types.to.json +1 -1
- package/package.json +7 -7
- package/schema.gql +7 -1
- package/site-schema-lib/special-page.site-schema.json +4 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ChildOrdering, type DocumentSchema } from "@paroicms/anywhere-lib";
|
|
1
|
+
import { type ChildOrdering, type DocumentSchema, type OrderByItem } from "@paroicms/anywhere-lib";
|
|
2
2
|
import type { SelectQueryBuilder } from "typeorm";
|
|
3
3
|
import type { SiteContext } from "../site-context/site-context.types";
|
|
4
4
|
export declare function applyChildOrderingOnQuery(siteContext: Pick<SiteContext, "mainCn" | "siteSchema">, options: {
|
|
@@ -7,7 +7,9 @@ export declare function applyChildOrderingOnQuery(siteContext: Pick<SiteContext,
|
|
|
7
7
|
childOrdering?: ChildOrdering;
|
|
8
8
|
leftJoinDocument?: boolean;
|
|
9
9
|
orderByAsString?: boolean;
|
|
10
|
+
orderBy?: OrderByItem[];
|
|
10
11
|
}): {
|
|
11
12
|
ordered: boolean;
|
|
12
13
|
orderBy?: string;
|
|
13
14
|
};
|
|
15
|
+
export declare function formatTypeOrmDirection(direction: "asc" | "desc"): "ASC" | "DESC";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.applyChildOrderingOnQuery = void 0;
|
|
3
|
+
exports.formatTypeOrmDirection = exports.applyChildOrderingOnQuery = void 0;
|
|
4
4
|
const anywhere_lib_1 = require("@paroicms/anywhere-lib");
|
|
5
5
|
const context_1 = require("../context");
|
|
6
6
|
function applyChildOrderingOnQuery(siteContext, options) {
|
|
7
7
|
const { query, parentDocumentType, leftJoinDocument, orderByAsString } = options;
|
|
8
|
-
const
|
|
9
|
-
if (!
|
|
8
|
+
const orderBy = options.orderBy ?? toOrderByOrManual(options.childOrdering ?? parentDocumentType.childOrdering);
|
|
9
|
+
if (!orderBy)
|
|
10
10
|
return { ordered: false };
|
|
11
11
|
const orderPropertiesMap = makeMapOfOrderProperties(siteContext, parentDocumentType.children);
|
|
12
12
|
const orderByQb = orderByAsString ? makeOrderByAsStringQB() : query;
|
|
13
|
-
if (
|
|
13
|
+
if (orderBy === "manual") {
|
|
14
14
|
query.leftJoin("PaLeafItem", "i", "i.leafId = l.id and i.listName = :listName", {
|
|
15
15
|
listName: "documents",
|
|
16
16
|
});
|
|
@@ -18,15 +18,15 @@ function applyChildOrderingOnQuery(siteContext, options) {
|
|
|
18
18
|
}
|
|
19
19
|
else {
|
|
20
20
|
let index = 0;
|
|
21
|
-
for (const
|
|
21
|
+
for (const { fieldName, direction } of orderBy) {
|
|
22
22
|
if (fieldName === "title") {
|
|
23
23
|
if (leftJoinDocument) {
|
|
24
24
|
query.leftJoin("PaDocument", "d", "d.leafId = s.leafId and d.lang = s.lang");
|
|
25
25
|
}
|
|
26
|
-
orderByQb.addOrderBy("d.title",
|
|
26
|
+
orderByQb.addOrderBy("d.title", formatTypeOrmDirection(direction));
|
|
27
27
|
}
|
|
28
28
|
else if (fieldName === "publishDate") {
|
|
29
|
-
orderByQb.addOrderBy("l.publishDate",
|
|
29
|
+
orderByQb.addOrderBy("l.publishDate", formatTypeOrmDirection(direction));
|
|
30
30
|
}
|
|
31
31
|
else {
|
|
32
32
|
const orderProperties = orderPropertiesMap.get(fieldName);
|
|
@@ -46,7 +46,7 @@ function applyChildOrderingOnQuery(siteContext, options) {
|
|
|
46
46
|
const langJoinCrit = storedOn === "section" ? `f${index}.lang = s.lang` : `f${index}.lang = :dbAnyLang`;
|
|
47
47
|
const critParams = storedOn === "section" ? { fieldName } : { fieldName, dbAnyLang: context_1.dbAnyLang };
|
|
48
48
|
query.leftJoin("PaFieldVarchar", `f${index}`, `f${index}.field = :fieldName and f${index}.leafId = s.leafId and ${langJoinCrit}`, critParams);
|
|
49
|
-
orderByQb.addOrderBy(orderByField,
|
|
49
|
+
orderByQb.addOrderBy(orderByField, formatTypeOrmDirection(direction));
|
|
50
50
|
}
|
|
51
51
|
++index;
|
|
52
52
|
}
|
|
@@ -97,11 +97,19 @@ function makeOrderByAsStringQB() {
|
|
|
97
97
|
};
|
|
98
98
|
return qb;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function formatTypeOrmDirection(direction) {
|
|
101
101
|
if (direction === "asc")
|
|
102
102
|
return "ASC";
|
|
103
103
|
if (direction === "desc")
|
|
104
104
|
return "DESC";
|
|
105
105
|
throw new Error(`Invalid direction ${direction}`);
|
|
106
106
|
}
|
|
107
|
+
exports.formatTypeOrmDirection = formatTypeOrmDirection;
|
|
108
|
+
function toOrderByOrManual(childOrdering) {
|
|
109
|
+
if (!childOrdering)
|
|
110
|
+
return;
|
|
111
|
+
if (childOrdering === "manual")
|
|
112
|
+
return "manual";
|
|
113
|
+
return childOrdering.map(([fieldName, direction]) => ({ fieldName, direction }));
|
|
114
|
+
}
|
|
107
115
|
//# sourceMappingURL=child-ordering-query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"child-ordering-query.js","sourceRoot":"","sources":["../../src/common/child-ordering-query.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"child-ordering-query.js","sourceRoot":"","sources":["../../src/common/child-ordering-query.ts"],"names":[],"mappings":";;;AAAA,yDAMgC;AAEhC,wCAAuC;AAGvC,SAAgB,yBAAyB,CACvC,WAAuD,EACvD,OAOC;IAED,MAAM,EAAE,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC;IACjF,MAAM,OAAO,GACX,OAAO,CAAC,OAAO,IAAI,iBAAiB,CAAC,OAAO,CAAC,aAAa,IAAI,kBAAkB,CAAC,aAAa,CAAC,CAAC;IAClG,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAExC,MAAM,kBAAkB,GAAG,wBAAwB,CAAC,WAAW,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IAE9F,MAAM,SAAS,GAAG,eAAe,CAAC,CAAC,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;IAEpE,IAAI,OAAO,KAAK,QAAQ,EAAE,CAAC;QACzB,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,GAA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AAC;IACtC,IAAI,SAAS,KAAK,MAAM;QAAE,OAAO,MAAM,CAAC;IACxC,MAAM,IAAI,KAAK,CAAC,qBAAqB,SAAS,EAAE,CAAC,CAAC;AACpD,CAAC;AAJD,wDAIC;AAED,SAAS,iBAAiB,CACxB,aAAwC;IAExC,IAAI,CAAC,aAAa;QAAE,OAAO;IAC3B,IAAI,aAAa,KAAK,QAAQ;QAAE,OAAO,QAAQ,CAAC;IAChD,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;AACnF,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { GraphqlContext } from "../../graphql.types";
|
|
2
|
-
import { BreadcrumbItemObjectType, PagedSectionWrapsObjectType, SectionTranslationObjectType, SectionWrapObjectType } from "./section.schema";
|
|
2
|
+
import { BreadcrumbItemObjectType, OrderByItemInput, PagedSectionWrapsObjectType, SectionTranslationObjectType, SectionWrapObjectType } from "./section.schema";
|
|
3
3
|
export declare class SectionWrapResolver {
|
|
4
4
|
sectionWrap({ fqdn }: GraphqlContext, sectionId: string): Promise<SectionWrapObjectType>;
|
|
5
|
-
pagedSectionWraps({ fqdn }: GraphqlContext, parentSectionId: string, start: number, limit: number): Promise<PagedSectionWrapsObjectType>;
|
|
6
|
-
searchDocuments({ fqdn }: GraphqlContext, lang: string, queryString: string, start: number, limit: number): Promise<PagedSectionWrapsObjectType>;
|
|
5
|
+
pagedSectionWraps({ fqdn }: GraphqlContext, parentSectionId: string, start: number, limit: number, orderBy?: OrderByItemInput[]): Promise<PagedSectionWrapsObjectType>;
|
|
6
|
+
searchDocuments({ fqdn }: GraphqlContext, lang: string, queryString: string, start: number, limit: number, orderBy?: OrderByItemInput[]): Promise<PagedSectionWrapsObjectType>;
|
|
7
7
|
sectionWraps({ fqdn }: GraphqlContext, parentSectionId: string): Promise<SectionWrapObjectType[]>;
|
|
8
8
|
translations({ fqdn }: GraphqlContext, { leafId }: SectionWrapObjectType): Promise<SectionTranslationObjectType[]>;
|
|
9
9
|
breadcrumb({ fqdn }: GraphqlContext, { leafId, lang }: SectionWrapObjectType): Promise<BreadcrumbItemObjectType[]>;
|
|
@@ -35,7 +35,7 @@ let SectionWrapResolver = class SectionWrapResolver {
|
|
|
35
35
|
})),
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
async pagedSectionWraps({ fqdn }, parentSectionId, start, limit) {
|
|
38
|
+
async pagedSectionWraps({ fqdn }, parentSectionId, start, limit, orderBy) {
|
|
39
39
|
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
40
40
|
const parentId = (0, anywhere_lib_1.parseSectionId)(parentSectionId);
|
|
41
41
|
const result = await (0, section_queries_1.getSectionWraps)(siteContext, {
|
|
@@ -44,6 +44,7 @@ let SectionWrapResolver = class SectionWrapResolver {
|
|
|
44
44
|
limit,
|
|
45
45
|
start,
|
|
46
46
|
},
|
|
47
|
+
orderBy,
|
|
47
48
|
});
|
|
48
49
|
if (result.total === undefined) {
|
|
49
50
|
throw new Error("property total not found");
|
|
@@ -54,13 +55,14 @@ let SectionWrapResolver = class SectionWrapResolver {
|
|
|
54
55
|
start,
|
|
55
56
|
};
|
|
56
57
|
}
|
|
57
|
-
async searchDocuments({ fqdn }, lang, queryString, start, limit) {
|
|
58
|
+
async searchDocuments({ fqdn }, lang, queryString, start, limit, orderBy) {
|
|
58
59
|
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
59
60
|
return await (0, section_queries_1.searchDocuments)(siteContext, {
|
|
60
61
|
lang,
|
|
61
62
|
queryString,
|
|
62
63
|
start,
|
|
63
64
|
limit,
|
|
65
|
+
orderBy,
|
|
64
66
|
});
|
|
65
67
|
}
|
|
66
68
|
async sectionWraps({ fqdn }, parentSectionId) {
|
|
@@ -117,8 +119,9 @@ __decorate([
|
|
|
117
119
|
__param(1, (0, graphql_1.Args)("parentSectionId", { type: () => graphql_1.ID, description: "lang:leafId" })),
|
|
118
120
|
__param(2, (0, graphql_1.Args)("start", { type: () => graphql_1.Int })),
|
|
119
121
|
__param(3, (0, graphql_1.Args)("limit", { type: () => graphql_1.Int })),
|
|
122
|
+
__param(4, (0, graphql_1.Args)("orderBy", { type: () => [section_schema_1.OrderByItemInput], nullable: true })),
|
|
120
123
|
__metadata("design:type", Function),
|
|
121
|
-
__metadata("design:paramtypes", [Object, String, Number, Number]),
|
|
124
|
+
__metadata("design:paramtypes", [Object, String, Number, Number, Array]),
|
|
122
125
|
__metadata("design:returntype", Promise)
|
|
123
126
|
], SectionWrapResolver.prototype, "pagedSectionWraps", null);
|
|
124
127
|
__decorate([
|
|
@@ -128,8 +131,9 @@ __decorate([
|
|
|
128
131
|
__param(2, (0, graphql_1.Args)("queryString", { type: () => String })),
|
|
129
132
|
__param(3, (0, graphql_1.Args)("start", { type: () => graphql_1.Int })),
|
|
130
133
|
__param(4, (0, graphql_1.Args)("limit", { type: () => graphql_1.Int })),
|
|
134
|
+
__param(5, (0, graphql_1.Args)("orderBy", { type: () => [section_schema_1.OrderByItemInput], nullable: true })),
|
|
131
135
|
__metadata("design:type", Function),
|
|
132
|
-
__metadata("design:paramtypes", [Object, String, String, Number, Number]),
|
|
136
|
+
__metadata("design:paramtypes", [Object, String, String, Number, Number, Array]),
|
|
133
137
|
__metadata("design:returntype", Promise)
|
|
134
138
|
], SectionWrapResolver.prototype, "searchDocuments", null);
|
|
135
139
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-wrap.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/section/section-wrap.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,6CAAgG;AAChG,oEAAoD;AACpD,yDAAmF;AACnF,qDAAuD;AACvD,6DAAwE;AACxE,qEAAoE;AAEpE,2DAAsD;AACtD,uDAAoG;AACpG,
|
|
1
|
+
{"version":3,"file":"section-wrap.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/section/section-wrap.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,6CAAgG;AAChG,oEAAoD;AACpD,yDAAmF;AACnF,qDAAuD;AACvD,6DAAwE;AACxE,qEAAoE;AAEpE,2DAAsD;AACtD,uDAAoG;AACpG,qDAM0B;AAInB,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAExB,AAAN,KAAK,CAAC,WAAW,CACJ,EAAE,IAAI,EAAkB,EAEnC,SAAiB;QAEjB,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,MAAM,eAAe,GAAG,IAAA,6BAAc,EAAC,SAAS,CAAC,CAAC;QAClD,OAAO;YACL,GAAG,eAAe;YAClB,SAAS;YACT,OAAO,EAAE,IAAA,uCAAyB,EAChC,MAAM,IAAA,gCAAc,EAAC,WAAW,EAAE;gBAChC,GAAG,eAAe;aACnB,CAAC,CACH;SACF,CAAC;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,iBAAiB,CACV,EAAE,IAAI,EAAkB,EAEnC,eAAuB,EAEvB,KAAa,EAEb,KAAa,EAEb,OAA4B;QAE5B,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,MAAM,QAAQ,GAAG,IAAA,6BAAc,EAAC,eAAe,CAAC,CAAC;QACjD,MAAM,MAAM,GAAG,MAAM,IAAA,iCAAe,EAAC,WAAW,EAAE;YAChD,QAAQ;YACR,UAAU,EAAE;gBACV,KAAK;gBACL,KAAK;aACN;YACD,OAAO;SACR,CAAC,CAAC;QAEH,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC/B,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAC9C,CAAC;QACD,OAAO;YACL,KAAK,EAAE,MAAM,CAAC,YAAY;YAC1B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IAAI,EAAE,GAAG,EAAE,CAAC,YAAE,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC,CAAA;;;;uDAUzE;AAGK;IADL,IAAA,sBAAY,EAAC,GAAG,EAAE,CAAC,CAAC,6CAA4B,CAAC,CAAC;IAEhD,WAAA,IAAA,iBAAO,GAAE,CAAA;IACT,WAAA,IAAA,gBAAM,GAAE,CAAA;;6CACG,sCAAqB;;uDAsBlC;AAGK;IADL,IAAA,sBAAY,EAAC,GAAG,EAAE,CAAC,CAAC,yCAAwB,CAAC,CAAC;IAE5C,WAAA,IAAA,iBAAO,GAAE,CAAA;IACT,WAAA,IAAA,gBAAM,GAAE,CAAA;;6CACS,sCAAqB;;qDAWxC;8BAvIU,mBAAmB;IAF/B,IAAA,kBAAS,EAAC,6BAAY,CAAC;IACvB,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,sCAAqB,CAAC;GACzB,mBAAmB,CAwI/B"}
|
|
@@ -3,19 +3,20 @@ import type { Tracker } from "@paroicms/server-lib";
|
|
|
3
3
|
import type { DataSource, EntityManager } from "typeorm";
|
|
4
4
|
import type { SiteContext } from "../../../site-context/site-context.types";
|
|
5
5
|
import { SectionEntity } from "./section.model";
|
|
6
|
-
import type { PagedSectionWrapsObjectType, SectionObjectType } from "./section.schema";
|
|
6
|
+
import type { OrderByItemInput, PagedSectionWrapsObjectType, SectionObjectType } from "./section.schema";
|
|
7
7
|
export interface ChildSectionsListWithTotal {
|
|
8
8
|
list: SectionEntity[];
|
|
9
9
|
total: number;
|
|
10
10
|
}
|
|
11
11
|
export declare function leafSections({ mainCn }: SiteContext, leafId: string): Promise<SectionEntity[]>;
|
|
12
12
|
export declare function findOneSection({ mainCn }: SiteContext, sectionId: ParsedSectionId): Promise<SectionEntity>;
|
|
13
|
-
export declare function getSectionWraps(siteContext: Pick<SiteContext, "mainCn" | "siteSchema">, { parentId, pagination, }: {
|
|
13
|
+
export declare function getSectionWraps(siteContext: Pick<SiteContext, "mainCn" | "siteSchema">, { parentId, pagination, orderBy, }: {
|
|
14
14
|
parentId: ParsedSectionId;
|
|
15
15
|
pagination?: {
|
|
16
16
|
start: number;
|
|
17
17
|
limit: number;
|
|
18
18
|
};
|
|
19
|
+
orderBy?: OrderByItemInput[];
|
|
19
20
|
}): Promise<{
|
|
20
21
|
total?: number;
|
|
21
22
|
sectionWraps: {
|
|
@@ -48,4 +49,5 @@ export declare function searchDocuments(siteContext: SiteContext, options: {
|
|
|
48
49
|
queryString: string;
|
|
49
50
|
start: number;
|
|
50
51
|
limit: number;
|
|
52
|
+
orderBy?: OrderByItemInput[];
|
|
51
53
|
}): Promise<PagedSectionWrapsObjectType>;
|
|
@@ -26,13 +26,14 @@ async function findOneSection({ mainCn }, sectionId) {
|
|
|
26
26
|
return section;
|
|
27
27
|
}
|
|
28
28
|
exports.findOneSection = findOneSection;
|
|
29
|
-
async function getSectionWraps(siteContext, { parentId, pagination, }) {
|
|
29
|
+
async function getSectionWraps(siteContext, { parentId, pagination, orderBy, }) {
|
|
30
30
|
let total;
|
|
31
31
|
let sectionEntities;
|
|
32
32
|
if (pagination) {
|
|
33
33
|
const childSectionsResult = await getChildSectionsForAllLangs(siteContext, {
|
|
34
34
|
parentLeafId: parentId.leafId,
|
|
35
35
|
pagination,
|
|
36
|
+
orderBy,
|
|
36
37
|
});
|
|
37
38
|
sectionEntities = childSectionsResult.list;
|
|
38
39
|
total = childSectionsResult.total;
|
|
@@ -41,6 +42,7 @@ async function getSectionWraps(siteContext, { parentId, pagination, }) {
|
|
|
41
42
|
sectionEntities = await getChildSectionsForAllLangs(siteContext, {
|
|
42
43
|
parentLeafId: parentId.leafId,
|
|
43
44
|
pagination,
|
|
45
|
+
orderBy,
|
|
44
46
|
});
|
|
45
47
|
}
|
|
46
48
|
const byLeafIdMap = new Map();
|
|
@@ -80,6 +82,7 @@ async function getChildSectionsForAllLangs(siteContext, options) {
|
|
|
80
82
|
query,
|
|
81
83
|
parentDocumentType,
|
|
82
84
|
leftJoinDocument: true,
|
|
85
|
+
orderBy: options.orderBy,
|
|
83
86
|
});
|
|
84
87
|
if (options.pagination) {
|
|
85
88
|
query.limit(options.pagination.limit).offset(options.pagination.start);
|
|
@@ -200,14 +203,15 @@ async function searchDocuments(siteContext, options) {
|
|
|
200
203
|
.filter((word) => word.length >= 2);
|
|
201
204
|
if (words.length === 0)
|
|
202
205
|
return { total: 0, start, items: [] };
|
|
203
|
-
const
|
|
206
|
+
const { rows, total } = await (0, search_text_queries_1.searchText)(siteContext, {
|
|
204
207
|
lang: (0, data_formatters_lib_1.strVal)(lang),
|
|
205
208
|
words,
|
|
206
209
|
start: (0, data_formatters_lib_1.nbVal)(start),
|
|
207
210
|
limit: (0, data_formatters_lib_1.nbVal)(limit),
|
|
211
|
+
orderBy: options.orderBy,
|
|
208
212
|
});
|
|
209
213
|
const sectionWraps = [];
|
|
210
|
-
for (const row of
|
|
214
|
+
for (const row of rows) {
|
|
211
215
|
sectionWraps.push({
|
|
212
216
|
sectionId: (0, anywhere_lib_1.encodeSectionId)({ lang: row.lang, leafId: row.leafId }),
|
|
213
217
|
lang: row.lang,
|
|
@@ -219,7 +223,7 @@ async function searchDocuments(siteContext, options) {
|
|
|
219
223
|
});
|
|
220
224
|
}
|
|
221
225
|
return {
|
|
222
|
-
total
|
|
226
|
+
total,
|
|
223
227
|
items: sectionWraps,
|
|
224
228
|
start,
|
|
225
229
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section.queries.js","sourceRoot":"","sources":["../../../../src/modules/core/section/section.queries.ts"],"names":[],"mappings":";;;AAAA,2CAAmD;AACnD,oEAAmF;AACnF,yDAMgC;AAGhC,+EAAiF;AACjF,6DAAiG;AACjG,+EAA2E;AAE3E,0FAA8E;AAC9E,uDAAmE;AACnE,mDAAgD;
|
|
1
|
+
{"version":3,"file":"section.queries.js","sourceRoot":"","sources":["../../../../src/modules/core/section/section.queries.ts"],"names":[],"mappings":";;;AAAA,2CAAmD;AACnD,oEAAmF;AACnF,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2BAAK,EAAC,KAAK,CAAC;QACnB,OAAO,EAAE,OAAO,CAAC,OAAO;KACzB,CAAC,CAAC;IAEH,MAAM,YAAY,GAA4B,EAAE,CAAC;IAEjD,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,YAAY,CAAC,IAAI,CAAC;YAChB,SAAS,EAAE,IAAA,8BAAe,EAAC,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC;YAClE,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,MAAM,EAAE,GAAG,CAAC,MAAM;YAClB,OAAO,EAAE,IAAA,uCAAyB,EAChC,MAAM,cAAc,CAAC,WAAW,EAAE;gBAChC,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,MAAM,EAAE,GAAG,CAAC,MAAM;aACnB,CAAC,CACH;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO;QACL,KAAK;QACL,KAAK,EAAE,YAAY;QACnB,KAAK;KACN,CAAC;AACJ,CAAC;AA/CD,0CA+CC"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.BreadcrumbItemObjectType = exports.SectionTranslationObjectType = exports.SectionWrapObjectType = exports.PagedSectionWrapsObjectType = exports.SectionObjectType = void 0;
|
|
12
|
+
exports.OrderByItemInput = exports.BreadcrumbItemObjectType = exports.SectionTranslationObjectType = exports.SectionWrapObjectType = exports.PagedSectionWrapsObjectType = exports.SectionObjectType = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
14
|
let SectionObjectType = class SectionObjectType {
|
|
15
15
|
sectionId;
|
|
@@ -131,4 +131,20 @@ __decorate([
|
|
|
131
131
|
exports.BreadcrumbItemObjectType = BreadcrumbItemObjectType = __decorate([
|
|
132
132
|
(0, graphql_1.ObjectType)("BreadcrumbItem")
|
|
133
133
|
], BreadcrumbItemObjectType);
|
|
134
|
+
let OrderByItemInput = class OrderByItemInput {
|
|
135
|
+
fieldName;
|
|
136
|
+
direction;
|
|
137
|
+
};
|
|
138
|
+
exports.OrderByItemInput = OrderByItemInput;
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, graphql_1.Field)(() => String),
|
|
141
|
+
__metadata("design:type", String)
|
|
142
|
+
], OrderByItemInput.prototype, "fieldName", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, graphql_1.Field)(() => String),
|
|
145
|
+
__metadata("design:type", String)
|
|
146
|
+
], OrderByItemInput.prototype, "direction", void 0);
|
|
147
|
+
exports.OrderByItemInput = OrderByItemInput = __decorate([
|
|
148
|
+
(0, graphql_1.InputType)("OrderByItem")
|
|
149
|
+
], OrderByItemInput);
|
|
134
150
|
//# sourceMappingURL=section.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section.schema.js","sourceRoot":"","sources":["../../../../src/modules/core/section/section.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"section.schema.js","sourceRoot":"","sources":["../../../../src/modules/core/section/section.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwE;AAGjE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE5B,SAAS,CAAU;IAGnB,MAAM,CAAU;IAGhB,IAAI,CAAU;IAGd,KAAK,CAAW;CACjB,CAAA;AAZY,8CAAiB;AAE5B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;oDACG;AAGnB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;iDACA;AAGhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;+CACN;AAGd;IADC,IAAA,eAAK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,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;+DACG;uCALR,4BAA4B;IADxC,IAAA,oBAAU,EAAC,oBAAoB,CAAC;GACpB,4BAA4B,CAMxC;AAGM,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAEnC,IAAI,CAAU;IAGd,MAAM,CAAU;IAGhB,SAAS,CAAU;IAGnB,QAAQ,CAAU;IAGlB,KAAK,CAAU;CAChB,CAAA;AAfY,4DAAwB;AAEnC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sDACN;AAGd;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;wDACA;AAGhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;2DACG;AAGnB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0DACF;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACzB;mCAdJ,wBAAwB;IADpC,IAAA,oBAAU,EAAC,gBAAgB,CAAC;GAChB,wBAAwB,CAepC;AAGM,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAE3B,SAAS,CAAU;IAGnB,SAAS,CAAkB;CAC5B,CAAA;AANY,4CAAgB;AAE3B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;mDACD;AAGnB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;mDACO;2BALhB,gBAAgB;IAD5B,IAAA,mBAAS,EAAC,aAAa,CAAC;GACZ,gBAAgB,CAM5B"}
|
|
@@ -162,14 +162,14 @@ async function renderChildPages(siteContext, tracker, options) {
|
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
async function searchAndRender(siteContext, tracker, options) {
|
|
165
|
-
const {
|
|
166
|
-
const
|
|
165
|
+
const { lang, templateName } = options;
|
|
166
|
+
const { rows, total } = await (0, search_text_queries_1.searchText)(siteContext, { ...options, onlyPublished: true });
|
|
167
167
|
const renderingContext = await (0, rendering_context_1.createRenderingContext)(siteContext, {
|
|
168
168
|
cacheKey: options.cacheKey,
|
|
169
169
|
tracker,
|
|
170
170
|
});
|
|
171
171
|
const htmlList = [];
|
|
172
|
-
for (const row of
|
|
172
|
+
for (const row of rows) {
|
|
173
173
|
const payload = {
|
|
174
174
|
site: (0, site_payload_1.makeSitePayload)(siteContext, renderingContext, lang),
|
|
175
175
|
page: (0, create_page_drop_1.createPagePayloadDrop)(siteContext, renderingContext, row),
|
|
@@ -181,11 +181,6 @@ async function searchAndRender(siteContext, tracker, options) {
|
|
|
181
181
|
});
|
|
182
182
|
htmlList.push(html);
|
|
183
183
|
}
|
|
184
|
-
let total;
|
|
185
|
-
if (pages.length < limit)
|
|
186
|
-
total = start + pages.length;
|
|
187
|
-
else
|
|
188
|
-
total = await (0, search_text_queries_1.countSearchItems)(siteContext, { lang, words });
|
|
189
184
|
return {
|
|
190
185
|
result: {
|
|
191
186
|
html: htmlList.join(""),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api-controller.js","sourceRoot":"","sources":["../../../src/modules/public-api/public-api-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,8CAAgD;AAEhD,wEAAqE;AAErE,mEAAuE;AAEvE,2CAYwB;AACxB,oEAAmD;AACnD,yDAAqF;AACrF,qDAAmE;AAEnE,8DAAkE;AAClE,wDAA+E;AAC/E,gEAAqE;AACrE,6DAAsD;AACtD,6FAA+F;AAC/F,iGAAmG;AACnG,4EAA8E;AAC9E,kFAAwE;AACxE,oEAAoE;AACpE,kEAAiE;AAEjE,uEAAkE;AAClE,gEAA0F;AAC1F,
|
|
1
|
+
{"version":3,"file":"public-api-controller.js","sourceRoot":"","sources":["../../../src/modules/public-api/public-api-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,8CAA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CAAoB,EAAC,WAAW,EAAE,gBAAgB,EAAE;YACrE,OAAO;YACP,aAAa,EAAE,CAAC,YAAY,KAAK,SAAS,CAAC;SAC5C,CAAC,CAAC;QAEH,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAED,OAAO;QACL,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YACvB,KAAK;SACN;QACD,cAAc,EAAE,gBAAgB,CAAC,iBAAiB,EAAE;KACrD,CAAC;AACJ,CAAC;AApCD,0CAoCC"}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import type { PageValues } from "../../../public-payload/public-payload.types";
|
|
2
2
|
import type { SiteContext } from "../../../site-context/site-context.types";
|
|
3
|
+
import type { OrderByItemInput } from "../../core/section/section.schema";
|
|
3
4
|
export interface SearchTextOptions {
|
|
4
5
|
lang: string;
|
|
5
6
|
words: string[];
|
|
6
7
|
limit: number;
|
|
7
8
|
start: number;
|
|
8
9
|
onlyPublished?: boolean;
|
|
10
|
+
orderBy?: OrderByItemInput[];
|
|
9
11
|
}
|
|
10
|
-
export declare function searchText(siteContext: SiteContext, options: SearchTextOptions): Promise<
|
|
11
|
-
|
|
12
|
+
export declare function searchText(siteContext: SiteContext, options: SearchTextOptions): Promise<{
|
|
13
|
+
rows: PageValues[];
|
|
14
|
+
total: number;
|
|
15
|
+
}>;
|
|
16
|
+
export declare function countSearchItems(siteContext: SiteContext, { lang, words, onlyPublished }: {
|
|
12
17
|
lang: string;
|
|
13
18
|
words: string[];
|
|
19
|
+
onlyPublished?: boolean;
|
|
14
20
|
}): Promise<number>;
|
|
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.countSearchItems = exports.searchText = void 0;
|
|
4
4
|
const data_formatters_lib_1 = require("@paroi/data-formatters-lib");
|
|
5
5
|
const typeorm_1 = require("typeorm");
|
|
6
|
+
const child_ordering_query_1 = require("../../../common/child-ordering-query");
|
|
6
7
|
const context_1 = require("../../../context");
|
|
7
8
|
const page_values_queries_1 = require("../../../public-payload/page-values.queries");
|
|
8
9
|
async function searchText(siteContext, options) {
|
|
9
|
-
const { words, lang, start, limit, onlyPublished } = options;
|
|
10
|
+
const { words, lang, start, limit, onlyPublished, orderBy = [{ fieldName: "publishDate", direction: "asc" }], } = options;
|
|
10
11
|
const query = createBaseSearchTextQueryBuilder(siteContext, { lang, words })
|
|
11
12
|
.distinct(true)
|
|
12
13
|
.orderBy("l.publishDate", "DESC")
|
|
@@ -16,14 +17,34 @@ async function searchText(siteContext, options) {
|
|
|
16
17
|
query.andWhere("s.ready = 1").andWhere("l.publishDate <= current_timestamp");
|
|
17
18
|
}
|
|
18
19
|
(0, page_values_queries_1.querySelectPageValues)(query);
|
|
20
|
+
if (orderBy && orderBy.length > 0) {
|
|
21
|
+
for (const i of orderBy) {
|
|
22
|
+
if (i.fieldName === "title") {
|
|
23
|
+
query.addOrderBy("d.title", (0, child_ordering_query_1.formatTypeOrmDirection)(i.direction));
|
|
24
|
+
}
|
|
25
|
+
else if (i.fieldName === "publishDate") {
|
|
26
|
+
query.addOrderBy("l.publishDate", (0, child_ordering_query_1.formatTypeOrmDirection)(i.direction));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
19
30
|
const rows = await query.getRawMany();
|
|
20
|
-
|
|
31
|
+
let total;
|
|
32
|
+
if (rows.length < limit)
|
|
33
|
+
total = start + rows.length;
|
|
34
|
+
else
|
|
35
|
+
total = await countSearchItems(siteContext, { lang, words, onlyPublished });
|
|
36
|
+
return {
|
|
37
|
+
rows: rows.map((row) => (0, page_values_queries_1.formatPageValues)(row, { lang })),
|
|
38
|
+
total,
|
|
39
|
+
};
|
|
21
40
|
}
|
|
22
41
|
exports.searchText = searchText;
|
|
23
|
-
async function countSearchItems(siteContext, { lang, words }) {
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
.
|
|
42
|
+
async function countSearchItems(siteContext, { lang, words, onlyPublished }) {
|
|
43
|
+
const query = createBaseSearchTextQueryBuilder(siteContext, { lang, words }).select("count(1)", "total");
|
|
44
|
+
if (onlyPublished) {
|
|
45
|
+
query.andWhere("s.ready = 1").andWhere("l.publishDate <= current_timestamp");
|
|
46
|
+
}
|
|
47
|
+
const row = await query.getRawOne();
|
|
27
48
|
return (0, data_formatters_lib_1.nbVal)(row?.total);
|
|
28
49
|
}
|
|
29
50
|
exports.countSearchItems = countSearchItems;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-text.queries.js","sourceRoot":"","sources":["../../../../src/modules/public-api/search-text/search-text.queries.ts"],"names":[],"mappings":";;;AAAA,oEAAmD;AAEnD,qCAAmC;AACnC,8CAA6C;AAC7C,qFAGqD;
|
|
1
|
+
{"version":3,"file":"search-text.queries.js","sourceRoot":"","sources":["../../../../src/modules/public-api/search-text/search-text.queries.ts"],"names":[],"mappings":";;;AAAA,oEAAmD;AAEnD,qCAAmC;AACnC,+EAA8E;AAC9E,8CAA6C;AAC7C,qFAGqD;AAc9C,KAAK,UAAU,UAAU,CAC9B,WAAwB,EACxB,OAA0B;IAK1B,MAAM,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL,KAAK,EACL,aAAa,EACb,OAAO,GAAG,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,GAC3D,GAAG,OAAO,CAAC;IAEZ,MAAM,KAAK,GAAG,gCAAgC,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;SACzE,QAAQ,CAAC,IAAI,CAAC;SACd,OAAO,CAAC,eAAe,EAAE,MAAM,CAAC;SAChC,KAAK,CAAC,KAAK,CAAC;SACZ,MAAM,CAAC,KAAK,CAAC,CAAC;IAEjB,IAAI,aAAa,EAAE,CAAC;QAClB,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,oCAAoC,CAAC,CA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,EAAE,CAAC,CAAC,OAAO,KAAK,EAAE,EAAE,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC;IAC3E,UAAU,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,WAAW,EAAE,mBAAS,CAAC,CAAC,CAAC;IAC1D,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC;IAEpD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { DocumentSchema } from "@paroicms/anywhere-lib";
|
|
1
2
|
import type { Image } from "@paroicms/server-database-media-storage";
|
|
2
3
|
import type { SiteContext } from "../../../site-context/site-context.types";
|
|
3
|
-
export declare function getFeaturedImageOf(siteContext: SiteContext, leafId
|
|
4
|
+
export declare function getFeaturedImageOf(siteContext: SiteContext, { leafId, documentType, }: {
|
|
5
|
+
leafId: string;
|
|
6
|
+
documentType?: DocumentSchema;
|
|
7
|
+
}): Promise<Image | undefined>;
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getFeaturedImageOf = void 0;
|
|
4
4
|
const media_handles_helpers_1 = require("../../../common/media-handles.helpers");
|
|
5
|
-
async function getFeaturedImageOf(siteContext, leafId) {
|
|
5
|
+
async function getFeaturedImageOf(siteContext, { leafId, documentType, }) {
|
|
6
|
+
if (documentType?.disableFeaturedImage)
|
|
7
|
+
return;
|
|
6
8
|
const handle = (0, media_handles_helpers_1.getHandleOfFeaturedImage)(leafId);
|
|
7
9
|
const media = await siteContext.mediaStorage.getMedia({ handle });
|
|
8
10
|
if (!media)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"medias.helpers.js","sourceRoot":"","sources":["../../../../src/modules/public-site/helpers/medias.helpers.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"medias.helpers.js","sourceRoot":"","sources":["../../../../src/modules/public-site/helpers/medias.helpers.ts"],"names":[],"mappings":";;;AAEA,iFAAiF;AAG1E,KAAK,UAAU,kBAAkB,CACtC,WAAwB,EACxB,EACE,MAAM,EACN,YAAY,GAIb;IAED,IAAI,YAAY,EAAE,oBAAoB;QAAE,OAAO;IAC/C,MAAM,MAAM,GAAG,IAAA,gDAAwB,EAAC,MAAM,CAAC,CAAC;IAChD,MAAM,KAAK,GAAG,MAAM,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IAClE,IAAI,CAAC,KAAK;QAAE,OAAO;IACnB,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,UAAU,KAAK,CAAC,GAAG,yBAAyB,MAAM,GAAG,CAAC,CAAC;IACzE,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAlBD,gDAkBC"}
|
|
@@ -49,7 +49,10 @@ function createPagePayloadDrop(siteContext, renderingContext, pageValues, option
|
|
|
49
49
|
leafId: pageValues.leafId,
|
|
50
50
|
lang: pageValues.lang,
|
|
51
51
|
}),
|
|
52
|
-
featuredImageUid: async () => (await (0, medias_helpers_1.getFeaturedImageOf)(siteContext,
|
|
52
|
+
featuredImageUid: async () => (await (0, medias_helpers_1.getFeaturedImageOf)(siteContext, {
|
|
53
|
+
leafId: pageValues.leafId,
|
|
54
|
+
documentType,
|
|
55
|
+
}))?.uid,
|
|
53
56
|
fields: () => (0, field_values_1.loadPublicFieldValues)(siteContext, renderingContext, {
|
|
54
57
|
leafType: pageValues.leafType,
|
|
55
58
|
sectionId: pageValues,
|
|
@@ -137,7 +140,10 @@ async function makeOgValuesPayload(siteContext, renderingContext, documentType,
|
|
|
137
140
|
}));
|
|
138
141
|
const url = options.url ??
|
|
139
142
|
(await (0, liquidjs_drop_1.loadOrFromRenderingCache)(renderingContext, (0, liquidjs_drop_1.makeDropCacheKeyForRendering)("url", { documentId: pageValues }), () => loadUrlOfDocument(siteContext, renderingContext, pageValues)));
|
|
140
|
-
const featuredImageUid = await (0, liquidjs_drop_1.loadOrFromRenderingCache)(renderingContext, (0, liquidjs_drop_1.makeDropCacheKeyForRendering)("featuredImageUid", { documentId: pageValues }), async () => (await (0, medias_helpers_1.getFeaturedImageOf)(siteContext,
|
|
143
|
+
const featuredImageUid = await (0, liquidjs_drop_1.loadOrFromRenderingCache)(renderingContext, (0, liquidjs_drop_1.makeDropCacheKeyForRendering)("featuredImageUid", { documentId: pageValues }), async () => (await (0, medias_helpers_1.getFeaturedImageOf)(siteContext, {
|
|
144
|
+
leafId: pageValues.leafId,
|
|
145
|
+
documentType,
|
|
146
|
+
}))?.uid);
|
|
141
147
|
const siteTitle = await (0, liquidjs_drop_1.loadOrFromRenderingCache)(renderingContext, (0, liquidjs_drop_1.makeDropCacheKeyForRendering)("title", { lang: pageValues.lang }), async () => (0, data_formatters_lib_1.strValOrUndef)(await (0, load_fields_queries_1.getSiteFieldValue)(siteContext, { fieldName: "title", lang: pageValues.lang })));
|
|
142
148
|
const description = excerpt
|
|
143
149
|
? (0, excerpt_helpers_1.truncExcerptToWord)(excerpt, 55)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-page-drop.js","sourceRoot":"","sources":["../../src/public-payload/create-page-drop.ts"],"names":[],"mappings":";;;AAAA,oEAA2D;AAC3D,yDAMgC;AAChC,2EAAuE;AACvE,qDAA8D;AAC9D,gEAAgE;AAChE,gFAA8E;AAC9E,mEAKyC;AAEzC,oFAA+E;AAC/E,kFAAmF;AACnF,2EAAgF;AAEhF,6DAA2D;AAC3D,mEAA6D;AAC7D,uDAAgD;AAChD,iDAAuD;AACvD,iEAA6D;AAC7D,6DAA2D;AAC3D,mDAA4D;AAE5D,6DAA4D;AAC5D,iEAAiE;AAEjE,SAAgB,qBAAqB,CACnC,WAAwB,EACxB,gBAAkC,EAClC,UAAoC,EACpC,UAQI,EAAE;IAEN,MAAM,YAAY,G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AC,CAAC,IAAA,oCAAkB,EAAC,OAAO,EAAE,EAAE,CAAC;QACjC,CAAC,CAAC,UAAU,CAAC,eAAe;YAC1B,CAAC,CAAC,IAAA,oCAAkB,EAAC,UAAU,CAAC,eAAe,EAAE,EAAE,CAAC;YACpD,CAAC,CAAC,SAAS,CAAC;IAEhB,OAAO;QACL,GAAG,EAAE,GAAG,WAAW,CAAC,OAAO,GAAG,GAAG,EAAE;QACnC,IAAI,EAAE,YAAY,CAAC,MAAM;QACzB,QAAQ,EACN,gBAAgB;YAEhB,CACE,MAAM,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC;gBACtC,MAAM,EAAE,IAAA,4CAAoB,EAAC,WAAW,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;aACpE,CAAC,CACH,EAAE,GAAG;QACR,KAAK,EAAE,YAAY,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK;QACtE,QAAQ,EAAE,SAAS;QACnB,WAAW;QACX,MAAM,EAAE,UAAU,CAAC,IAAI;KACxB,CAAC;AACJ,CAAC"}
|
|
@@ -25,7 +25,9 @@ function createPagePartDrop(siteContext, renderingContext, pageValues, options =
|
|
|
25
25
|
leafId: pageValues.leafId,
|
|
26
26
|
lang: pageValues.lang,
|
|
27
27
|
}),
|
|
28
|
-
featuredImageUid: async () => (await (0, medias_helpers_1.getFeaturedImageOf)(siteContext,
|
|
28
|
+
featuredImageUid: async () => (await (0, medias_helpers_1.getFeaturedImageOf)(siteContext, {
|
|
29
|
+
leafId: pageValues.leafId,
|
|
30
|
+
}))?.uid,
|
|
29
31
|
fields: () => (0, field_values_1.loadPublicFieldValues)(siteContext, renderingContext, {
|
|
30
32
|
leafType: pageValues.leafType,
|
|
31
33
|
sectionId: pageValues,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-page-part-drop.js","sourceRoot":"","sources":["../../src/public-payload/create-page-part-drop.ts"],"names":[],"mappings":";;;AAAA,yDAAgF;AAChF,gFAA0E;AAC1E,mEAAoF;AAEpF,kFAAmF;AAEnF,iDAAuD;AACvD,6DAA2D;AAG3D,SAAgB,kBAAkB,CAChC,WAAwB,EACxB,gBAAkC,EAClC,UAAwC,EACxC,UAKI,EAAE;IAEN,MAAM,QAAQ,GAAG,IAAA,oCAAqB,EAAC,WAAW,CAAC,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"create-page-part-drop.js","sourceRoot":"","sources":["../../src/public-payload/create-page-part-drop.ts"],"names":[],"mappings":";;;AAAA,yDAAgF;AAChF,gFAA0E;AAC1E,mEAAoF;AAEpF,kFAAmF;AAEnF,iDAAuD;AACvD,6DAA2D;AAG3D,SAAgB,kBAAkB,CAChC,WAAwB,EACxB,gBAAkC,EAClC,UAAwC,EACxC,UAKI,EAAE;IAEN,MAAM,QAAQ,GAAG,IAAA,oCAAqB,EAAC,WAAW,CAAC,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IACpF,MAAM,aAAa,GAAG,IAAA,8CAAoB,EAAC,WAAW,CAAC,UAAU,EAAE;QACjE,IAAI,EAAE,UAAU,CAAC,IAAI;QACrB,QAAQ,EAAE,UAAU,CAAC,QAAQ;KAC9B,CAAC,CAAC;IAEH,OAAO,IAAA,kCAAkB,EACvB;QACE,gBAAgB;QAChB,eAAe,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE;QAC3C,MAAM,EAAE;YACN,IAAI,EAAE,MAAM;YACZ,EAAE,EAAE,IAAA,8BAAe,EAAC,UAAU,CAAC;YAC/B,GAAG,UAAU;YACb,eAAe,EAAE,GAAG,EAAE,CACpB,IAAA,wCAAmB,EAAC,WAAW,EAAE,gBAAgB,CAAC,OAAO,EAAE;gBACzD,UAAU,EAAE,QAAQ,CAAC,MAAM;gBAC3B,MAAM,EAAE,UAAU,CAAC,MAAM;gBACzB,IAAI,EAAE,UAAU,CAAC,IAAI;aACtB,CAAC;YACJ,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAC3B,CACE,MAAM,IAAA,mCAAkB,EAAC,WAAW,EAAE;gBACpC,MAAM,EAAE,UAAU,CAAC,MAAM;aAC1B,CAAC,CACH,EAAE,GAAG;YACR,MAAM,EAAE,GAAG,EAAE,CACX,IAAA,oCAAqB,EAAC,WAAW,EAAE,gBAAgB,EAAE;gBACnD,QAAQ,EAAE,UAAU,CAAC,QAAQ;gBAC7B,SAAS,EAAE,UAAU;gBACrB,UAAU,EAAE,OAAO,CAAC,UAAU;aAC/B,CAAC;YACJ,aAAa;SACd;KACF,EACD,WAAW,CACZ,CAAC;AACJ,CAAC;AAhDD,gDAgDC"}
|
|
@@ -6,7 +6,9 @@ const media_handles_helpers_1 = require("../common/media-handles.helpers");
|
|
|
6
6
|
const medias_helpers_1 = require("../modules/public-site/helpers/medias.helpers");
|
|
7
7
|
async function loadDefaultImageUid(siteContext, tracker, options) {
|
|
8
8
|
const { fieldTypes, leafId, lang } = options;
|
|
9
|
-
const featuredImage = await (0, medias_helpers_1.getFeaturedImageOf)(siteContext,
|
|
9
|
+
const featuredImage = await (0, medias_helpers_1.getFeaturedImageOf)(siteContext, {
|
|
10
|
+
leafId,
|
|
11
|
+
});
|
|
10
12
|
const defaultImageUid = featuredImage
|
|
11
13
|
? featuredImage.uid
|
|
12
14
|
: await getFirstImageUid(siteContext, tracker, { leafId, fieldTypes, lang });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-default-image.js","sourceRoot":"","sources":["../../src/public-payload/load-default-image.ts"],"names":[],"mappings":";;;AAAA,yDAA0E;AAE1E,2EAAmE;AACnE,kFAAmF;AAG5E,KAAK,UAAU,mBAAmB,CACvC,WAAwB,EACxB,OAAgB,EAChB,OAA8E;IAE9E,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IAC7C,MAAM,aAAa,GAAG,MAAM,IAAA,mCAAkB,EAAC,WAAW,EAAE,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"load-default-image.js","sourceRoot":"","sources":["../../src/public-payload/load-default-image.ts"],"names":[],"mappings":";;;AAAA,yDAA0E;AAE1E,2EAAmE;AACnE,kFAAmF;AAG5E,KAAK,UAAU,mBAAmB,CACvC,WAAwB,EACxB,OAAgB,EAChB,OAA8E;IAE9E,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IAC7C,MAAM,aAAa,GAAG,MAAM,IAAA,mCAAkB,EAAC,WAAW,EAAE;QAC1D,MAAM;KACP,CAAC,CAAC;IACH,MAAM,eAAe,GAAG,aAAa;QACnC,CAAC,CAAC,aAAa,CAAC,GAAG;QACnB,CAAC,CAAC,MAAM,gBAAgB,CAAC,WAAW,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;IAC/E,OAAO,eAAe,CAAC;AACzB,CAAC;AAbD,kDAaC;AAED,KAAK,UAAU,gBAAgB,CAC7B,WAAwB,EACxB,QAAiB,EACjB,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAA8D;IAExF,MAAM,cAAc,GAGd,EAAE,CAAC;IACT,KAAK,MAAM,CAAC,IAAI,UAAU,IAAI,EAAE,EAAE,CAAC;QACjC,IAAI,CAAC,CAAC,QAAQ,KAAK,aAAa,IAAI,CAAC,CAAC,IAAA,+BAAgB,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,CAAC;YAC7E,SAAS;QACX,CAAC;QACD,IAAI,CAAC,CAAC,iBAAiB,KAAK,SAAS,EAAE,CAAC;YACtC,MAAM,iBAAiB,GAAG,CAAC,CAAC,iBAAiB,CAAC;YAC9C,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC,CAAC;QAChD,CAAC;IACH,CAAC;IAED,MAAM,iBAAiB,GAAG,cAAc,CAAC,IAAI,CAC3C,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,iBAAiB,GAAG,CAAC,CAAC,iBAAiB,CACpD,CAAC;IAEF,IAAI,mBAAuC,CAAC;IAC5C,KAAK,MAAM,IAAI,IAAI,iBAAiB,EAAE,CAAC;QACrC,MAAM,MAAM,GAAG,IAAA,wCAAgB,EAAC,WAAW,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;QAClF,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC,YAAY,CAAC,gBAAgB,CAAC;YACpE,MAAM;SACP,CAAC,CAAC;QACH,IAAI,aAAa,EAAE,CAAC;YAClB,mBAAmB,GAAG,aAAa,CAAC;YACpC,MAAM;QACR,CAAC;IACH,CAAC;IAED,OAAO,mBAAmB,CAAC;AAC7B,CAAC"}
|
|
@@ -162,6 +162,7 @@ function toRoutingPointDocumentSchema(jsonData, langs, fields) {
|
|
|
162
162
|
useTaxonomies: jsonData.useTaxonomies,
|
|
163
163
|
templateNames: [dashedName],
|
|
164
164
|
ogType: jsonData.ogType,
|
|
165
|
+
disableFeaturedImage: jsonData.disableFeaturedImage,
|
|
165
166
|
};
|
|
166
167
|
}
|
|
167
168
|
function toUrlPaths(route, langs, defaultUrlPaths) {
|
|
@@ -219,6 +220,7 @@ function toClassicDocumentSchema(jsonData, fields) {
|
|
|
219
220
|
}),
|
|
220
221
|
templateNames: [dashedName],
|
|
221
222
|
ogType: jsonData.ogType,
|
|
223
|
+
disableFeaturedImage: jsonData.disableFeaturedImage,
|
|
222
224
|
};
|
|
223
225
|
}
|
|
224
226
|
function isRoutingPointRoute(route) {
|
|
@@ -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,yCAA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AQ,CAAC,CAAC;IACpD,IAAI,CAAC,QAAQ;QAAE,MAAM,IAAI,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":"composite","op":"union","types":[{"kind":"localRef","refName":"ModernizedSitePackConf"},{"kind":"localRef","refName":"LegacyFqdnSitePackConf"},{"kind":"localRef","refName":"LegacySubDomainSitePackConf"}]}]},{"name":"ModernizedSitePackConf","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":"serveOn","type":{"kind":"literal","literal":"fqdn"}}]}]},{"name":"LegacyFqdnSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveOn","type":{"kind":"name","group":"primitive","refName":"undefined"},"optional":true},{"name":"serveAs","type":{"kind":"literal","literal":"fqdn"}}]}]},{"name":"SubDomainSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveOn","type":{"kind":"literal","literal":"subDomain"}},{"name":"parentDomain","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},{"name":"LegacySubDomainSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveOn","type":{"kind":"name","group":"primitive","refName":"undefined"},"optional":true},{"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":"pixelRatio","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Default value is `1`."},{"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":"composite","op":"union","types":[{"kind":"localRef","refName":"ModernizedSitePackConf"},{"kind":"localRef","refName":"LegacyFqdnSitePackConf"},{"kind":"localRef","refName":"LegacySubDomainSitePackConf"}]}]},{"name":"ModernizedSitePackConf","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":"serveOn","type":{"kind":"literal","literal":"fqdn"}}]}]},{"name":"LegacyFqdnSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveOn","type":{"kind":"name","group":"primitive","refName":"undefined"},"optional":true},{"name":"serveAs","type":{"kind":"literal","literal":"fqdn"}}]}]},{"name":"SubDomainSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveOn","type":{"kind":"literal","literal":"subDomain"}},{"name":"parentDomain","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},{"name":"LegacySubDomainSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveOn","type":{"kind":"name","group":"primitive","refName":"undefined"},"optional":true},{"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":"disableFeaturedImage","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true}]},{"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":"pixelRatio","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Default value is `1`."},{"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.16.0",
|
|
4
4
|
"description": "The ParoiCMS server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms",
|
|
@@ -47,13 +47,13 @@
|
|
|
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.
|
|
50
|
+
"@paroicms/anywhere-lib": "1.6.0",
|
|
51
|
+
"@paroicms/bo": "1.17.0",
|
|
52
52
|
"@paroicms/plugin-lib": "0.3.0",
|
|
53
|
-
"@paroicms/server-database-media-storage": "1.3.
|
|
54
|
-
"@paroicms/server-image-cache-engine": "1.3.
|
|
55
|
-
"@paroicms/server-lib": "1.2.
|
|
56
|
-
"@paroicms/server-text-cache-system": "1.2.
|
|
53
|
+
"@paroicms/server-database-media-storage": "1.3.3",
|
|
54
|
+
"@paroicms/server-image-cache-engine": "1.3.3",
|
|
55
|
+
"@paroicms/server-lib": "1.2.3",
|
|
56
|
+
"@paroicms/server-text-cache-system": "1.2.3",
|
|
57
57
|
"@paroicms/site-app": "1.4.0",
|
|
58
58
|
"@typeonly/validator": "~0.6.0",
|
|
59
59
|
"archiver": "~7.0.1",
|
package/schema.gql
CHANGED
|
@@ -155,6 +155,11 @@ type Mutation {
|
|
|
155
155
|
updateDocumentTitle(id: ID!, values: UpdateDocumentTitleValues!): Document!
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
+
input OrderByItem {
|
|
159
|
+
direction: String!
|
|
160
|
+
fieldName: String!
|
|
161
|
+
}
|
|
162
|
+
|
|
158
163
|
type PagedSectionWraps {
|
|
159
164
|
items: [SectionWrap!]!
|
|
160
165
|
start: Int!
|
|
@@ -191,6 +196,7 @@ type Query {
|
|
|
191
196
|
medias(galleryHandle: ID!): [Media!]!
|
|
192
197
|
pagedSectionWraps(
|
|
193
198
|
limit: Int!
|
|
199
|
+
orderBy: [OrderByItem!]
|
|
194
200
|
|
|
195
201
|
"""lang:leafId"""
|
|
196
202
|
parentSectionId: ID!
|
|
@@ -198,7 +204,7 @@ type Query {
|
|
|
198
204
|
): PagedSectionWraps!
|
|
199
205
|
part(sectionId: ID!): Part!
|
|
200
206
|
routingPointIds: String!
|
|
201
|
-
searchDocuments(lang: String!, limit: Int!, queryString: String!, start: Int!): PagedSectionWraps!
|
|
207
|
+
searchDocuments(lang: String!, limit: Int!, orderBy: [OrderByItem!], queryString: String!, start: Int!): PagedSectionWraps!
|
|
202
208
|
sectionWrap(sectionId: ID!): SectionWrap!
|
|
203
209
|
sectionWraps(
|
|
204
210
|
"""lang:leafId"""
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"fr": "contactez-nous"
|
|
19
19
|
},
|
|
20
20
|
"withData": true,
|
|
21
|
-
"fields": ["shortTitle", "htmlContent"]
|
|
21
|
+
"fields": ["shortTitle", "htmlContent"],
|
|
22
|
+
"disableFeaturedImage": true
|
|
22
23
|
},
|
|
23
24
|
{
|
|
24
25
|
"leafType": "searchPage",
|
|
@@ -27,7 +28,8 @@
|
|
|
27
28
|
"fr": "recherche"
|
|
28
29
|
},
|
|
29
30
|
"withData": true,
|
|
30
|
-
"fields": ["htmlContent"]
|
|
31
|
+
"fields": ["htmlContent"],
|
|
32
|
+
"disableFeaturedImage": true
|
|
31
33
|
},
|
|
32
34
|
{
|
|
33
35
|
"leafType": "aboutPage",
|