@comet/cms-api 9.0.0-beta.0 → 9.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/auth/services/jwt.auth-service.d.ts +7 -0
- package/lib/auth/services/jwt.auth-service.d.ts.map +1 -1
- package/lib/auth/services/jwt.auth-service.js +6 -0
- package/lib/auth/services/jwt.auth-service.js.map +1 -1
- package/lib/blocks/factories/createTableBlock.d.ts +8 -0
- package/lib/blocks/factories/createTableBlock.d.ts.map +1 -0
- package/lib/blocks/factories/createTableBlock.js +170 -0
- package/lib/blocks/factories/createTableBlock.js.map +1 -0
- package/lib/content-generation/azure-open-ai/azure-open-ai-content-generation.service.js +3 -3
- package/lib/content-generation/azure-open-ai/azure-open-ai-content-generation.service.js.map +1 -1
- package/lib/dam/dam.module.d.ts.map +1 -1
- package/lib/dam/dam.module.js +0 -2
- package/lib/dam/dam.module.js.map +1 -1
- package/lib/dam/files/entities/file.entity.d.ts.map +1 -1
- package/lib/dam/files/entities/file.entity.js +3 -4
- package/lib/dam/files/entities/file.entity.js.map +1 -1
- package/lib/dam/files/entities/folder.entity.js +1 -1
- package/lib/dam/files/entities/folder.entity.js.map +1 -1
- package/lib/dependencies/dependencies.module.d.ts.map +1 -1
- package/lib/dependencies/dependencies.module.js +3 -2
- package/lib/dependencies/dependencies.module.js.map +1 -1
- package/lib/dependencies/dependencies.resolver.factory.d.ts +1 -1
- package/lib/dependencies/dependencies.resolver.factory.d.ts.map +1 -1
- package/lib/dependencies/dependencies.resolver.factory.js +2 -2
- package/lib/dependencies/dependencies.resolver.factory.js.map +1 -1
- package/lib/dependencies/dependencies.service.d.ts +41 -19
- package/lib/dependencies/dependencies.service.d.ts.map +1 -1
- package/lib/dependencies/dependencies.service.js +228 -140
- package/lib/dependencies/dependencies.service.js.map +1 -1
- package/lib/dependencies/dependents.resolver.factory.d.ts +1 -1
- package/lib/dependencies/dependents.resolver.factory.d.ts.map +1 -1
- package/lib/dependencies/dependents.resolver.factory.js +2 -2
- package/lib/dependencies/dependents.resolver.factory.js.map +1 -1
- package/lib/dependencies/discover.service.d.ts +2 -1
- package/lib/dependencies/discover.service.d.ts.map +1 -1
- package/lib/dependencies/discover.service.js +1 -0
- package/lib/dependencies/discover.service.js.map +1 -1
- package/lib/dependencies/dto/dependencies.args.d.ts +3 -0
- package/lib/dependencies/dto/dependencies.args.d.ts.map +1 -1
- package/lib/dependencies/dto/dependencies.args.js +15 -0
- package/lib/dependencies/dto/dependencies.args.js.map +1 -1
- package/lib/dependencies/dto/dependencies.filter.d.ts +14 -2
- package/lib/dependencies/dto/dependencies.filter.d.ts.map +1 -1
- package/lib/dependencies/dto/dependencies.filter.js +81 -6
- package/lib/dependencies/dto/dependencies.filter.js.map +1 -1
- package/lib/dependencies/dto/dependency-sort.d.ts +13 -0
- package/lib/dependencies/dto/dependency-sort.d.ts.map +1 -0
- package/lib/dependencies/dto/dependency-sort.js +45 -0
- package/lib/dependencies/dto/dependency-sort.js.map +1 -0
- package/lib/dependencies/entities/block-index-dependency.object.d.ts +23 -0
- package/lib/dependencies/entities/block-index-dependency.object.d.ts.map +1 -0
- package/lib/dependencies/entities/block-index-dependency.object.js +102 -0
- package/lib/dependencies/entities/block-index-dependency.object.js.map +1 -0
- package/lib/entity-info/entity-info.decorator.d.ts +9 -0
- package/lib/entity-info/entity-info.decorator.d.ts.map +1 -0
- package/lib/{common/entityInfo → entity-info}/entity-info.decorator.js +3 -3
- package/lib/entity-info/entity-info.decorator.js.map +1 -0
- package/lib/entity-info/entity-info.module.d.ts.map +1 -0
- package/lib/{common/entityInfo → entity-info}/entity-info.module.js +3 -1
- package/lib/entity-info/entity-info.module.js.map +1 -0
- package/lib/entity-info/entity-info.object.d.ts +8 -0
- package/lib/entity-info/entity-info.object.d.ts.map +1 -0
- package/lib/{common/entityInfo → entity-info}/entity-info.object.js +18 -0
- package/lib/entity-info/entity-info.object.js.map +1 -0
- package/lib/entity-info/entity-info.service.d.ts +18 -0
- package/lib/entity-info/entity-info.service.d.ts.map +1 -0
- package/lib/entity-info/entity-info.service.js +160 -0
- package/lib/entity-info/entity-info.service.js.map +1 -0
- package/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +7 -7
- package/lib/index.js.map +1 -1
- package/lib/mailer/entities/mailer-log-status.enum.js +1 -1
- package/lib/mailer/entities/mailer-log-status.enum.js.map +1 -1
- package/lib/mailer/entities/mailer-log.entity.d.ts.map +1 -1
- package/lib/mailer/entities/mailer-log.entity.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20250531565156.d.ts +5 -0
- package/lib/mikro-orm/migrations/Migration20250531565156.d.ts.map +1 -0
- package/lib/mikro-orm/migrations/Migration20250531565156.js +52 -0
- package/lib/mikro-orm/migrations/Migration20250531565156.js.map +1 -0
- package/lib/mikro-orm/migrations/Migration20250531565157.d.ts +5 -0
- package/lib/mikro-orm/migrations/Migration20250531565157.d.ts.map +1 -0
- package/lib/mikro-orm/migrations/Migration20250531565157.js +50 -0
- package/lib/mikro-orm/migrations/Migration20250531565157.js.map +1 -0
- package/lib/mikro-orm/migrations/Migration20251126093305.d.ts +6 -0
- package/lib/mikro-orm/migrations/Migration20251126093305.d.ts.map +1 -0
- package/lib/mikro-orm/migrations/Migration20251126093305.js +26 -0
- package/lib/mikro-orm/migrations/Migration20251126093305.js.map +1 -0
- package/lib/mikro-orm/mikro-orm.module.d.ts.map +1 -1
- package/lib/mikro-orm/mikro-orm.module.js +6 -0
- package/lib/mikro-orm/mikro-orm.module.js.map +1 -1
- package/lib/page-tree/entities/page-tree-node-base.entity.d.ts.map +1 -1
- package/lib/page-tree/entities/page-tree-node-base.entity.js +2 -0
- package/lib/page-tree/entities/page-tree-node-base.entity.js.map +1 -1
- package/lib/page-tree/page-tree.module.d.ts.map +1 -1
- package/lib/page-tree/page-tree.module.js +3 -2
- package/lib/page-tree/page-tree.module.js.map +1 -1
- package/lib/redirects/dto/redirects.filter.d.ts +5 -0
- package/lib/redirects/dto/redirects.filter.d.ts.map +1 -1
- package/lib/redirects/dto/redirects.filter.js +14 -0
- package/lib/redirects/dto/redirects.filter.js.map +1 -1
- package/lib/redirects/entities/redirect-entity.factory.js +3 -3
- package/lib/redirects/entities/redirect-entity.factory.js.map +1 -1
- package/lib/redirects/redirects.enum.d.ts +2 -1
- package/lib/redirects/redirects.enum.d.ts.map +1 -1
- package/lib/redirects/redirects.enum.js +1 -0
- package/lib/redirects/redirects.enum.js.map +1 -1
- package/lib/redirects/redirects.util.d.ts +1 -1
- package/lib/redirects/redirects.util.d.ts.map +1 -1
- package/lib/redirects/redirects.util.js +15 -0
- package/lib/redirects/redirects.util.js.map +1 -1
- package/lib/tsconfig.build.tsbuildinfo +1 -1
- package/lib/warnings/warning.module.js +1 -1
- package/lib/warnings/warning.module.js.map +1 -1
- package/lib/warnings/warning.resolver.d.ts +2 -2
- package/lib/warnings/warning.resolver.d.ts.map +1 -1
- package/lib/warnings/warning.resolver.js +3 -9
- package/lib/warnings/warning.resolver.js.map +1 -1
- package/package.json +11 -11
- package/lib/common/entityInfo/entity-info.decorator.d.ts +0 -15
- package/lib/common/entityInfo/entity-info.decorator.d.ts.map +0 -1
- package/lib/common/entityInfo/entity-info.decorator.js.map +0 -1
- package/lib/common/entityInfo/entity-info.module.d.ts.map +0 -1
- package/lib/common/entityInfo/entity-info.module.js.map +0 -1
- package/lib/common/entityInfo/entity-info.object.d.ts +0 -5
- package/lib/common/entityInfo/entity-info.object.d.ts.map +0 -1
- package/lib/common/entityInfo/entity-info.object.js.map +0 -1
- package/lib/common/entityInfo/entity-info.service.d.ts +0 -9
- package/lib/common/entityInfo/entity-info.service.d.ts.map +0 -1
- package/lib/common/entityInfo/entity-info.service.js +0 -56
- package/lib/common/entityInfo/entity-info.service.js.map +0 -1
- package/lib/dam/files/files-entity-info.service.d.ts +0 -12
- package/lib/dam/files/files-entity-info.service.d.ts.map +0 -1
- package/lib/dam/files/files-entity-info.service.js +0 -43
- package/lib/dam/files/files-entity-info.service.js.map +0 -1
- package/lib/page-tree/page-tree-node-document-entity-info.service.d.ts +0 -12
- package/lib/page-tree/page-tree-node-document-entity-info.service.d.ts.map +0 -1
- package/lib/page-tree/page-tree-node-document-entity-info.service.js +0 -45
- package/lib/page-tree/page-tree-node-document-entity-info.service.js.map +0 -1
- /package/lib/{common/entityInfo → entity-info}/entity-info.module.d.ts +0 -0
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.WarningsModule = void 0;
|
|
10
10
|
const nestjs_1 = require("@mikro-orm/nestjs");
|
|
11
11
|
const common_1 = require("@nestjs/common");
|
|
12
|
-
const entity_info_module_1 = require("../
|
|
12
|
+
const entity_info_module_1 = require("../entity-info/entity-info.module");
|
|
13
13
|
const warning_entity_1 = require("./entities/warning.entity");
|
|
14
14
|
const warning_resolver_1 = require("./warning.resolver");
|
|
15
15
|
const warning_service_1 = require("./warning.service");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warning.module.js","sourceRoot":"","sources":["../../src/warnings/warning.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAAmD;AACnD,2CAAwC;AAExC,
|
|
1
|
+
{"version":3,"file":"warning.module.js","sourceRoot":"","sources":["../../src/warnings/warning.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAAmD;AACnD,2CAAwC;AAExC,0EAAqE;AACrE,8DAAoD;AACpD,yDAAqD;AACrD,uDAAmD;AACnD,uEAAkE;AAClE,yEAAoE;AAO7D,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IAL1B,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,uBAAc,CAAC,UAAU,CAAC,CAAC,wBAAO,CAAC,CAAC,EAAE,qCAAgB,CAAC;QACjE,SAAS,EAAE,CAAC,kCAAe,EAAE,+CAAqB,EAAE,gCAAc,EAAE,iDAAsB,CAAC;QAC3F,OAAO,EAAE,CAAC,gCAAc,CAAC;KAC5B,CAAC;GACW,cAAc,CAAG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntityManager, EntityRepository } from "@mikro-orm/postgresql";
|
|
2
|
-
import { EntityInfoObject } from "../
|
|
3
|
-
import { EntityInfoService } from "../
|
|
2
|
+
import { EntityInfoObject } from "../entity-info/entity-info.object";
|
|
3
|
+
import { EntityInfoService } from "../entity-info/entity-info.service";
|
|
4
4
|
import { CurrentUser } from "../user-permissions/dto/current-user";
|
|
5
5
|
import { PaginatedWarnings } from "./dto/paginated-warnings";
|
|
6
6
|
import { WarningsArgs } from "./dto/warnings.args";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warning.resolver.d.ts","sourceRoot":"","sources":["../../src/warnings/warning.resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAe,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"warning.resolver.d.ts","sourceRoot":"","sources":["../../src/warnings/warning.resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAe,MAAM,uBAAuB,CAAC;AAOrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAGvE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAEnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEpD,qBAEa,eAAe;IAEpB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IACP,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAFrC,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,iBAAiB,EACT,UAAU,EAAE,gBAAgB,CAAC,OAAO,CAAC;IAK/E,OAAO,CAAiC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMrE,QAAQ,CACF,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,YAAY,EAC3D,IAAI,EAAE,WAAW,GACpC,OAAO,CAAC,iBAAiB,CAAC;IAoEvB,UAAU,CAAW,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;CAGtF"}
|
|
@@ -31,9 +31,9 @@ const common_1 = require("@nestjs/common");
|
|
|
31
31
|
const graphql_1 = require("@nestjs/graphql");
|
|
32
32
|
const lodash_isequal_1 = __importDefault(require("lodash.isequal"));
|
|
33
33
|
const get_current_user_decorator_1 = require("../auth/decorators/get-current-user.decorator");
|
|
34
|
-
const entity_info_object_1 = require("../common/entityInfo/entity-info.object");
|
|
35
|
-
const entity_info_service_1 = require("../common/entityInfo/entity-info.service");
|
|
36
34
|
const mikro_orm_1 = require("../common/filter/mikro-orm");
|
|
35
|
+
const entity_info_object_1 = require("../entity-info/entity-info.object");
|
|
36
|
+
const entity_info_service_1 = require("../entity-info/entity-info.service");
|
|
37
37
|
const affected_entity_decorator_1 = require("../user-permissions/decorators/affected-entity.decorator");
|
|
38
38
|
const required_permission_decorator_1 = require("../user-permissions/decorators/required-permission.decorator");
|
|
39
39
|
const current_user_1 = require("../user-permissions/dto/current-user");
|
|
@@ -115,13 +115,7 @@ let WarningResolver = class WarningResolver {
|
|
|
115
115
|
}
|
|
116
116
|
entityInfo(warning) {
|
|
117
117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
-
|
|
119
|
-
const instance = yield repository.findOne({ [warning.sourceInfo.rootPrimaryKey]: warning.sourceInfo.targetId });
|
|
120
|
-
if (instance) {
|
|
121
|
-
const entityInfo = yield this.entityInfoService.getEntityInfo(instance);
|
|
122
|
-
return entityInfo;
|
|
123
|
-
}
|
|
124
|
-
return undefined;
|
|
118
|
+
return this.entityInfoService.getEntityInfo(warning.sourceInfo.rootEntityName, warning.sourceInfo.targetId);
|
|
125
119
|
});
|
|
126
120
|
}
|
|
127
121
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warning.resolver.js","sourceRoot":"","sources":["../../src/warnings/warning.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAqD;AACrD,sDAAqF;AACrF,2CAAuD;AACvD,6CAAkF;AAClF,oEAAqC;AAErC,8FAA+E;AAC/E,
|
|
1
|
+
{"version":3,"file":"warning.resolver.js","sourceRoot":"","sources":["../../src/warnings/warning.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAqD;AACrD,sDAAqF;AACrF,2CAAuD;AACvD,6CAAkF;AAClF,oEAAqC;AAErC,8FAA+E;AAC/E,0DAAoE;AACpE,0EAAqE;AACrE,4EAAuE;AACvE,wGAA0F;AAC1F,gHAAkG;AAClG,uEAAmE;AAEnE,iEAA6D;AAC7D,uDAAmD;AACnD,8DAAoD;AAI7C,IAAM,eAAe,GAArB,MAAM,eAAe;IACxB,YACqB,aAA4B,EAC5B,iBAAoC,EACT,UAAqC;QAFhE,kBAAa,GAAb,aAAa,CAAe;QAC5B,sBAAiB,GAAjB,iBAAiB,CAAmB;QACT,eAAU,GAAV,UAAU,CAA2B;IAClF,CAAC;IAIE,OAAO,CAAiC,EAAU;;YACpD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;YACxD,OAAO,OAAO,CAAC;QACnB,CAAC;KAAA;IAGK,QAAQ;6DACF,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAgB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,CAAC,YAAE,EAAE,CAAC,CAAA;;;;8CAG5C;AAGK;IADL,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,sCAAiB,CAAC;IAE1B,WAAA,IAAA,cAAI,GAAE,CAAA;IACN,WAAA,IAAA,2CAAc,GAAE,CAAA;;qCADgD,4BAAY;QACrD,0BAAW;;+CAkEtC;AAGK;IADL,IAAA,sBAAY,EAAC,GAAG,EAAE,CAAC,qCAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvC,WAAA,IAAA,gBAAM,GAAE,CAAA;;qCAAU,wBAAO;;iDAE1C;0BAxFQ,eAAe;IAF3B,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACvB,IAAA,kDAAkB,EAAC,CAAC,UAAU,CAAC,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC;IAKlD,WAAA,IAAA,yBAAgB,EAAC,wBAAO,CAAC,CAAA;qCAFM,0BAAa;QACT,uCAAiB;QACG,6BAAgB;GAJnE,eAAe,CAyF3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/cms-api",
|
|
3
|
-
"version": "9.0.0-beta.
|
|
3
|
+
"version": "9.0.0-beta.1",
|
|
4
4
|
"description": "Comet CMS API package",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "packages/api/cms-api",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"lib/*"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@aws-sdk/client-s3": "^3.
|
|
20
|
-
"@aws-sdk/lib-storage": "^3.
|
|
19
|
+
"@aws-sdk/client-s3": "^3.995.0",
|
|
20
|
+
"@aws-sdk/lib-storage": "^3.995.0",
|
|
21
21
|
"@azure-rest/ai-translation-text": "^1.0.1",
|
|
22
22
|
"@azure/storage-blob": "^12.27.0",
|
|
23
23
|
"@fast-csv/parse": "^5.0.5",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"lodash.uniqwith": "^4.5.0",
|
|
44
44
|
"mime": "^3.0.0",
|
|
45
45
|
"mime-db": "^1.54.0",
|
|
46
|
-
"multer": "^2.0
|
|
46
|
+
"multer": "^2.1.0",
|
|
47
47
|
"nodemailer": "^7.0.0",
|
|
48
|
-
"openai": "^
|
|
48
|
+
"openai": "^6.32.0",
|
|
49
49
|
"probe-image-size": "^7.2.3",
|
|
50
50
|
"request-ip": "^3.3.0",
|
|
51
51
|
"rimraf": "^6.1.2",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"uuid-by-string": "^4.0.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@aws-sdk/types": "^3.
|
|
59
|
+
"@aws-sdk/types": "^3.973.1",
|
|
60
60
|
"@golevelup/ts-jest": "^0.7.0",
|
|
61
61
|
"@kubernetes/client-node": "^1.3.0",
|
|
62
62
|
"@mikro-orm/core": "^6.4.16",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"@types/mime": "^2.0.3",
|
|
82
82
|
"@types/mime-db": "^1.43.6",
|
|
83
83
|
"@types/multer": "^2.0.0",
|
|
84
|
-
"@types/node": "^24.
|
|
85
|
-
"@types/nodemailer": "^6.4.
|
|
84
|
+
"@types/node": "^24.12.0",
|
|
85
|
+
"@types/nodemailer": "^6.4.23",
|
|
86
86
|
"@types/probe-image-size": "^7.2.5",
|
|
87
87
|
"@types/request-ip": "^0.0.41",
|
|
88
88
|
"chokidar-cli": "^3.0.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"class-validator": "^0.14.3",
|
|
91
91
|
"eslint": "^9.39.2",
|
|
92
92
|
"express": "^5.2.1",
|
|
93
|
-
"graphql": "^16.
|
|
93
|
+
"graphql": "^16.13.2",
|
|
94
94
|
"jest": "^29.7.0",
|
|
95
95
|
"jest-junit": "^16.0.0",
|
|
96
96
|
"nest-commander": "^3.20.1",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"ts-jest": "^29.4.6",
|
|
102
102
|
"ts-node": "^10.9.2",
|
|
103
103
|
"typescript": "^5.9.3",
|
|
104
|
-
"@comet/eslint-config": "9.0.0-beta.
|
|
104
|
+
"@comet/eslint-config": "9.0.0-beta.1"
|
|
105
105
|
},
|
|
106
106
|
"peerDependencies": {
|
|
107
107
|
"@kubernetes/client-node": "^1.0.0",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"generate-schema:watch": "chokidar \"src/\" -c \"pnpm generate-schema\"",
|
|
146
146
|
"lint": "run-p lint:prettier lint:eslint lint:tsc",
|
|
147
147
|
"lint:ci": "pnpm run lint",
|
|
148
|
-
"lint:eslint": "eslint --max-warnings 0 src/ **/*.json --no-warn-ignored",
|
|
148
|
+
"lint:eslint": "eslint --max-warnings 0 src/ '**/*.json' --no-warn-ignored",
|
|
149
149
|
"lint:prettier": "pnpm exec prettier --check '*.{ts,js,json,md,yml,yaml}'",
|
|
150
150
|
"lint:tsc": "tsc --noEmit",
|
|
151
151
|
"test": "jest",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type AnyEntity } from "@mikro-orm/postgresql";
|
|
2
|
-
import { type Type } from "@nestjs/common";
|
|
3
|
-
export interface EntityInfoInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
secondaryInformation?: string;
|
|
6
|
-
}
|
|
7
|
-
type GetEntityInfo<Entity extends AnyEntity = AnyEntity> = (item: Entity) => EntityInfoInterface | Promise<EntityInfoInterface>;
|
|
8
|
-
export interface EntityInfoServiceInterface<Entity extends AnyEntity = AnyEntity> {
|
|
9
|
-
getEntityInfo: GetEntityInfo<Entity>;
|
|
10
|
-
}
|
|
11
|
-
export type EntityInfoGetter<Entity extends AnyEntity = AnyEntity> = GetEntityInfo<Entity> | Type<EntityInfoServiceInterface<Entity>>;
|
|
12
|
-
export declare const ENTITY_INFO_METADATA_KEY = "data:entityInfo";
|
|
13
|
-
export declare function EntityInfo<Entity extends AnyEntity = AnyEntity>(entityInfoGetter: EntityInfoGetter<Entity>): ClassDecorator;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=entity-info.decorator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity-info.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/entityInfo/entity-info.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,KAAK,aAAa,CAAC,MAAM,SAAS,SAAS,GAAG,SAAS,IAAI,CAAC,IAAI,EAAE,MAAM,KAAK,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAChI,MAAM,WAAW,0BAA0B,CAAC,MAAM,SAAS,SAAS,GAAG,SAAS;IAC5E,aAAa,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CACxC;AAED,MAAM,MAAM,gBAAgB,CAAC,MAAM,SAAS,SAAS,GAAG,SAAS,IAAI,aAAa,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC,CAAC;AAEtI,eAAO,MAAM,wBAAwB,oBAAoB,CAAC;AAE1D,wBAAgB,UAAU,CAAC,MAAM,SAAS,SAAS,GAAG,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,cAAc,CAK3H"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity-info.decorator.js","sourceRoot":"","sources":["../../../src/common/entityInfo/entity-info.decorator.ts"],"names":[],"mappings":";;;AAiBA,gCAKC;AAPY,QAAA,wBAAwB,GAAG,iBAAiB,CAAC;AAE1D,SAAgB,UAAU,CAAuC,gBAA0C;IACvG,sEAAsE;IACtE,OAAO,CAAC,MAAgB,EAAE,EAAE;QACxB,OAAO,CAAC,cAAc,CAAC,gCAAwB,EAAE,gBAAgB,EAAE,MAAM,CAAC,CAAC;IAC/E,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity-info.module.d.ts","sourceRoot":"","sources":["../../../src/common/entityInfo/entity-info.module.ts"],"names":[],"mappings":"AAIA,qBAKa,gBAAgB;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity-info.module.js","sourceRoot":"","sources":["../../../src/common/entityInfo/entity-info.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AAExC,+DAA0D;AAOnD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAAG,CAAA;AAAnB,4CAAgB;2BAAhB,gBAAgB;IAL5B,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,EAAE;QACX,SAAS,EAAE,CAAC,uCAAiB,CAAC;QAC9B,OAAO,EAAE,CAAC,uCAAiB,CAAC;KAC/B,CAAC;GACW,gBAAgB,CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity-info.object.d.ts","sourceRoot":"","sources":["../../../src/common/entityInfo/entity-info.object.ts"],"names":[],"mappings":"AAEA,qBACa,gBAAgB;IAEzB,IAAI,EAAE,MAAM,CAAC;IAGb,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity-info.object.js","sourceRoot":"","sources":["../../../src/common/entityInfo/entity-info.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AAG7C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAM5B,CAAA;AANY,4CAAgB;AAEzB;IADC,IAAA,eAAK,GAAE;;8CACK;AAGb;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACI;2BALrB,gBAAgB;IAD5B,IAAA,oBAAU,EAAC,YAAY,CAAC;GACZ,gBAAgB,CAM5B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ModuleRef } from "@nestjs/core";
|
|
2
|
-
import { EntityInfoInterface } from "./entity-info.decorator";
|
|
3
|
-
export declare class EntityInfoService {
|
|
4
|
-
private readonly moduleRef;
|
|
5
|
-
private readonly logger;
|
|
6
|
-
constructor(moduleRef: ModuleRef);
|
|
7
|
-
getEntityInfo(instance: object): Promise<EntityInfoInterface | undefined>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=entity-info.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity-info.service.d.ts","sourceRoot":"","sources":["../../../src/common/entityInfo/entity-info.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAA8C,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE1G,qBACa,iBAAiB;IAGd,OAAO,CAAC,QAAQ,CAAC,SAAS;IAFtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsC;gBAEhC,SAAS,EAAE,SAAS;IAE3C,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC;CAmBlF"}
|
|
@@ -1,56 +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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
var EntityInfoService_1;
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.EntityInfoService = void 0;
|
|
23
|
-
const common_1 = require("@nestjs/common");
|
|
24
|
-
const core_1 = require("@nestjs/core");
|
|
25
|
-
const is_injectable_service_helper_1 = require("../helper/is-injectable-service.helper");
|
|
26
|
-
const entity_info_decorator_1 = require("./entity-info.decorator");
|
|
27
|
-
let EntityInfoService = EntityInfoService_1 = class EntityInfoService {
|
|
28
|
-
constructor(moduleRef) {
|
|
29
|
-
this.moduleRef = moduleRef;
|
|
30
|
-
this.logger = new common_1.Logger(EntityInfoService_1.name);
|
|
31
|
-
}
|
|
32
|
-
getEntityInfo(instance) {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
const entityInfoGetter = Reflect.getMetadata(entity_info_decorator_1.ENTITY_INFO_METADATA_KEY, instance.constructor);
|
|
35
|
-
if (entityInfoGetter === undefined) {
|
|
36
|
-
this.logger.warn(`Warning: ${instance.constructor.name} doesn't provide any entity info. You should add a @EntityInfo() decorator to the class. Otherwise it won't be displayed correctly as a dependency.`);
|
|
37
|
-
return undefined;
|
|
38
|
-
}
|
|
39
|
-
if ((0, is_injectable_service_helper_1.isInjectableService)(entityInfoGetter)) {
|
|
40
|
-
const service = this.moduleRef.get(entityInfoGetter, { strict: false });
|
|
41
|
-
const { name, secondaryInformation } = yield service.getEntityInfo(instance);
|
|
42
|
-
return { name, secondaryInformation };
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
const { name, secondaryInformation } = yield entityInfoGetter(instance);
|
|
46
|
-
return { name, secondaryInformation };
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
exports.EntityInfoService = EntityInfoService;
|
|
52
|
-
exports.EntityInfoService = EntityInfoService = EntityInfoService_1 = __decorate([
|
|
53
|
-
(0, common_1.Injectable)(),
|
|
54
|
-
__metadata("design:paramtypes", [core_1.ModuleRef])
|
|
55
|
-
], EntityInfoService);
|
|
56
|
-
//# sourceMappingURL=entity-info.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity-info.service.js","sourceRoot":"","sources":["../../../src/common/entityInfo/entity-info.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,uCAAyC;AAEzC,yFAA6E;AAC7E,mEAA0G;AAGnG,IAAM,iBAAiB,yBAAvB,MAAM,iBAAiB;IAG1B,YAA6B,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;QAFhC,WAAM,GAAG,IAAI,eAAM,CAAC,mBAAiB,CAAC,IAAI,CAAC,CAAC;IAET,CAAC;IAE/C,aAAa,CAAC,QAAgB;;YAChC,MAAM,gBAAgB,GAAiC,OAAO,CAAC,WAAW,CAAC,gDAAwB,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;YAE3H,IAAI,gBAAgB,KAAK,SAAS,EAAE,CAAC;gBACjC,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,YAAY,QAAQ,CAAC,WAAW,CAAC,IAAI,qJAAqJ,CAC7L,CAAC;gBACF,OAAO,SAAS,CAAC;YACrB,CAAC;YAED,IAAI,IAAA,kDAAmB,EAAC,gBAAgB,CAAC,EAAE,CAAC;gBACxC,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;gBACxE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;gBAC7E,OAAO,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;YAC1C,CAAC;iBAAM,CAAC;gBACJ,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,GAAG,MAAM,gBAAgB,CAAC,QAAQ,CAAC,CAAC;gBACxE,OAAO,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;YAC1C,CAAC;QACL,CAAC;KAAA;CACJ,CAAA;AAxBY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAI+B,gBAAS;GAHxC,iBAAiB,CAwB7B"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { EntityInfoServiceInterface } from "../../common/entityInfo/entity-info.decorator";
|
|
2
|
-
import { FileInterface } from "./entities/file.entity";
|
|
3
|
-
import { FilesService } from "./files.service";
|
|
4
|
-
export declare class FilesEntityInfoService implements EntityInfoServiceInterface<FileInterface> {
|
|
5
|
-
private readonly filesService;
|
|
6
|
-
constructor(filesService: FilesService);
|
|
7
|
-
getEntityInfo(file: FileInterface): Promise<{
|
|
8
|
-
name: string;
|
|
9
|
-
secondaryInformation: string;
|
|
10
|
-
}>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=files-entity-info.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"files-entity-info.service.d.ts","sourceRoot":"","sources":["../../../src/dam/files/files-entity-info.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBACa,sBAAuB,YAAW,0BAA0B,CAAC,aAAa,CAAC;IAGhF,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,YAAY;IAGzC,aAAa,CAAC,IAAI,EAAE,aAAa;;;;CAG1C"}
|
|
@@ -1,43 +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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.FilesEntityInfoService = void 0;
|
|
25
|
-
const common_1 = require("@nestjs/common");
|
|
26
|
-
const files_service_1 = require("./files.service");
|
|
27
|
-
let FilesEntityInfoService = class FilesEntityInfoService {
|
|
28
|
-
constructor(filesService) {
|
|
29
|
-
this.filesService = filesService;
|
|
30
|
-
}
|
|
31
|
-
getEntityInfo(file) {
|
|
32
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
return { name: file.name, secondaryInformation: yield this.filesService.getDamPath(file) };
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
exports.FilesEntityInfoService = FilesEntityInfoService;
|
|
38
|
-
exports.FilesEntityInfoService = FilesEntityInfoService = __decorate([
|
|
39
|
-
(0, common_1.Injectable)(),
|
|
40
|
-
__param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => files_service_1.FilesService))),
|
|
41
|
-
__metadata("design:paramtypes", [files_service_1.FilesService])
|
|
42
|
-
], FilesEntityInfoService);
|
|
43
|
-
//# sourceMappingURL=files-entity-info.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"files-entity-info.service.js","sourceRoot":"","sources":["../../../src/dam/files/files-entity-info.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAgE;AAIhE,mDAA+C;AAGxC,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAC/B,YAEqB,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;IAC5C,CAAC;IAEE,aAAa,CAAC,IAAmB;;YACnC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/F,CAAC;KAAA;CACJ,CAAA;AATY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;IAGJ,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC,CAAC,CAAA;qCACR,4BAAY;GAHtC,sBAAsB,CASlC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { EntityInfoServiceInterface } from "../common/entityInfo/entity-info.decorator";
|
|
2
|
-
import { DocumentInterface } from "../document/dto/document-interface";
|
|
3
|
-
import { PageTreeService } from "./page-tree.service";
|
|
4
|
-
export declare class PageTreeNodeDocumentEntityInfoService implements EntityInfoServiceInterface<DocumentInterface> {
|
|
5
|
-
private readonly pageTreeService;
|
|
6
|
-
constructor(pageTreeService: PageTreeService);
|
|
7
|
-
getEntityInfo(document: DocumentInterface): Promise<{
|
|
8
|
-
name: string;
|
|
9
|
-
secondaryInformation: string | undefined;
|
|
10
|
-
}>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=page-tree-node-document-entity-info.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"page-tree-node-document-entity-info.service.d.ts","sourceRoot":"","sources":["../../src/page-tree/page-tree-node-document-entity-info.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,qBACa,qCAAsC,YAAW,0BAA0B,CAAC,iBAAiB,CAAC;IAC3F,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAAf,eAAe,EAAE,eAAe;IAEvD,aAAa,CAAC,QAAQ,EAAE,iBAAiB;;;;CAUlD"}
|
|
@@ -1,45 +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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.PageTreeNodeDocumentEntityInfoService = void 0;
|
|
22
|
-
const common_1 = require("@nestjs/common");
|
|
23
|
-
const page_tree_service_1 = require("./page-tree.service");
|
|
24
|
-
let PageTreeNodeDocumentEntityInfoService = class PageTreeNodeDocumentEntityInfoService {
|
|
25
|
-
constructor(pageTreeService) {
|
|
26
|
-
this.pageTreeService = pageTreeService;
|
|
27
|
-
}
|
|
28
|
-
getEntityInfo(document) {
|
|
29
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
var _a;
|
|
31
|
-
const pageTreeReadApiService = this.pageTreeService.createReadApi({ visibility: "all" });
|
|
32
|
-
const pageTreeNode = yield pageTreeReadApiService.getFirstNodeByAttachedPageId(document.id);
|
|
33
|
-
return {
|
|
34
|
-
name: (_a = pageTreeNode === null || pageTreeNode === void 0 ? void 0 : pageTreeNode.name) !== null && _a !== void 0 ? _a : "Unknown",
|
|
35
|
-
secondaryInformation: pageTreeNode ? yield pageTreeReadApiService.nodePath(pageTreeNode) : undefined,
|
|
36
|
-
};
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
exports.PageTreeNodeDocumentEntityInfoService = PageTreeNodeDocumentEntityInfoService;
|
|
41
|
-
exports.PageTreeNodeDocumentEntityInfoService = PageTreeNodeDocumentEntityInfoService = __decorate([
|
|
42
|
-
(0, common_1.Injectable)(),
|
|
43
|
-
__metadata("design:paramtypes", [page_tree_service_1.PageTreeService])
|
|
44
|
-
], PageTreeNodeDocumentEntityInfoService);
|
|
45
|
-
//# sourceMappingURL=page-tree-node-document-entity-info.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"page-tree-node-document-entity-info.service.js","sourceRoot":"","sources":["../../src/page-tree/page-tree-node-document-entity-info.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAI5C,2DAAsD;AAG/C,IAAM,qCAAqC,GAA3C,MAAM,qCAAqC;IAC9C,YAA6B,eAAgC;QAAhC,oBAAe,GAAf,eAAe,CAAiB;IAAG,CAAC;IAE3D,aAAa,CAAC,QAA2B;;;YAC3C,MAAM,sBAAsB,GAAG,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC;YAEzF,MAAM,YAAY,GAAG,MAAM,sBAAsB,CAAC,4BAA4B,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YAE5F,OAAO;gBACH,IAAI,EAAE,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI,mCAAI,SAAS;gBACrC,oBAAoB,EAAE,YAAY,CAAC,CAAC,CAAC,MAAM,sBAAsB,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS;aACvG,CAAC;QACN,CAAC;KAAA;CACJ,CAAA;AAbY,sFAAqC;gDAArC,qCAAqC;IADjD,IAAA,mBAAU,GAAE;qCAEqC,mCAAe;GADpD,qCAAqC,CAajD"}
|
|
File without changes
|