@taon-dev/cms 21.0.9 → 21.0.11
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/VERIFIED-BUILD-DATA.jsonc +2 -2
- package/browser/fesm2022/cms-browser.mjs +3 -1299
- package/browser/fesm2022/cms-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/cms-browser.d.ts +2 -434
- package/browser-prod/fesm2022/cms-browser-prod.mjs +3 -1299
- package/browser-prod/fesm2022/cms-browser-prod.mjs.map +1 -1
- package/browser-prod/package.json +1 -1
- package/browser-prod/types/cms-browser-prod.d.ts +2 -434
- package/full-dts/build-info._auto-generated_.d.ts +1 -1
- package/full-dts/index.d.ts +0 -1
- package/full-dts/taon-cms-assets-backoffice/taon-cms-assets-backoffice.component.d.ts +10 -0
- package/full-dts/taon-cms-assets-backoffice/taon-cms-assets-backoffice.routes.d.ts +2 -0
- package/full-dts/taon-cms-backoffice/taon-cms-backoffice.component.d.ts +5 -0
- package/full-dts/taon-cms-backoffice/taon-cms-backoffice.routes.d.ts +7 -0
- package/full-dts/taon-cms-category/taon-cms-category-api.service.d.ts +7 -0
- package/full-dts/taon-cms-comment/taon-cms-comment-api.service.d.ts +8 -0
- package/full-dts/taon-cms-content/taon-cms-content-api.service.d.ts +23 -0
- package/full-dts/taon-cms-content/taon-cms-content.config.service.d.ts +5 -0
- package/full-dts/taon-cms-content-asset/taon-cms-content-asset-api.service.d.ts +8 -0
- package/full-dts/taon-cms-content-permission/taon-cms-content-permission-api.service.d.ts +8 -0
- package/full-dts/taon-cms-content-revision/taon-cms-content-revision-api.service.d.ts +12 -0
- package/full-dts/taon-cms-content-tag/taon-cms-content-tag-api.service.d.ts +7 -0
- package/full-dts/taon-cms-tag/taon-cms-tag-api.service.d.ts +8 -0
- package/full-dts/taon-posts/taon-cms-post/taon-cms-editable.directive.d.ts +19 -0
- package/full-dts/taon-posts/taon-cms-post/taon-cms-post.component.d.ts +84 -0
- package/full-dts/taon-posts/taon-cms-post/taon-cms-post.routes.d.ts +7 -0
- package/full-dts/taon-posts/taon-cms-post-details-page/taon-cms-post-details-page.component.d.ts +4 -0
- package/full-dts/taon-posts/taon-cms-post-edit-dialog/taon-cms-post-edit-dialog.component.d.ts +15 -0
- package/full-dts/taon-posts/taon-cms-posts-backoffice/taon-cms-posts-backoffice.component.d.ts +26 -0
- package/full-dts/taon-posts/taon-cms-posts-backoffice/taon-cms-posts-backoffice.routes.d.ts +7 -0
- package/full-dts/taon-posts/taon-cms-revision-chooser/taon-cms-revision-chooser.component.d.ts +17 -0
- package/full-dts/taon-posts/taon-related-post-chooser/taon-related-post-chooser.component.d.ts +22 -0
- package/lib/app.data.d.ts +2 -2
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/build-info._auto-generated_.js.map +1 -1
- package/lib/i18n/lib.translation.d.ts +2 -2
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/migrations/1791132517216_initial.d.ts +3 -3
- package/lib/package.json +1 -1
- package/lib/taon-cms-backoffice/index.d.ts +1 -1
- package/lib/taon-cms-backoffice/index.js +2 -2
- package/lib/taon-cms-category/taon-cms-category.abstract.context.d.ts +8 -8
- package/lib/taon-cms-category/taon-cms-category.controller.d.ts +2 -2
- package/lib/taon-cms-category/taon-cms-category.entity.d.ts +2 -2
- package/lib/taon-cms-category/taon-cms-category.middleware.d.ts +2 -2
- package/lib/taon-cms-category/taon-cms-category.provider.d.ts +2 -2
- package/lib/taon-cms-category/taon-cms-category.repository.d.ts +3 -3
- package/lib/taon-cms-category/taon-cms-category.subscriber.d.ts +2 -2
- package/lib/taon-cms-comment/taon-cms-comment.abstract.context.d.ts +8 -8
- package/lib/taon-cms-comment/taon-cms-comment.controller.d.ts +2 -2
- package/lib/taon-cms-comment/taon-cms-comment.entity.d.ts +2 -2
- package/lib/taon-cms-comment/taon-cms-comment.middleware.d.ts +2 -2
- package/lib/taon-cms-comment/taon-cms-comment.provider.d.ts +2 -2
- package/lib/taon-cms-comment/taon-cms-comment.repository.d.ts +2 -2
- package/lib/taon-cms-comment/taon-cms-comment.subscriber.d.ts +2 -2
- package/lib/taon-cms-content/taon-cms-content-storage.controller.d.ts +2 -2
- package/lib/taon-cms-content/taon-cms-content.abstract.context.d.ts +8 -8
- package/lib/taon-cms-content/taon-cms-content.controller.d.ts +3 -3
- package/lib/taon-cms-content/taon-cms-content.entity.d.ts +3 -3
- package/lib/taon-cms-content/taon-cms-content.middleware.d.ts +2 -2
- package/lib/taon-cms-content/taon-cms-content.provider.d.ts +2 -2
- package/lib/taon-cms-content/taon-cms-content.repository.d.ts +3 -3
- package/lib/taon-cms-content/taon-cms-content.subscriber.d.ts +2 -2
- package/lib/taon-cms-content-asset/taon-cms-content-asset.abstract.context.d.ts +8 -8
- package/lib/taon-cms-content-asset/taon-cms-content-asset.controller.d.ts +2 -2
- package/lib/taon-cms-content-asset/taon-cms-content-asset.entity.d.ts +2 -2
- package/lib/taon-cms-content-asset/taon-cms-content-asset.middleware.d.ts +2 -2
- package/lib/taon-cms-content-asset/taon-cms-content-asset.provider.d.ts +2 -2
- package/lib/taon-cms-content-asset/taon-cms-content-asset.repository.d.ts +2 -2
- package/lib/taon-cms-content-asset/taon-cms-content-asset.subscriber.d.ts +2 -2
- package/lib/taon-cms-content-permission/taon-cms-content-permission.abstract.context.d.ts +8 -8
- package/lib/taon-cms-content-permission/taon-cms-content-permission.controller.d.ts +2 -2
- package/lib/taon-cms-content-permission/taon-cms-content-permission.entity.d.ts +2 -2
- package/lib/taon-cms-content-permission/taon-cms-content-permission.middleware.d.ts +2 -2
- package/lib/taon-cms-content-permission/taon-cms-content-permission.provider.d.ts +2 -2
- package/lib/taon-cms-content-permission/taon-cms-content-permission.repository.d.ts +2 -2
- package/lib/taon-cms-content-permission/taon-cms-content-permission.subscriber.d.ts +2 -2
- package/lib/taon-cms-content-revision/taon-cms-content-revision.abstract.context.d.ts +8 -8
- package/lib/taon-cms-content-revision/taon-cms-content-revision.controller.d.ts +2 -2
- package/lib/taon-cms-content-revision/taon-cms-content-revision.entity.d.ts +2 -2
- package/lib/taon-cms-content-revision/taon-cms-content-revision.middleware.d.ts +2 -2
- package/lib/taon-cms-content-revision/taon-cms-content-revision.provider.d.ts +2 -2
- package/lib/taon-cms-content-revision/taon-cms-content-revision.repository.d.ts +3 -3
- package/lib/taon-cms-content-revision/taon-cms-content-revision.subscriber.d.ts +2 -2
- package/lib/taon-cms-content-tag/taon-cms-content-tag.abstract.context.d.ts +8 -8
- package/lib/taon-cms-content-tag/taon-cms-content-tag.controller.d.ts +2 -2
- package/lib/taon-cms-content-tag/taon-cms-content-tag.entity.d.ts +2 -2
- package/lib/taon-cms-content-tag/taon-cms-content-tag.middleware.d.ts +2 -2
- package/lib/taon-cms-content-tag/taon-cms-content-tag.provider.d.ts +2 -2
- package/lib/taon-cms-content-tag/taon-cms-content-tag.repository.d.ts +3 -3
- package/lib/taon-cms-content-tag/taon-cms-content-tag.subscriber.d.ts +2 -2
- package/lib/taon-cms-tag/taon-cms-tag.abstract.context.d.ts +8 -8
- package/lib/taon-cms-tag/taon-cms-tag.controller.d.ts +2 -2
- package/lib/taon-cms-tag/taon-cms-tag.entity.d.ts +2 -2
- package/lib/taon-cms-tag/taon-cms-tag.middleware.d.ts +2 -2
- package/lib/taon-cms-tag/taon-cms-tag.provider.d.ts +2 -2
- package/lib/taon-cms-tag/taon-cms-tag.repository.d.ts +3 -3
- package/lib/taon-cms-tag/taon-cms-tag.subscriber.d.ts +2 -2
- package/lib/taon-cms.abstract.context.d.ts +8 -8
- package/lib/taon-posts/taon-cms-post/index.d.ts +1 -1
- package/lib/taon-posts/taon-cms-post/index.js +2 -2
- package/lib/taon-posts/taon-cms-post-edit-dialog/index.d.ts +1 -1
- package/lib/taon-posts/taon-cms-post-edit-dialog/index.js +2 -2
- package/lib/taon-posts/taon-cms-posts-backoffice/index.d.ts +1 -1
- package/lib/taon-posts/taon-cms-posts-backoffice/index.js +2 -2
- package/lib/taon-posts/taon-cms-revision-chooser/index.d.ts +1 -1
- package/lib/taon-posts/taon-cms-revision-chooser/index.js +2 -2
- package/lib/taon-posts/taon-related-post-chooser/index.d.ts +1 -1
- package/lib/taon-posts/taon-related-post-chooser/index.js +2 -2
- package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib-esm/lib/build-info._auto-generated_.js +1 -1
- package/lib-esm/lib/build-info._auto-generated_.js.map +1 -1
- package/lib-esm/lib/index.d.ts +0 -1
- package/lib-esm/lib/index.js +1 -1
- package/lib-esm/lib/index.js.map +1 -1
- package/lib-esm/lib/taon-cms-backoffice/index.d.ts +1 -1
- package/lib-esm/lib/taon-cms-backoffice/index.js +1 -1
- package/lib-esm/lib/taon-posts/taon-cms-post/index.d.ts +1 -1
- package/lib-esm/lib/taon-posts/taon-cms-post/index.js +1 -1
- package/lib-esm/lib/taon-posts/taon-cms-post-edit-dialog/index.d.ts +1 -1
- package/lib-esm/lib/taon-posts/taon-cms-post-edit-dialog/index.js +1 -1
- package/lib-esm/lib/taon-posts/taon-cms-posts-backoffice/index.d.ts +1 -1
- package/lib-esm/lib/taon-posts/taon-cms-posts-backoffice/index.js +1 -1
- package/lib-esm/lib/taon-posts/taon-cms-revision-chooser/index.d.ts +1 -1
- package/lib-esm/lib/taon-posts/taon-cms-revision-chooser/index.js +1 -1
- package/lib-esm/lib/taon-posts/taon-related-post-chooser/index.d.ts +1 -1
- package/lib-esm/lib/taon-posts/taon-related-post-chooser/index.js +1 -1
- package/lib-prod/build-info._auto-generated_.d.ts +1 -1
- package/lib-prod/build-info._auto-generated_.js +1 -1
- package/lib-prod/build-info._auto-generated_.js.map +1 -1
- package/lib-prod/env/index.d.ts +0 -2
- package/lib-prod/env/index.js +0 -2
- package/lib-prod/env/index.js.map +1 -1
- package/lib-prod/index.d.ts +0 -1
- package/lib-prod/index.js +1 -1
- package/lib-prod/index.js.map +1 -1
- package/lib-prod/package.json +1 -1
- package/lib-prod/taon-cms-backoffice/index.d.ts +1 -1
- package/lib-prod/taon-cms-backoffice/index.js +1 -1
- package/lib-prod/taon-posts/taon-cms-post/index.d.ts +1 -1
- package/lib-prod/taon-posts/taon-cms-post/index.js +1 -1
- package/lib-prod/taon-posts/taon-cms-post-edit-dialog/index.d.ts +1 -1
- package/lib-prod/taon-posts/taon-cms-post-edit-dialog/index.js +1 -1
- package/lib-prod/taon-posts/taon-cms-posts-backoffice/index.d.ts +1 -1
- package/lib-prod/taon-posts/taon-cms-posts-backoffice/index.js +1 -1
- package/lib-prod/taon-posts/taon-cms-revision-chooser/index.d.ts +1 -1
- package/lib-prod/taon-posts/taon-cms-revision-chooser/index.js +1 -1
- package/lib-prod/taon-posts/taon-related-post-chooser/index.d.ts +1 -1
- package/lib-prod/taon-posts/taon-related-post-chooser/index.js +1 -1
- package/package.json +1 -1
- package/websql/fesm2022/cms-websql.mjs +3 -1299
- package/websql/fesm2022/cms-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/cms-websql.d.ts +2 -434
- package/websql-prod/fesm2022/cms-websql-prod.mjs +3 -1299
- package/websql-prod/fesm2022/cms-websql-prod.mjs.map +1 -1
- package/websql-prod/package.json +1 -1
- package/websql-prod/types/cms-websql-prod.d.ts +2 -434
- package/full-dts/env/env.angular-node-app.d.ts +0 -71
- package/full-dts/env/env.docs-webapp.d.ts +0 -71
- package/full-dts/env/env.electron-app.d.ts +0 -71
- package/full-dts/env/env.mobile-app.d.ts +0 -71
- package/full-dts/env/env.npm-lib-and-cli-tool.d.ts +0 -71
- package/full-dts/env/env.vscode-plugin.d.ts +0 -71
- package/full-dts/env/index.d.ts +0 -6
- package/lib/env/env.angular-node-app.d.ts +0 -71
- package/lib/env/env.angular-node-app.js +0 -153
- package/lib/env/env.angular-node-app.js.map +0 -1
- package/lib/env/env.docs-webapp.d.ts +0 -71
- package/lib/env/env.docs-webapp.js +0 -153
- package/lib/env/env.docs-webapp.js.map +0 -1
- package/lib/env/env.electron-app.d.ts +0 -71
- package/lib/env/env.electron-app.js +0 -153
- package/lib/env/env.electron-app.js.map +0 -1
- package/lib/env/env.mobile-app.d.ts +0 -71
- package/lib/env/env.mobile-app.js +0 -153
- package/lib/env/env.mobile-app.js.map +0 -1
- package/lib/env/env.npm-lib-and-cli-tool.d.ts +0 -71
- package/lib/env/env.npm-lib-and-cli-tool.js +0 -153
- package/lib/env/env.npm-lib-and-cli-tool.js.map +0 -1
- package/lib/env/env.vscode-plugin.d.ts +0 -71
- package/lib/env/env.vscode-plugin.js +0 -153
- package/lib/env/env.vscode-plugin.js.map +0 -1
- package/lib/env/index.d.ts +0 -6
- package/lib/env/index.js +0 -23
- package/lib/env/index.js.map +0 -1
- package/lib-esm/app/baseline-backoffice/index.d.ts +0 -0
- package/lib-esm/app/baseline-backoffice/index.js +0 -2
- package/lib-esm/app/baseline-backoffice/index.js.map +0 -1
- package/lib-esm/app/baseline-backoffice/taon-baseline-backoffice.component.d.ts +0 -0
- package/lib-esm/app/baseline-backoffice/taon-baseline-backoffice.component.js +0 -2
- package/lib-esm/app/baseline-backoffice/taon-baseline-backoffice.component.js.map +0 -1
- package/lib-esm/app/baseline-backoffice/taon-baseline-backoffice.models.d.ts +0 -0
- package/lib-esm/app/baseline-backoffice/taon-baseline-backoffice.models.js +0 -2
- package/lib-esm/app/baseline-backoffice/taon-baseline-backoffice.models.js.map +0 -1
- package/lib-esm/app/baseline-backoffice/taon-baseline-backoffice.routes.d.ts +0 -0
- package/lib-esm/app/baseline-backoffice/taon-baseline-backoffice.routes.js +0 -2
- package/lib-esm/app/baseline-backoffice/taon-baseline-backoffice.routes.js.map +0 -1
- package/lib-esm/app/cms-example/cms-example.component.d.ts +0 -0
- package/lib-esm/app/cms-example/cms-example.component.js +0 -2
- package/lib-esm/app/cms-example/cms-example.component.js.map +0 -1
- package/lib-esm/app/cms-example/cms-example.models.d.ts +0 -0
- package/lib-esm/app/cms-example/cms-example.models.js +0 -2
- package/lib-esm/app/cms-example/cms-example.models.js.map +0 -1
- package/lib-esm/app/cms-example/cms-example.routes.d.ts +0 -0
- package/lib-esm/app/cms-example/cms-example.routes.js +0 -2
- package/lib-esm/app/cms-example/cms-example.routes.js.map +0 -1
- package/lib-esm/app/cms-example/index.d.ts +0 -0
- package/lib-esm/app/cms-example/index.js +0 -2
- package/lib-esm/app/cms-example/index.js.map +0 -1
- package/lib-esm/app/session-example/index.d.ts +0 -0
- package/lib-esm/app/session-example/index.js +0 -2
- package/lib-esm/app/session-example/index.js.map +0 -1
- package/lib-esm/app/session-example/session-example.component.d.ts +0 -0
- package/lib-esm/app/session-example/session-example.component.js +0 -2
- package/lib-esm/app/session-example/session-example.component.js.map +0 -1
- package/lib-esm/app/session-example/session-example.models.d.ts +0 -0
- package/lib-esm/app/session-example/session-example.models.js +0 -2
- package/lib-esm/app/session-example/session-example.models.js.map +0 -1
- package/lib-esm/app/session-example/session-example.routes.d.ts +0 -0
- package/lib-esm/app/session-example/session-example.routes.js +0 -2
- package/lib-esm/app/session-example/session-example.routes.js.map +0 -1
- package/lib-esm/lib/env/env.angular-node-app.d.ts +0 -71
- package/lib-esm/lib/env/env.angular-node-app.js +0 -146
- package/lib-esm/lib/env/env.angular-node-app.js.map +0 -1
- package/lib-esm/lib/env/env.docs-webapp.d.ts +0 -71
- package/lib-esm/lib/env/env.docs-webapp.js +0 -146
- package/lib-esm/lib/env/env.docs-webapp.js.map +0 -1
- package/lib-esm/lib/env/env.electron-app.d.ts +0 -71
- package/lib-esm/lib/env/env.electron-app.js +0 -146
- package/lib-esm/lib/env/env.electron-app.js.map +0 -1
- package/lib-esm/lib/env/env.mobile-app.d.ts +0 -71
- package/lib-esm/lib/env/env.mobile-app.js +0 -146
- package/lib-esm/lib/env/env.mobile-app.js.map +0 -1
- package/lib-esm/lib/env/env.npm-lib-and-cli-tool.d.ts +0 -71
- package/lib-esm/lib/env/env.npm-lib-and-cli-tool.js +0 -146
- package/lib-esm/lib/env/env.npm-lib-and-cli-tool.js.map +0 -1
- package/lib-esm/lib/env/env.vscode-plugin.d.ts +0 -71
- package/lib-esm/lib/env/env.vscode-plugin.js +0 -146
- package/lib-esm/lib/env/env.vscode-plugin.js.map +0 -1
- package/lib-esm/lib/env/index.d.ts +0 -6
- package/lib-esm/lib/env/index.js +0 -7
- package/lib-esm/lib/env/index.js.map +0 -1
- package/lib-prod/env/env.docs-webapp.d.ts +0 -71
- package/lib-prod/env/env.docs-webapp.js +0 -146
- package/lib-prod/env/env.docs-webapp.js.map +0 -1
- package/lib-prod/env/env.npm-lib-and-cli-tool.d.ts +0 -71
- package/lib-prod/env/env.npm-lib-and-cli-tool.js +0 -146
- package/lib-prod/env/env.npm-lib-and-cli-tool.js.map +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { TaonBaseAngularService } from 'taon/src';
|
|
3
|
+
import type { TaonCmsContentEntity } from '../taon-cms-content/taon-cms-content.entity';
|
|
4
|
+
import type { TaonCmsRestoreContent } from '../taon-cms-content/taon-cms-content.models';
|
|
5
|
+
import type { TaonCmsContentRevisionEntity } from './taon-cms-content-revision.entity';
|
|
6
|
+
export declare class TaonCmsContentRevisionApiService extends TaonBaseAngularService {
|
|
7
|
+
private readonly contentController;
|
|
8
|
+
private taonCmsContentRevisionController;
|
|
9
|
+
listRevisions(id: number): Observable<TaonCmsContentRevisionEntity[]>;
|
|
10
|
+
restoreContent(id: number, input: TaonCmsRestoreContent): Observable<TaonCmsContentEntity>;
|
|
11
|
+
get allMyEntities$(): Observable<TaonCmsContentRevisionEntity[]>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { TaonBaseAngularService } from 'taon/src';
|
|
3
|
+
import type { TaonCmsContentTagEntity } from './taon-cms-content-tag.entity';
|
|
4
|
+
export declare class TaonCmsContentTagApiService extends TaonBaseAngularService {
|
|
5
|
+
private taonCmsContentTagController;
|
|
6
|
+
get allMyEntities$(): Observable<TaonCmsContentTagEntity[]>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { TaonBaseAngularService } from 'taon/src';
|
|
3
|
+
import type { TaonCmsTagEntity } from './taon-cms-tag.entity';
|
|
4
|
+
export declare class TaonCmsTagApiService extends TaonBaseAngularService {
|
|
5
|
+
private taonCmsTagController;
|
|
6
|
+
get allMyEntities$(): Observable<TaonCmsTagEntity[]>;
|
|
7
|
+
helloWorld(user: string): Observable<string>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
export declare class TaonCmsEditableDirective {
|
|
3
|
+
private readonly element;
|
|
4
|
+
private readonly sanitizer;
|
|
5
|
+
private value;
|
|
6
|
+
private composing;
|
|
7
|
+
taonCmsEditableFormat: 'text' | 'html';
|
|
8
|
+
taonCmsEditableSingleLine: boolean;
|
|
9
|
+
readonly taonCmsEditableChange: EventEmitter<string>;
|
|
10
|
+
set taonCmsEditable(value: string);
|
|
11
|
+
compositionStart(): void;
|
|
12
|
+
compositionEnd(): void;
|
|
13
|
+
onInput(): void;
|
|
14
|
+
onBlur(): void;
|
|
15
|
+
onKeydown(event: KeyboardEvent): void;
|
|
16
|
+
onPaste(event: ClipboardEvent): void;
|
|
17
|
+
private sanitize;
|
|
18
|
+
private render;
|
|
19
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { TaonPermissionEntity } from '@taon-dev/session/src';
|
|
2
|
+
import type { TaonCmsContentEntity } from '../../taon-cms-content/taon-cms-content.entity';
|
|
3
|
+
import { TaonCmsContentType } from '../../taon-cms-content/taon-cms-content.models';
|
|
4
|
+
import type { TaonCmsPostDraft, TaonCmsPostMode } from './taon-cms-post.models';
|
|
5
|
+
export declare class TaonCmsPostComponent {
|
|
6
|
+
readonly post: import("@angular/core", { with: { "resolution-mode": "import" } }).InputSignal<TaonCmsContentEntity>;
|
|
7
|
+
readonly mode: import("@angular/core", { with: { "resolution-mode": "import" } }).ModelSignal<TaonCmsPostMode>;
|
|
8
|
+
readonly changed: import("@angular/core", { with: { "resolution-mode": "import" } }).OutputEmitterRef<TaonCmsContentEntity>;
|
|
9
|
+
readonly deleted: import("@angular/core", { with: { "resolution-mode": "import" } }).OutputEmitterRef<TaonCmsContentEntity>;
|
|
10
|
+
readonly cancelled: import("@angular/core", { with: { "resolution-mode": "import" } }).OutputEmitterRef<void>;
|
|
11
|
+
readonly currentPost: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<TaonCmsContentEntity>;
|
|
12
|
+
readonly draft: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<TaonCmsPostDraft>;
|
|
13
|
+
readonly postTypes: {
|
|
14
|
+
value: TaonCmsContentType;
|
|
15
|
+
label: string;
|
|
16
|
+
}[];
|
|
17
|
+
private readonly mediaAttachments;
|
|
18
|
+
readonly mediaAttachment: import("@angular/core", { with: { "resolution-mode": "import" } }).Signal<{
|
|
19
|
+
readonly type: TaonCmsContentType.Video;
|
|
20
|
+
readonly key: "videoKey";
|
|
21
|
+
readonly heading: "Video Attachment";
|
|
22
|
+
readonly uploadLabel: "Upload video";
|
|
23
|
+
readonly accept: "video/*";
|
|
24
|
+
} | {
|
|
25
|
+
readonly type: TaonCmsContentType.Audio;
|
|
26
|
+
readonly key: "audioKey";
|
|
27
|
+
readonly heading: "Audio Attachment";
|
|
28
|
+
readonly uploadLabel: "Upload audio";
|
|
29
|
+
readonly accept: "audio/*";
|
|
30
|
+
} | {
|
|
31
|
+
readonly type: TaonCmsContentType.Attachment;
|
|
32
|
+
readonly key: "attachmentKey";
|
|
33
|
+
readonly heading: "File Attachment";
|
|
34
|
+
readonly uploadLabel: "Upload file";
|
|
35
|
+
readonly accept: "";
|
|
36
|
+
}>;
|
|
37
|
+
readonly busy: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<boolean>;
|
|
38
|
+
readonly uploading: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<boolean>;
|
|
39
|
+
readonly dialogOpen: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<boolean>;
|
|
40
|
+
readonly error: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<string>;
|
|
41
|
+
readonly relatedPosts: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<TaonCmsContentEntity[]>;
|
|
42
|
+
readonly relatedPostsLoading: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<boolean>;
|
|
43
|
+
readonly relatedPostsError: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<string>;
|
|
44
|
+
readonly permissions: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<TaonPermissionEntity[]>;
|
|
45
|
+
readonly permissionsLoading: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<boolean>;
|
|
46
|
+
readonly permissionsError: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<string>;
|
|
47
|
+
readonly permissionOptions: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<TaonPermissionEntity[]>;
|
|
48
|
+
readonly permissionOptionsLoading: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<boolean>;
|
|
49
|
+
readonly permissionOptionsError: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<string>;
|
|
50
|
+
readonly selectedPermissionId: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<number>;
|
|
51
|
+
readonly availablePermissions: import("@angular/core", { with: { "resolution-mode": "import" } }).Signal<TaonPermissionEntity[]>;
|
|
52
|
+
readonly editing: import("@angular/core", { with: { "resolution-mode": "import" } }).Signal<boolean>;
|
|
53
|
+
readonly canSave: import("@angular/core", { with: { "resolution-mode": "import" } }).Signal<boolean>;
|
|
54
|
+
readonly canPublish: import("@angular/core", { with: { "resolution-mode": "import" } }).Signal<boolean>;
|
|
55
|
+
private readonly api;
|
|
56
|
+
private readonly permissionApi;
|
|
57
|
+
private readonly dialog;
|
|
58
|
+
private readonly destroyRef;
|
|
59
|
+
private relatedPostsLoad?;
|
|
60
|
+
private permissionsLoad?;
|
|
61
|
+
constructor();
|
|
62
|
+
loadRelatedPosts(): void;
|
|
63
|
+
addRelatedPost(): void;
|
|
64
|
+
removeRelatedPost(id: number): void;
|
|
65
|
+
loadPermissions(): void;
|
|
66
|
+
addPermission(): void;
|
|
67
|
+
removePermission(id: number): void;
|
|
68
|
+
loadPermissionOptions(): void;
|
|
69
|
+
updateDraft<K extends keyof TaonCmsPostDraft>(field: K, value: TaonCmsPostDraft[K]): void;
|
|
70
|
+
fileSelected(event: Event): Promise<void>;
|
|
71
|
+
removeMedia(): void;
|
|
72
|
+
updateSlug(event: Event): void;
|
|
73
|
+
edit(): void;
|
|
74
|
+
cancel(): void;
|
|
75
|
+
save(): void;
|
|
76
|
+
publish(): void;
|
|
77
|
+
revert(): void;
|
|
78
|
+
delete(): void;
|
|
79
|
+
private updateInput;
|
|
80
|
+
private requirePost;
|
|
81
|
+
private setPost;
|
|
82
|
+
private acceptPost;
|
|
83
|
+
private persist;
|
|
84
|
+
}
|
package/full-dts/taon-posts/taon-cms-post-edit-dialog/taon-cms-post-edit-dialog.component.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import type { TaonCmsContentEntity } from '../../taon-cms-content/taon-cms-content.entity';
|
|
3
|
+
import { TaonCmsPostComponent } from '../taon-cms-post/taon-cms-post.component';
|
|
4
|
+
export interface TaonCmsPostEditDialogData {
|
|
5
|
+
post?: TaonCmsContentEntity;
|
|
6
|
+
mode: 'edit' | 'add';
|
|
7
|
+
}
|
|
8
|
+
export declare class TaonCmsPostEditDialogComponent {
|
|
9
|
+
readonly data: TaonCmsPostEditDialogData;
|
|
10
|
+
readonly editor: import("@angular/core", { with: { "resolution-mode": "import" } }).Signal<TaonCmsPostComponent>;
|
|
11
|
+
readonly changed: EventEmitter<TaonCmsContentEntity>;
|
|
12
|
+
private readonly ref;
|
|
13
|
+
close(): void;
|
|
14
|
+
deleted(post: TaonCmsContentEntity): void;
|
|
15
|
+
}
|
package/full-dts/taon-posts/taon-cms-posts-backoffice/taon-cms-posts-backoffice.component.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { MtxGridColumn } from '@ng-matero/extensions/grid';
|
|
2
|
+
import { TaonDatatableComponent } from '@taon-dev/ui/src';
|
|
3
|
+
import { TaonCmsContentApiService } from '../../taon-cms-content/taon-cms-content-api.service';
|
|
4
|
+
import type { TaonCmsContentEntity } from '../../taon-cms-content/taon-cms-content.entity';
|
|
5
|
+
export declare class TaonCmsPostsBackofficeComponent {
|
|
6
|
+
readonly datatable: TaonDatatableComponent;
|
|
7
|
+
readonly taonCmsContentApiService: TaonCmsContentApiService;
|
|
8
|
+
readonly posts: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<TaonCmsContentEntity[]>;
|
|
9
|
+
readonly loading: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<boolean>;
|
|
10
|
+
readonly deleting: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<number>;
|
|
11
|
+
readonly error: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<string>;
|
|
12
|
+
private readonly dialog;
|
|
13
|
+
private readonly route;
|
|
14
|
+
private readonly router;
|
|
15
|
+
private readonly destroyRef;
|
|
16
|
+
private readonly cancelLoad$;
|
|
17
|
+
get crud(): import("../..").TaonCmsContentController;
|
|
18
|
+
readonly columns: MtxGridColumn[];
|
|
19
|
+
reload(): void;
|
|
20
|
+
ngAfterViewInit(): void;
|
|
21
|
+
add(): void;
|
|
22
|
+
edit(post: TaonCmsContentEntity): void;
|
|
23
|
+
openDetails(post: TaonCmsContentEntity): void;
|
|
24
|
+
delete(post: TaonCmsContentEntity): void;
|
|
25
|
+
private openEditor;
|
|
26
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Routes } from '@angular/router';
|
|
2
|
+
export declare const TaonCmsPostsBackofficeRoutes: Routes;
|
|
3
|
+
/**
|
|
4
|
+
* By default exporting TaonCmsPostsBackofficeRoutes,
|
|
5
|
+
* the command `taon generate:app:routes`
|
|
6
|
+
* will automatically add them to the root routes in ./src/app.ts.
|
|
7
|
+
*/
|
package/full-dts/taon-posts/taon-cms-revision-chooser/taon-cms-revision-chooser.component.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TaonCmsContentEntity } from '../../taon-cms-content/taon-cms-content.entity';
|
|
2
|
+
import type { TaonCmsContentRevisionEntity } from '../../taon-cms-content-revision/taon-cms-content-revision.entity';
|
|
3
|
+
export declare class TaonCmsRevisionChooserComponent {
|
|
4
|
+
readonly post: TaonCmsContentEntity;
|
|
5
|
+
readonly revisions: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<TaonCmsContentRevisionEntity[]>;
|
|
6
|
+
readonly selected: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<number>;
|
|
7
|
+
readonly loading: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<boolean>;
|
|
8
|
+
readonly applying: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<boolean>;
|
|
9
|
+
readonly error: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<string>;
|
|
10
|
+
private readonly api;
|
|
11
|
+
private readonly ref;
|
|
12
|
+
private readonly destroyRef;
|
|
13
|
+
constructor();
|
|
14
|
+
load(): void;
|
|
15
|
+
apply(): void;
|
|
16
|
+
cancel(): void;
|
|
17
|
+
}
|
package/full-dts/taon-posts/taon-related-post-chooser/taon-related-post-chooser.component.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { TaonCmsContentEntity } from '../../taon-cms-content/taon-cms-content.entity';
|
|
2
|
+
export interface TaonRelatedPostChooserData {
|
|
3
|
+
postId?: number;
|
|
4
|
+
excludedIds: number[];
|
|
5
|
+
}
|
|
6
|
+
export declare class TaonRelatedPostChooserComponent {
|
|
7
|
+
readonly data: TaonRelatedPostChooserData;
|
|
8
|
+
readonly posts: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<TaonCmsContentEntity[]>;
|
|
9
|
+
readonly selected: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<number>;
|
|
10
|
+
readonly query: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<string>;
|
|
11
|
+
readonly loading: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<boolean>;
|
|
12
|
+
readonly error: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<string>;
|
|
13
|
+
readonly filteredPosts: import("@angular/core", { with: { "resolution-mode": "import" } }).Signal<TaonCmsContentEntity[]>;
|
|
14
|
+
private readonly api;
|
|
15
|
+
private readonly ref;
|
|
16
|
+
private readonly destroyRef;
|
|
17
|
+
constructor();
|
|
18
|
+
load(): void;
|
|
19
|
+
search(event: Event): void;
|
|
20
|
+
choose(): void;
|
|
21
|
+
cancel(): void;
|
|
22
|
+
}
|
package/lib/app.data.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TaonAuthorizationSchema } from '@taon-dev/session
|
|
1
|
+
import { TaonAuthorizationSchema } from '@taon-dev/session';
|
|
2
2
|
export declare enum MyAppGroup {
|
|
3
3
|
Administrator = "administrator",
|
|
4
4
|
Customers = "customers"
|
|
@@ -19,4 +19,4 @@ export interface MyAppAuthorization extends TaonAuthorizationSchema {
|
|
|
19
19
|
group: MyAppGroup;
|
|
20
20
|
role: MyAppRole;
|
|
21
21
|
permission: MyAppPermission;
|
|
22
|
-
}
|
|
22
|
+
}
|
|
@@ -25,6 +25,6 @@ exports.CURRENT_PACKAGE_TAON_VERSION = 'v21';
|
|
|
25
25
|
/**
|
|
26
26
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
27
27
|
*/
|
|
28
|
-
exports.CURRENT_PACKAGE_VERSION = '21.0.
|
|
28
|
+
exports.CURRENT_PACKAGE_VERSION = '21.0.11';
|
|
29
29
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
30
30
|
//# sourceMappingURL=build-info._auto-generated_.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-info._auto-generated_.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC;;GAEG;AACU,QAAA,wBAAwB,GAAG,KAAK,CAAC;AAC9C;;GAEG;AACU,QAAA,MAAM,GAAG,wBAAwB,CAAC;AAC/C;;GAEG;AACU,QAAA,eAAe,GAAG,EAAE,CAAC;AAClC;;GAEG;AACU,QAAA,gBAAgB,GAAG,eAAe,CAAC;AAChD;;GAEG;AACU,QAAA,4BAA4B,GAAG,KAAK,CAAC;AAClD;;GAEG;AACU,QAAA,uBAAuB,GAAG,
|
|
1
|
+
{"version":3,"file":"build-info._auto-generated_.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC;;GAEG;AACU,QAAA,wBAAwB,GAAG,KAAK,CAAC;AAC9C;;GAEG;AACU,QAAA,MAAM,GAAG,wBAAwB,CAAC;AAC/C;;GAEG;AACU,QAAA,eAAe,GAAG,EAAE,CAAC;AAClC;;GAEG;AACU,QAAA,gBAAgB,GAAG,eAAe,CAAC;AAChD;;GAEG;AACU,QAAA,4BAA4B,GAAG,KAAK,CAAC;AAClD;;GAEG;AACU,QAAA,uBAAuB,GAAG,SAAS,CAAC;AAMjD,yCAAyC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CoreModels } from 'tnp-core
|
|
1
|
+
import { CoreModels } from 'tnp-core';
|
|
2
2
|
import { EnUsTraslationOverrideSrcLibMyOrganizationProjTs } from './my-organization-proj.ts.en-US.i18n.data';
|
|
3
3
|
import { PlPlTraslationOverrideSrcLibMyOrganizationProjTs } from './my-organization-proj.ts.pl-PL.i18n.data';
|
|
4
|
-
export type LibOverride = CoreModels.DeepPartial<EnUsTraslationOverrideSrcLibMyOrganizationProjTs | PlPlTraslationOverrideSrcLibMyOrganizationProjTs>;
|
|
4
|
+
export type LibOverride = CoreModels.DeepPartial<EnUsTraslationOverrideSrcLibMyOrganizationProjTs | PlPlTraslationOverrideSrcLibMyOrganizationProjTs>;
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./migrations"), exports);
|
|
18
|
-
|
|
18
|
+
/* */
|
|
19
19
|
__exportStar(require("./index._auto-generated_"), exports);
|
|
20
20
|
__exportStar(require("./my-organization-proj"), exports);
|
|
21
21
|
__exportStar(require("./taon-cms-content/taon-cms-content-storage.controller"), exports);
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,KAAK;AACL,2DAAyC;AACzC,yDAAuC;AACvC,yFAAuE;AACvE,KAAK;AACL,8CAA4B,CAAC,WAAW;AACxC,kBAAe,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TaonBaseMigration } from 'taon
|
|
2
|
-
import { QueryRunner } from 'taon-typeorm
|
|
1
|
+
import { TaonBaseMigration } from 'taon';
|
|
2
|
+
import { QueryRunner } from 'taon-typeorm';
|
|
3
3
|
export declare class CmsContext_1791132517216_initial extends TaonBaseMigration {
|
|
4
4
|
private taonAuthContextRepository;
|
|
5
5
|
up(queryRunner: QueryRunner): Promise<any>;
|
|
6
6
|
down(queryRunner: QueryRunner): Promise<any>;
|
|
7
|
-
}
|
|
7
|
+
}
|
package/lib/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function
|
|
1
|
+
export declare function dummy1791759824231(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
3
|
+
exports.dummy1791759824231 = dummy1791759824231;
|
|
4
|
+
function dummy1791759824231() { }
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,15 +2,15 @@ export declare const TaonCmsCategoryAbstractContext: {
|
|
|
2
2
|
readonly contextName: string;
|
|
3
3
|
readonly expressApp: import("express").Application;
|
|
4
4
|
readonly appId: string;
|
|
5
|
-
cloneAsRemote: (cloneOpt?: Pick<import("taon
|
|
6
|
-
cloneAsNormal: (cloneOpt?: Partial<Pick<import("taon
|
|
7
|
-
__ref(): Promise<import("taon
|
|
8
|
-
readonly __refSync: import("taon
|
|
5
|
+
cloneAsRemote: (cloneOpt?: Pick<import("taon").Models.TaonCtxCloneParams, "overrideRemoteHost" | "overrideContextName" | "overrideUseSession">) => any;
|
|
6
|
+
cloneAsNormal: (cloneOpt?: Partial<Pick<import("taon").Models.TaonCtxCloneParams, "overrideHost" | "overrideContextName" | "overrideUseSession">>) => any;
|
|
7
|
+
__ref(): Promise<import("taon").EndpointContext>;
|
|
8
|
+
readonly __refSync: import("taon").EndpointContext;
|
|
9
9
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
10
10
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
11
|
-
initialize: (overrideOptions?: import("taon
|
|
11
|
+
initialize: (overrideOptions?: import("taon").Models.TaonInitializeParams) => Promise<import("taon").EndpointContext>;
|
|
12
12
|
readonly realtime: {
|
|
13
|
-
readonly client: import("taon
|
|
14
|
-
readonly server: import("taon
|
|
13
|
+
readonly client: import("taon").RealtimeClient;
|
|
14
|
+
readonly server: import("taon").RealtimeServer;
|
|
15
15
|
};
|
|
16
|
-
};
|
|
16
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TaonBaseCrudController } from 'taon
|
|
1
|
+
import { TaonBaseCrudController } from 'taon';
|
|
2
2
|
import { TaonCmsCategoryEntity } from './taon-cms-category.entity';
|
|
3
3
|
import { TaonCmsCategoryRepository } from './taon-cms-category.repository';
|
|
4
4
|
export declare class TaonCmsCategoryController extends TaonBaseCrudController<TaonCmsCategoryEntity> {
|
|
5
5
|
entityClassResolveFn: () => typeof TaonCmsCategoryEntity;
|
|
6
6
|
taonCmsCategoryRepository: TaonCmsCategoryRepository;
|
|
7
|
-
}
|
|
7
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TaonBaseAbstractEntity } from 'taon
|
|
1
|
+
import { TaonBaseAbstractEntity } from 'taon';
|
|
2
2
|
export declare class TaonCmsCategoryEntity extends TaonBaseAbstractEntity<TaonCmsCategoryEntity> {
|
|
3
3
|
parentCategoryId: number | null;
|
|
4
4
|
name: string;
|
|
5
5
|
slug: string;
|
|
6
6
|
description: string | null;
|
|
7
7
|
sortOrder: number;
|
|
8
|
-
}
|
|
8
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TaonBaseMiddleware } from 'taon
|
|
1
|
+
import { TaonBaseMiddleware } from 'taon';
|
|
2
2
|
export declare class TaonCmsCategoryMiddleware extends TaonBaseMiddleware {
|
|
3
|
-
}
|
|
3
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TaonBaseProvider } from 'taon
|
|
1
|
+
import { TaonBaseProvider } from 'taon';
|
|
2
2
|
export declare class TaonCmsCategoryProvider extends TaonBaseProvider {
|
|
3
|
-
}
|
|
3
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TaonBaseRepository } from 'taon
|
|
2
|
-
import type { EntityManager } from 'taon-typeorm
|
|
1
|
+
import { TaonBaseRepository } from 'taon';
|
|
2
|
+
import type { EntityManager } from 'taon-typeorm';
|
|
3
3
|
import { TaonCmsCategoryEntity } from './taon-cms-category.entity';
|
|
4
4
|
export declare class TaonCmsCategoryRepository extends TaonBaseRepository<TaonCmsCategoryEntity> {
|
|
5
5
|
entityClassResolveFn: () => typeof TaonCmsCategoryEntity;
|
|
6
6
|
requireCategory(id: number, manager: EntityManager): Promise<void>;
|
|
7
|
-
}
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TaonBaseSubscriberForEntity } from 'taon
|
|
1
|
+
import { TaonBaseSubscriberForEntity } from 'taon';
|
|
2
2
|
import { TaonCmsCategoryEntity } from './taon-cms-category.entity';
|
|
3
3
|
import { TaonCmsCategoryProvider } from './taon-cms-category.provider';
|
|
4
4
|
export declare class TaonCmsCategorySubscriber extends TaonBaseSubscriberForEntity {
|
|
5
5
|
taonCmsCategoryProvider: TaonCmsCategoryProvider;
|
|
6
6
|
listenTo(): typeof TaonCmsCategoryEntity;
|
|
7
|
-
}
|
|
7
|
+
}
|
|
@@ -2,15 +2,15 @@ export declare const TaonCmsCommentAbstractContext: {
|
|
|
2
2
|
readonly contextName: string;
|
|
3
3
|
readonly expressApp: import("express").Application;
|
|
4
4
|
readonly appId: string;
|
|
5
|
-
cloneAsRemote: (cloneOpt?: Pick<import("taon
|
|
6
|
-
cloneAsNormal: (cloneOpt?: Partial<Pick<import("taon
|
|
7
|
-
__ref(): Promise<import("taon
|
|
8
|
-
readonly __refSync: import("taon
|
|
5
|
+
cloneAsRemote: (cloneOpt?: Pick<import("taon").Models.TaonCtxCloneParams, "overrideRemoteHost" | "overrideContextName" | "overrideUseSession">) => any;
|
|
6
|
+
cloneAsNormal: (cloneOpt?: Partial<Pick<import("taon").Models.TaonCtxCloneParams, "overrideHost" | "overrideContextName" | "overrideUseSession">>) => any;
|
|
7
|
+
__ref(): Promise<import("taon").EndpointContext>;
|
|
8
|
+
readonly __refSync: import("taon").EndpointContext;
|
|
9
9
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
10
10
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
11
|
-
initialize: (overrideOptions?: import("taon
|
|
11
|
+
initialize: (overrideOptions?: import("taon").Models.TaonInitializeParams) => Promise<import("taon").EndpointContext>;
|
|
12
12
|
readonly realtime: {
|
|
13
|
-
readonly client: import("taon
|
|
14
|
-
readonly server: import("taon
|
|
13
|
+
readonly client: import("taon").RealtimeClient;
|
|
14
|
+
readonly server: import("taon").RealtimeServer;
|
|
15
15
|
};
|
|
16
|
-
};
|
|
16
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Taon, TaonBaseCrudController } from 'taon
|
|
1
|
+
import { Taon, TaonBaseCrudController } from 'taon';
|
|
2
2
|
import { TaonCmsCommentEntity } from './taon-cms-comment.entity';
|
|
3
3
|
import { TaonCmsCommentRepository } from './taon-cms-comment.repository';
|
|
4
4
|
export declare class TaonCmsCommentController extends TaonBaseCrudController<TaonCmsCommentEntity> {
|
|
@@ -8,4 +8,4 @@ export declare class TaonCmsCommentController extends TaonBaseCrudController<Tao
|
|
|
8
8
|
* TODO remove this demo example method
|
|
9
9
|
*/
|
|
10
10
|
helloWord(yourName: string): Taon.Response<string>;
|
|
11
|
-
}
|
|
11
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TaonBaseEntity } from 'taon
|
|
1
|
+
import { TaonBaseEntity } from 'taon';
|
|
2
2
|
export declare class TaonCmsCommentEntity extends TaonBaseEntity<TaonCmsCommentEntity> {
|
|
3
3
|
id: number;
|
|
4
4
|
version: number;
|
|
@@ -9,4 +9,4 @@ export declare class TaonCmsCommentEntity extends TaonBaseEntity<TaonCmsCommentE
|
|
|
9
9
|
status: string;
|
|
10
10
|
createdAt: Date;
|
|
11
11
|
updatedAt: Date;
|
|
12
|
-
}
|
|
12
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TaonBaseMiddleware } from 'taon
|
|
1
|
+
import { TaonBaseMiddleware } from 'taon';
|
|
2
2
|
export declare class TaonCmsCommentMiddleware extends TaonBaseMiddleware {
|
|
3
|
-
}
|
|
3
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TaonBaseProvider } from 'taon
|
|
1
|
+
import { TaonBaseProvider } from 'taon';
|
|
2
2
|
export declare class TaonCmsCommentProvider extends TaonBaseProvider {
|
|
3
|
-
}
|
|
3
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TaonBaseRepository } from 'taon
|
|
1
|
+
import { TaonBaseRepository } from 'taon';
|
|
2
2
|
import { TaonCmsCommentEntity } from './taon-cms-comment.entity';
|
|
3
3
|
export declare class TaonCmsCommentRepository extends TaonBaseRepository<TaonCmsCommentEntity> {
|
|
4
4
|
entityClassResolveFn: () => typeof TaonCmsCommentEntity;
|
|
@@ -6,4 +6,4 @@ export declare class TaonCmsCommentRepository extends TaonBaseRepository<TaonCms
|
|
|
6
6
|
* TODO remove this demo example method
|
|
7
7
|
*/
|
|
8
8
|
countEntitesWithEvenId(): Promise<number>;
|
|
9
|
-
}
|
|
9
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TaonBaseSubscriberForEntity } from 'taon
|
|
1
|
+
import { TaonBaseSubscriberForEntity } from 'taon';
|
|
2
2
|
import { TaonCmsCommentEntity } from './taon-cms-comment.entity';
|
|
3
3
|
import { TaonCmsCommentProvider } from './taon-cms-comment.provider';
|
|
4
4
|
export declare class TaonCmsCommentSubscriber extends TaonBaseSubscriberForEntity {
|
|
5
5
|
taonCmsCommentProvider: TaonCmsCommentProvider;
|
|
6
6
|
listenTo(): typeof TaonCmsCommentEntity;
|
|
7
|
-
}
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ExpressRequest, ExpressResponse, TaonBaseStorageController, TaonStorageObject, TaonUploadedFile } from 'taon
|
|
1
|
+
import { ExpressRequest, ExpressResponse, TaonBaseStorageController, TaonStorageObject, TaonUploadedFile } from 'taon';
|
|
2
2
|
export declare class TaonCmsContentStorageController extends TaonBaseStorageController {
|
|
3
3
|
protected handleUploadFiles(files: TaonUploadedFile[], queryParams?: {}, req?: ExpressRequest, res?: ExpressResponse): Promise<TaonStorageObject[]>;
|
|
4
4
|
afterFileUploadHook(): void;
|
|
5
5
|
buildStorageDownloadUrl(): string;
|
|
6
6
|
createStorageDownloadToken(): Promise<string>;
|
|
7
|
-
}
|
|
7
|
+
}
|
|
@@ -2,15 +2,15 @@ export declare const TaonCmsContentAbstractContext: {
|
|
|
2
2
|
readonly contextName: string;
|
|
3
3
|
readonly expressApp: import("express").Application;
|
|
4
4
|
readonly appId: string;
|
|
5
|
-
cloneAsRemote: (cloneOpt?: Pick<import("taon
|
|
6
|
-
cloneAsNormal: (cloneOpt?: Partial<Pick<import("taon
|
|
7
|
-
__ref(): Promise<import("taon
|
|
8
|
-
readonly __refSync: import("taon
|
|
5
|
+
cloneAsRemote: (cloneOpt?: Pick<import("taon").Models.TaonCtxCloneParams, "overrideRemoteHost" | "overrideContextName" | "overrideUseSession">) => any;
|
|
6
|
+
cloneAsNormal: (cloneOpt?: Partial<Pick<import("taon").Models.TaonCtxCloneParams, "overrideHost" | "overrideContextName" | "overrideUseSession">>) => any;
|
|
7
|
+
__ref(): Promise<import("taon").EndpointContext>;
|
|
8
|
+
readonly __refSync: import("taon").EndpointContext;
|
|
9
9
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
10
10
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
11
|
-
initialize: (overrideOptions?: import("taon
|
|
11
|
+
initialize: (overrideOptions?: import("taon").Models.TaonInitializeParams) => Promise<import("taon").EndpointContext>;
|
|
12
12
|
readonly realtime: {
|
|
13
|
-
readonly client: import("taon
|
|
14
|
-
readonly server: import("taon
|
|
13
|
+
readonly client: import("taon").RealtimeClient;
|
|
14
|
+
readonly server: import("taon").RealtimeServer;
|
|
15
15
|
};
|
|
16
|
-
};
|
|
16
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Taon, TaonBaseCrudController } from 'taon
|
|
1
|
+
import { Taon, TaonBaseCrudController } from 'taon';
|
|
2
2
|
import type { TaonCmsContentRevisionEntity } from '../taon-cms-content-revision/taon-cms-content-revision.entity';
|
|
3
3
|
import { TaonCmsContentEntity } from './taon-cms-content.entity';
|
|
4
4
|
import type { TaonCmsCreateContent, TaonCmsRestoreContent, TaonCmsUpdateContent } from './taon-cms-content.models';
|
|
5
|
-
import type { TaonPermissionEntity } from '@taon-dev/session
|
|
5
|
+
import type { TaonPermissionEntity } from '@taon-dev/session';
|
|
6
6
|
import { TaonCmsContentRepository } from './taon-cms-content.repository';
|
|
7
7
|
export declare class TaonCmsContentController extends TaonBaseCrudController<TaonCmsContentEntity> {
|
|
8
8
|
entityClassResolveFn: () => typeof TaonCmsContentEntity;
|
|
@@ -16,4 +16,4 @@ export declare class TaonCmsContentController extends TaonBaseCrudController<Tao
|
|
|
16
16
|
addRelatedPost(id: number, relatedPostId: number, expectedVersion: number): Taon.Response<TaonCmsContentEntity>;
|
|
17
17
|
deleteRelatedPost(id: number, relatedPostId: number, expectedVersion: number): Taon.Response<TaonCmsContentEntity>;
|
|
18
18
|
listRevisions(id: number): Taon.Response<TaonCmsContentRevisionEntity[]>;
|
|
19
|
-
}
|
|
19
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TaonBaseEntity } from 'taon
|
|
2
|
-
import { TaonPermissionEntity } from '@taon-dev/session
|
|
1
|
+
import { TaonBaseEntity } from 'taon';
|
|
2
|
+
import { TaonPermissionEntity } from '@taon-dev/session';
|
|
3
3
|
import { TaonCmsContentType } from './taon-cms-content.models';
|
|
4
4
|
export declare class TaonCmsContentEntity extends TaonBaseEntity<TaonCmsContentEntity> {
|
|
5
5
|
id: number;
|
|
@@ -20,4 +20,4 @@ export declare class TaonCmsContentEntity extends TaonBaseEntity<TaonCmsContentE
|
|
|
20
20
|
publishedAt: Date | null;
|
|
21
21
|
createdAt: Date;
|
|
22
22
|
updatedAt: Date;
|
|
23
|
-
}
|
|
23
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TaonBaseMiddleware } from 'taon
|
|
1
|
+
import { TaonBaseMiddleware } from 'taon';
|
|
2
2
|
export declare class TaonCmsContentMiddleware extends TaonBaseMiddleware {
|
|
3
|
-
}
|
|
3
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TaonBaseProvider } from 'taon
|
|
1
|
+
import { TaonBaseProvider } from 'taon';
|
|
2
2
|
export declare class TaonCmsContentProvider extends TaonBaseProvider {
|
|
3
|
-
}
|
|
3
|
+
}
|