@messaia/cdk-cms 0.0.1-rc01

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.
Files changed (70) hide show
  1. package/README.md +24 -0
  2. package/esm2020/lib/cms-routing.module.mjs +52 -0
  3. package/esm2020/lib/cms.module.mjs +134 -0
  4. package/esm2020/lib/comnponents/content-form/content-form.component.mjs +237 -0
  5. package/esm2020/lib/comnponents/document-dialog/document-dialog.component.mjs +91 -0
  6. package/esm2020/lib/comnponents/template-form/template-form.component.mjs +177 -0
  7. package/esm2020/lib/comnponents/template-preview-dialog/template-preview-dialog.component.mjs +126 -0
  8. package/esm2020/lib/enums/content-type.mjs +6 -0
  9. package/esm2020/lib/enums/document-type.mjs +8 -0
  10. package/esm2020/lib/enums/faq-scope.mjs +6 -0
  11. package/esm2020/lib/enums/template-type.mjs +6 -0
  12. package/esm2020/lib/enums/wrap-tag.mjs +9 -0
  13. package/esm2020/lib/models/cms-settings.mjs +12 -0
  14. package/esm2020/lib/models/content-variable.mjs +48 -0
  15. package/esm2020/lib/models/content.mjs +89 -0
  16. package/esm2020/lib/models/document.mjs +102 -0
  17. package/esm2020/lib/models/faq.mjs +71 -0
  18. package/esm2020/lib/models/template-preview.mjs +10 -0
  19. package/esm2020/lib/models/template.mjs +80 -0
  20. package/esm2020/lib/public-api.mjs +25 -0
  21. package/esm2020/lib/resolvers/excluded-columns.resolve.mjs +22 -0
  22. package/esm2020/lib/resolvers/excluded-fields.resolve.mjs +22 -0
  23. package/esm2020/lib/resolvers/includes.resolve.mjs +22 -0
  24. package/esm2020/lib/resolvers/settings.resolve.mjs +26 -0
  25. package/esm2020/lib/services/content-variable.service.mjs +27 -0
  26. package/esm2020/lib/services/content.service.mjs +34 -0
  27. package/esm2020/lib/services/document.generic-service.mjs +11 -0
  28. package/esm2020/lib/services/document.service`.mjs +25 -0
  29. package/esm2020/lib/services/faq.service.mjs +18 -0
  30. package/esm2020/lib/services/template-preview.service.mjs +18 -0
  31. package/esm2020/lib/services/template.service.mjs +18 -0
  32. package/esm2020/messaia-cdk-cms.mjs +5 -0
  33. package/esm2020/public_api.mjs +5 -0
  34. package/fesm2015/messaia-cdk-cms.mjs +1380 -0
  35. package/fesm2015/messaia-cdk-cms.mjs.map +1 -0
  36. package/fesm2020/messaia-cdk-cms.mjs +1367 -0
  37. package/fesm2020/messaia-cdk-cms.mjs.map +1 -0
  38. package/lib/cms-routing.module.d.ts +7 -0
  39. package/lib/cms.module.d.ts +40 -0
  40. package/lib/comnponents/content-form/content-form.component.d.ts +109 -0
  41. package/lib/comnponents/document-dialog/document-dialog.component.d.ts +47 -0
  42. package/lib/comnponents/template-form/template-form.component.d.ts +74 -0
  43. package/lib/comnponents/template-preview-dialog/template-preview-dialog.component.d.ts +68 -0
  44. package/lib/enums/content-type.d.ts +4 -0
  45. package/lib/enums/document-type.d.ts +6 -0
  46. package/lib/enums/faq-scope.d.ts +4 -0
  47. package/lib/enums/template-type.d.ts +4 -0
  48. package/lib/enums/wrap-tag.d.ts +7 -0
  49. package/lib/models/cms-settings.d.ts +10 -0
  50. package/lib/models/content-variable.d.ts +9 -0
  51. package/lib/models/content.d.ts +19 -0
  52. package/lib/models/document.d.ts +26 -0
  53. package/lib/models/faq.d.ts +14 -0
  54. package/lib/models/template-preview.d.ts +17 -0
  55. package/lib/models/template.d.ts +16 -0
  56. package/lib/public-api.d.ts +21 -0
  57. package/lib/resolvers/excluded-columns.resolve.d.ts +14 -0
  58. package/lib/resolvers/excluded-fields.resolve.d.ts +14 -0
  59. package/lib/resolvers/includes.resolve.d.ts +14 -0
  60. package/lib/resolvers/settings.resolve.d.ts +15 -0
  61. package/lib/services/content-variable.service.d.ts +17 -0
  62. package/lib/services/content.service.d.ts +23 -0
  63. package/lib/services/document.generic-service.d.ts +9 -0
  64. package/lib/services/document.service`.d.ts +17 -0
  65. package/lib/services/faq.service.d.ts +11 -0
  66. package/lib/services/template-preview.service.d.ts +11 -0
  67. package/lib/services/template.service.d.ts +11 -0
  68. package/messaia-cdk-cms.d.ts +5 -0
  69. package/package.json +33 -0
  70. package/public_api.d.ts +1 -0
