@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.
- package/README.md +24 -0
- package/esm2020/lib/cms-routing.module.mjs +52 -0
- package/esm2020/lib/cms.module.mjs +134 -0
- package/esm2020/lib/comnponents/content-form/content-form.component.mjs +237 -0
- package/esm2020/lib/comnponents/document-dialog/document-dialog.component.mjs +91 -0
- package/esm2020/lib/comnponents/template-form/template-form.component.mjs +177 -0
- package/esm2020/lib/comnponents/template-preview-dialog/template-preview-dialog.component.mjs +126 -0
- package/esm2020/lib/enums/content-type.mjs +6 -0
- package/esm2020/lib/enums/document-type.mjs +8 -0
- package/esm2020/lib/enums/faq-scope.mjs +6 -0
- package/esm2020/lib/enums/template-type.mjs +6 -0
- package/esm2020/lib/enums/wrap-tag.mjs +9 -0
- package/esm2020/lib/models/cms-settings.mjs +12 -0
- package/esm2020/lib/models/content-variable.mjs +48 -0
- package/esm2020/lib/models/content.mjs +89 -0
- package/esm2020/lib/models/document.mjs +102 -0
- package/esm2020/lib/models/faq.mjs +71 -0
- package/esm2020/lib/models/template-preview.mjs +10 -0
- package/esm2020/lib/models/template.mjs +80 -0
- package/esm2020/lib/public-api.mjs +25 -0
- package/esm2020/lib/resolvers/excluded-columns.resolve.mjs +22 -0
- package/esm2020/lib/resolvers/excluded-fields.resolve.mjs +22 -0
- package/esm2020/lib/resolvers/includes.resolve.mjs +22 -0
- package/esm2020/lib/resolvers/settings.resolve.mjs +26 -0
- package/esm2020/lib/services/content-variable.service.mjs +27 -0
- package/esm2020/lib/services/content.service.mjs +34 -0
- package/esm2020/lib/services/document.generic-service.mjs +11 -0
- package/esm2020/lib/services/document.service`.mjs +25 -0
- package/esm2020/lib/services/faq.service.mjs +18 -0
- package/esm2020/lib/services/template-preview.service.mjs +18 -0
- package/esm2020/lib/services/template.service.mjs +18 -0
- package/esm2020/messaia-cdk-cms.mjs +5 -0
- package/esm2020/public_api.mjs +5 -0
- package/fesm2015/messaia-cdk-cms.mjs +1380 -0
- package/fesm2015/messaia-cdk-cms.mjs.map +1 -0
- package/fesm2020/messaia-cdk-cms.mjs +1367 -0
- package/fesm2020/messaia-cdk-cms.mjs.map +1 -0
- package/lib/cms-routing.module.d.ts +7 -0
- package/lib/cms.module.d.ts +40 -0
- package/lib/comnponents/content-form/content-form.component.d.ts +109 -0
- package/lib/comnponents/document-dialog/document-dialog.component.d.ts +47 -0
- package/lib/comnponents/template-form/template-form.component.d.ts +74 -0
- package/lib/comnponents/template-preview-dialog/template-preview-dialog.component.d.ts +68 -0
- package/lib/enums/content-type.d.ts +4 -0
- package/lib/enums/document-type.d.ts +6 -0
- package/lib/enums/faq-scope.d.ts +4 -0
- package/lib/enums/template-type.d.ts +4 -0
- package/lib/enums/wrap-tag.d.ts +7 -0
- package/lib/models/cms-settings.d.ts +10 -0
- package/lib/models/content-variable.d.ts +9 -0
- package/lib/models/content.d.ts +19 -0
- package/lib/models/document.d.ts +26 -0
- package/lib/models/faq.d.ts +14 -0
- package/lib/models/template-preview.d.ts +17 -0
- package/lib/models/template.d.ts +16 -0
- package/lib/public-api.d.ts +21 -0
- package/lib/resolvers/excluded-columns.resolve.d.ts +14 -0
- package/lib/resolvers/excluded-fields.resolve.d.ts +14 -0
- package/lib/resolvers/includes.resolve.d.ts +14 -0
- package/lib/resolvers/settings.resolve.d.ts +15 -0
- package/lib/services/content-variable.service.d.ts +17 -0
- package/lib/services/content.service.d.ts +23 -0
- package/lib/services/document.generic-service.d.ts +9 -0
- package/lib/services/document.service`.d.ts +17 -0
- package/lib/services/faq.service.d.ts +11 -0
- package/lib/services/template-preview.service.d.ts +11 -0
- package/lib/services/template.service.d.ts +11 -0
- package/messaia-cdk-cms.d.ts +5 -0
- package/package.json +33 -0
- package/public_api.d.ts +1 -0
|
@@ -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
|
+
}
|
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
|
+
}
|
package/public_api.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/public-api';
|