@likewatt/models 1.52.1 → 1.53.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.
|
@@ -10,7 +10,8 @@ export declare class Invitation {
|
|
|
10
10
|
_id: string;
|
|
11
11
|
email: string;
|
|
12
12
|
principal: string;
|
|
13
|
-
createdAt?: Date;
|
|
13
|
+
createdAt?: Date | string;
|
|
14
|
+
updatedAt?: Date | string;
|
|
14
15
|
}
|
|
15
16
|
export type InvitationDocument = Invitation & Document;
|
|
16
17
|
export declare const InvitationSchema: import("mongoose").Schema<Invitation, import("mongoose").Model<Invitation, any, any, any, Document<unknown, any, Invitation, any, {}> & Invitation & Required<{
|
package/dist/core/Invitation.js
CHANGED
|
@@ -60,11 +60,15 @@ __decorate([
|
|
|
60
60
|
example: '30-04-2024',
|
|
61
61
|
type: String,
|
|
62
62
|
}),
|
|
63
|
-
(0,
|
|
63
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
64
64
|
(0, class_validator_1.IsOptional)(),
|
|
65
|
-
(
|
|
66
|
-
__metadata("design:type", Date)
|
|
65
|
+
__metadata("design:type", Object)
|
|
67
66
|
], Invitation.prototype, "createdAt", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], Invitation.prototype, "updatedAt", void 0);
|
|
68
72
|
exports.Invitation = Invitation = __decorate([
|
|
69
73
|
(0, mongoose_1.Schema)({
|
|
70
74
|
id: false,
|
package/dist/core/Scenario.d.ts
CHANGED
|
@@ -167,7 +167,10 @@ export declare class Scenario {
|
|
|
167
167
|
technologies?: Technology[];
|
|
168
168
|
pvs?: Pv[];
|
|
169
169
|
version?: number;
|
|
170
|
-
|
|
170
|
+
isFullSellOut?: boolean;
|
|
171
|
+
isACCScenario?: boolean;
|
|
172
|
+
createdAt?: Date | string;
|
|
173
|
+
updatedAt?: Date | string;
|
|
171
174
|
}
|
|
172
175
|
export type ScenarioDocument = Scenario & Document;
|
|
173
176
|
export declare const ScenarioSchema: MSchema<Scenario, import("mongoose").Model<Scenario, any, any, any, Document<unknown, any, Scenario, any, {}> & Scenario & Required<{
|
|
@@ -182,7 +185,6 @@ export declare const ScenarioSchema: MSchema<Scenario, import("mongoose").Model<
|
|
|
182
185
|
export declare class ScenarioType extends Scenario {
|
|
183
186
|
user: string;
|
|
184
187
|
principalUser?: string;
|
|
185
|
-
isACCScenario?: boolean;
|
|
186
188
|
scenarioOption?: string;
|
|
187
189
|
siteId: string;
|
|
188
190
|
isLeads?: boolean;
|
package/dist/core/Scenario.js
CHANGED
|
@@ -63,6 +63,7 @@ __decorate([
|
|
|
63
63
|
], Objective.prototype, "value2", void 0);
|
|
64
64
|
exports.Objective = Objective = __decorate([
|
|
65
65
|
(0, mongoose_1.Schema)({
|
|
66
|
+
_id: false,
|
|
66
67
|
id: false,
|
|
67
68
|
timestamps: true,
|
|
68
69
|
toJSON: { virtuals: true, versionKey: false },
|
|
@@ -572,8 +573,9 @@ __decorate([
|
|
|
572
573
|
__metadata("design:type", Array)
|
|
573
574
|
], Scenario.prototype, "technologies", void 0);
|
|
574
575
|
__decorate([
|
|
575
|
-
(0, swagger_1.
|
|
576
|
+
(0, swagger_1.ApiPropertyOptional)({ type: [Pv] }),
|
|
576
577
|
(0, mongoose_1.Prop)({ type: [exports.PvSchema], required: true }),
|
|
578
|
+
(0, class_validator_1.IsOptional)(),
|
|
577
579
|
(0, class_validator_1.IsArray)(),
|
|
578
580
|
__metadata("design:type", Array)
|
|
579
581
|
], Scenario.prototype, "pvs", void 0);
|
|
@@ -585,11 +587,29 @@ __decorate([
|
|
|
585
587
|
__metadata("design:type", Number)
|
|
586
588
|
], Scenario.prototype, "version", void 0);
|
|
587
589
|
__decorate([
|
|
588
|
-
(0, swagger_1.
|
|
589
|
-
(0, mongoose_1.Prop)({
|
|
590
|
-
(0, class_validator_1.
|
|
591
|
-
|
|
590
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
591
|
+
(0, mongoose_1.Prop)({ type: Boolean, required: false }),
|
|
592
|
+
(0, class_validator_1.IsOptional)(),
|
|
593
|
+
(0, class_validator_1.IsBoolean)(),
|
|
594
|
+
__metadata("design:type", Boolean)
|
|
595
|
+
], Scenario.prototype, "isFullSellOut", void 0);
|
|
596
|
+
__decorate([
|
|
597
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
598
|
+
(0, mongoose_1.Prop)({ type: Boolean, required: false, default: false }),
|
|
599
|
+
(0, class_validator_1.IsOptional)(),
|
|
600
|
+
(0, class_validator_1.IsBoolean)(),
|
|
601
|
+
__metadata("design:type", Boolean)
|
|
602
|
+
], Scenario.prototype, "isACCScenario", void 0);
|
|
603
|
+
__decorate([
|
|
604
|
+
(0, swagger_1.ApiPropertyOptional)({ example: '2025-04-24T14:05:00.000Z' }),
|
|
605
|
+
(0, class_validator_1.IsOptional)(),
|
|
606
|
+
__metadata("design:type", Object)
|
|
592
607
|
], Scenario.prototype, "createdAt", void 0);
|
|
608
|
+
__decorate([
|
|
609
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
610
|
+
(0, class_validator_1.IsOptional)(),
|
|
611
|
+
__metadata("design:type", Object)
|
|
612
|
+
], Scenario.prototype, "updatedAt", void 0);
|
|
593
613
|
exports.Scenario = Scenario = __decorate([
|
|
594
614
|
(0, mongoose_1.Schema)({
|
|
595
615
|
id: false,
|
|
@@ -622,13 +642,6 @@ __decorate([
|
|
|
622
642
|
(0, class_validator_1.IsString)(),
|
|
623
643
|
__metadata("design:type", String)
|
|
624
644
|
], ScenarioType.prototype, "principalUser", void 0);
|
|
625
|
-
__decorate([
|
|
626
|
-
(0, swagger_1.ApiPropertyOptional)({ type: Boolean, default: false }),
|
|
627
|
-
(0, mongoose_1.Prop)({ required: true, type: Boolean, default: false }),
|
|
628
|
-
(0, class_validator_1.IsOptional)(),
|
|
629
|
-
(0, class_validator_1.IsBoolean)(),
|
|
630
|
-
__metadata("design:type", Boolean)
|
|
631
|
-
], ScenarioType.prototype, "isACCScenario", void 0);
|
|
632
645
|
__decorate([
|
|
633
646
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
634
647
|
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
@@ -239,10 +239,8 @@ __decorate([
|
|
|
239
239
|
], ScenarioDefaultValue.prototype, "createdBy", void 0);
|
|
240
240
|
__decorate([
|
|
241
241
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
242
|
-
(0, mongoose_1.Prop)({ type: Date, default: Date.now }),
|
|
243
|
-
(0, class_validator_1.IsDate)(),
|
|
244
242
|
(0, class_validator_1.IsOptional)(),
|
|
245
|
-
__metadata("design:type",
|
|
243
|
+
__metadata("design:type", Object)
|
|
246
244
|
], ScenarioDefaultValue.prototype, "updatedAt", void 0);
|
|
247
245
|
__decorate([
|
|
248
246
|
(0, swagger_1.ApiPropertyOptional)({ example: false }),
|