@@ -0,0 +1,7 @@
1
+ export declare enum WrapTag {
2
+ None = "",
3
+ Section = "section",
4
+ Div = "div",
5
+ Address = "address",
6
+ Article = "article"
7
+ }
@@ -0,0 +1,10 @@
1
+ export declare class CmsSettings {
2
+ multitenantable: boolean;
3
+ styleUrlEndpoint: Function;
4
+ editorHeight: string;
5
+ /**
6
+ * constructor
7
+ * @param init
8
+ */
9
+ constructor(init?: Partial<CmsSettings>);
10
+ }
@@ -0,0 +1,9 @@
1
+ import { AuditEntity } from "@messaia/cdk";
2
+ export declare class ContentVariable extends AuditEntity {
3
+ title: string;
4
+ name: string;
5
+ value: string;
6
+ clientId: number;
7
+ default: boolean;
8
+ enabled: boolean;
9
+ }
@@ -0,0 +1,19 @@
1
+ import { AuditEntity } from "@messaia/cdk";
2
+ import { ContentType } from "../enums/content-type";
3
+ import { WrapTag } from "../enums/wrap-tag";
4
+ export declare class Content extends AuditEntity {
5
+ type: ContentType;
6
+ sectionId: number;
7
+ title: string;
8
+ name: string;
9
+ aliases: string;
10
+ body: string;
11
+ wrapTag: WrapTag;
12
+ layout: string;
13
+ showTitle: boolean;
14
+ clientId: number;
15
+ default: boolean;
16
+ enabled: boolean;
17
+ script: string;
18
+ style: string;
19
+ }
@@ -0,0 +1,26 @@
1
+ import { AuditEntity } from "@messaia/cdk";
2
+ import { Attachment } from "@messaia/cdk-base";
3
+ import { DocumentType } from "../enums/document-type";
4
+ export declare class Document extends AuditEntity {
5
+ type: DocumentType;
6
+ name: string;
7
+ path: string;
8
+ originalName: string;
9
+ relativePath: string;
10
+ fullPath: string;
11
+ isPublic: boolean;
12
+ extension: string;
13
+ publicLink: string;
14
+ size: number;
15
+ clientId: number;
16
+ preserveOriginalName: boolean;
17
+ customerId: number;
18
+ subject: string;
19
+ content: string;
20
+ attachments: Attachment[];
21
+ /**
22
+ * constructor
23
+ * @param init
24
+ */
25
+ constructor(init?: Partial<Document>);
26
+ }
@@ -0,0 +1,14 @@
1
+ import { AuditEntity } from "@messaia/cdk";
2
+ export declare class Faq extends AuditEntity {
3
+ question: string;
4
+ group: string;
5
+ clientId: number;
6
+ ordering: number;
7
+ answer: string;
8
+ enabled: boolean;
9
+ /**
10
+ * constructor
11
+ * @param init
12
+ */
13
+ constructor(init?: Partial<Faq>);
14
+ }
@@ -0,0 +1,17 @@
1
+ import { TemplateType } from "../enums/template-type";
2
+ export declare class TemplatePreview {
3
+ type: TemplateType;
4
+ endpoint: string;
5
+ displayName: string;
6
+ entityName: string;
7
+ entityId: number | null;
8
+ templateId: number;
9
+ email: string;
10
+ subject: string;
11
+ content: string;
12
+ /**
13
+ * constructor
14
+ * @param init
15
+ */
16
+ constructor(init?: Partial<TemplatePreview>);
17
+ }
@@ -0,0 +1,16 @@
1
+ import { AuditEntity } from "@messaia/cdk";
2
+ import { Attachment } from "@messaia/cdk-base";
3
+ import { TemplateType } from "../enums/template-type";
4
+ export declare class Template extends AuditEntity {
5
+ type: TemplateType;
6
+ name: string;
7
+ subject: string;
8
+ key: string;
9
+ notice: string;
10
+ email: string;
11
+ content: string;
12
+ dummyData: string;
13
+ clientId: number;
14
+ enabled: true;
15
+ attachments: Attachment[];
16
+ }
@@ -0,0 +1,21 @@
1
+ export * from './cms.module';
2
+ export * from './enums/content-type';
3
+ export * from './enums/document-type';
4
+ export * from './enums/faq-scope';
5
+ export * from './enums/template-type';
6
+ export * from './enums/wrap-tag';
7
+ export * from './models/cms-settings';
8
+ export * from './models/content';
9
+ export * from './models/content-variable';
10
+ export * from './models/document';
11
+ export * from './models/faq';
12
+ export * from './models/template';
13
+ export * from './models/template-preview';
14
+ export * from './resolvers/includes.resolve';
15
+ export * from './services/content-variable.service';
16
+ export * from './services/content.service';
17
+ export * from './services/document.generic-service';
18
+ export * from './services/document.service`';
19
+ export * from './services/faq.service';
20
+ export * from './services/template-preview.service';
21
+ export * from './services/template.service';
@@ -0,0 +1,14 @@
1
+ import { Resolve } from "@angular/router";
2
+ import { Observable } from "rxjs";
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Excluded columns resolve service
6
+ */
7
+ export declare class ExcludedColumnsResolve implements Resolve<string[]> {
8
+ /**
9
+ * Resolves excluded columns
10
+ */
11
+ resolve(): Observable<string[]>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExcludedColumnsResolve, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<ExcludedColumnsResolve>;
14
+ }
@@ -0,0 +1,14 @@
1
+ import { Resolve } from "@angular/router";
2
+ import { Observable } from "rxjs";
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Excluded fields resolve service
6
+ */
7
+ export declare class ExcludedFieldsResolve implements Resolve<string[]> {
8
+ /**
9
+ * Resolves excluded fields
10
+ */
11
+ resolve(): Observable<string[]>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExcludedFieldsResolve, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<ExcludedFieldsResolve>;
14
+ }
@@ -0,0 +1,14 @@
1
+ import { Resolve } from "@angular/router";
2
+ import { Observable } from "rxjs";
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Includes resolve service
6
+ */
7
+ export declare class IncludesResolve implements Resolve<string[]> {
8
+ /**
9
+ * Resolves includes
10
+ */
11
+ resolve(): Observable<string[]>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<IncludesResolve, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<IncludesResolve>;
14
+ }
@@ -0,0 +1,15 @@
1
+ import { ActivatedRouteSnapshot, Resolve } from "@angular/router";
2
+ import { Observable } from "rxjs";
3
+ import { CmsSettings } from "../models/cms-settings";
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Settings resolve service
7
+ */
8
+ export declare class SettingsResolve implements Resolve<CmsSettings> {
9
+ /**
10
+ * Resolves settings
11
+ */
12
+ resolve(route: ActivatedRouteSnapshot): Observable<CmsSettings>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingsResolve, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<SettingsResolve>;
15
+ }
@@ -0,0 +1,17 @@
1
+ import { GenericService } from '@messaia/cdk';
2
+ import { ContentVariable } from '../models/content-variable';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ContentVariableService extends GenericService<ContentVariable> {
5
+ /**
6
+ * Constructor
7
+ */
8
+ constructor();
9
+ /**
10
+ * Checks if the specified alias is available.
11
+ * @param id
12
+ * @param alias
13
+ */
14
+ isNameAvailable(item: ContentVariable): import("rxjs").Observable<any>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContentVariableService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<ContentVariableService>;
17
+ }
@@ -0,0 +1,23 @@
1
+ import { GenericService } from '@messaia/cdk';
2
+ import { Observable } from 'rxjs';
3
+ import { Content } from '../models/content';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ContentService extends GenericService<Content> {
6
+ /**
7
+ * Constructor
8
+ */
9
+ constructor();
10
+ /**
11
+ * Checks if the specified alias is available.
12
+ * @param id
13
+ * @param alias
14
+ */
15
+ isAliasAvailable(item: Content): Observable<any>;
16
+ /**
17
+ * Duplicates a tariff
18
+ * @param id
19
+ */
20
+ duplicate(id: number): Observable<any>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContentService, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<ContentService>;
23
+ }
@@ -0,0 +1,9 @@
1
+ import { GenericService } from '@messaia/cdk';
2
+ import { Document } from '../models/document';
3
+ export declare abstract class DocumentGenericService<TDocument extends Document> extends GenericService<TDocument> {
4
+ /**
5
+ * Constructor
6
+ * @param serviceName
7
+ */
8
+ constructor(serviceName?: string);
9
+ }
@@ -0,0 +1,17 @@
1
+ import { Observable } from 'rxjs';
2
+ import { Document } from '../models/document';
3
+ import { DocumentGenericService } from './document.generic-service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class DocumentService extends DocumentGenericService<Document> {
6
+ /**
7
+ * Constructor
8
+ */
9
+ constructor();
10
+ /**
11
+ * Sends an email to the customer
12
+ * @param id The ID of the document
13
+ */
14
+ sendMail(id: number): Observable<any>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<DocumentService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<DocumentService>;
17
+ }
@@ -0,0 +1,11 @@
1
+ import { GenericService } from '@messaia/cdk';
2
+ import { Faq } from '../models/faq';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FaqService extends GenericService<Faq> {
5
+ /**
6
+ * Constructor
7
+ */
8
+ constructor();
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<FaqService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<FaqService>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { GenericService } from '@messaia/cdk';
2
+ import { TemplatePreview } from '../models/template-preview';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TemplatePreviewService extends GenericService<TemplatePreview> {
5
+ /**
6
+ * Constructor
7
+ */
8
+ constructor();
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePreviewService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<TemplatePreviewService>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { GenericService } from '@messaia/cdk';
2
+ import { Template } from '../models/template';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TemplateService extends GenericService<Template> {
5
+ /**
6
+ * Constructor
7
+ */
8
+ constructor();
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TemplateService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<TemplateService>;
11
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@messaia/cdk-cms" />
5
+ export * from './public_api';
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@messaia/cdk-cms",
3
+ "version": "0.0.1-rc01",
4
+ "peerDependencies": {
5
+ "@angular/common": "^13.1.0",
6
+ "@angular/core": "^13.1.0",
7
+ "@messaia/cdk": "0.0.0-VD",
8
+ "@messaia/cdk-base": "0.0.0-VD"
9
+ },
10
+ "dependencies": {
11
+ "tslib": "^2.3.0"
12
+ },
13
+ "module": "fesm2015/messaia-cdk-cms.mjs",
14
+ "es2020": "fesm2020/messaia-cdk-cms.mjs",
15
+ "esm2020": "esm2020/messaia-cdk-cms.mjs",
16
+ "fesm2020": "fesm2020/messaia-cdk-cms.mjs",
17
+ "fesm2015": "fesm2015/messaia-cdk-cms.mjs",
18
+ "typings": "messaia-cdk-cms.d.ts",
19
+ "exports": {
20
+ "./package.json": {
21
+ "default": "./package.json"
22
+ },
23
+ ".": {
24
+ "types": "./messaia-cdk-cms.d.ts",
25
+ "esm2020": "./esm2020/messaia-cdk-cms.mjs",
26
+ "es2020": "./fesm2020/messaia-cdk-cms.mjs",
27
+ "es2015": "./fesm2015/messaia-cdk-cms.mjs",
28
+ "node": "./fesm2015/messaia-cdk-cms.mjs",
29
+ "default": "./fesm2020/messaia-cdk-cms.mjs"
30
+ }
31
+ },
32
+ "sideEffects": false
33
+ }
@@ -0,0 +1 @@
1
+ export * from './lib/public-api';