@smartsoft001-mobilems/public-collections-domain 1.0.38
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 +15 -0
- package/src/features.d.ts +1 -0
- package/src/features.js +5 -0
- package/src/features.js.map +1 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +6 -0
- package/src/index.js.map +1 -0
- package/src/lib/entities/index.d.ts +1 -0
- package/src/lib/entities/index.js +5 -0
- package/src/lib/entities/index.js.map +1 -0
- package/src/lib/entities/public-collection.entity.d.ts +22 -0
- package/src/lib/entities/public-collection.entity.js +48 -0
- package/src/lib/entities/public-collection.entity.js.map +1 -0
- package/src/lib/enums/index.d.ts +1 -0
- package/src/lib/enums/index.js +5 -0
- package/src/lib/enums/index.js.map +1 -0
- package/src/lib/enums/item-type.enum.d.ts +4 -0
- package/src/lib/enums/item-type.enum.js +9 -0
- package/src/lib/enums/item-type.enum.js.map +1 -0
- package/src/test-setup.d.ts +0 -0
- package/src/test-setup.js +1 -0
- package/src/test-setup.js.map +1 -0
package/package.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@smartsoft001-mobilems/public-collections-domain",
|
|
3
|
+
"version": "1.0.38",
|
|
4
|
+
"main": "./src/index.js",
|
|
5
|
+
"types": "./src/index.d.ts",
|
|
6
|
+
"dependencies": {},
|
|
7
|
+
"peerDependencies": {
|
|
8
|
+
"@smartsoft001/domain-core": "^1.1.21",
|
|
9
|
+
"@smartsoft001/models": "^1.1.21",
|
|
10
|
+
"@smartsoft001-mobilems/models": "1.0.41",
|
|
11
|
+
"@smartsoft001-mobilems/articles-domain": "1.0.41",
|
|
12
|
+
"@smartsoft001-mobilems/objects-domain": "1.0.41",
|
|
13
|
+
"tslib": "^2.2.0"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DOMAIN_SERVICES: any[];
|
package/src/features.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features.js","sourceRoot":"","sources":["../../../../../libs/public-collections/domain/src/features.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,EAAE,CAAC"}
|
package/src/index.d.ts
ADDED
package/src/index.js
ADDED
package/src/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/public-collections/domain/src/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,sDAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./public-collection.entity";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/public-collections/domain/src/lib/entities/index.ts"],"names":[],"mappings":";;;AAAA,qEAA2C"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IEntity } from "@smartsoft001/domain-core";
|
|
2
|
+
import { MsFile } from "@smartsoft001-mobilems/models";
|
|
3
|
+
import { Article } from "@smartsoft001-mobilems/articles-domain";
|
|
4
|
+
import { MsObject } from "@smartsoft001-mobilems/objects-domain";
|
|
5
|
+
import { PublicCollectionItemType } from "../enums";
|
|
6
|
+
export declare class PublicCollection implements IEntity<string> {
|
|
7
|
+
id: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
hash?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
author?: string;
|
|
12
|
+
status?: string;
|
|
13
|
+
image?: MsFile;
|
|
14
|
+
items?: Array<{
|
|
15
|
+
type: PublicCollectionItemType.object;
|
|
16
|
+
data: MsObject;
|
|
17
|
+
} | {
|
|
18
|
+
type: PublicCollectionItemType.article;
|
|
19
|
+
data: Article;
|
|
20
|
+
}>;
|
|
21
|
+
fileName?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicCollection = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const models_1 = require("@smartsoft001/models");
|
|
6
|
+
const models_2 = require("@smartsoft001-mobilems/models");
|
|
7
|
+
let PublicCollection = class PublicCollection {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.id = "";
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
tslib_1.__decorate([
|
|
13
|
+
(0, models_1.Field)(),
|
|
14
|
+
tslib_1.__metadata("design:type", String)
|
|
15
|
+
], PublicCollection.prototype, "title", void 0);
|
|
16
|
+
tslib_1.__decorate([
|
|
17
|
+
(0, models_1.Field)(),
|
|
18
|
+
tslib_1.__metadata("design:type", String)
|
|
19
|
+
], PublicCollection.prototype, "hash", void 0);
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
(0, models_1.Field)(),
|
|
22
|
+
tslib_1.__metadata("design:type", String)
|
|
23
|
+
], PublicCollection.prototype, "description", void 0);
|
|
24
|
+
tslib_1.__decorate([
|
|
25
|
+
(0, models_1.Field)(),
|
|
26
|
+
tslib_1.__metadata("design:type", String)
|
|
27
|
+
], PublicCollection.prototype, "author", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, models_1.Field)(),
|
|
30
|
+
tslib_1.__metadata("design:type", String)
|
|
31
|
+
], PublicCollection.prototype, "status", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, models_1.Field)(),
|
|
34
|
+
tslib_1.__metadata("design:type", models_2.MsFile)
|
|
35
|
+
], PublicCollection.prototype, "image", void 0);
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, models_1.Field)(),
|
|
38
|
+
tslib_1.__metadata("design:type", Array)
|
|
39
|
+
], PublicCollection.prototype, "items", void 0);
|
|
40
|
+
tslib_1.__decorate([
|
|
41
|
+
(0, models_1.Field)(),
|
|
42
|
+
tslib_1.__metadata("design:type", String)
|
|
43
|
+
], PublicCollection.prototype, "fileName", void 0);
|
|
44
|
+
PublicCollection = tslib_1.__decorate([
|
|
45
|
+
(0, models_1.Model)({})
|
|
46
|
+
], PublicCollection);
|
|
47
|
+
exports.PublicCollection = PublicCollection;
|
|
48
|
+
//# sourceMappingURL=public-collection.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-collection.entity.js","sourceRoot":"","sources":["../../../../../../../libs/public-collections/domain/src/lib/entities/public-collection.entity.ts"],"names":[],"mappings":";;;;AACA,iDAAoD;AACpD,0DAAuD;AAOhD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAAtB;QACL,OAAE,GAAG,EAAE,CAAC;IA4BV,CAAC;CAAA,CAAA;AA1BC;IAAC,IAAA,cAAK,GAAE;;+CACO;AAEf;IAAC,IAAA,cAAK,GAAE;;8CACM;AAEd;IAAC,IAAA,cAAK,GAAE;;qDACa;AAErB;IAAC,IAAA,cAAK,GAAE;;gDACQ;AAEhB;IAAC,IAAA,cAAK,GAAE;;gDACQ;AAEhB;IAAC,IAAA,cAAK,GAAE;sCACA,eAAM;+CAAC;AAEf;IAAC,IAAA,cAAK,GAAE;sCACA,KAAK;+CAGX;AAEF;IAAC,IAAA,cAAK,GAAE;;kDACU;AA5BP,gBAAgB;IAD5B,IAAA,cAAK,EAAC,EAAE,CAAC;GACG,gBAAgB,CA6B5B;AA7BY,4CAAgB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./item-type.enum";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/public-collections/domain/src/lib/enums/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicCollectionItemType = void 0;
|
|
4
|
+
var PublicCollectionItemType;
|
|
5
|
+
(function (PublicCollectionItemType) {
|
|
6
|
+
PublicCollectionItemType[PublicCollectionItemType["object"] = 1] = "object";
|
|
7
|
+
PublicCollectionItemType[PublicCollectionItemType["article"] = 2] = "article";
|
|
8
|
+
})(PublicCollectionItemType = exports.PublicCollectionItemType || (exports.PublicCollectionItemType = {}));
|
|
9
|
+
//# sourceMappingURL=item-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-type.enum.js","sourceRoot":"","sources":["../../../../../../../libs/public-collections/domain/src/lib/enums/item-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,2EAAU,CAAA;IACV,6EAAW,CAAA;AACf,CAAC,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=test-setup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-setup.js","sourceRoot":"","sources":["../../../../../libs/public-collections/domain/src/test-setup.ts"],"names":[],"mappings":""}
|