@paroicms/server 1.47.0 → 1.49.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/helpers/make-plugin-site-context.js +7 -0
- package/dist/helpers/make-plugin-site-context.js.map +1 -1
- package/dist/modules/core/core.module.js +2 -4
- package/dist/modules/core/core.module.js.map +1 -1
- package/dist/modules/core/site-constants/site-constants.module.d.ts +2 -0
- package/dist/modules/core/{site-schema/site-schema.module.js → site-constants/site-constants.module.js} +8 -8
- package/dist/modules/core/site-constants/site-constants.module.js.map +1 -0
- package/dist/modules/core/site-constants/site-constants.resolver.d.ts +8 -0
- package/dist/modules/core/site-constants/site-constants.resolver.js +82 -0
- package/dist/modules/core/site-constants/site-constants.resolver.js.map +1 -0
- package/dist/modules/core/{site-info/site-info.schema.d.ts → site-constants/site-constants.schema.d.ts} +4 -4
- package/dist/modules/core/{site-info/site-info.schema.js → site-constants/site-constants.schema.js} +20 -20
- package/dist/modules/core/site-constants/site-constants.schema.js.map +1 -0
- package/dist/modules/core/unprotected/unprotected.resolver.d.ts +2 -3
- package/dist/modules/core/unprotected/unprotected.resolver.js +4 -15
- package/dist/modules/core/unprotected/unprotected.resolver.js.map +1 -1
- package/dist/modules/core/unprotected/unprotected.schema.d.ts +1 -4
- package/dist/modules/core/unprotected/unprotected.schema.js +9 -20
- package/dist/modules/core/unprotected/unprotected.schema.js.map +1 -1
- package/dist/modules/public-api/public-api-controller.d.ts +0 -7
- package/dist/modules/public-api/public-api-controller.js +0 -57
- package/dist/modules/public-api/public-api-controller.js.map +1 -1
- package/dist/site-context/create-site-context.js +6 -1
- package/dist/site-context/create-site-context.js.map +1 -1
- package/package.json +11 -11
- package/schema.gql +18 -21
- package/dist/modules/core/site-info/site-info.module.d.ts +0 -2
- package/dist/modules/core/site-info/site-info.module.js +0 -20
- package/dist/modules/core/site-info/site-info.module.js.map +0 -1
- package/dist/modules/core/site-info/site-info.resolver.d.ts +0 -5
- package/dist/modules/core/site-info/site-info.resolver.js +0 -46
- package/dist/modules/core/site-info/site-info.resolver.js.map +0 -1
- package/dist/modules/core/site-info/site-info.schema.js.map +0 -1
- package/dist/modules/core/site-schema/site-schema.module.d.ts +0 -2
- package/dist/modules/core/site-schema/site-schema.module.js.map +0 -1
- package/dist/modules/core/site-schema/site-schema.resolver.d.ts +0 -4
- package/dist/modules/core/site-schema/site-schema.resolver.js +0 -35
- package/dist/modules/core/site-schema/site-schema.resolver.js.map +0 -1
|
@@ -5,6 +5,7 @@ const sendMail_helpers_1 = require("../common/mail/sendMail.helpers");
|
|
|
5
5
|
const context_1 = require("../context");
|
|
6
6
|
const load_fields_queries_1 = require("../modules/core/fields/load-fields.queries");
|
|
7
7
|
const validate_recaptcha_response_1 = require("../modules/public-api/mail/validate-recaptcha-response");
|
|
8
|
+
const public_api_rendering_1 = require("../modules/public-api/public-api-rendering");
|
|
8
9
|
function makePluginSiteContext(siteContext) {
|
|
9
10
|
return {
|
|
10
11
|
fqdn: siteContext.fqdn,
|
|
@@ -17,6 +18,12 @@ function makePluginSiteContext(siteContext) {
|
|
|
17
18
|
return await (0, load_fields_queries_1.getSiteFieldValue)(siteContext, options);
|
|
18
19
|
},
|
|
19
20
|
sendMail: sendMail_helpers_1.sendMail,
|
|
21
|
+
renderChildPartials: async (options) => {
|
|
22
|
+
return await (0, public_api_rendering_1.renderChildPartials)(siteContext, options);
|
|
23
|
+
},
|
|
24
|
+
renderSearchPartials: async (options) => {
|
|
25
|
+
return await (0, public_api_rendering_1.renderSearchPartials)(siteContext, options);
|
|
26
|
+
},
|
|
20
27
|
};
|
|
21
28
|
}
|
|
22
29
|
function createValidateRecaptchaResponseForPlugin(siteContext) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-plugin-site-context.js","sourceRoot":"","sources":["../../src/helpers/make-plugin-site-context.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"make-plugin-site-context.js","sourceRoot":"","sources":["../../src/helpers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AC9E,CAAC"}
|
|
@@ -20,8 +20,7 @@ const login_module_1 = require("./login/login.module");
|
|
|
20
20
|
const media_module_1 = require("./media/media.module");
|
|
21
21
|
const part_module_1 = require("./part/part.module");
|
|
22
22
|
const section_module_1 = require("./section/section.module");
|
|
23
|
-
const
|
|
24
|
-
const site_schema_module_1 = require("./site-schema/site-schema.module");
|
|
23
|
+
const site_constants_module_1 = require("./site-constants/site-constants.module");
|
|
25
24
|
const unprotected_module_1 = require("./unprotected/unprotected.module");
|
|
26
25
|
let CoreModule = class CoreModule {
|
|
27
26
|
};
|
|
@@ -30,7 +29,7 @@ exports.CoreModule = CoreModule = __decorate([
|
|
|
30
29
|
(0, common_1.Module)({
|
|
31
30
|
imports: [
|
|
32
31
|
unprotected_module_1.UnprotectedModule,
|
|
33
|
-
|
|
32
|
+
site_constants_module_1.SiteConstantsModule,
|
|
34
33
|
section_module_1.SectionModule,
|
|
35
34
|
document_module_1.DocumentModule,
|
|
36
35
|
leaf_module_1.LeafModule,
|
|
@@ -39,7 +38,6 @@ exports.CoreModule = CoreModule = __decorate([
|
|
|
39
38
|
auth_module_1.AuthModule,
|
|
40
39
|
login_module_1.LoginModule,
|
|
41
40
|
fields_module_1.LeafJsonFieldModule,
|
|
42
|
-
site_schema_module_1.SiteSchemaModule,
|
|
43
41
|
labeling_module_1.LabelingModule,
|
|
44
42
|
part_module_1.PartModule,
|
|
45
43
|
media_module_1.MediaModule,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.module.js","sourceRoot":"","sources":["../../../src/modules/core/core.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,4EAAuE;AACvE,6DAAyD;AACzD,oDAAgD;AAChD,0DAAsD;AACtD,gEAA4D;AAC5D,0DAA6D;AAC7D,gEAA4D;AAC5D,oDAAgD;AAChD,uDAAmD;AACnD,uDAAmD;AACnD,oDAAgD;AAChD,6DAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"core.module.js","sourceRoot":"","sources":["../../../src/modules/core/core.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,4EAAuE;AACvE,6DAAyD;AACzD,oDAAgD;AAChD,0DAAsD;AACtD,gEAA4D;AAC5D,0DAA6D;AAC7D,gEAA4D;AAC5D,oDAAgD;AAChD,uDAAmD;AACnD,uDAAmD;AACnD,oDAAgD;AAChD,6DAAyD;AACzD,kFAA6E;AAC7E,yEAAqE;AAoB9D,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IAlBtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,sCAAiB;YACjB,2CAAmB;YACnB,8BAAa;YACb,gCAAc;YACd,wBAAU;YACV,8BAAa;YACb,uCAAiB;YACjB,wBAAU;YACV,0BAAW;YACX,mCAAmB;YACnB,gCAAc;YACd,wBAAU;YACV,0BAAW;YACX,4BAAY;SACb;KACF,CAAC;GACW,UAAU,CAAG"}
|
|
@@ -6,15 +6,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.SiteConstantsModule = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
|
-
const
|
|
12
|
-
let
|
|
11
|
+
const site_constants_resolver_1 = require("./site-constants.resolver");
|
|
12
|
+
let SiteConstantsModule = class SiteConstantsModule {
|
|
13
13
|
};
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
14
|
+
exports.SiteConstantsModule = SiteConstantsModule;
|
|
15
|
+
exports.SiteConstantsModule = SiteConstantsModule = __decorate([
|
|
16
16
|
(0, common_1.Module)({
|
|
17
|
-
providers: [
|
|
17
|
+
providers: [site_constants_resolver_1.SiteConstantsResolver],
|
|
18
18
|
})
|
|
19
|
-
],
|
|
20
|
-
//# sourceMappingURL=site-
|
|
19
|
+
], SiteConstantsModule);
|
|
20
|
+
//# sourceMappingURL=site-constants.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site-constants.module.js","sourceRoot":"","sources":["../../../../src/modules/core/site-constants/site-constants.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,uEAAkE;AAK3D,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IAH/B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,+CAAqB,CAAC;KACnC,CAAC;GACW,mBAAmB,CAAG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { GraphqlContext } from "../../graphql.types";
|
|
2
|
+
import { SiteConstantsObjectType, ThemeConfObjectType } from "./site-constants.schema";
|
|
3
|
+
export declare class SiteConstantsResolver {
|
|
4
|
+
siteConstants({ fqdn }: GraphqlContext): Promise<SiteConstantsObjectType>;
|
|
5
|
+
themeConf({ fqdn }: GraphqlContext): Promise<ThemeConfObjectType>;
|
|
6
|
+
siteSchema({ fqdn }: GraphqlContext): Promise<string>;
|
|
7
|
+
pluginBoConfs({ fqdn }: GraphqlContext): Promise<string>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SiteConstantsResolver = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
18
|
+
const context_1 = require("../../../context");
|
|
19
|
+
const site_context_1 = require("../../../site-context/site-context");
|
|
20
|
+
const jwt_auth_guard_1 = require("../auth/jwt.auth.guard");
|
|
21
|
+
const site_constants_schema_1 = require("./site-constants.schema");
|
|
22
|
+
let SiteConstantsResolver = class SiteConstantsResolver {
|
|
23
|
+
async siteConstants({ fqdn }) {
|
|
24
|
+
await (0, site_context_1.getSiteContext)(fqdn);
|
|
25
|
+
return {
|
|
26
|
+
appVersion: context_1.appVersion,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
async themeConf({ fqdn }) {
|
|
30
|
+
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
31
|
+
const themeConf = siteContext.themeConf;
|
|
32
|
+
return {
|
|
33
|
+
pixelRatio: themeConf.pixelRatio,
|
|
34
|
+
fTextImages: themeConf.fTextImages,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
async siteSchema({ fqdn }) {
|
|
38
|
+
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
39
|
+
return JSON.stringify(siteContext.siteSchema);
|
|
40
|
+
}
|
|
41
|
+
async pluginBoConfs({ fqdn }) {
|
|
42
|
+
await (0, site_context_1.getSiteContext)(fqdn);
|
|
43
|
+
return JSON.stringify(toPluginBoConfs(context_1.appConf.plugins));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
exports.SiteConstantsResolver = SiteConstantsResolver;
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, graphql_1.Query)(() => site_constants_schema_1.SiteConstantsObjectType),
|
|
49
|
+
__param(0, (0, graphql_1.Context)()),
|
|
50
|
+
__metadata("design:type", Function),
|
|
51
|
+
__metadata("design:paramtypes", [Object]),
|
|
52
|
+
__metadata("design:returntype", Promise)
|
|
53
|
+
], SiteConstantsResolver.prototype, "siteConstants", null);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, graphql_1.ResolveField)(() => site_constants_schema_1.ThemeConfObjectType),
|
|
56
|
+
__param(0, (0, graphql_1.Context)()),
|
|
57
|
+
__metadata("design:type", Function),
|
|
58
|
+
__metadata("design:paramtypes", [Object]),
|
|
59
|
+
__metadata("design:returntype", Promise)
|
|
60
|
+
], SiteConstantsResolver.prototype, "themeConf", null);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, graphql_1.ResolveField)(() => String),
|
|
63
|
+
__param(0, (0, graphql_1.Context)()),
|
|
64
|
+
__metadata("design:type", Function),
|
|
65
|
+
__metadata("design:paramtypes", [Object]),
|
|
66
|
+
__metadata("design:returntype", Promise)
|
|
67
|
+
], SiteConstantsResolver.prototype, "siteSchema", null);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, graphql_1.ResolveField)(() => String),
|
|
70
|
+
__param(0, (0, graphql_1.Context)()),
|
|
71
|
+
__metadata("design:type", Function),
|
|
72
|
+
__metadata("design:paramtypes", [Object]),
|
|
73
|
+
__metadata("design:returntype", Promise)
|
|
74
|
+
], SiteConstantsResolver.prototype, "pluginBoConfs", null);
|
|
75
|
+
exports.SiteConstantsResolver = SiteConstantsResolver = __decorate([
|
|
76
|
+
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
|
|
77
|
+
(0, graphql_1.Resolver)(() => site_constants_schema_1.SiteConstantsObjectType)
|
|
78
|
+
], SiteConstantsResolver);
|
|
79
|
+
function toPluginBoConfs(plugins) {
|
|
80
|
+
return Object.fromEntries(Object.entries(plugins ?? {}).map(([pluginName, pluginConf]) => [pluginName, pluginConf?.bo]));
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=site-constants.resolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site-constants.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/site-constants/site-constants.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,6CAAyE;AAEzE,8CAAuD;AACvD,qEAAoE;AAEpE,2DAAsD;AACtD,mEAAuF;AAIhF,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAE1B,AAAN,KAAK,CAAC,aAAa,CAAY,EAAE,IAAI,EAAkB;QACrD,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC3B,OAAO;YACL,UAAU,EAAV,oBAAU;SACX,CAAC;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CAAY,EAAE,IAAI,EAAkB;QACjD,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,MAAM,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;QACxC,OAAO;YACL,UAAU,EAAE,SAAS,CAAC,UAAU;YAChC,WAAW,EAAE,SAAS,CAAC,WAAW;SACnC,CAAC;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,UAAU,CAAY,EAAE,IAAI,EAAkB;QAClD,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAChD,CAAC;IAGK,AAAN,KAAK,CAAC,aAAa,CAAY,EAAE,IAAI,EAAkB;QACrD,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC3B,OAAO,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,iBAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1D,CAAC;CACF,CAAA;AA9BY,sDAAqB;AAE1B;IADL,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,+CAAuB,CAAC;IAChB,WAAA,IAAA,iBAAO,GAAE,CAAA;;;;0DAK7B;AAGK;IADL,IAAA,sBAAY,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;IACvB,WAAA,IAAA,iBAAO,GAAE,CAAA;;;;sDAOzB;AAGK;IADL,IAAA,sBAAY,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IACT,WAAA,IAAA,iBAAO,GAAE,CAAA;;;;uDAG1B;AAGK;IADL,IAAA,sBAAY,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IACN,WAAA,IAAA,iBAAO,GAAE,CAAA;;;;0DAG7B;gCA7BU,qBAAqB;IAFjC,IAAA,kBAAS,EAAC,6BAAY,CAAC;IACvB,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,+CAAuB,CAAC;GAC3B,qBAAqB,CA8BjC;AAED,SAAS,eAAe,CAAC,OAAoB;IAC3C,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,UAAU,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC,CAC9F,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare class
|
|
1
|
+
export declare class SiteConstantsObjectType {
|
|
2
|
+
appVersion: string;
|
|
3
|
+
}
|
|
4
|
+
export declare class ThemeConfObjectType {
|
|
2
5
|
pixelRatio: number;
|
|
3
6
|
fTextImages: FTextImageObjectType[];
|
|
4
7
|
}
|
|
5
|
-
export declare class SiteInfoObjectType {
|
|
6
|
-
currentThemeConf: CurrentThemeConfObjectType;
|
|
7
|
-
}
|
|
8
8
|
export declare class FTextImageObjectType {
|
|
9
9
|
displaySize: string;
|
|
10
10
|
realSize: string;
|
package/dist/modules/core/{site-info/site-info.schema.js → site-constants/site-constants.schema.js}
RENAMED
|
@@ -9,35 +9,35 @@ 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.FTextImageObjectType = exports.
|
|
12
|
+
exports.FTextImageObjectType = exports.ThemeConfObjectType = exports.SiteConstantsObjectType = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
let
|
|
14
|
+
let SiteConstantsObjectType = class SiteConstantsObjectType {
|
|
15
|
+
appVersion;
|
|
16
|
+
};
|
|
17
|
+
exports.SiteConstantsObjectType = SiteConstantsObjectType;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, graphql_1.Field)(() => String),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], SiteConstantsObjectType.prototype, "appVersion", void 0);
|
|
22
|
+
exports.SiteConstantsObjectType = SiteConstantsObjectType = __decorate([
|
|
23
|
+
(0, graphql_1.ObjectType)("SiteConstants")
|
|
24
|
+
], SiteConstantsObjectType);
|
|
25
|
+
let ThemeConfObjectType = class ThemeConfObjectType {
|
|
15
26
|
pixelRatio;
|
|
16
27
|
fTextImages;
|
|
17
28
|
};
|
|
18
|
-
exports.
|
|
29
|
+
exports.ThemeConfObjectType = ThemeConfObjectType;
|
|
19
30
|
__decorate([
|
|
20
31
|
(0, graphql_1.Field)(() => graphql_1.Float),
|
|
21
32
|
__metadata("design:type", Number)
|
|
22
|
-
],
|
|
33
|
+
], ThemeConfObjectType.prototype, "pixelRatio", void 0);
|
|
23
34
|
__decorate([
|
|
24
35
|
(0, graphql_1.Field)(() => [FTextImageObjectType]),
|
|
25
36
|
__metadata("design:type", Array)
|
|
26
|
-
],
|
|
27
|
-
exports.
|
|
28
|
-
(0, graphql_1.ObjectType)("
|
|
29
|
-
],
|
|
30
|
-
let SiteInfoObjectType = class SiteInfoObjectType {
|
|
31
|
-
currentThemeConf;
|
|
32
|
-
};
|
|
33
|
-
exports.SiteInfoObjectType = SiteInfoObjectType;
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, graphql_1.Field)(() => CurrentThemeConfObjectType),
|
|
36
|
-
__metadata("design:type", CurrentThemeConfObjectType)
|
|
37
|
-
], SiteInfoObjectType.prototype, "currentThemeConf", void 0);
|
|
38
|
-
exports.SiteInfoObjectType = SiteInfoObjectType = __decorate([
|
|
39
|
-
(0, graphql_1.ObjectType)("SiteInfo")
|
|
40
|
-
], SiteInfoObjectType);
|
|
37
|
+
], ThemeConfObjectType.prototype, "fTextImages", void 0);
|
|
38
|
+
exports.ThemeConfObjectType = ThemeConfObjectType = __decorate([
|
|
39
|
+
(0, graphql_1.ObjectType)("ThemeConf")
|
|
40
|
+
], ThemeConfObjectType);
|
|
41
41
|
let FTextImageObjectType = class FTextImageObjectType {
|
|
42
42
|
displaySize;
|
|
43
43
|
realSize;
|
|
@@ -54,4 +54,4 @@ __decorate([
|
|
|
54
54
|
exports.FTextImageObjectType = FTextImageObjectType = __decorate([
|
|
55
55
|
(0, graphql_1.ObjectType)("FTextImage")
|
|
56
56
|
], FTextImageObjectType);
|
|
57
|
-
//# sourceMappingURL=site-
|
|
57
|
+
//# sourceMappingURL=site-constants.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site-constants.schema.js","sourceRoot":"","sources":["../../../../src/modules/core/site-constants/site-constants.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA2D;AAGpD,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAElC,UAAU,CAAU;CACrB,CAAA;AAHY,0DAAuB;AAElC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2DACA;kCAFT,uBAAuB;IADnC,IAAA,oBAAU,EAAC,eAAe,CAAC;GACf,uBAAuB,CAGnC;AAGM,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAE9B,UAAU,CAAU;IAGpB,WAAW,CAA0B;CACtC,CAAA;AANY,kDAAmB;AAE9B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,CAAC;;uDACC;AAGpB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,oBAAoB,CAAC,CAAC;;wDACC;8BAL1B,mBAAmB;IAD/B,IAAA,oBAAU,EAAC,WAAW,CAAC;GACX,mBAAmB,CAM/B;AAGM,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAE/B,WAAW,CAAU;IAGrB,QAAQ,CAAU;CACnB,CAAA;AANY,oDAAoB;AAE/B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;yDACC;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sDACF;+BALP,oBAAoB;IADhC,IAAA,oBAAU,EAAC,YAAY,CAAC;GACZ,oBAAoB,CAMhC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { GraphqlContext } from "../../graphql.types";
|
|
2
|
-
import {
|
|
2
|
+
import { FaviconThumbObjectType, PublicSiteConstantsObjectType } from "./unprotected.schema";
|
|
3
3
|
export declare class UnprotectedResolver {
|
|
4
|
-
|
|
5
|
-
appVersion(): AppVersionObjectType;
|
|
4
|
+
publicSiteConstants({ fqdn }: GraphqlContext): Promise<PublicSiteConstantsObjectType>;
|
|
6
5
|
faviconThumb({ fqdn }: GraphqlContext): Promise<FaviconThumbObjectType | undefined>;
|
|
7
6
|
boFaviconThumb({ fqdn }: GraphqlContext): Promise<FaviconThumbObjectType | undefined>;
|
|
8
7
|
}
|
|
@@ -21,7 +21,7 @@ const site_context_1 = require("../../../site-context/site-context");
|
|
|
21
21
|
const media_1 = require("../media/media");
|
|
22
22
|
const unprotected_schema_1 = require("./unprotected.schema");
|
|
23
23
|
let UnprotectedResolver = class UnprotectedResolver {
|
|
24
|
-
async
|
|
24
|
+
async publicSiteConstants({ fqdn }) {
|
|
25
25
|
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
26
26
|
return {
|
|
27
27
|
languageWithLabels: siteContext.siteSchema.languages.map((language) => ({
|
|
@@ -32,11 +32,6 @@ let UnprotectedResolver = class UnprotectedResolver {
|
|
|
32
32
|
platformAuthUrl: !context_1.appConf.googleAuth || context_1.appConf.googleAuth.disabled ? undefined : context_1.platformAuthUrl,
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
appVersion() {
|
|
36
|
-
return {
|
|
37
|
-
version: context_1.appVersion,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
35
|
async faviconThumb({ fqdn }) {
|
|
41
36
|
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
42
37
|
return await makeFaviconThumbReady(siteContext, {
|
|
@@ -54,18 +49,12 @@ let UnprotectedResolver = class UnprotectedResolver {
|
|
|
54
49
|
};
|
|
55
50
|
exports.UnprotectedResolver = UnprotectedResolver;
|
|
56
51
|
__decorate([
|
|
57
|
-
(0, graphql_1.Query)(() => unprotected_schema_1.
|
|
52
|
+
(0, graphql_1.Query)(() => unprotected_schema_1.PublicSiteConstantsObjectType),
|
|
58
53
|
__param(0, (0, graphql_1.Context)()),
|
|
59
54
|
__metadata("design:type", Function),
|
|
60
55
|
__metadata("design:paramtypes", [Object]),
|
|
61
56
|
__metadata("design:returntype", Promise)
|
|
62
|
-
], UnprotectedResolver.prototype, "
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, graphql_1.Query)(() => unprotected_schema_1.AppVersionObjectType),
|
|
65
|
-
__metadata("design:type", Function),
|
|
66
|
-
__metadata("design:paramtypes", []),
|
|
67
|
-
__metadata("design:returntype", unprotected_schema_1.AppVersionObjectType)
|
|
68
|
-
], UnprotectedResolver.prototype, "appVersion", null);
|
|
57
|
+
], UnprotectedResolver.prototype, "publicSiteConstants", null);
|
|
69
58
|
__decorate([
|
|
70
59
|
(0, graphql_1.ResolveField)(() => unprotected_schema_1.FaviconThumbObjectType, { nullable: true }),
|
|
71
60
|
__param(0, (0, graphql_1.Context)()),
|
|
@@ -81,7 +70,7 @@ __decorate([
|
|
|
81
70
|
__metadata("design:returntype", Promise)
|
|
82
71
|
], UnprotectedResolver.prototype, "boFaviconThumb", null);
|
|
83
72
|
exports.UnprotectedResolver = UnprotectedResolver = __decorate([
|
|
84
|
-
(0, graphql_1.Resolver)(() => unprotected_schema_1.
|
|
73
|
+
(0, graphql_1.Resolver)(() => unprotected_schema_1.PublicSiteConstantsObjectType)
|
|
85
74
|
], UnprotectedResolver);
|
|
86
75
|
async function makeFaviconThumbReady(siteContext, { handle, realSize }) {
|
|
87
76
|
const media = await siteContext.mediaStorage.getMedia({ handle });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unprotected.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/unprotected/unprotected.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAyE;AAEzE,mEAAgE;AAChE,iFAG+C;AAC/C,
|
|
1
|
+
{"version":3,"file":"unprotected.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/unprotected/unprotected.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAyE;AAEzE,mEAAgE;AAChE,iFAG+C;AAC/C,8CAA4D;AAC5D,qEAAoE;AAGpE,0CAAsD;AACtD,6DAA6F;AAGtF,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAExB,AAAN,KAAK,CAAC,mBAAmB,CACZ,EAAE,IAAI,EAAkB;QAEnC,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,OAAO;YACL,kBAAkB,EAAE,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC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CAAA;;;;yDAOX;8BArCU,mBAAmB;IAD/B,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kDAA6B,CAAC;GACjC,mBAAmB,CAsC/B;AAED,KAAK,UAAU,qBAAqB,CAClC,WAAwB,EACxB,EAAE,MAAM,EAAE,QAAQ,EAA2C;IAE7D,MAAM,KAAK,GAAG,MAAM,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IAClE,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO;QAAE,OAAO;IAE7C,MAAM,UAAU,GAAG,MAAM,IAAA,4BAAoB,EAAC,WAAW,EAAE;QACzD,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE;YACR,QAAQ,EAAE,KAAK,CAAC,GAAG;YACnB,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,MAAM,EAAE,KAAK,CAAC,MAAM;SACrB;QACD,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,IAAI;QAClB,WAAW,EAAE,IAAI;QACjB,gBAAgB,EAAE,IAAI;QACtB,IAAI,EAAE,IAAA,qCAAiB,EAAC,KAAK,CAAC,YAAY,CAAC;KAC5C,CAAC,CAAC;IAEH,OAAO;QACL,GAAG,EAAE,UAAU,CAAC,GAAG;QACnB,KAAK,EAAE,UAAU,CAAC,KAAK;QACvB,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,SAAS,EAAE,UAAU,CAAC,SAAS;KAChC,CAAC;AACJ,CAAC"}
|
|
@@ -2,14 +2,11 @@ export declare class LanguageWithLabelObjectType {
|
|
|
2
2
|
language: string;
|
|
3
3
|
label: string;
|
|
4
4
|
}
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class PublicSiteConstantsObjectType {
|
|
6
6
|
languageWithLabels: LanguageWithLabelObjectType[];
|
|
7
7
|
publicSiteUrl: string;
|
|
8
8
|
platformAuthUrl?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare class AppVersionObjectType {
|
|
11
|
-
version: string;
|
|
12
|
-
}
|
|
13
10
|
export declare class FaviconThumbObjectType {
|
|
14
11
|
url: string;
|
|
15
12
|
width: number;
|
|
@@ -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.FaviconThumbObjectType = exports.
|
|
12
|
+
exports.FaviconThumbObjectType = exports.PublicSiteConstantsObjectType = exports.LanguageWithLabelObjectType = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
14
|
let LanguageWithLabelObjectType = class LanguageWithLabelObjectType {
|
|
15
15
|
language;
|
|
@@ -27,38 +27,27 @@ __decorate([
|
|
|
27
27
|
exports.LanguageWithLabelObjectType = LanguageWithLabelObjectType = __decorate([
|
|
28
28
|
(0, graphql_1.ObjectType)("LanguageWithLabel")
|
|
29
29
|
], LanguageWithLabelObjectType);
|
|
30
|
-
let
|
|
30
|
+
let PublicSiteConstantsObjectType = class PublicSiteConstantsObjectType {
|
|
31
31
|
languageWithLabels;
|
|
32
32
|
publicSiteUrl;
|
|
33
33
|
platformAuthUrl;
|
|
34
34
|
};
|
|
35
|
-
exports.
|
|
35
|
+
exports.PublicSiteConstantsObjectType = PublicSiteConstantsObjectType;
|
|
36
36
|
__decorate([
|
|
37
37
|
(0, graphql_1.Field)(() => [LanguageWithLabelObjectType]),
|
|
38
38
|
__metadata("design:type", Array)
|
|
39
|
-
],
|
|
39
|
+
], PublicSiteConstantsObjectType.prototype, "languageWithLabels", void 0);
|
|
40
40
|
__decorate([
|
|
41
41
|
(0, graphql_1.Field)(() => String),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
|
-
],
|
|
43
|
+
], PublicSiteConstantsObjectType.prototype, "publicSiteUrl", void 0);
|
|
44
44
|
__decorate([
|
|
45
45
|
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
46
46
|
__metadata("design:type", String)
|
|
47
|
-
],
|
|
48
|
-
exports.
|
|
49
|
-
(0, graphql_1.ObjectType)("
|
|
50
|
-
],
|
|
51
|
-
let AppVersionObjectType = class AppVersionObjectType {
|
|
52
|
-
version;
|
|
53
|
-
};
|
|
54
|
-
exports.AppVersionObjectType = AppVersionObjectType;
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, graphql_1.Field)(() => String),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], AppVersionObjectType.prototype, "version", void 0);
|
|
59
|
-
exports.AppVersionObjectType = AppVersionObjectType = __decorate([
|
|
60
|
-
(0, graphql_1.ObjectType)("AppVersion")
|
|
61
|
-
], AppVersionObjectType);
|
|
47
|
+
], PublicSiteConstantsObjectType.prototype, "platformAuthUrl", void 0);
|
|
48
|
+
exports.PublicSiteConstantsObjectType = PublicSiteConstantsObjectType = __decorate([
|
|
49
|
+
(0, graphql_1.ObjectType)("PublicSiteConstants")
|
|
50
|
+
], PublicSiteConstantsObjectType);
|
|
62
51
|
let FaviconThumbObjectType = class FaviconThumbObjectType {
|
|
63
52
|
url;
|
|
64
53
|
width;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unprotected.schema.js","sourceRoot":"","sources":["../../../../src/modules/core/unprotected/unprotected.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6D;AAGtD,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAEtC,QAAQ,CAAU;IAGlB,KAAK,CAAU;CAChB,CAAA;AANY,kEAA2B;AAEtC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;6DACE;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0DACL;sCALJ,2BAA2B;IADvC,IAAA,oBAAU,EAAC,mBAAmB,CAAC;GACnB,2BAA2B,CAMvC;AAGM,IAAM,
|
|
1
|
+
{"version":3,"file":"unprotected.schema.js","sourceRoot":"","sources":["../../../../src/modules/core/unprotected/unprotected.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6D;AAGtD,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAEtC,QAAQ,CAAU;IAGlB,KAAK,CAAU;CAChB,CAAA;AANY,kEAA2B;AAEtC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;6DACE;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0DACL;sCALJ,2BAA2B;IADvC,IAAA,oBAAU,EAAC,mBAAmB,CAAC;GACnB,2BAA2B,CAMvC;AAGM,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IAExC,kBAAkB,CAAiC;IAGnD,aAAa,CAAU;IAGvB,eAAe,CAAU;CAC1B,CAAA;AATY,sEAA6B;AAExC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,2BAA2B,CAAC,CAAC;;yEACQ;AAGnD;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oEACG;AAGvB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACf;wCARd,6BAA6B;IADzC,IAAA,oBAAU,EAAC,qBAAqB,CAAC;GACrB,6BAA6B,CASzC;AAGM,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAEjC,GAAG,CAAU;IAGb,KAAK,CAAU;IAGf,MAAM,CAAU;IAGhB,SAAS,CAAU;CACpB,CAAA;AAZY,wDAAsB;AAEjC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;mDACP;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;qDACF;AAGf;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;sDACD;AAGhB;IADC,IAAA,eAAK,GAAE;;yDACW;iCAXR,sBAAsB;IADlC,IAAA,oBAAU,EAAC,cAAc,CAAC;GACd,sBAAsB,CAYlC"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { PartialsParamsInput } from "./partials/partials-params.dto";
|
|
2
|
-
import { SearchTextOptionsInput } from "./search-text/search-text.dto";
|
|
3
|
-
import type { Request, Response } from "express";
|
|
4
1
|
interface HealthCheckType {
|
|
5
2
|
status: string;
|
|
6
3
|
}
|
|
@@ -10,9 +7,5 @@ export interface ApiSearchResult {
|
|
|
10
7
|
}
|
|
11
8
|
export declare class PublicApiController {
|
|
12
9
|
healthCheck(): HealthCheckType;
|
|
13
|
-
partials(req: Request, res: Response, params: PartialsParamsInput, labeledById?: string): Promise<void>;
|
|
14
|
-
search(query: SearchTextOptionsInput, req: Request, res: Response): Promise<{
|
|
15
|
-
total: number;
|
|
16
|
-
} | undefined>;
|
|
17
10
|
}
|
|
18
11
|
export {};
|
|
@@ -8,54 +8,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
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
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
12
|
exports.PublicApiController = void 0;
|
|
16
|
-
const partials_params_dto_1 = require("./partials/partials-params.dto");
|
|
17
|
-
const search_text_dto_1 = require("./search-text/search-text.dto");
|
|
18
13
|
const common_1 = require("@nestjs/common");
|
|
19
|
-
const data_formatters_lib_1 = require("@paroi/data-formatters-lib");
|
|
20
|
-
const public_anywhere_lib_1 = require("@paroicms/public-anywhere-lib");
|
|
21
|
-
const utils_helper_1 = require("../../helpers/utils-helper");
|
|
22
|
-
const site_context_1 = require("../../site-context/site-context");
|
|
23
14
|
const class_validator_options_1 = require("./class-validator-options");
|
|
24
|
-
const public_api_rendering_1 = require("./public-api-rendering");
|
|
25
15
|
let PublicApiController = class PublicApiController {
|
|
26
16
|
healthCheck() {
|
|
27
17
|
return {
|
|
28
18
|
status: "ready",
|
|
29
19
|
};
|
|
30
20
|
}
|
|
31
|
-
async partials(req, res, params, labeledById) {
|
|
32
|
-
const parentId = (0, public_anywhere_lib_1.parseSectionId)(params.documentId);
|
|
33
|
-
const siteContext = await (0, site_context_1.getSiteContext)(req.hostname);
|
|
34
|
-
const labeledByTermId = (0, data_formatters_lib_1.isDef)(labeledById) ? (0, utils_helper_1.toLeafId)(labeledById) : undefined;
|
|
35
|
-
await (0, public_api_rendering_1.renderChildPartials)(siteContext, {
|
|
36
|
-
req,
|
|
37
|
-
res,
|
|
38
|
-
params,
|
|
39
|
-
parentDocumentId: parentId,
|
|
40
|
-
labeledByTermId,
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
async search(query, req, res) {
|
|
44
|
-
const { q, language, limit, start, tpl } = query;
|
|
45
|
-
const words = q.split(/\s+/).filter((word) => word.length >= 2);
|
|
46
|
-
if (words.length === 0)
|
|
47
|
-
return { total: 0 };
|
|
48
|
-
const siteContext = await (0, site_context_1.getSiteContext)(req.hostname);
|
|
49
|
-
await (0, public_api_rendering_1.renderSearchPartials)(siteContext, {
|
|
50
|
-
req,
|
|
51
|
-
res,
|
|
52
|
-
language,
|
|
53
|
-
words,
|
|
54
|
-
limit,
|
|
55
|
-
start,
|
|
56
|
-
templateName: tpl,
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
21
|
};
|
|
60
22
|
exports.PublicApiController = PublicApiController;
|
|
61
23
|
__decorate([
|
|
@@ -64,25 +26,6 @@ __decorate([
|
|
|
64
26
|
__metadata("design:paramtypes", []),
|
|
65
27
|
__metadata("design:returntype", Object)
|
|
66
28
|
], PublicApiController.prototype, "healthCheck", null);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, common_1.Get)("partials/:templateName/children-of/:documentId/start/:offset/limit/:limit"),
|
|
69
|
-
__param(0, (0, common_1.Req)()),
|
|
70
|
-
__param(1, (0, common_1.Res)()),
|
|
71
|
-
__param(2, (0, common_1.Param)()),
|
|
72
|
-
__param(3, (0, common_1.Query)("labeled")),
|
|
73
|
-
__metadata("design:type", Function),
|
|
74
|
-
__metadata("design:paramtypes", [Object, Object, partials_params_dto_1.PartialsParamsInput, String]),
|
|
75
|
-
__metadata("design:returntype", Promise)
|
|
76
|
-
], PublicApiController.prototype, "partials", null);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, common_1.Get)("search"),
|
|
79
|
-
__param(0, (0, common_1.Query)()),
|
|
80
|
-
__param(1, (0, common_1.Req)()),
|
|
81
|
-
__param(2, (0, common_1.Res)()),
|
|
82
|
-
__metadata("design:type", Function),
|
|
83
|
-
__metadata("design:paramtypes", [search_text_dto_1.SearchTextOptionsInput, Object, Object]),
|
|
84
|
-
__metadata("design:returntype", Promise)
|
|
85
|
-
], PublicApiController.prototype, "search", null);
|
|
86
29
|
exports.PublicApiController = PublicApiController = __decorate([
|
|
87
30
|
(0, common_1.Controller)("api/v1"),
|
|
88
31
|
(0, common_1.UsePipes)(new common_1.ValidationPipe(class_validator_options_1.classValidatorOptions))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api-controller.js","sourceRoot":"","sources":["../../../src/modules/public-api/public-api-controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"public-api-controller.js","sourceRoot":"","sources":["../../../src/modules/public-api/public-api-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA2E;AAC3E,uEAAkE;AAa3D,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAE9B,WAAW;QACT,OAAO;YACL,MAAM,EAAE,OAAO;SAChB,CAAC;IACJ,CAAC;CACF,CAAA;AAPY,kDAAmB;AAE9B;IADC,IAAA,YAAG,EAAC,aAAa,CAAC;;;;sDAKlB;8BANU,mBAAmB;IAF/B,IAAA,mBAAU,EAAC,QAAQ,CAAC;IACpB,IAAA,iBAAQ,EAAC,IAAI,uBAAc,CAAC,+CAAqB,CAAC,CAAC;GACvC,mBAAmB,CAO/B"}
|
|
@@ -40,7 +40,12 @@ async function createSiteContext(siteConf) {
|
|
|
40
40
|
await (0, internal_server_lib_1.ensureDirectory)(dataDir);
|
|
41
41
|
await (0, internal_server_lib_1.ensureDirectory)(cacheDir);
|
|
42
42
|
await (0, internal_server_lib_1.ensureDirectory)(backupDir);
|
|
43
|
-
const { siteSchema, plugins } = await (0, connector_1.loadSiteSchema)(
|
|
43
|
+
const { siteSchema, plugins } = await (0, connector_1.loadSiteSchema)({
|
|
44
|
+
siteLog,
|
|
45
|
+
siteConf,
|
|
46
|
+
commonSchemaLib: (0, context_1.getCommonSchemaLib)(),
|
|
47
|
+
pluginConfs: context_1.appConf.plugins ?? {},
|
|
48
|
+
});
|
|
44
49
|
const mediaStorage = await (0, connector_1.initializeMediaStorage)({ siteLog, dataDir }, { canCreate: !!context_1.appConf.generateMissingDatabases });
|
|
45
50
|
const { cn, logNextQuery } = await (0, connector_1.createOrOpenMainConnection)(dataDir, {
|
|
46
51
|
canCreate: !!context_1.appConf.generateMissingDatabases,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-site-context.js","sourceRoot":"","sources":["../../src/site-context/create-site-context.ts"],"names":[],"mappings":";;;;;AAmDA,
|
|
1
|
+
{"version":3,"file":"create-site-context.js","sourceRoot":"","sources":["../../src/site-context/create-site-context.ts"],"names":[],"mappings":";;;;;AAmDA,8CA2FC;AA9ID,2CAAmD;AACnD,mDAU6B;AAC7B,uEAA6E;AAE7E,mEAAqE;AAErE,mFAA6E;AAC7E,iFAI4C;AAC5C,uCAAkC;AAClC,yCAAiC;AAEjC,qDAA0F;AAC1F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,UAAU,EAAE,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,QAAQ,CAAC,UAAU,GAAG,IAAI,CAAC;IAC7B,CAAC;IAED,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;AACvD,CAAC;AAED,KAAK,UAAU,gCAAgC,CAAC,GAI/C;IACC,MAAM,KAAK,GAAG,MAAM,IAAA,gCAAiB,EAAC,GAAG,CAAC,CAAC;IAC3C,KAAK,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,KAAK,EAAE,CAAC;QAC5C,MAAM,aAAa,GAAG,MAAM,IAAA,uCAA0B,EAAC,GAAG,EAAE;YAC1D,cAAc,EAAE,MAAM;YACtB,QAAQ,EAAE,UAAU;SACrB,CAAC,CAAC;QACH,MAAM,QAAQ,GAAG,IAAA,mCAAsB,EAAC,EAAE,MAAM,EAAE,CAAC,CAAC;QACpD,MAAM,GAAG,CAAC,SAAS,CAAC,oBAAoB,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IAC3F,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paroicms/server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.49.0",
|
|
4
4
|
"description": "The ParoiCMS server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms",
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
"@nestjs/platform-express": "~10.3.8",
|
|
46
46
|
"@nestjs/throttler": "~5.1.2",
|
|
47
47
|
"@paroi/data-formatters-lib": "~0.4.0",
|
|
48
|
-
"@paroicms/internal-anywhere-lib": "1.18.
|
|
49
|
-
"@paroicms/bo": "1.
|
|
50
|
-
"@paroicms/public-anywhere-lib": "0.
|
|
51
|
-
"@paroicms/public-server-lib": "0.
|
|
52
|
-
"@paroicms/server-database-media-storage": "1.8.
|
|
53
|
-
"@paroicms/server-image-cache-engine": "1.12.
|
|
54
|
-
"@paroicms/internal-server-lib": "1.7.
|
|
55
|
-
"@paroicms/server-text-cache-system": "1.7.
|
|
56
|
-
"@paroicms/site-app": "1.
|
|
57
|
-
"@paroicms/connector": "0.
|
|
48
|
+
"@paroicms/internal-anywhere-lib": "1.18.2",
|
|
49
|
+
"@paroicms/bo": "1.39.0",
|
|
50
|
+
"@paroicms/public-anywhere-lib": "0.5.0",
|
|
51
|
+
"@paroicms/public-server-lib": "0.12.0",
|
|
52
|
+
"@paroicms/server-database-media-storage": "1.8.6",
|
|
53
|
+
"@paroicms/server-image-cache-engine": "1.12.5",
|
|
54
|
+
"@paroicms/internal-server-lib": "1.7.6",
|
|
55
|
+
"@paroicms/server-text-cache-system": "1.7.6",
|
|
56
|
+
"@paroicms/site-app": "1.11.0",
|
|
57
|
+
"@paroicms/connector": "0.6.1",
|
|
58
58
|
"@types/express": "*",
|
|
59
59
|
"bcrypt": "~5.1.0",
|
|
60
60
|
"class-transformer": "~0.5.1",
|
package/schema.gql
CHANGED
|
@@ -18,10 +18,6 @@ input AccountPreferencesValues {
|
|
|
18
18
|
language: String
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
type AppVersion {
|
|
22
|
-
version: String!
|
|
23
|
-
}
|
|
24
|
-
|
|
25
21
|
type AuthenticatedAccount {
|
|
26
22
|
email: String!
|
|
27
23
|
hasPasswordResetToken: Boolean!
|
|
@@ -62,11 +58,6 @@ input CreateLeafWithDocumentValues {
|
|
|
62
58
|
typeName: String!
|
|
63
59
|
}
|
|
64
60
|
|
|
65
|
-
type CurrentThemeConf {
|
|
66
|
-
fTextImages: [FTextImage!]!
|
|
67
|
-
pixelRatio: Float!
|
|
68
|
-
}
|
|
69
|
-
|
|
70
61
|
"""
|
|
71
62
|
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
|
|
72
63
|
"""
|
|
@@ -197,10 +188,17 @@ type PartPlaceholder {
|
|
|
197
188
|
typeName: String!
|
|
198
189
|
}
|
|
199
190
|
|
|
191
|
+
type PublicSiteConstants {
|
|
192
|
+
boFaviconThumb: FaviconThumb
|
|
193
|
+
faviconThumb: FaviconThumb
|
|
194
|
+
languageWithLabels: [LanguageWithLabel!]!
|
|
195
|
+
platformAuthUrl: String
|
|
196
|
+
publicSiteUrl: String!
|
|
197
|
+
}
|
|
198
|
+
|
|
200
199
|
type Query {
|
|
201
200
|
account(id: ID!): Account!
|
|
202
201
|
allAccounts: [Account!]!
|
|
203
|
-
appVersion: AppVersion!
|
|
204
202
|
authAccount: AuthenticatedAccount!
|
|
205
203
|
document(id: ID!): Document!
|
|
206
204
|
getMediaByUid(mediaUid: String!): Media!
|
|
@@ -208,14 +206,13 @@ type Query {
|
|
|
208
206
|
medias(handle: ID!): [Media!]!
|
|
209
207
|
pagedSectionWraps(limit: Int!, orderBy: [OrderByItem!], parentSectionId: ID!, start: Int!): PagedSectionWraps!
|
|
210
208
|
part(sectionId: ID!): Part!
|
|
209
|
+
publicSiteConstants: PublicSiteConstants!
|
|
211
210
|
routingPointIds: String!
|
|
212
211
|
searchDocuments(language: String!, limit: Int!, orderBy: [OrderByItem!], queryString: String!, start: Int!): PagedSectionWraps!
|
|
213
212
|
sectionWrap(sectionId: ID!): SectionWrap!
|
|
214
213
|
sectionWraps(parentSectionId: ID!): [SectionWrap!]!
|
|
214
|
+
siteConstants: SiteConstants!
|
|
215
215
|
siteFieldValues(fieldNames: [String!], language: String, preprocess: Boolean): String!
|
|
216
|
-
siteInfo: SiteInfo!
|
|
217
|
-
siteSchema: String!
|
|
218
|
-
thisSiteConstants: ThisSiteConstants!
|
|
219
216
|
}
|
|
220
217
|
|
|
221
218
|
input ReorderMediasInput {
|
|
@@ -249,8 +246,11 @@ type SectionWrap {
|
|
|
249
246
|
translations: [SectionTranslation!]!
|
|
250
247
|
}
|
|
251
248
|
|
|
252
|
-
type
|
|
253
|
-
|
|
249
|
+
type SiteConstants {
|
|
250
|
+
appVersion: String!
|
|
251
|
+
pluginBoConfs: String!
|
|
252
|
+
siteSchema: String!
|
|
253
|
+
themeConf: ThemeConf!
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
type TermDocument {
|
|
@@ -263,12 +263,9 @@ input TermValues {
|
|
|
263
263
|
termLeafId: ID!
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
type
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
languageWithLabels: [LanguageWithLabel!]!
|
|
270
|
-
platformAuthUrl: String
|
|
271
|
-
publicSiteUrl: String!
|
|
266
|
+
type ThemeConf {
|
|
267
|
+
fTextImages: [FTextImage!]!
|
|
268
|
+
pixelRatio: Float!
|
|
272
269
|
}
|
|
273
270
|
|
|
274
271
|
type ThumbImageProperties {
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.SiteInfoModule = void 0;
|
|
10
|
-
const common_1 = require("@nestjs/common");
|
|
11
|
-
const site_info_resolver_1 = require("./site-info.resolver");
|
|
12
|
-
let SiteInfoModule = class SiteInfoModule {
|
|
13
|
-
};
|
|
14
|
-
exports.SiteInfoModule = SiteInfoModule;
|
|
15
|
-
exports.SiteInfoModule = SiteInfoModule = __decorate([
|
|
16
|
-
(0, common_1.Module)({
|
|
17
|
-
providers: [site_info_resolver_1.SiteInfoResolver],
|
|
18
|
-
})
|
|
19
|
-
], SiteInfoModule);
|
|
20
|
-
//# sourceMappingURL=site-info.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"site-info.module.js","sourceRoot":"","sources":["../../../../src/modules/core/site-info/site-info.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6DAAwD;AAKjD,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IAH1B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,qCAAgB,CAAC;KAC9B,CAAC;GACW,cAAc,CAAG"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.SiteInfoResolver = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
18
|
-
const site_context_1 = require("../../../site-context/site-context");
|
|
19
|
-
const jwt_auth_guard_1 = require("../auth/jwt.auth.guard");
|
|
20
|
-
const site_info_schema_1 = require("./site-info.schema");
|
|
21
|
-
let SiteInfoResolver = class SiteInfoResolver {
|
|
22
|
-
async siteInfo({ fqdn }) {
|
|
23
|
-
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
24
|
-
const themeConf = siteContext.themeConf;
|
|
25
|
-
return {
|
|
26
|
-
currentThemeConf: {
|
|
27
|
-
pixelRatio: themeConf.pixelRatio,
|
|
28
|
-
fTextImages: themeConf.fTextImages,
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
exports.SiteInfoResolver = SiteInfoResolver;
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
|
|
36
|
-
(0, graphql_1.Query)(() => site_info_schema_1.SiteInfoObjectType),
|
|
37
|
-
__param(0, (0, graphql_1.Context)()),
|
|
38
|
-
__metadata("design:type", Function),
|
|
39
|
-
__metadata("design:paramtypes", [Object]),
|
|
40
|
-
__metadata("design:returntype", Promise)
|
|
41
|
-
], SiteInfoResolver.prototype, "siteInfo", null);
|
|
42
|
-
exports.SiteInfoResolver = SiteInfoResolver = __decorate([
|
|
43
|
-
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
|
|
44
|
-
(0, graphql_1.Resolver)(() => site_info_schema_1.SiteInfoObjectType)
|
|
45
|
-
], SiteInfoResolver);
|
|
46
|
-
//# sourceMappingURL=site-info.resolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"site-info.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/site-info/site-info.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,6CAA2D;AAC3D,qEAAoE;AAEpE,2DAAsD;AACtD,yDAAwD;AAIjD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAGrB,AAAN,KAAK,CAAC,QAAQ,CAAY,EAAE,IAAI,EAAkB;QAChD,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,MAAM,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;QACxC,OAAO;YACL,gBAAgB,EAAE;gBAChB,UAAU,EAAE,SAAS,CAAC,UAAU;gBAChC,WAAW,EAAE,SAAS,CAAC,WAAW;aACnC;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AAbY,4CAAgB;AAGrB;IAFL,IAAA,kBAAS,EAAC,6BAAY,CAAC;IACvB,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAChB,WAAA,IAAA,iBAAO,GAAE,CAAA;;;;gDASxB;2BAZU,gBAAgB;IAF5B,IAAA,kBAAS,EAAC,6BAAY,CAAC;IACvB,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;GACtB,gBAAgB,CAa5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"site-info.schema.js","sourceRoot":"","sources":["../../../../src/modules/core/site-info/site-info.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA2D;AAGpD,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAErC,UAAU,CAAU;IAGpB,WAAW,CAA0B;CACtC,CAAA;AANY,gEAA0B;AAErC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,CAAC;;8DACC;AAGpB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,oBAAoB,CAAC,CAAC;;+DACC;qCAL1B,0BAA0B;IADtC,IAAA,oBAAU,EAAC,kBAAkB,CAAC;GAClB,0BAA0B,CAMtC;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAE7B,gBAAgB,CAA8B;CAC/C,CAAA;AAHY,gDAAkB;AAE7B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BACrB,0BAA0B;4DAAC;6BAFnC,kBAAkB;IAD9B,IAAA,oBAAU,EAAC,UAAU,CAAC;GACV,kBAAkB,CAG9B;AAGM,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAE/B,WAAW,CAAU;IAGrB,QAAQ,CAAU;CACnB,CAAA;AANY,oDAAoB;AAE/B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;yDACC;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sDACF;+BALP,oBAAoB;IADhC,IAAA,oBAAU,EAAC,YAAY,CAAC;GACZ,oBAAoB,CAMhC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"site-schema.module.js","sourceRoot":"","sources":["../../../../src/modules/core/site-schema/site-schema.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,iEAA4D;AAKrD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAAG,CAAA;AAAnB,4CAAgB;2BAAhB,gBAAgB;IAH5B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,yCAAkB,CAAC;KAChC,CAAC;GACW,gBAAgB,CAAG"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.SiteSchemaResolver = void 0;
|
|
16
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
17
|
-
const site_context_1 = require("../../../site-context/site-context");
|
|
18
|
-
let SiteSchemaResolver = class SiteSchemaResolver {
|
|
19
|
-
async siteSchema({ fqdn }) {
|
|
20
|
-
const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
|
|
21
|
-
return JSON.stringify(siteContext.siteSchema);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
exports.SiteSchemaResolver = SiteSchemaResolver;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, graphql_1.Query)(() => String),
|
|
27
|
-
__param(0, (0, graphql_1.Context)()),
|
|
28
|
-
__metadata("design:type", Function),
|
|
29
|
-
__metadata("design:paramtypes", [Object]),
|
|
30
|
-
__metadata("design:returntype", Promise)
|
|
31
|
-
], SiteSchemaResolver.prototype, "siteSchema", null);
|
|
32
|
-
exports.SiteSchemaResolver = SiteSchemaResolver = __decorate([
|
|
33
|
-
(0, graphql_1.Resolver)()
|
|
34
|
-
], SiteSchemaResolver);
|
|
35
|
-
//# sourceMappingURL=site-schema.resolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"site-schema.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/site-schema/site-schema.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAA2D;AAC3D,qEAAoE;AAI7D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAEvB,AAAN,KAAK,CAAC,UAAU,CAAY,EAAE,IAAI,EAAkB;QAClD,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAChD,CAAC;CACF,CAAA;AANY,gDAAkB;AAEvB;IADL,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IACF,WAAA,IAAA,iBAAO,GAAE,CAAA;;;;oDAG1B;6BALU,kBAAkB;IAD9B,IAAA,kBAAQ,GAAE;GACE,kBAAkB,CAM9B"}
|