@likewatt/models 1.0.90 → 1.0.92
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
|
@@ -159,3 +159,18 @@ export declare const ScenarioSchema: MSchema<Scenario, import("mongoose").Model<
|
|
|
159
159
|
}> & {
|
|
160
160
|
__v: number;
|
|
161
161
|
}>;
|
|
162
|
+
export declare class ScenarioType extends Scenario {
|
|
163
|
+
user: string;
|
|
164
|
+
principalUser?: string;
|
|
165
|
+
isACCScenario?: boolean;
|
|
166
|
+
}
|
|
167
|
+
export type ScenarioTypeDocument = ScenarioType & Document;
|
|
168
|
+
export declare const ScenarioTypeSchema: MSchema<ScenarioType, import("mongoose").Model<ScenarioType, any, any, any, Document<unknown, any, ScenarioType, any, {}> & ScenarioType & Required<{
|
|
169
|
+
_id: Types.ObjectId;
|
|
170
|
+
}> & {
|
|
171
|
+
__v: number;
|
|
172
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScenarioType, Document<unknown, {}, import("mongoose").FlatRecord<ScenarioType>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<ScenarioType> & Required<{
|
|
173
|
+
_id: Types.ObjectId;
|
|
174
|
+
}> & {
|
|
175
|
+
__v: number;
|
|
176
|
+
}>;
|
package/dist/core/Scenario.js
CHANGED
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ScenarioSchema = exports.Scenario = exports.ConfigSiteSchema = exports.ConfigSite = exports.ConfigScenarioSchema = exports.ConfigScenario = exports.TechnologySchema = exports.Technology = exports.RateOfGrowthSchema = exports.RateOfGrowth = exports.DistributionKeySchema = exports.DistributionKey = exports.DemandMultiplierSlotSchema = exports.DemandMultiplierSlot = exports.MonthSchema = exports.Month = exports.ObjectiveSchema = exports.Objective = void 0;
|
|
12
|
+
exports.ScenarioTypeSchema = exports.ScenarioType = exports.ScenarioSchema = exports.Scenario = exports.ConfigSiteSchema = exports.ConfigSite = exports.ConfigScenarioSchema = exports.ConfigScenario = exports.TechnologySchema = exports.Technology = exports.RateOfGrowthSchema = exports.RateOfGrowth = exports.DistributionKeySchema = exports.DistributionKey = exports.DemandMultiplierSlotSchema = exports.DemandMultiplierSlot = exports.MonthSchema = exports.Month = exports.ObjectiveSchema = exports.Objective = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const mongoose_2 = require("mongoose");
|
|
15
15
|
const swagger_1 = require("@nestjs/swagger");
|
|
@@ -523,3 +523,30 @@ exports.Scenario = Scenario = __decorate([
|
|
|
523
523
|
})
|
|
524
524
|
], Scenario);
|
|
525
525
|
exports.ScenarioSchema = mongoose_1.SchemaFactory.createForClass(Scenario);
|
|
526
|
+
let ScenarioType = class ScenarioType extends Scenario {
|
|
527
|
+
};
|
|
528
|
+
exports.ScenarioType = ScenarioType;
|
|
529
|
+
__decorate([
|
|
530
|
+
(0, swagger_1.ApiProperty)(),
|
|
531
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
532
|
+
(0, class_validator_1.IsString)(),
|
|
533
|
+
__metadata("design:type", String)
|
|
534
|
+
], ScenarioType.prototype, "user", void 0);
|
|
535
|
+
__decorate([
|
|
536
|
+
(0, swagger_1.ApiProperty)(),
|
|
537
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
538
|
+
(0, class_validator_1.IsOptional)(),
|
|
539
|
+
(0, class_validator_1.IsString)(),
|
|
540
|
+
__metadata("design:type", String)
|
|
541
|
+
], ScenarioType.prototype, "principalUser", void 0);
|
|
542
|
+
__decorate([
|
|
543
|
+
(0, swagger_1.ApiProperty)(),
|
|
544
|
+
(0, mongoose_1.Prop)({ required: true, type: Boolean, default: false }),
|
|
545
|
+
(0, class_validator_1.IsOptional)(),
|
|
546
|
+
(0, class_validator_1.IsBoolean)(),
|
|
547
|
+
__metadata("design:type", Boolean)
|
|
548
|
+
], ScenarioType.prototype, "isACCScenario", void 0);
|
|
549
|
+
exports.ScenarioType = ScenarioType = __decorate([
|
|
550
|
+
(0, mongoose_1.Schema)()
|
|
551
|
+
], ScenarioType);
|
|
552
|
+
exports.ScenarioTypeSchema = mongoose_1.SchemaFactory.createForClass(ScenarioType);
|
package/dist/core/User.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export declare const RightsSchema: import("mongoose").Schema<Rights, import("mon
|
|
|
33
33
|
export declare class WebhookParams {
|
|
34
34
|
endpoint?: string;
|
|
35
35
|
token?: string;
|
|
36
|
+
apiKey?: string;
|
|
36
37
|
}
|
|
37
38
|
export declare const WebhookParamsSchema: import("mongoose").Schema<WebhookParams, import("mongoose").Model<WebhookParams, any, any, any, Document<unknown, any, WebhookParams, any, {}> & WebhookParams & {
|
|
38
39
|
_id: Types.ObjectId;
|
package/dist/core/User.js
CHANGED
|
@@ -90,6 +90,15 @@ __decorate([
|
|
|
90
90
|
(0, class_validator_1.IsString)(),
|
|
91
91
|
__metadata("design:type", String)
|
|
92
92
|
], WebhookParams.prototype, "token", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, swagger_1.ApiProperty)({
|
|
95
|
+
description: "API Key de l'utilisateur pour le webhook. SPECIFIQUE POUR UN SEUL CLIENT, NE PAS UTILISER AILLEURS",
|
|
96
|
+
example: true,
|
|
97
|
+
}),
|
|
98
|
+
(0, mongoose_2.Prop)({ type: String, required: false, default: "myToken_XXXX" }),
|
|
99
|
+
(0, class_validator_1.IsString)(),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], WebhookParams.prototype, "apiKey", void 0);
|
|
93
102
|
exports.WebhookParams = WebhookParams = __decorate([
|
|
94
103
|
(0, mongoose_2.Schema)({ _id: false })
|
|
95
104
|
], WebhookParams);
|