@smartsoft001-mobilems/models 1.0.41

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/SMART.md ADDED
@@ -0,0 +1,7 @@
1
+ # shared-<%= projectName %>
2
+
3
+ This library was generated with Smartsoft Framework (smartsoft.biz.pl).
4
+
5
+ ## Running unit tests
6
+
7
+ Run `nx test shared-<%= projectName %>` to execute the unit tests via [Jest](https://jestjs.io).
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "@smartsoft001-mobilems/models",
3
+ "version": "1.0.41",
4
+ "main": "./src/index.js",
5
+ "types": "./src/index.d.ts",
6
+ "dependencies": {},
7
+ "peerDependencies": {
8
+ "@smartsoft001/models": "^1.1.21",
9
+ "@smartsoft001/domain-core": "^1.1.21",
10
+ "tslib": "^2.2.0"
11
+ }
12
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from "./lib/config";
2
+ export * from "./lib/entities";
3
+ export declare const config: any[];
package/src/index.js ADDED
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.config = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./lib/config"), exports);
6
+ tslib_1.__exportStar(require("./lib/entities"), exports);
7
+ // export * from "./lib/api.config";
8
+ exports.config = [];
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/shared/models/src/index.ts"],"names":[],"mappings":";;;;AAAA,uDAA6B;AAC7B,yDAA+B;AAC/B,oCAAoC;AAEvB,QAAA,MAAM,GAAG,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare class ApiConfig {
2
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiConfig = void 0;
4
+ class ApiConfig {
5
+ }
6
+ exports.ApiConfig = ApiConfig;
7
+ //# sourceMappingURL=api.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.config.js","sourceRoot":"","sources":["../../../../../../libs/shared/models/src/lib/api.config.ts"],"names":[],"mappings":";;;AAAA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
@@ -0,0 +1,35 @@
1
+ import { IEntity } from "@smartsoft001/domain-core";
2
+ export declare enum ConfigPageType {
3
+ dynamic = 2,
4
+ static = 1
5
+ }
6
+ export declare type ConfigMenuItem = {
7
+ type: ConfigPageType.dynamic;
8
+ title: string;
9
+ } | {
10
+ type: ConfigPageType.static;
11
+ title: string;
12
+ page: {
13
+ id: number;
14
+ title: string;
15
+ };
16
+ };
17
+ export declare class Config implements IEntity<string> {
18
+ id: string;
19
+ objectOfTheDay?: {
20
+ id: number;
21
+ title: string;
22
+ };
23
+ theme?: {
24
+ footer?: {
25
+ menu?: Array<ConfigMenuItem>;
26
+ };
27
+ parameters?: {
28
+ homepageVideo?: string;
29
+ cookiesText?: {
30
+ pl?: string;
31
+ en?: string;
32
+ };
33
+ };
34
+ };
35
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Config = exports.ConfigPageType = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const models_1 = require("@smartsoft001/models");
6
+ var ConfigPageType;
7
+ (function (ConfigPageType) {
8
+ ConfigPageType[ConfigPageType["dynamic"] = 2] = "dynamic";
9
+ ConfigPageType[ConfigPageType["static"] = 1] = "static";
10
+ })(ConfigPageType = exports.ConfigPageType || (exports.ConfigPageType = {}));
11
+ let Config = class Config {
12
+ constructor() {
13
+ this.id = "";
14
+ }
15
+ };
16
+ tslib_1.__decorate([
17
+ (0, models_1.Field)(),
18
+ tslib_1.__metadata("design:type", Object)
19
+ ], Config.prototype, "objectOfTheDay", void 0);
20
+ tslib_1.__decorate([
21
+ (0, models_1.Field)(),
22
+ tslib_1.__metadata("design:type", Object)
23
+ ], Config.prototype, "theme", void 0);
24
+ Config = tslib_1.__decorate([
25
+ (0, models_1.Model)({})
26
+ ], Config);
27
+ exports.Config = Config;
28
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../../libs/shared/models/src/lib/config.ts"],"names":[],"mappings":";;;;AAAA,iDAA6D;AAG7D,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,yDAAW,CAAA;IACX,uDAAU,CAAA;AACd,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAOM,IAAM,MAAM,GAAZ,MAAM,MAAM;IAAZ;QACH,OAAE,GAAG,EAAE,CAAC;IAkBZ,CAAC;CAAA,CAAA;AAhBG;IAAC,IAAA,cAAK,GAAE;;8CACuC;AAE/C;IAAC,IAAA,cAAK,GAAE;;qCAYN;AAlBO,MAAM;IADlB,IAAA,cAAK,EAAC,EAAE,CAAC;GACG,MAAM,CAmBlB;AAnBY,wBAAM"}
@@ -0,0 +1,35 @@
1
+ import { IEntity } from "@smartsoft001/domain-core";
2
+ export declare enum MsFileFromFeature {
3
+ object3d = 1,
4
+ object360 = 2,
5
+ photo = 3,
6
+ multimediaAnalog = 4,
7
+ leadPhoto = 5,
8
+ leadPhotoFolded = 6,
9
+ audioFile = 7,
10
+ audiodescriptionFile = 8,
11
+ videoFile = 9,
12
+ orthography = 10,
13
+ presentation = 11,
14
+ text = 12,
15
+ other = 13,
16
+ osd = 14,
17
+ htmlCatalog = 15,
18
+ book = 16,
19
+ vidoePjw = 17,
20
+ imageAutismSpectrum = 18
21
+ }
22
+ export declare class MsFile implements IEntity<number> {
23
+ id: number;
24
+ position?: number;
25
+ filePath?: string;
26
+ extension?: string;
27
+ altText?: string;
28
+ altTextEn?: string;
29
+ formFeature?: MsFileFromFeature;
30
+ files?: string;
31
+ description?: string;
32
+ iframeSource?: string;
33
+ iframeHtml?: string;
34
+ isRemote?: boolean;
35
+ }
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MsFile = exports.MsFileFromFeature = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const models_1 = require("@smartsoft001/models");
6
+ var MsFileFromFeature;
7
+ (function (MsFileFromFeature) {
8
+ MsFileFromFeature[MsFileFromFeature["object3d"] = 1] = "object3d";
9
+ MsFileFromFeature[MsFileFromFeature["object360"] = 2] = "object360";
10
+ MsFileFromFeature[MsFileFromFeature["photo"] = 3] = "photo";
11
+ MsFileFromFeature[MsFileFromFeature["multimediaAnalog"] = 4] = "multimediaAnalog";
12
+ MsFileFromFeature[MsFileFromFeature["leadPhoto"] = 5] = "leadPhoto";
13
+ MsFileFromFeature[MsFileFromFeature["leadPhotoFolded"] = 6] = "leadPhotoFolded";
14
+ MsFileFromFeature[MsFileFromFeature["audioFile"] = 7] = "audioFile";
15
+ MsFileFromFeature[MsFileFromFeature["audiodescriptionFile"] = 8] = "audiodescriptionFile";
16
+ MsFileFromFeature[MsFileFromFeature["videoFile"] = 9] = "videoFile";
17
+ MsFileFromFeature[MsFileFromFeature["orthography"] = 10] = "orthography";
18
+ MsFileFromFeature[MsFileFromFeature["presentation"] = 11] = "presentation";
19
+ MsFileFromFeature[MsFileFromFeature["text"] = 12] = "text";
20
+ MsFileFromFeature[MsFileFromFeature["other"] = 13] = "other";
21
+ MsFileFromFeature[MsFileFromFeature["osd"] = 14] = "osd";
22
+ MsFileFromFeature[MsFileFromFeature["htmlCatalog"] = 15] = "htmlCatalog";
23
+ MsFileFromFeature[MsFileFromFeature["book"] = 16] = "book";
24
+ MsFileFromFeature[MsFileFromFeature["vidoePjw"] = 17] = "vidoePjw";
25
+ MsFileFromFeature[MsFileFromFeature["imageAutismSpectrum"] = 18] = "imageAutismSpectrum";
26
+ })(MsFileFromFeature = exports.MsFileFromFeature || (exports.MsFileFromFeature = {}));
27
+ let MsFile = class MsFile {
28
+ constructor() {
29
+ this.id = 0;
30
+ }
31
+ };
32
+ tslib_1.__decorate([
33
+ (0, models_1.Field)(),
34
+ tslib_1.__metadata("design:type", Number)
35
+ ], MsFile.prototype, "position", void 0);
36
+ tslib_1.__decorate([
37
+ (0, models_1.Field)(),
38
+ tslib_1.__metadata("design:type", String)
39
+ ], MsFile.prototype, "filePath", void 0);
40
+ tslib_1.__decorate([
41
+ (0, models_1.Field)(),
42
+ tslib_1.__metadata("design:type", String)
43
+ ], MsFile.prototype, "extension", void 0);
44
+ tslib_1.__decorate([
45
+ (0, models_1.Field)(),
46
+ tslib_1.__metadata("design:type", String)
47
+ ], MsFile.prototype, "altText", void 0);
48
+ tslib_1.__decorate([
49
+ (0, models_1.Field)(),
50
+ tslib_1.__metadata("design:type", String)
51
+ ], MsFile.prototype, "altTextEn", void 0);
52
+ tslib_1.__decorate([
53
+ (0, models_1.Field)(),
54
+ tslib_1.__metadata("design:type", String)
55
+ ], MsFile.prototype, "files", void 0);
56
+ tslib_1.__decorate([
57
+ (0, models_1.Field)(),
58
+ tslib_1.__metadata("design:type", String)
59
+ ], MsFile.prototype, "description", void 0);
60
+ tslib_1.__decorate([
61
+ (0, models_1.Field)(),
62
+ tslib_1.__metadata("design:type", String)
63
+ ], MsFile.prototype, "iframeSource", void 0);
64
+ tslib_1.__decorate([
65
+ (0, models_1.Field)(),
66
+ tslib_1.__metadata("design:type", String)
67
+ ], MsFile.prototype, "iframeHtml", void 0);
68
+ tslib_1.__decorate([
69
+ (0, models_1.Field)(),
70
+ tslib_1.__metadata("design:type", Boolean)
71
+ ], MsFile.prototype, "isRemote", void 0);
72
+ MsFile = tslib_1.__decorate([
73
+ (0, models_1.Model)()
74
+ ], MsFile);
75
+ exports.MsFile = MsFile;
76
+ //# sourceMappingURL=file.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.entity.js","sourceRoot":"","sources":["../../../../../../../libs/shared/models/src/lib/entities/file.entity.ts"],"names":[],"mappings":";;;;AAAA,iDAAkD;AAGlD,IAAY,iBAmBX;AAnBD,WAAY,iBAAiB;IACzB,iEAAY,CAAA;IACZ,mEAAa,CAAA;IACb,2DAAS,CAAA;IACT,iFAAoB,CAAA;IACpB,mEAAa,CAAA;IACb,+EAAmB,CAAA;IACnB,mEAAa,CAAA;IACb,yFAAwB,CAAA;IACxB,mEAAa,CAAA;IACb,wEAAgB,CAAA;IAChB,0EAAiB,CAAA;IACjB,0DAAS,CAAA;IACT,4DAAU,CAAA;IACV,wDAAQ,CAAA;IACR,wEAAgB,CAAA;IAChB,0DAAS,CAAA;IACT,kEAAa,CAAA;IACb,wFAAwB,CAAA;AAC5B,CAAC,EAnBW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAmB5B;AAGM,IAAM,MAAM,GAAZ,MAAM,MAAM;IAAZ;QACH,OAAE,GAAG,CAAC,CAAC;IAkCX,CAAC;CAAA,CAAA;AAhCG;IAAC,IAAA,cAAK,GAAE;;wCACU;AAElB;IAAC,IAAA,cAAK,GAAE;;wCACU;AAElB;IAAC,IAAA,cAAK,GAAE;;yCACW;AAEnB;IAAC,IAAA,cAAK,GAAE;;uCACS;AAEjB;IAAC,IAAA,cAAK,GAAE;;yCACW;AAKnB;IAAC,IAAA,cAAK,GAAE;;qCACO;AAEf;IAAC,IAAA,cAAK,GAAE;;2CACa;AAErB;IAAC,IAAA,cAAK,GAAE;;4CACc;AAEtB;IAAC,IAAA,cAAK,GAAE;;0CACY;AAEpB;IAAC,IAAA,cAAK,GAAE;;wCACW;AAlCV,MAAM;IADlB,IAAA,cAAK,GAAE;GACK,MAAM,CAmClB;AAnCY,wBAAM"}
@@ -0,0 +1,2 @@
1
+ export * from "./file.entity";
2
+ export * from "./page.entity";
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./file.entity"), exports);
5
+ tslib_1.__exportStar(require("./page.entity"), exports);
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/shared/models/src/lib/entities/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B;AAC9B,wDAA8B"}
@@ -0,0 +1,15 @@
1
+ import { IEntity } from "@smartsoft001/domain-core";
2
+ export declare class Page implements IEntity<number> {
3
+ id: number;
4
+ title: string;
5
+ content: any;
6
+ slides: Array<PageSlide>;
7
+ }
8
+ export declare class PageSlide {
9
+ id: number;
10
+ title: string;
11
+ textPosition: "left" | "right";
12
+ imageDesktop: string;
13
+ imageTablet: string;
14
+ imageMobile: string;
15
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PageSlide = exports.Page = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const models_1 = require("@smartsoft001/models");
6
+ let Page = class Page {
7
+ };
8
+ tslib_1.__decorate([
9
+ (0, models_1.Field)(),
10
+ tslib_1.__metadata("design:type", String)
11
+ ], Page.prototype, "title", void 0);
12
+ tslib_1.__decorate([
13
+ (0, models_1.Field)(),
14
+ tslib_1.__metadata("design:type", Object)
15
+ ], Page.prototype, "content", void 0);
16
+ tslib_1.__decorate([
17
+ (0, models_1.Field)(),
18
+ tslib_1.__metadata("design:type", Array)
19
+ ], Page.prototype, "slides", void 0);
20
+ Page = tslib_1.__decorate([
21
+ (0, models_1.Model)()
22
+ ], Page);
23
+ exports.Page = Page;
24
+ let PageSlide = class PageSlide {
25
+ };
26
+ tslib_1.__decorate([
27
+ (0, models_1.Field)(),
28
+ tslib_1.__metadata("design:type", Number)
29
+ ], PageSlide.prototype, "id", void 0);
30
+ tslib_1.__decorate([
31
+ (0, models_1.Field)(),
32
+ tslib_1.__metadata("design:type", String)
33
+ ], PageSlide.prototype, "title", void 0);
34
+ tslib_1.__decorate([
35
+ (0, models_1.Field)(),
36
+ tslib_1.__metadata("design:type", String)
37
+ ], PageSlide.prototype, "textPosition", void 0);
38
+ tslib_1.__decorate([
39
+ (0, models_1.Field)(),
40
+ tslib_1.__metadata("design:type", String)
41
+ ], PageSlide.prototype, "imageDesktop", void 0);
42
+ tslib_1.__decorate([
43
+ (0, models_1.Field)(),
44
+ tslib_1.__metadata("design:type", String)
45
+ ], PageSlide.prototype, "imageTablet", void 0);
46
+ tslib_1.__decorate([
47
+ (0, models_1.Field)(),
48
+ tslib_1.__metadata("design:type", String)
49
+ ], PageSlide.prototype, "imageMobile", void 0);
50
+ PageSlide = tslib_1.__decorate([
51
+ (0, models_1.Model)()
52
+ ], PageSlide);
53
+ exports.PageSlide = PageSlide;
54
+ //# sourceMappingURL=page.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page.entity.js","sourceRoot":"","sources":["../../../../../../../libs/shared/models/src/lib/entities/page.entity.ts"],"names":[],"mappings":";;;;AAAA,iDAAkD;AAI3C,IAAM,IAAI,GAAV,MAAM,IAAI;CAWhB,CAAA;AARG;IAAC,IAAA,cAAK,GAAE;;mCACM;AAEd;IAAC,IAAA,cAAK,GAAE;;qCACK;AAEb;IAAC,IAAA,cAAK,GAAE;sCACA,KAAK;oCAAY;AAVhB,IAAI;IADhB,IAAA,cAAK,GAAE;GACK,IAAI,CAWhB;AAXY,oBAAI;AAcV,IAAM,SAAS,GAAf,MAAM,SAAS;CAkBrB,CAAA;AAjBG;IAAC,IAAA,cAAK,GAAE;;qCACG;AAEX;IAAC,IAAA,cAAK,GAAE;;wCACM;AAEd;IAAC,IAAA,cAAK,GAAE;;+CACuB;AAE/B;IAAC,IAAA,cAAK,GAAE;;+CACa;AAErB;IAAC,IAAA,cAAK,GAAE;;8CACY;AAEpB;IAAC,IAAA,cAAK,GAAE;;8CACY;AAjBX,SAAS;IADrB,IAAA,cAAK,GAAE;GACK,SAAS,CAkBrB;AAlBY,8BAAS"}
@@ -0,0 +1 @@
1
+ import 'jest-preset-angular';
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ require("jest-preset-angular");
4
+ //# sourceMappingURL=test-setup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-setup.js","sourceRoot":"","sources":["../../../../../libs/shared/models/src/test-setup.ts"],"names":[],"mappings":";;AAAA,+BAA6B"}