@smartsoft001-mobilems/creators-domain 0.0.0-stage → 2.121.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 CHANGED
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "name": "@smartsoft001-mobilems/creators-domain",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "2.121.0",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "types": "./src/index.d.ts",
8
+ "main": "./src/index.js",
9
+ "type": "commonjs"
6
10
  }
package/src/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './lib/entities';
package/src/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./lib/entities"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/creators/domain/src/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B"}
@@ -0,0 +1,101 @@
1
+ import { IEntity } from '@smartsoft001/domain-core';
2
+ import { MsFile } from '@smartsoft001-mobilems/models';
3
+ export interface ICreatorDictEntry {
4
+ id?: number | string;
5
+ name?: string | null;
6
+ }
7
+ export type CreatorDictValue = ICreatorDictEntry | string | number;
8
+ export interface ICreatorRole {
9
+ id?: number | string;
10
+ name?: string | null;
11
+ }
12
+ export interface ICreatorLocation {
13
+ id?: number | string;
14
+ name?: string | null;
15
+ }
16
+ export interface ICreatorActivityPeriod {
17
+ id?: number | string;
18
+ name?: string | null;
19
+ fromYear?: string | null;
20
+ toYear?: string | null;
21
+ locations?: ICreatorLocation[] | null;
22
+ }
23
+ export interface ICreatorBibliography {
24
+ id?: number | string;
25
+ text?: string | null;
26
+ html?: string | null;
27
+ }
28
+ export interface ICreatorBaseConnection {
29
+ description?: string | null;
30
+ bcBase?: {
31
+ id?: number;
32
+ name?: string | null;
33
+ } | null;
34
+ bcIdentifier?: string | null;
35
+ bcUrl?: string | null;
36
+ }
37
+ export interface ICreatorSignatureObject {
38
+ title?: string | null;
39
+ image?: MsFile | null;
40
+ file?: MsFile | null;
41
+ imageInfo?: string | null;
42
+ }
43
+ /** A related list of `creator/{id}`: its search path (`/api/search/Object/page/{page}?filter[…]`) and count. */
44
+ export interface ICreatorRelated {
45
+ path?: string | null;
46
+ count?: number | null;
47
+ }
48
+ /** An image of `creator/{id}` (`photo`, `artworkFrame`): a ready `url`. */
49
+ export interface ICreatorImage {
50
+ url?: string | null;
51
+ altText?: string | null;
52
+ }
53
+ export interface ICreatorTag {
54
+ id: number | string;
55
+ name: string;
56
+ }
57
+ export declare class Creator implements IEntity<string> {
58
+ id: string;
59
+ name?: string | null;
60
+ role?: CreatorDictValue | null;
61
+ roleName?: string | null;
62
+ additionalRoles?: ICreatorRole[] | null;
63
+ period?: CreatorDictValue | null;
64
+ dateFrom?: string | null;
65
+ dateTo?: string | null;
66
+ placeDateOfBirth?: string | null;
67
+ placeDateOfDeath?: string | null;
68
+ biography?: string | null;
69
+ description?: string | null;
70
+ alias?: string | null;
71
+ entityType?: string | null;
72
+ image?: MsFile | string | null;
73
+ extraData?: {
74
+ image?: string | null;
75
+ bio?: string | null;
76
+ } | null;
77
+ isPromoted?: boolean;
78
+ order?: number | null;
79
+ activityPeriod?: ICreatorActivityPeriod[] | null;
80
+ bibliographies?: ICreatorBibliography[] | null;
81
+ baseConnectionObjects?: ICreatorBaseConnection[] | null;
82
+ signatureObjects?: ICreatorSignatureObject[] | null;
83
+ /** `creator/{id}` (MOB-1972): ready life years, e.g. "1898–1951". */
84
+ lifeYears?: string | null;
85
+ /** `YYYY-MM-DD` */
86
+ birthDate?: string | null;
87
+ /** `YYYY-MM-DD` */
88
+ deathDate?: string | null;
89
+ birthYear?: number | string | null;
90
+ deathYear?: number | string | null;
91
+ /** The biography edited for the portal; preferred over `biography`. */
92
+ editorialBiography?: string | null;
93
+ /** Portrait of the creator. */
94
+ photo?: ICreatorImage | MsFile | null;
95
+ /** Lead artwork image above the biography. */
96
+ artworkFrame?: ICreatorImage | MsFile | null;
97
+ tags?: ICreatorTag[] | null;
98
+ exhibitions?: ICreatorRelated | null;
99
+ archives?: ICreatorRelated | null;
100
+ msBooks?: ICreatorRelated | null;
101
+ }
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Creator = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const models_1 = require("@smartsoft001/models");
6
+ let Creator = class Creator {
7
+ };
8
+ exports.Creator = Creator;
9
+ tslib_1.__decorate([
10
+ (0, models_1.Field)(),
11
+ tslib_1.__metadata("design:type", String)
12
+ ], Creator.prototype, "name", void 0);
13
+ tslib_1.__decorate([
14
+ (0, models_1.Field)(),
15
+ tslib_1.__metadata("design:type", Object)
16
+ ], Creator.prototype, "role", void 0);
17
+ tslib_1.__decorate([
18
+ (0, models_1.Field)(),
19
+ tslib_1.__metadata("design:type", String)
20
+ ], Creator.prototype, "roleName", void 0);
21
+ tslib_1.__decorate([
22
+ (0, models_1.Field)(),
23
+ tslib_1.__metadata("design:type", Array)
24
+ ], Creator.prototype, "additionalRoles", void 0);
25
+ tslib_1.__decorate([
26
+ (0, models_1.Field)(),
27
+ tslib_1.__metadata("design:type", Object)
28
+ ], Creator.prototype, "period", void 0);
29
+ tslib_1.__decorate([
30
+ (0, models_1.Field)(),
31
+ tslib_1.__metadata("design:type", String)
32
+ ], Creator.prototype, "dateFrom", void 0);
33
+ tslib_1.__decorate([
34
+ (0, models_1.Field)(),
35
+ tslib_1.__metadata("design:type", String)
36
+ ], Creator.prototype, "dateTo", void 0);
37
+ tslib_1.__decorate([
38
+ (0, models_1.Field)(),
39
+ tslib_1.__metadata("design:type", String)
40
+ ], Creator.prototype, "placeDateOfBirth", void 0);
41
+ tslib_1.__decorate([
42
+ (0, models_1.Field)(),
43
+ tslib_1.__metadata("design:type", String)
44
+ ], Creator.prototype, "placeDateOfDeath", void 0);
45
+ tslib_1.__decorate([
46
+ (0, models_1.Field)(),
47
+ tslib_1.__metadata("design:type", String)
48
+ ], Creator.prototype, "biography", void 0);
49
+ tslib_1.__decorate([
50
+ (0, models_1.Field)(),
51
+ tslib_1.__metadata("design:type", String)
52
+ ], Creator.prototype, "description", void 0);
53
+ tslib_1.__decorate([
54
+ (0, models_1.Field)(),
55
+ tslib_1.__metadata("design:type", String)
56
+ ], Creator.prototype, "alias", void 0);
57
+ tslib_1.__decorate([
58
+ (0, models_1.Field)(),
59
+ tslib_1.__metadata("design:type", String)
60
+ ], Creator.prototype, "entityType", void 0);
61
+ tslib_1.__decorate([
62
+ (0, models_1.Field)(),
63
+ tslib_1.__metadata("design:type", Object)
64
+ ], Creator.prototype, "image", void 0);
65
+ tslib_1.__decorate([
66
+ (0, models_1.Field)(),
67
+ tslib_1.__metadata("design:type", Object)
68
+ ], Creator.prototype, "extraData", void 0);
69
+ tslib_1.__decorate([
70
+ (0, models_1.Field)(),
71
+ tslib_1.__metadata("design:type", Boolean)
72
+ ], Creator.prototype, "isPromoted", void 0);
73
+ tslib_1.__decorate([
74
+ (0, models_1.Field)(),
75
+ tslib_1.__metadata("design:type", Number)
76
+ ], Creator.prototype, "order", void 0);
77
+ tslib_1.__decorate([
78
+ (0, models_1.Field)(),
79
+ tslib_1.__metadata("design:type", Array)
80
+ ], Creator.prototype, "activityPeriod", void 0);
81
+ tslib_1.__decorate([
82
+ (0, models_1.Field)(),
83
+ tslib_1.__metadata("design:type", Array)
84
+ ], Creator.prototype, "bibliographies", void 0);
85
+ tslib_1.__decorate([
86
+ (0, models_1.Field)(),
87
+ tslib_1.__metadata("design:type", Array)
88
+ ], Creator.prototype, "baseConnectionObjects", void 0);
89
+ tslib_1.__decorate([
90
+ (0, models_1.Field)(),
91
+ tslib_1.__metadata("design:type", Array)
92
+ ], Creator.prototype, "signatureObjects", void 0);
93
+ tslib_1.__decorate([
94
+ (0, models_1.Field)(),
95
+ tslib_1.__metadata("design:type", String)
96
+ ], Creator.prototype, "lifeYears", void 0);
97
+ tslib_1.__decorate([
98
+ (0, models_1.Field)(),
99
+ tslib_1.__metadata("design:type", String)
100
+ ], Creator.prototype, "birthDate", void 0);
101
+ tslib_1.__decorate([
102
+ (0, models_1.Field)(),
103
+ tslib_1.__metadata("design:type", String)
104
+ ], Creator.prototype, "deathDate", void 0);
105
+ tslib_1.__decorate([
106
+ (0, models_1.Field)(),
107
+ tslib_1.__metadata("design:type", Object)
108
+ ], Creator.prototype, "birthYear", void 0);
109
+ tslib_1.__decorate([
110
+ (0, models_1.Field)(),
111
+ tslib_1.__metadata("design:type", Object)
112
+ ], Creator.prototype, "deathYear", void 0);
113
+ tslib_1.__decorate([
114
+ (0, models_1.Field)(),
115
+ tslib_1.__metadata("design:type", String)
116
+ ], Creator.prototype, "editorialBiography", void 0);
117
+ tslib_1.__decorate([
118
+ (0, models_1.Field)(),
119
+ tslib_1.__metadata("design:type", Object)
120
+ ], Creator.prototype, "photo", void 0);
121
+ tslib_1.__decorate([
122
+ (0, models_1.Field)(),
123
+ tslib_1.__metadata("design:type", Object)
124
+ ], Creator.prototype, "artworkFrame", void 0);
125
+ tslib_1.__decorate([
126
+ (0, models_1.Field)(),
127
+ tslib_1.__metadata("design:type", Array)
128
+ ], Creator.prototype, "tags", void 0);
129
+ tslib_1.__decorate([
130
+ (0, models_1.Field)(),
131
+ tslib_1.__metadata("design:type", Object)
132
+ ], Creator.prototype, "exhibitions", void 0);
133
+ tslib_1.__decorate([
134
+ (0, models_1.Field)(),
135
+ tslib_1.__metadata("design:type", Object)
136
+ ], Creator.prototype, "archives", void 0);
137
+ tslib_1.__decorate([
138
+ (0, models_1.Field)(),
139
+ tslib_1.__metadata("design:type", Object)
140
+ ], Creator.prototype, "msBooks", void 0);
141
+ exports.Creator = Creator = tslib_1.__decorate([
142
+ (0, models_1.Model)({})
143
+ ], Creator);
144
+ //# sourceMappingURL=creator.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"creator.entity.js","sourceRoot":"","sources":["../../../../../../../packages/creators/domain/src/lib/entities/creator.entity.ts"],"names":[],"mappings":";;;;AACA,iDAAoD;AAmE7C,IAAM,OAAO,GAAb,MAAM,OAAO;CA0EnB,CAAA;AA1EY,0BAAO;AAGlB;IADC,IAAA,cAAK,GAAE;;qCACa;AAErB;IADC,IAAA,cAAK,GAAE;;qCACuB;AAE/B;IADC,IAAA,cAAK,GAAE;;yCACiB;AAEzB;IADC,IAAA,cAAK,GAAE;;gDACgC;AAExC;IADC,IAAA,cAAK,GAAE;;uCACyB;AAEjC;IADC,IAAA,cAAK,GAAE;;yCACiB;AAEzB;IADC,IAAA,cAAK,GAAE;;uCACe;AAEvB;IADC,IAAA,cAAK,GAAE;;iDACyB;AAEjC;IADC,IAAA,cAAK,GAAE;;iDACyB;AAEjC;IADC,IAAA,cAAK,GAAE;;0CACkB;AAE1B;IADC,IAAA,cAAK,GAAE;;4CACoB;AAE5B;IADC,IAAA,cAAK,GAAE;;sCACc;AAEtB;IADC,IAAA,cAAK,GAAE;;2CACmB;AAE3B;IADC,IAAA,cAAK,GAAE;;sCACuB;AAE/B;IADC,IAAA,cAAK,GAAE;;0CAC0D;AAElE;IADC,IAAA,cAAK,GAAE;;2CACa;AAErB;IADC,IAAA,cAAK,GAAE;;sCACc;AAEtB;IADC,IAAA,cAAK,GAAE;;+CACyC;AAEjD;IADC,IAAA,cAAK,GAAE;;+CACuC;AAE/C;IADC,IAAA,cAAK,GAAE;;sDACgD;AAExD;IADC,IAAA,cAAK,GAAE;;iDAC4C;AAGpD;IADC,IAAA,cAAK,GAAE;;0CACkB;AAG1B;IADC,IAAA,cAAK,GAAE;;0CACkB;AAG1B;IADC,IAAA,cAAK,GAAE;;0CACkB;AAE1B;IADC,IAAA,cAAK,GAAE;;0CAC2B;AAEnC;IADC,IAAA,cAAK,GAAE;;0CAC2B;AAGnC;IADC,IAAA,cAAK,GAAE;;mDAC2B;AAGnC;IADC,IAAA,cAAK,GAAE;;sCAC8B;AAGtC;IADC,IAAA,cAAK,GAAE;;6CACqC;AAE7C;IADC,IAAA,cAAK,GAAE;;qCACoB;AAE5B;IADC,IAAA,cAAK,GAAE;;4CAC6B;AAErC;IADC,IAAA,cAAK,GAAE;;yCAC0B;AAElC;IADC,IAAA,cAAK,GAAE;;wCACyB;kBAzEtB,OAAO;IADnB,IAAA,cAAK,EAAC,EAAE,CAAC;GACG,OAAO,CA0EnB"}
@@ -0,0 +1 @@
1
+ export * from './creator.entity';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./creator.entity"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/creators/domain/src/lib/entities/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC"}
@@ -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":["../../../../../packages/creators/domain/src/test-setup.ts"],"names":[],"mappings":";;AAAA,+BAA6B"}
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.