@carlonicora/nestjs-neo4jsonapi 1.77.1 → 1.79.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/bootstrap/app.module.factory.d.ts.map +1 -1
- package/dist/bootstrap/app.module.factory.js +0 -5
- package/dist/bootstrap/app.module.factory.js.map +1 -1
- package/dist/bootstrap/bootstrap.options.d.ts +0 -9
- package/dist/bootstrap/bootstrap.options.d.ts.map +1 -1
- package/dist/config/base.config.d.ts.map +1 -1
- package/dist/config/base.config.js +21 -13
- package/dist/config/base.config.js.map +1 -1
- package/dist/config/interfaces/config.ai.interface.d.ts +25 -15
- package/dist/config/interfaces/config.ai.interface.d.ts.map +1 -1
- package/dist/core/llm/enums/model.weight.d.ts +16 -0
- package/dist/core/llm/enums/model.weight.d.ts.map +1 -0
- package/dist/core/llm/enums/model.weight.js +20 -0
- package/dist/core/llm/enums/model.weight.js.map +1 -0
- package/dist/core/llm/index.d.ts +1 -0
- package/dist/core/llm/index.d.ts.map +1 -1
- package/dist/core/llm/index.js +1 -0
- package/dist/core/llm/index.js.map +1 -1
- package/dist/core/llm/services/llm.service.d.ts +4 -0
- package/dist/core/llm/services/llm.service.d.ts.map +1 -1
- package/dist/core/llm/services/llm.service.js +11 -6
- package/dist/core/llm/services/llm.service.js.map +1 -1
- package/dist/core/llm/services/model.service.d.ts +17 -1
- package/dist/core/llm/services/model.service.d.ts.map +1 -1
- package/dist/core/llm/services/model.service.js +53 -139
- package/dist/core/llm/services/model.service.js.map +1 -1
- package/dist/foundations/how-to/controllers/how-to.controller.d.ts +3 -0
- package/dist/foundations/how-to/controllers/how-to.controller.d.ts.map +1 -1
- package/dist/foundations/how-to/controllers/how-to.controller.js +41 -0
- package/dist/foundations/how-to/controllers/how-to.controller.js.map +1 -1
- package/dist/foundations/how-to/controllers/how-to.public.controller.d.ts +14 -0
- package/dist/foundations/how-to/controllers/how-to.public.controller.d.ts.map +1 -0
- package/dist/foundations/how-to/controllers/how-to.public.controller.js +73 -0
- package/dist/foundations/how-to/controllers/how-to.public.controller.js.map +1 -0
- package/dist/foundations/how-to/dtos/how-to.post.dto.d.ts +7 -0
- package/dist/foundations/how-to/dtos/how-to.post.dto.d.ts.map +1 -1
- package/dist/foundations/how-to/dtos/how-to.post.dto.js +38 -0
- package/dist/foundations/how-to/dtos/how-to.post.dto.js.map +1 -1
- package/dist/foundations/how-to/dtos/how-to.put.dto.d.ts +7 -0
- package/dist/foundations/how-to/dtos/how-to.put.dto.d.ts.map +1 -1
- package/dist/foundations/how-to/dtos/how-to.put.dto.js +38 -0
- package/dist/foundations/how-to/dtos/how-to.put.dto.js.map +1 -1
- package/dist/foundations/how-to/entities/how-to.d.ts +7 -2
- package/dist/foundations/how-to/entities/how-to.d.ts.map +1 -1
- package/dist/foundations/how-to/entities/how-to.js +7 -2
- package/dist/foundations/how-to/entities/how-to.js.map +1 -1
- package/dist/foundations/how-to/how-to.module.d.ts.map +1 -1
- package/dist/foundations/how-to/how-to.module.js +2 -1
- package/dist/foundations/how-to/how-to.module.js.map +1 -1
- package/dist/foundations/how-to/repositories/how-to.repository.d.ts +40 -4
- package/dist/foundations/how-to/repositories/how-to.repository.d.ts.map +1 -1
- package/dist/foundations/how-to/repositories/how-to.repository.js +80 -5
- package/dist/foundations/how-to/repositories/how-to.repository.js.map +1 -1
- package/dist/foundations/how-to/services/how-to.service.d.ts +28 -7
- package/dist/foundations/how-to/services/how-to.service.d.ts.map +1 -1
- package/dist/foundations/how-to/services/how-to.service.js +60 -9
- package/dist/foundations/how-to/services/how-to.service.js.map +1 -1
- package/dist/foundations/index.d.ts +0 -1
- package/dist/foundations/index.d.ts.map +1 -1
- package/dist/foundations/index.js +0 -1
- package/dist/foundations/index.js.map +1 -1
- package/dist/foundations/tokenusage/services/tokenusage.service.d.ts +3 -0
- package/dist/foundations/tokenusage/services/tokenusage.service.d.ts.map +1 -1
- package/dist/foundations/tokenusage/services/tokenusage.service.js +12 -1
- package/dist/foundations/tokenusage/services/tokenusage.service.js.map +1 -1
- package/package.json +1 -5
- package/dist/foundations/help-content-sync/help-content-sync.module.d.ts +0 -6
- package/dist/foundations/help-content-sync/help-content-sync.module.d.ts.map +0 -1
- package/dist/foundations/help-content-sync/help-content-sync.module.js +0 -35
- package/dist/foundations/help-content-sync/help-content-sync.module.js.map +0 -1
- package/dist/foundations/help-content-sync/helpers/create-help-content-reader.d.ts +0 -5
- package/dist/foundations/help-content-sync/helpers/create-help-content-reader.d.ts.map +0 -1
- package/dist/foundations/help-content-sync/helpers/create-help-content-reader.js +0 -9
- package/dist/foundations/help-content-sync/helpers/create-help-content-reader.js.map +0 -1
- package/dist/foundations/help-content-sync/helpers/to-content-id.d.ts +0 -3
- package/dist/foundations/help-content-sync/helpers/to-content-id.d.ts.map +0 -1
- package/dist/foundations/help-content-sync/helpers/to-content-id.js +0 -8
- package/dist/foundations/help-content-sync/helpers/to-content-id.js.map +0 -1
- package/dist/foundations/help-content-sync/index.d.ts +0 -7
- package/dist/foundations/help-content-sync/index.d.ts.map +0 -1
- package/dist/foundations/help-content-sync/index.js +0 -28
- package/dist/foundations/help-content-sync/index.js.map +0 -1
- package/dist/foundations/help-content-sync/interfaces/help-article.interface.d.ts +0 -29
- package/dist/foundations/help-content-sync/interfaces/help-article.interface.d.ts.map +0 -1
- package/dist/foundations/help-content-sync/interfaces/help-article.interface.js +0 -5
- package/dist/foundations/help-content-sync/interfaces/help-article.interface.js.map +0 -1
- package/dist/foundations/help-content-sync/interfaces/help-content-config.interface.d.ts +0 -8
- package/dist/foundations/help-content-sync/interfaces/help-content-config.interface.d.ts.map +0 -1
- package/dist/foundations/help-content-sync/interfaces/help-content-config.interface.js +0 -3
- package/dist/foundations/help-content-sync/interfaces/help-content-config.interface.js.map +0 -1
- package/dist/foundations/help-content-sync/schema/frontmatter.schema.d.ts +0 -19
- package/dist/foundations/help-content-sync/schema/frontmatter.schema.d.ts.map +0 -1
- package/dist/foundations/help-content-sync/schema/frontmatter.schema.js +0 -20
- package/dist/foundations/help-content-sync/schema/frontmatter.schema.js.map +0 -1
- package/dist/foundations/help-content-sync/services/help-content-sync.service.d.ts +0 -21
- package/dist/foundations/help-content-sync/services/help-content-sync.service.d.ts.map +0 -1
- package/dist/foundations/help-content-sync/services/help-content-sync.service.js +0 -111
- package/dist/foundations/help-content-sync/services/help-content-sync.service.js.map +0 -1
- package/dist/foundations/help-content-sync/services/mdx-to-markdown.service.d.ts +0 -13
- package/dist/foundations/help-content-sync/services/mdx-to-markdown.service.d.ts.map +0 -1
- package/dist/foundations/help-content-sync/services/mdx-to-markdown.service.js +0 -104
- package/dist/foundations/help-content-sync/services/mdx-to-markdown.service.js.map +0 -1
- package/dist/foundations/help-content-sync/tokens.d.ts +0 -2
- package/dist/foundations/help-content-sync/tokens.d.ts.map +0 -1
- package/dist/foundations/help-content-sync/tokens.js +0 -5
- package/dist/foundations/help-content-sync/tokens.js.map +0 -1
- package/dist/tools/help-content-build/build-manifest.d.ts +0 -31
- package/dist/tools/help-content-build/build-manifest.d.ts.map +0 -1
- package/dist/tools/help-content-build/build-manifest.js +0 -134
- package/dist/tools/help-content-build/build-manifest.js.map +0 -1
- package/dist/tools/help-content-build/index.d.ts +0 -2
- package/dist/tools/help-content-build/index.d.ts.map +0 -1
- package/dist/tools/help-content-build/index.js +0 -6
- package/dist/tools/help-content-build/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carlonicora/nestjs-neo4jsonapi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.79.0",
|
|
4
4
|
"description": "NestJS foundation package with JSON:API, Neo4j, Redis, LangChain agents, and common utilities",
|
|
5
5
|
"author": "Carlo Nicora",
|
|
6
6
|
"license": "GPL-3.0-or-later",
|
|
@@ -47,10 +47,6 @@
|
|
|
47
47
|
"./bootstrap": {
|
|
48
48
|
"types": "./dist/bootstrap/index.d.ts",
|
|
49
49
|
"default": "./dist/bootstrap/index.js"
|
|
50
|
-
},
|
|
51
|
-
"./help-content-build": {
|
|
52
|
-
"types": "./dist/tools/help-content-build/index.d.ts",
|
|
53
|
-
"default": "./dist/tools/help-content-build/index.js"
|
|
54
50
|
}
|
|
55
51
|
},
|
|
56
52
|
"scripts": {
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { DynamicModule } from "@nestjs/common";
|
|
2
|
-
import { HelpContentConfig } from "./interfaces/help-content-config.interface";
|
|
3
|
-
export declare class HelpContentSyncModule {
|
|
4
|
-
static forRoot(config: HelpContentConfig): DynamicModule;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=help-content-sync.module.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"help-content-sync.module.d.ts","sourceRoot":"","sources":["../../../src/foundations/help-content-sync/help-content-sync.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,MAAM,gBAAgB,CAAC;AAKvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAI/E,qBACa,qBAAqB;IAChC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,iBAAiB,GAAG,aAAa;CAWzD"}
|
|
@@ -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 HelpContentSyncModule_1;
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.HelpContentSyncModule = void 0;
|
|
11
|
-
const common_1 = require("@nestjs/common");
|
|
12
|
-
const conditional_service_decorator_1 = require("../../common/decorators/conditional-service.decorator");
|
|
13
|
-
const redis_module_1 = require("../../core/redis/redis.module");
|
|
14
|
-
const how_to_module_1 = require("../how-to/how-to.module");
|
|
15
|
-
const tokens_1 = require("./tokens");
|
|
16
|
-
const help_content_sync_service_1 = require("./services/help-content-sync.service");
|
|
17
|
-
const mdx_to_markdown_service_1 = require("./services/mdx-to-markdown.service");
|
|
18
|
-
let HelpContentSyncModule = HelpContentSyncModule_1 = class HelpContentSyncModule {
|
|
19
|
-
static forRoot(config) {
|
|
20
|
-
return {
|
|
21
|
-
module: HelpContentSyncModule_1,
|
|
22
|
-
imports: [redis_module_1.RedisModule, how_to_module_1.HowToModule],
|
|
23
|
-
providers: [
|
|
24
|
-
{ provide: tokens_1.HELP_CONTENT_CONFIG_TOKEN, useValue: config },
|
|
25
|
-
(0, conditional_service_decorator_1.createWorkerProvider)(mdx_to_markdown_service_1.MdxToMarkdownService),
|
|
26
|
-
(0, conditional_service_decorator_1.createWorkerProvider)(help_content_sync_service_1.HelpContentSyncService),
|
|
27
|
-
],
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
exports.HelpContentSyncModule = HelpContentSyncModule;
|
|
32
|
-
exports.HelpContentSyncModule = HelpContentSyncModule = HelpContentSyncModule_1 = __decorate([
|
|
33
|
-
(0, common_1.Module)({})
|
|
34
|
-
], HelpContentSyncModule);
|
|
35
|
-
//# sourceMappingURL=help-content-sync.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"help-content-sync.module.js","sourceRoot":"","sources":["../../../src/foundations/help-content-sync/help-content-sync.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,yGAA6F;AAC7F,gEAA4D;AAC5D,2DAAsD;AACtD,qCAAqD;AAErD,oFAA8E;AAC9E,gFAA0E;AAGnE,IAAM,qBAAqB,6BAA3B,MAAM,qBAAqB;IAChC,MAAM,CAAC,OAAO,CAAC,MAAyB;QACtC,OAAO;YACL,MAAM,EAAE,uBAAqB;YAC7B,OAAO,EAAE,CAAC,0BAAW,EAAE,2BAAW,CAAC;YACnC,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,kCAAyB,EAAE,QAAQ,EAAE,MAAM,EAAE;gBACxD,IAAA,oDAAoB,EAAC,8CAAoB,CAAC;gBAC1C,IAAA,oDAAoB,EAAC,kDAAsB,CAAC;aAC7C;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AAZY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,qBAAqB,CAYjC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-help-content-reader.d.ts","sourceRoot":"","sources":["../../../../src/foundations/help-content-sync/helpers/create-help-content-reader.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAEnE,wBAAgB,uBAAuB,CAAC,IAAI,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,MAAM,CAAC,CAE5G"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createHelpContentReader = createHelpContentReader;
|
|
4
|
-
const promises_1 = require("node:fs/promises");
|
|
5
|
-
const node_path_1 = require("node:path");
|
|
6
|
-
function createHelpContentReader(opts) {
|
|
7
|
-
return async (article) => (0, promises_1.readFile)((0, node_path_1.join)(opts.srcRoot, article.path), "utf8");
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=create-help-content-reader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-help-content-reader.js","sourceRoot":"","sources":["../../../../src/foundations/help-content-sync/helpers/create-help-content-reader.ts"],"names":[],"mappings":";;AAIA,0DAEC;AAND,+CAA4C;AAC5C,yCAAiC;AAGjC,SAAgB,uBAAuB,CAAC,IAAyB;IAC/D,OAAO,KAAK,EAAE,OAAoB,EAAE,EAAE,CAAC,IAAA,mBAAQ,EAAC,IAAA,gBAAI,EAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC;AAC5F,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"to-content-id.d.ts","sourceRoot":"","sources":["../../../../src/foundations/help-content-sync/helpers/to-content-id.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAEhE,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAEvF"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toContentId = toContentId;
|
|
4
|
-
const uuid_1 = require("uuid");
|
|
5
|
-
function toContentId(mode, slug, namespaceUuid) {
|
|
6
|
-
return (0, uuid_1.v5)(`${mode}/${slug}`, namespaceUuid);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=to-content-id.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"to-content-id.js","sourceRoot":"","sources":["../../../../src/foundations/help-content-sync/helpers/to-content-id.ts"],"names":[],"mappings":";;AAGA,kCAEC;AALD,+BAAoC;AAGpC,SAAgB,WAAW,CAAC,IAAc,EAAE,IAAY,EAAE,aAAqB;IAC7E,OAAO,IAAA,SAAM,EAAC,GAAG,IAAI,IAAI,IAAI,EAAE,EAAE,aAAa,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "./interfaces/help-article.interface";
|
|
2
|
-
export * from "./interfaces/help-content-config.interface";
|
|
3
|
-
export { helpFrontmatterSchema, type HelpFrontmatter } from "./schema/frontmatter.schema";
|
|
4
|
-
export { toContentId } from "./helpers/to-content-id";
|
|
5
|
-
export { createHelpContentReader } from "./helpers/create-help-content-reader";
|
|
6
|
-
export { HelpContentSyncModule } from "./help-content-sync.module";
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/foundations/help-content-sync/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.HelpContentSyncModule = exports.createHelpContentReader = exports.toContentId = exports.helpFrontmatterSchema = void 0;
|
|
18
|
-
__exportStar(require("./interfaces/help-article.interface"), exports);
|
|
19
|
-
__exportStar(require("./interfaces/help-content-config.interface"), exports);
|
|
20
|
-
var frontmatter_schema_1 = require("./schema/frontmatter.schema");
|
|
21
|
-
Object.defineProperty(exports, "helpFrontmatterSchema", { enumerable: true, get: function () { return frontmatter_schema_1.helpFrontmatterSchema; } });
|
|
22
|
-
var to_content_id_1 = require("./helpers/to-content-id");
|
|
23
|
-
Object.defineProperty(exports, "toContentId", { enumerable: true, get: function () { return to_content_id_1.toContentId; } });
|
|
24
|
-
var create_help_content_reader_1 = require("./helpers/create-help-content-reader");
|
|
25
|
-
Object.defineProperty(exports, "createHelpContentReader", { enumerable: true, get: function () { return create_help_content_reader_1.createHelpContentReader; } });
|
|
26
|
-
var help_content_sync_module_1 = require("./help-content-sync.module");
|
|
27
|
-
Object.defineProperty(exports, "HelpContentSyncModule", { enumerable: true, get: function () { return help_content_sync_module_1.HelpContentSyncModule; } });
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/foundations/help-content-sync/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sEAAoD;AACpD,6EAA2D;AAC3D,kEAA0F;AAAjF,2HAAA,qBAAqB,OAAA;AAC9B,yDAAsD;AAA7C,4GAAA,WAAW,OAAA;AACpB,mFAA+E;AAAtE,qIAAA,uBAAuB,OAAA;AAChC,uEAAmE;AAA1D,iIAAA,qBAAqB,OAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare const HELP_MODES: readonly ["tutorial", "how-to", "reference", "explanation"];
|
|
2
|
-
export type HelpMode = (typeof HELP_MODES)[number];
|
|
3
|
-
export interface HelpHeading {
|
|
4
|
-
depth: 2 | 3;
|
|
5
|
-
slug: string;
|
|
6
|
-
text: string;
|
|
7
|
-
}
|
|
8
|
-
export interface HelpArticle {
|
|
9
|
-
id: string;
|
|
10
|
-
slug: string;
|
|
11
|
-
mode: HelpMode;
|
|
12
|
-
title: string;
|
|
13
|
-
summary: string;
|
|
14
|
-
order: number;
|
|
15
|
-
tags: readonly string[];
|
|
16
|
-
contextualKeys: readonly string[];
|
|
17
|
-
aiIndexed: boolean;
|
|
18
|
-
draft: boolean;
|
|
19
|
-
contentHash: string;
|
|
20
|
-
path: string;
|
|
21
|
-
headings: readonly HelpHeading[];
|
|
22
|
-
relatedSlugs: readonly string[];
|
|
23
|
-
lastUpdated: string;
|
|
24
|
-
}
|
|
25
|
-
export interface HelpRedirect {
|
|
26
|
-
from: string;
|
|
27
|
-
to: string;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=help-article.interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"help-article.interface.d.ts","sourceRoot":"","sources":["../../../../src/foundations/help-content-sync/interfaces/help-article.interface.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,6DAA8D,CAAC;AACtF,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAC;IACjC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"help-article.interface.js","sourceRoot":"","sources":["../../../../src/foundations/help-content-sync/interfaces/help-article.interface.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG,CAAC,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,CAAU,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { HelpArticle, HelpRedirect } from "./help-article.interface";
|
|
2
|
-
export interface HelpContentConfig {
|
|
3
|
-
manifest: readonly HelpArticle[];
|
|
4
|
-
readRawMarkdown: (article: HelpArticle) => Promise<string>;
|
|
5
|
-
namespaceUuid: string;
|
|
6
|
-
redirects?: readonly HelpRedirect[];
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=help-content-config.interface.d.ts.map
|
package/dist/foundations/help-content-sync/interfaces/help-content-config.interface.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"help-content-config.interface.d.ts","sourceRoot":"","sources":["../../../../src/foundations/help-content-sync/interfaces/help-content-config.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAErE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAC;IACjC,eAAe,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3D,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;CACrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"help-content-config.interface.js","sourceRoot":"","sources":["../../../../src/foundations/help-content-sync/interfaces/help-content-config.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const helpFrontmatterSchema: z.ZodObject<{
|
|
3
|
-
title: z.ZodString;
|
|
4
|
-
mode: z.ZodEnum<{
|
|
5
|
-
reference: "reference";
|
|
6
|
-
tutorial: "tutorial";
|
|
7
|
-
"how-to": "how-to";
|
|
8
|
-
explanation: "explanation";
|
|
9
|
-
}>;
|
|
10
|
-
order: z.ZodNumber;
|
|
11
|
-
summary: z.ZodString;
|
|
12
|
-
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
13
|
-
contextual_keys: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
14
|
-
ai_indexed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
15
|
-
draft: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
16
|
-
related: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
export type HelpFrontmatter = z.infer<typeof helpFrontmatterSchema>;
|
|
19
|
-
//# sourceMappingURL=frontmatter.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"frontmatter.schema.d.ts","sourceRoot":"","sources":["../../../../src/foundations/help-content-sync/schema/frontmatter.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;iBAahC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.helpFrontmatterSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const help_article_interface_1 = require("../interfaces/help-article.interface");
|
|
6
|
-
exports.helpFrontmatterSchema = zod_1.z.object({
|
|
7
|
-
title: zod_1.z.string().min(1),
|
|
8
|
-
mode: zod_1.z.enum(help_article_interface_1.HELP_MODES),
|
|
9
|
-
order: zod_1.z.number().int(),
|
|
10
|
-
summary: zod_1.z.string().min(1),
|
|
11
|
-
tags: zod_1.z.array(zod_1.z.string()).optional().default([]),
|
|
12
|
-
contextual_keys: zod_1.z
|
|
13
|
-
.array(zod_1.z.string().regex(/^[a-z][a-z0-9-]*\.[a-z][a-z0-9-]*$/))
|
|
14
|
-
.optional()
|
|
15
|
-
.default([]),
|
|
16
|
-
ai_indexed: zod_1.z.boolean().optional().default(true),
|
|
17
|
-
draft: zod_1.z.boolean().optional().default(false),
|
|
18
|
-
related: zod_1.z.array(zod_1.z.string()).optional().default([]),
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL=frontmatter.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"frontmatter.schema.js","sourceRoot":"","sources":["../../../../src/foundations/help-content-sync/schema/frontmatter.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iFAAkE;AAErD,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,mCAAU,CAAC;IACxB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAChD,eAAe,EAAE,OAAC;SACf,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,oCAAoC,CAAC,CAAC;SAC7D,QAAQ,EAAE;SACV,OAAO,CAAC,EAAE,CAAC;IACd,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAChD,KAAK,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAC5C,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CACpD,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OnApplicationBootstrap } from "@nestjs/common";
|
|
2
|
-
import { ClsService } from "nestjs-cls";
|
|
3
|
-
import { HowToRepository } from "../../how-to/repositories/how-to.repository";
|
|
4
|
-
import { HowToService } from "../../how-to/services/how-to.service";
|
|
5
|
-
import { RedisLockService } from "../../../core/redis/services/redis.lock.service";
|
|
6
|
-
import { MdxToMarkdownService } from "./mdx-to-markdown.service";
|
|
7
|
-
import { HelpContentConfig } from "../interfaces/help-content-config.interface";
|
|
8
|
-
export declare class HelpContentSyncService implements OnApplicationBootstrap {
|
|
9
|
-
private readonly config;
|
|
10
|
-
private readonly howToRepository;
|
|
11
|
-
private readonly howToService;
|
|
12
|
-
private readonly mdxToMarkdown;
|
|
13
|
-
private readonly lock;
|
|
14
|
-
private readonly clsService;
|
|
15
|
-
private readonly logger;
|
|
16
|
-
constructor(config: HelpContentConfig, howToRepository: HowToRepository, howToService: HowToService, mdxToMarkdown: MdxToMarkdownService, lock: RedisLockService, clsService: ClsService);
|
|
17
|
-
onApplicationBootstrap(): void;
|
|
18
|
-
run(): Promise<void>;
|
|
19
|
-
private runInsideCls;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=help-content-sync.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"help-content-sync.service.d.ts","sourceRoot":"","sources":["../../../../src/foundations/help-content-sync/services/help-content-sync.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAMhF,qBACa,sBAAuB,YAAW,sBAAsB;IAI9B,OAAO,CAAC,QAAQ,CAAC,MAAM;IAC1D,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAR7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2C;gBAGZ,MAAM,EAAE,iBAAiB,EAC5D,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,oBAAoB,EACnC,IAAI,EAAE,gBAAgB,EACtB,UAAU,EAAE,UAAU;IAGzC,sBAAsB,IAAI,IAAI;IAMxB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;YAQZ,YAAY;CA6D3B"}
|
|
@@ -1,111 +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
|
-
var HelpContentSyncService_1;
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.HelpContentSyncService = void 0;
|
|
17
|
-
const common_1 = require("@nestjs/common");
|
|
18
|
-
const nestjs_cls_1 = require("nestjs-cls");
|
|
19
|
-
const how_to_repository_1 = require("../../how-to/repositories/how-to.repository");
|
|
20
|
-
const how_to_service_1 = require("../../how-to/services/how-to.service");
|
|
21
|
-
const redis_lock_service_1 = require("../../../core/redis/services/redis.lock.service");
|
|
22
|
-
const mdx_to_markdown_service_1 = require("./mdx-to-markdown.service");
|
|
23
|
-
const tokens_1 = require("../tokens");
|
|
24
|
-
const to_content_id_1 = require("../helpers/to-content-id");
|
|
25
|
-
const LOCK_KEY = "nestjs-neo4jsonapi:help-content-sync:lock";
|
|
26
|
-
const LOCK_TTL_SECONDS = 300;
|
|
27
|
-
let HelpContentSyncService = HelpContentSyncService_1 = class HelpContentSyncService {
|
|
28
|
-
constructor(config, howToRepository, howToService, mdxToMarkdown, lock, clsService) {
|
|
29
|
-
this.config = config;
|
|
30
|
-
this.howToRepository = howToRepository;
|
|
31
|
-
this.howToService = howToService;
|
|
32
|
-
this.mdxToMarkdown = mdxToMarkdown;
|
|
33
|
-
this.lock = lock;
|
|
34
|
-
this.clsService = clsService;
|
|
35
|
-
this.logger = new common_1.Logger(HelpContentSyncService_1.name);
|
|
36
|
-
}
|
|
37
|
-
onApplicationBootstrap() {
|
|
38
|
-
void this.run().catch((err) => this.logger.error(`Help content sync failed: ${err.message}`, err.stack));
|
|
39
|
-
}
|
|
40
|
-
async run() {
|
|
41
|
-
await this.lock.withLock(LOCK_KEY, LOCK_TTL_SECONDS, async () => {
|
|
42
|
-
await this.clsService.run(async () => {
|
|
43
|
-
await this.runInsideCls();
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
async runInsideCls() {
|
|
48
|
-
const articles = this.config.manifest.filter((a) => a.aiIndexed && !a.draft);
|
|
49
|
-
let created = 0, updated = 0, skipped = 0, redirected = 0, deleted = 0;
|
|
50
|
-
for (const article of articles) {
|
|
51
|
-
const id = (0, to_content_id_1.toContentId)(article.mode, article.slug, this.config.namespaceUuid);
|
|
52
|
-
const existing = await this.howToService.findRecordById({ id });
|
|
53
|
-
const plainMarkdown = await this.mdxToMarkdown.convert(await this.config.readRawMarkdown(article));
|
|
54
|
-
const baseFields = {
|
|
55
|
-
id,
|
|
56
|
-
name: article.title,
|
|
57
|
-
description: article.summary,
|
|
58
|
-
pages: plainMarkdown,
|
|
59
|
-
helpContentSlug: `${article.mode}/${article.slug}`,
|
|
60
|
-
contentHash: article.contentHash,
|
|
61
|
-
};
|
|
62
|
-
if (!existing) {
|
|
63
|
-
await this.howToRepository.create(baseFields);
|
|
64
|
-
await this.howToService.queueHowToForProcessingFromMarkdown({
|
|
65
|
-
howToId: id,
|
|
66
|
-
markdown: plainMarkdown,
|
|
67
|
-
});
|
|
68
|
-
created++;
|
|
69
|
-
}
|
|
70
|
-
else if (existing.contentHash !== article.contentHash) {
|
|
71
|
-
await this.howToRepository.patch(baseFields);
|
|
72
|
-
await this.howToService.queueHowToForProcessingFromMarkdown({
|
|
73
|
-
howToId: id,
|
|
74
|
-
markdown: plainMarkdown,
|
|
75
|
-
});
|
|
76
|
-
updated++;
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
skipped++;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
const manifestSlugs = new Set(articles.map((a) => `${a.mode}/${a.slug}`));
|
|
83
|
-
const managed = await this.howToRepository.findAllWithHelpContentSlug();
|
|
84
|
-
const redirects = this.config.redirects ?? [];
|
|
85
|
-
for (const orphan of managed) {
|
|
86
|
-
if (!orphan.helpContentSlug || manifestSlugs.has(orphan.helpContentSlug))
|
|
87
|
-
continue;
|
|
88
|
-
const moved = redirects.find((r) => r.from === orphan.helpContentSlug);
|
|
89
|
-
if (moved) {
|
|
90
|
-
await this.howToRepository.patch({ id: orphan.id, helpContentSlug: moved.to });
|
|
91
|
-
redirected++;
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
await this.howToRepository.delete({ id: orphan.id });
|
|
95
|
-
deleted++;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
this.logger.log(`Help content sync done — created=${created} updated=${updated} skipped=${skipped} redirected=${redirected} deleted=${deleted}`);
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
exports.HelpContentSyncService = HelpContentSyncService;
|
|
102
|
-
exports.HelpContentSyncService = HelpContentSyncService = HelpContentSyncService_1 = __decorate([
|
|
103
|
-
(0, common_1.Injectable)(),
|
|
104
|
-
__param(0, (0, common_1.Inject)(tokens_1.HELP_CONTENT_CONFIG_TOKEN)),
|
|
105
|
-
__metadata("design:paramtypes", [Object, how_to_repository_1.HowToRepository,
|
|
106
|
-
how_to_service_1.HowToService,
|
|
107
|
-
mdx_to_markdown_service_1.MdxToMarkdownService,
|
|
108
|
-
redis_lock_service_1.RedisLockService,
|
|
109
|
-
nestjs_cls_1.ClsService])
|
|
110
|
-
], HelpContentSyncService);
|
|
111
|
-
//# sourceMappingURL=help-content-sync.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"help-content-sync.service.js","sourceRoot":"","sources":["../../../../src/foundations/help-content-sync/services/help-content-sync.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAoF;AACpF,2CAAwC;AACxC,mFAA8E;AAC9E,yEAAoE;AACpE,wFAAmF;AACnF,uEAAiE;AACjE,sCAAsD;AAEtD,4DAAuD;AAEvD,MAAM,QAAQ,GAAG,2CAA2C,CAAC;AAC7D,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAGtB,IAAM,sBAAsB,8BAA5B,MAAM,sBAAsB;IAGjC,YACqC,MAA0C,EAC5D,eAAgC,EAChC,YAA0B,EAC1B,aAAmC,EACnC,IAAsB,EACtB,UAAsB;QALa,WAAM,GAAN,MAAM,CAAmB;QAC5D,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAC1B,kBAAa,GAAb,aAAa,CAAsB;QACnC,SAAI,GAAJ,IAAI,CAAkB;QACtB,eAAU,GAAV,UAAU,CAAY;QARxB,WAAM,GAAG,IAAI,eAAM,CAAC,wBAAsB,CAAC,IAAI,CAAC,CAAC;IAS/D,CAAC;IAEJ,sBAAsB;QACpB,KAAK,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAC5B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,6BAA8B,GAAa,CAAC,OAAO,EAAE,EAAG,GAAa,CAAC,KAAK,CAAC,CAC/F,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,GAAG;QACP,MAAM,IAAI,CAAC,IAAI,CAA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,EAAE,CAAC;gBACV,MAAM,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,eAAe,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;gBAC/E,UAAU,EAAE,CAAC;YACf,CAAC;iBAAM,CAAC;gBACN,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC;gBACrD,OAAO,EAAE,CAAC;YACZ,CAAC;QACH,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,GAAG,CACb,oCAAoC,OAAO,YAAY,OAAO,YAAY,OAAO,eAAe,UAAU,YAAY,OAAO,EAAE,CAChI,CAAC;IACJ,CAAC;CACF,CAAA;AAvFY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,eAAM,EAAC,kCAAyB,CAAC,CAAA;6CACA,mCAAe;QAClB,6BAAY;QACX,8CAAoB;QAC7B,qCAAgB;QACV,uBAAU;GAT9B,sBAAsB,CAuFlC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare class MdxToMarkdownService {
|
|
2
|
-
/**
|
|
3
|
-
* Convert MDX source into plain markdown suitable for the chunker.
|
|
4
|
-
* Known JSX components are rewritten to text-equivalent markdown;
|
|
5
|
-
* unknown JSX is dropped silently.
|
|
6
|
-
*/
|
|
7
|
-
convert(mdx: string): Promise<string>;
|
|
8
|
-
private transformTree;
|
|
9
|
-
private transformNode;
|
|
10
|
-
private transformJsx;
|
|
11
|
-
private flattenText;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=mdx-to-markdown.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mdx-to-markdown.service.d.ts","sourceRoot":"","sources":["../../../../src/foundations/help-content-sync/services/mdx-to-markdown.service.ts"],"names":[],"mappings":"AAUA,qBACa,oBAAoB;IAC/B;;;;OAIG;IACG,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAM3C,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,YAAY;IAkDpB,OAAO,CAAC,WAAW;CAMpB"}
|
|
@@ -1,104 +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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MdxToMarkdownService = void 0;
|
|
13
|
-
const common_1 = require("@nestjs/common");
|
|
14
|
-
const unified_1 = require("unified");
|
|
15
|
-
const remark_parse_1 = __importDefault(require("remark-parse"));
|
|
16
|
-
const remark_mdx_1 = __importDefault(require("remark-mdx"));
|
|
17
|
-
const mdast_util_to_markdown_1 = require("mdast-util-to-markdown");
|
|
18
|
-
const mdast_util_mdx_1 = require("mdast-util-mdx");
|
|
19
|
-
let MdxToMarkdownService = class MdxToMarkdownService {
|
|
20
|
-
/**
|
|
21
|
-
* Convert MDX source into plain markdown suitable for the chunker.
|
|
22
|
-
* Known JSX components are rewritten to text-equivalent markdown;
|
|
23
|
-
* unknown JSX is dropped silently.
|
|
24
|
-
*/
|
|
25
|
-
async convert(mdx) {
|
|
26
|
-
const tree = (0, unified_1.unified)().use(remark_parse_1.default).use(remark_mdx_1.default).parse(mdx);
|
|
27
|
-
const transformed = this.transformTree(tree);
|
|
28
|
-
return (0, mdast_util_to_markdown_1.toMarkdown)(transformed, { extensions: [(0, mdast_util_mdx_1.mdxToMarkdown)()] });
|
|
29
|
-
}
|
|
30
|
-
transformTree(tree) {
|
|
31
|
-
tree.children = tree.children.flatMap((child) => this.transformNode(child));
|
|
32
|
-
return tree;
|
|
33
|
-
}
|
|
34
|
-
transformNode(node) {
|
|
35
|
-
if (node.type === "mdxJsxFlowElement" || node.type === "mdxJsxTextElement") {
|
|
36
|
-
return this.transformJsx(node);
|
|
37
|
-
}
|
|
38
|
-
if ("children" in node && Array.isArray(node.children)) {
|
|
39
|
-
node.children = node.children.flatMap((c) => this.transformNode(c));
|
|
40
|
-
}
|
|
41
|
-
return [node];
|
|
42
|
-
}
|
|
43
|
-
transformJsx(node) {
|
|
44
|
-
switch (node.name) {
|
|
45
|
-
case "Callout": {
|
|
46
|
-
const typeAttr = (node.attributes ?? []).find((a) => a.name === "type");
|
|
47
|
-
const type = typeAttr?.value ?? "info";
|
|
48
|
-
const prefix = `${String(type).charAt(0).toUpperCase() + String(type).slice(1)}: `;
|
|
49
|
-
const innerText = this.flattenText(node);
|
|
50
|
-
return [
|
|
51
|
-
{
|
|
52
|
-
type: "blockquote",
|
|
53
|
-
children: [{ type: "paragraph", children: [{ type: "text", value: prefix + innerText }] }],
|
|
54
|
-
},
|
|
55
|
-
];
|
|
56
|
-
}
|
|
57
|
-
case "Steps": {
|
|
58
|
-
const steps = (node.children ?? []).filter((c) => (c.type === "mdxJsxFlowElement" || c.type === "mdxJsxTextElement") && c.name === "Step");
|
|
59
|
-
return [
|
|
60
|
-
{
|
|
61
|
-
type: "list",
|
|
62
|
-
ordered: true,
|
|
63
|
-
start: 1,
|
|
64
|
-
spread: false,
|
|
65
|
-
children: steps.map((s) => ({
|
|
66
|
-
type: "listItem",
|
|
67
|
-
spread: false,
|
|
68
|
-
children: [{ type: "paragraph", children: [{ type: "text", value: this.flattenText(s) }] }],
|
|
69
|
-
})),
|
|
70
|
-
},
|
|
71
|
-
];
|
|
72
|
-
}
|
|
73
|
-
case "Screenshot": {
|
|
74
|
-
const caption = (node.attributes ?? []).find((a) => a.name === "caption")?.value ?? "image";
|
|
75
|
-
return [{ type: "paragraph", children: [{ type: "text", value: `[Screenshot: ${caption}]` }] }];
|
|
76
|
-
}
|
|
77
|
-
case "Video": {
|
|
78
|
-
const src = (node.attributes ?? []).find((a) => a.name === "src")?.value ?? "";
|
|
79
|
-
return [{ type: "paragraph", children: [{ type: "text", value: `[Video: ${src}]` }] }];
|
|
80
|
-
}
|
|
81
|
-
case "EntityRef":
|
|
82
|
-
case "KeyBinding": {
|
|
83
|
-
return [{ type: "text", value: this.flattenText(node) }];
|
|
84
|
-
}
|
|
85
|
-
case "Related":
|
|
86
|
-
default:
|
|
87
|
-
return [];
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
flattenText(node) {
|
|
91
|
-
if (!node)
|
|
92
|
-
return "";
|
|
93
|
-
if (typeof node.value === "string")
|
|
94
|
-
return node.value;
|
|
95
|
-
if (Array.isArray(node.children))
|
|
96
|
-
return node.children.map((c) => this.flattenText(c)).join("");
|
|
97
|
-
return "";
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
exports.MdxToMarkdownService = MdxToMarkdownService;
|
|
101
|
-
exports.MdxToMarkdownService = MdxToMarkdownService = __decorate([
|
|
102
|
-
(0, common_1.Injectable)()
|
|
103
|
-
], MdxToMarkdownService);
|
|
104
|
-
//# sourceMappingURL=mdx-to-markdown.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mdx-to-markdown.service.js","sourceRoot":"","sources":["../../../../src/foundations/help-content-sync/services/mdx-to-markdown.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAkC;AAClC,g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1E,CAAC;YACD,KAAK,SAAS,CAAC;YACf;gBACE,OAAO,EAAE,CAAC;QACd,CAAC;IACH,CAAC;IAEO,WAAW,CAAC,IAAa;QAC/B,IAAI,CAAC,IAAI;YAAE,OAAO,EAAE,CAAC;QACrB,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC,KAAK,CAAC;QACtD,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC;YAAE,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACrG,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAA;AAnFY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;GACA,oBAAoB,CAmFhC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/foundations/help-content-sync/tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,eAAsC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../src/foundations/help-content-sync/tokens.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG,MAAM,CAAC,2BAA2B,CAAC,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { HelpMode } from "../../foundations/help-content-sync/interfaces/help-article.interface";
|
|
2
|
-
export interface BuildManifestOptions {
|
|
3
|
-
srcDir: string;
|
|
4
|
-
outputPath: string;
|
|
5
|
-
namespaceUuid: string;
|
|
6
|
-
includeDrafts?: boolean;
|
|
7
|
-
}
|
|
8
|
-
interface BuiltEntry {
|
|
9
|
-
id: string;
|
|
10
|
-
slug: string;
|
|
11
|
-
mode: HelpMode;
|
|
12
|
-
title: string;
|
|
13
|
-
summary: string;
|
|
14
|
-
order: number;
|
|
15
|
-
tags: string[];
|
|
16
|
-
contextualKeys: string[];
|
|
17
|
-
aiIndexed: boolean;
|
|
18
|
-
draft: boolean;
|
|
19
|
-
contentHash: string;
|
|
20
|
-
path: string;
|
|
21
|
-
headings: {
|
|
22
|
-
depth: 2 | 3;
|
|
23
|
-
slug: string;
|
|
24
|
-
text: string;
|
|
25
|
-
}[];
|
|
26
|
-
relatedSlugs: string[];
|
|
27
|
-
lastUpdated: string;
|
|
28
|
-
}
|
|
29
|
-
export declare function buildManifest(opts: BuildManifestOptions): Promise<BuiltEntry[]>;
|
|
30
|
-
export {};
|
|
31
|
-
//# sourceMappingURL=build-manifest.d.ts.map
|