@likewatt/models 1.7.1 → 1.8.1
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/dist/core/Scenario.d.ts
CHANGED
|
@@ -131,6 +131,7 @@ export declare const ConfigSiteSchema: MSchema<ConfigSite, import("mongoose").Mo
|
|
|
131
131
|
export declare class Scenario {
|
|
132
132
|
readonly _id: string;
|
|
133
133
|
color?: string;
|
|
134
|
+
comments?: Comments;
|
|
134
135
|
configScenario: ConfigScenario;
|
|
135
136
|
configSite?: Record<string, ConfigSite>;
|
|
136
137
|
error?: boolean;
|
|
@@ -165,7 +166,6 @@ export declare class ScenarioType extends Scenario {
|
|
|
165
166
|
principalUser?: string;
|
|
166
167
|
isACCScenario?: boolean;
|
|
167
168
|
siteId: string;
|
|
168
|
-
comments?: Comments;
|
|
169
169
|
}
|
|
170
170
|
export type ScenarioTypeDocument = ScenarioType & Document;
|
|
171
171
|
export declare const ScenarioTypeSchema: MSchema<ScenarioType, import("mongoose").Model<ScenarioType, any, any, any, Document<unknown, any, ScenarioType, any, {}> & ScenarioType & Required<{
|
package/dist/core/Scenario.js
CHANGED
|
@@ -379,6 +379,13 @@ __decorate([
|
|
|
379
379
|
(0, class_validator_1.IsString)(),
|
|
380
380
|
__metadata("design:type", String)
|
|
381
381
|
], Scenario.prototype, "color", void 0);
|
|
382
|
+
__decorate([
|
|
383
|
+
(0, swagger_1.ApiPropertyOptional)({ type: comments_1.Comments }),
|
|
384
|
+
(0, mongoose_1.Prop)({ type: comments_1.CommentsSchema, required: false }),
|
|
385
|
+
(0, class_validator_1.IsOptional)(),
|
|
386
|
+
(0, class_validator_1.IsArray)(),
|
|
387
|
+
__metadata("design:type", comments_1.Comments)
|
|
388
|
+
], Scenario.prototype, "comments", void 0);
|
|
382
389
|
__decorate([
|
|
383
390
|
(0, swagger_1.ApiProperty)({ type: ConfigScenario }),
|
|
384
391
|
(0, mongoose_1.Prop)({ type: exports.ConfigScenarioSchema, required: true }),
|
|
@@ -569,13 +576,6 @@ __decorate([
|
|
|
569
576
|
(0, class_validator_1.IsString)(),
|
|
570
577
|
__metadata("design:type", String)
|
|
571
578
|
], ScenarioType.prototype, "siteId", void 0);
|
|
572
|
-
__decorate([
|
|
573
|
-
(0, swagger_1.ApiPropertyOptional)({ type: comments_1.Comments }),
|
|
574
|
-
(0, mongoose_1.Prop)({ type: comments_1.CommentsSchema, required: false }),
|
|
575
|
-
(0, class_validator_1.IsOptional)(),
|
|
576
|
-
(0, class_validator_1.IsArray)(),
|
|
577
|
-
__metadata("design:type", comments_1.Comments)
|
|
578
|
-
], ScenarioType.prototype, "comments", void 0);
|
|
579
579
|
exports.ScenarioType = ScenarioType = __decorate([
|
|
580
580
|
(0, mongoose_1.Schema)()
|
|
581
581
|
], ScenarioType);
|
|
@@ -54,7 +54,8 @@ export declare enum FileType {
|
|
|
54
54
|
CONSENT4 = "consent4.docx",
|
|
55
55
|
CONSENT5 = "consent5.pdf",
|
|
56
56
|
CONSENT6 = "consent6.txt",
|
|
57
|
-
METADATA = "metadata.json"
|
|
57
|
+
METADATA = "metadata.json",
|
|
58
|
+
OVERLAY = "overlay.png"
|
|
58
59
|
}
|
|
59
60
|
export declare enum FileName_Extra {
|
|
60
61
|
LOG = "optiwize.log`"
|
|
@@ -59,6 +59,7 @@ var FileType;
|
|
|
59
59
|
FileType["CONSENT5"] = "consent5.pdf";
|
|
60
60
|
FileType["CONSENT6"] = "consent6.txt";
|
|
61
61
|
FileType["METADATA"] = "metadata.json";
|
|
62
|
+
FileType["OVERLAY"] = "overlay.png";
|
|
62
63
|
})(FileType || (exports.FileType = FileType = {}));
|
|
63
64
|
var FileName_Extra;
|
|
64
65
|
(function (FileName_Extra) {
|