@likewatt/models 1.65.3 → 1.66.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/dist/core/InfoBanner.d.ts +2 -0
- package/dist/core/InfoBanner.js +15 -0
- package/package.json +1 -1
|
@@ -4,7 +4,9 @@ export type InfoBannerDocument = InfoBanner & Document;
|
|
|
4
4
|
export declare class InfoBanner {
|
|
5
5
|
readonly _id: string;
|
|
6
6
|
severity: BannerSeverity;
|
|
7
|
+
title?: string;
|
|
7
8
|
message: string;
|
|
9
|
+
active: boolean;
|
|
8
10
|
}
|
|
9
11
|
export declare const InfoBannerSchema: import("mongoose").Schema<InfoBanner, import("mongoose").Model<InfoBanner, any, any, any, Document<unknown, any, InfoBanner, any, {}> & InfoBanner & Required<{
|
|
10
12
|
_id: string;
|
package/dist/core/InfoBanner.js
CHANGED
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.InfoBannerSchema = exports.InfoBanner = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
15
16
|
const uuid_1 = require("uuid");
|
|
16
17
|
const BannerSeverity_1 = require("./enums/BannerSeverity");
|
|
17
18
|
let InfoBanner = class InfoBanner {
|
|
@@ -32,11 +33,25 @@ __decorate([
|
|
|
32
33
|
(0, mongoose_1.Prop)({ required: true, enum: BannerSeverity_1.BannerSeverity }),
|
|
33
34
|
__metadata("design:type", String)
|
|
34
35
|
], InfoBanner.prototype, "severity", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, swagger_1.ApiPropertyOptional)({ example: 'Maintenance 22h' }),
|
|
38
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], InfoBanner.prototype, "title", void 0);
|
|
35
43
|
__decorate([
|
|
36
44
|
(0, swagger_1.ApiProperty)({ example: 'Maintenance prévue ce soir à 22h.' }),
|
|
37
45
|
(0, mongoose_1.Prop)({ required: true }),
|
|
38
46
|
__metadata("design:type", String)
|
|
39
47
|
], InfoBanner.prototype, "message", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({ example: false, default: false }),
|
|
50
|
+
(0, mongoose_1.Prop)({ type: Boolean, default: false }),
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
(0, class_validator_1.IsBoolean)(),
|
|
53
|
+
__metadata("design:type", Boolean)
|
|
54
|
+
], InfoBanner.prototype, "active", void 0);
|
|
40
55
|
exports.InfoBanner = InfoBanner = __decorate([
|
|
41
56
|
(0, mongoose_1.Schema)({
|
|
42
57
|
id: false,
|