@smartsoft001-mobilems/models 2.37.0 → 2.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/lib/interfaces.d.ts +110 -0
- package/src/lib/interfaces.js +17 -0
- package/src/lib/interfaces.js.map +1 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
|
@@ -3,4 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./lib/config"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./lib/entities"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./lib/interfaces"), exports);
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/shared/models/src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B;AAC7B,yDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/shared/models/src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B;AAC7B,yDAA+B;AAC/B,2DAAiC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { IEntity } from '@smartsoft001/domain-core';
|
|
2
|
+
import { MsFile } from '@smartsoft001-mobilems/models';
|
|
3
|
+
export interface IArticle {
|
|
4
|
+
id: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
subTitle?: string;
|
|
7
|
+
authors?: Array<IAuthor>;
|
|
8
|
+
creators?: Array<ICreator>;
|
|
9
|
+
quote?: string;
|
|
10
|
+
quoteVisible?: boolean;
|
|
11
|
+
shortDescription?: string;
|
|
12
|
+
publicationDate?: string;
|
|
13
|
+
category?: number;
|
|
14
|
+
templateName?: string;
|
|
15
|
+
color?: string;
|
|
16
|
+
titleColor?: string;
|
|
17
|
+
image?: MsFile;
|
|
18
|
+
visited?: number;
|
|
19
|
+
keywords?: Array<IKeyword>;
|
|
20
|
+
cycles?: Array<ICycle>;
|
|
21
|
+
copyrights?: ICopyrights;
|
|
22
|
+
leftWidgets?: Array<ArticleWidget>;
|
|
23
|
+
rightWidgets?: Array<ArticleWidget>;
|
|
24
|
+
bottomWidgets?: Array<ArticleWidget>;
|
|
25
|
+
fileName?: string;
|
|
26
|
+
imageDesktop?: MsFile;
|
|
27
|
+
imageTablet?: MsFile;
|
|
28
|
+
imageMobile?: MsFile;
|
|
29
|
+
}
|
|
30
|
+
export interface IArticleWidget {
|
|
31
|
+
position: number;
|
|
32
|
+
title?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface IArticleWidgetText extends IArticleWidget {
|
|
35
|
+
text: string;
|
|
36
|
+
widget: ArticleWidgetType.TEXT;
|
|
37
|
+
}
|
|
38
|
+
export interface IArticleWidgetGalleryArticle extends IArticleWidget {
|
|
39
|
+
gallery: {
|
|
40
|
+
items: IArticle[];
|
|
41
|
+
};
|
|
42
|
+
widget: ArticleWidgetType.GALLERY_ARTICLE;
|
|
43
|
+
}
|
|
44
|
+
export interface IArticleWidgetGalleryImage extends IArticleWidget {
|
|
45
|
+
gallery: {
|
|
46
|
+
items: Array<{
|
|
47
|
+
title?: string;
|
|
48
|
+
image?: MsFile;
|
|
49
|
+
file?: MsFile;
|
|
50
|
+
imageInfo?: string;
|
|
51
|
+
fileName?: string;
|
|
52
|
+
}>;
|
|
53
|
+
};
|
|
54
|
+
widget: ArticleWidgetType.GALLERY_IMAGE;
|
|
55
|
+
}
|
|
56
|
+
export interface IArticleWidgetImage extends IArticleWidget {
|
|
57
|
+
image: MsFile;
|
|
58
|
+
imageInfo?: string;
|
|
59
|
+
imageFullscreen?: boolean;
|
|
60
|
+
widget: ArticleWidgetType.IMAGE;
|
|
61
|
+
}
|
|
62
|
+
export interface IArticleWidgetMedia extends IArticleWidget {
|
|
63
|
+
file?: MsFile;
|
|
64
|
+
image?: MsFile;
|
|
65
|
+
widget: ArticleWidgetType.MEDIA;
|
|
66
|
+
}
|
|
67
|
+
export interface IArticleWidgetGalleryObject extends IArticleWidget {
|
|
68
|
+
gallery: {
|
|
69
|
+
items?: Array<IEntity<string>>;
|
|
70
|
+
objects?: Array<IEntity<string>>;
|
|
71
|
+
};
|
|
72
|
+
widget: ArticleWidgetType.GALLERY_OBJECT;
|
|
73
|
+
}
|
|
74
|
+
export type ArticleWidget = IArticleWidgetText | IArticleWidgetMedia | IArticleWidgetGalleryArticle | IArticleWidgetGalleryImage | IArticleWidgetImage | IArticleWidgetGalleryObject;
|
|
75
|
+
export declare enum ArticleWidgetType {
|
|
76
|
+
MEDIA = "media",
|
|
77
|
+
GALLERY_OBJECT = "gallery_object",
|
|
78
|
+
IMAGE = "image",
|
|
79
|
+
AUDIO = "audio",
|
|
80
|
+
VIDEO = "video",
|
|
81
|
+
GALLERY_IMAGE = "gallery_image",
|
|
82
|
+
GALLERY_VIDEO = "gallery_video",
|
|
83
|
+
GALLERY_ARTICLE = "gallery_article",
|
|
84
|
+
GALLERY_GAME = "gallery_game",
|
|
85
|
+
TEXT = "text"
|
|
86
|
+
}
|
|
87
|
+
export interface IAuthor {
|
|
88
|
+
id: number;
|
|
89
|
+
name?: string;
|
|
90
|
+
}
|
|
91
|
+
export interface ICreator {
|
|
92
|
+
id: number;
|
|
93
|
+
name?: string;
|
|
94
|
+
}
|
|
95
|
+
export interface IKeyword {
|
|
96
|
+
id: number;
|
|
97
|
+
name?: string;
|
|
98
|
+
}
|
|
99
|
+
export interface ICycle {
|
|
100
|
+
id: number;
|
|
101
|
+
name?: string;
|
|
102
|
+
}
|
|
103
|
+
export interface ICopyrights {
|
|
104
|
+
id: number;
|
|
105
|
+
name?: string;
|
|
106
|
+
image?: string;
|
|
107
|
+
link?: string;
|
|
108
|
+
restricted?: boolean;
|
|
109
|
+
description?: string;
|
|
110
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArticleWidgetType = void 0;
|
|
4
|
+
var ArticleWidgetType;
|
|
5
|
+
(function (ArticleWidgetType) {
|
|
6
|
+
ArticleWidgetType["MEDIA"] = "media";
|
|
7
|
+
ArticleWidgetType["GALLERY_OBJECT"] = "gallery_object";
|
|
8
|
+
ArticleWidgetType["IMAGE"] = "image";
|
|
9
|
+
ArticleWidgetType["AUDIO"] = "audio";
|
|
10
|
+
ArticleWidgetType["VIDEO"] = "video";
|
|
11
|
+
ArticleWidgetType["GALLERY_IMAGE"] = "gallery_image";
|
|
12
|
+
ArticleWidgetType["GALLERY_VIDEO"] = "gallery_video";
|
|
13
|
+
ArticleWidgetType["GALLERY_ARTICLE"] = "gallery_article";
|
|
14
|
+
ArticleWidgetType["GALLERY_GAME"] = "gallery_game";
|
|
15
|
+
ArticleWidgetType["TEXT"] = "text";
|
|
16
|
+
})(ArticleWidgetType || (exports.ArticleWidgetType = ArticleWidgetType = {}));
|
|
17
|
+
//# sourceMappingURL=interfaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../packages/shared/models/src/lib/interfaces.ts"],"names":[],"mappings":";;;AA2FA,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,oCAAe,CAAA;IACf,sDAAiC,CAAA;IACjC,oCAAe,CAAA;IACf,oCAAe,CAAA;IACf,oCAAe,CAAA;IACf,oDAA+B,CAAA;IAC/B,oDAA+B,CAAA;IAC/B,wDAAmC,CAAA;IACnC,kDAA6B,CAAA;IAC7B,kCAAa,CAAA;AACf,CAAC,EAXW,iBAAiB,iCAAjB,iBAAiB,QAW5B"}
|