@likewatt/models 1.65.0 → 1.65.2
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 +7 -6
- package/dist/core/InfoBanner.js +18 -3
- package/package.json +1 -1
|
@@ -2,15 +2,16 @@ import { Document } from 'mongoose';
|
|
|
2
2
|
import { BannerSeverity } from './enums/BannerSeverity';
|
|
3
3
|
export type InfoBannerDocument = InfoBanner & Document;
|
|
4
4
|
export declare class InfoBanner {
|
|
5
|
+
readonly _id: string;
|
|
5
6
|
severity: BannerSeverity;
|
|
6
7
|
message: string;
|
|
7
8
|
}
|
|
8
|
-
export declare const
|
|
9
|
-
_id:
|
|
10
|
-
} & {
|
|
9
|
+
export declare const InfoBannerSchema: import("mongoose").Schema<InfoBanner, import("mongoose").Model<InfoBanner, any, any, any, Document<unknown, any, InfoBanner, any, {}> & InfoBanner & Required<{
|
|
10
|
+
_id: string;
|
|
11
|
+
}> & {
|
|
11
12
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, InfoBanner, Document<unknown, {}, import("mongoose").FlatRecord<InfoBanner>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<InfoBanner> & {
|
|
13
|
-
_id:
|
|
14
|
-
} & {
|
|
13
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, InfoBanner, Document<unknown, {}, import("mongoose").FlatRecord<InfoBanner>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<InfoBanner> & Required<{
|
|
14
|
+
_id: string;
|
|
15
|
+
}> & {
|
|
15
16
|
__v: number;
|
|
16
17
|
}>;
|
package/dist/core/InfoBanner.js
CHANGED
|
@@ -9,13 +9,23 @@ 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.
|
|
12
|
+
exports.InfoBannerSchema = exports.InfoBanner = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const BannerSeverity_1 = require("./enums/BannerSeverity");
|
|
16
16
|
let InfoBanner = class InfoBanner {
|
|
17
17
|
};
|
|
18
18
|
exports.InfoBanner = InfoBanner;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)({
|
|
21
|
+
description: 'Identifiant unique (UUID ou custom string)',
|
|
22
|
+
example: '2M61PGSm7lRpqXeaDacbAYOLTYG3',
|
|
23
|
+
type: String,
|
|
24
|
+
readOnly: true,
|
|
25
|
+
}),
|
|
26
|
+
(0, mongoose_1.Prop)({ type: String }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], InfoBanner.prototype, "_id", void 0);
|
|
19
29
|
__decorate([
|
|
20
30
|
(0, swagger_1.ApiProperty)({ enum: BannerSeverity_1.BannerSeverity, example: BannerSeverity_1.BannerSeverity.INFO }),
|
|
21
31
|
(0, mongoose_1.Prop)({ required: true, enum: BannerSeverity_1.BannerSeverity }),
|
|
@@ -27,6 +37,11 @@ __decorate([
|
|
|
27
37
|
__metadata("design:type", String)
|
|
28
38
|
], InfoBanner.prototype, "message", void 0);
|
|
29
39
|
exports.InfoBanner = InfoBanner = __decorate([
|
|
30
|
-
(0, mongoose_1.Schema)({
|
|
40
|
+
(0, mongoose_1.Schema)({
|
|
41
|
+
id: false,
|
|
42
|
+
timestamps: true,
|
|
43
|
+
toJSON: { virtuals: true, versionKey: false },
|
|
44
|
+
toObject: { virtuals: true, versionKey: false },
|
|
45
|
+
})
|
|
31
46
|
], InfoBanner);
|
|
32
|
-
exports.
|
|
47
|
+
exports.InfoBannerSchema = mongoose_1.SchemaFactory.createForClass(InfoBanner);
|