@likewatt/models 1.105.1 → 1.106.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/User.d.ts +1 -0
- package/dist/core/User.js +15 -1
- package/package.json +1 -1
package/dist/core/User.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare class Rights {
|
|
|
22
22
|
deleteSite: boolean;
|
|
23
23
|
deleteSites: boolean;
|
|
24
24
|
viewLeads: boolean;
|
|
25
|
+
editScenarioTypes: boolean;
|
|
25
26
|
}
|
|
26
27
|
export declare const RightsSchema: import("mongoose").Schema<Rights, import("mongoose").Model<Rights, any, any, any, Document<unknown, any, Rights, any, {}> & Rights & {
|
|
27
28
|
_id: import("mongoose").Types.ObjectId;
|
package/dist/core/User.js
CHANGED
|
@@ -75,6 +75,15 @@ __decorate([
|
|
|
75
75
|
(0, class_validator_1.IsBoolean)(),
|
|
76
76
|
__metadata("design:type", Boolean)
|
|
77
77
|
], Rights.prototype, "viewLeads", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, swagger_1.ApiProperty)({
|
|
80
|
+
description: "Indique si l'utilisateur peut modifier, créer et supprimer les scénarios types (sinon il peut seulement les appliquer)",
|
|
81
|
+
example: true,
|
|
82
|
+
}),
|
|
83
|
+
(0, mongoose_1.Prop)({ type: Boolean, required: true, default: true }),
|
|
84
|
+
(0, class_validator_1.IsBoolean)(),
|
|
85
|
+
__metadata("design:type", Boolean)
|
|
86
|
+
], Rights.prototype, "editScenarioTypes", void 0);
|
|
78
87
|
exports.Rights = Rights = __decorate([
|
|
79
88
|
(0, mongoose_1.Schema)({ _id: false })
|
|
80
89
|
], Rights);
|
|
@@ -688,7 +697,12 @@ __decorate([
|
|
|
688
697
|
(0, mongoose_1.Prop)({
|
|
689
698
|
type: exports.RightsSchema,
|
|
690
699
|
_id: false,
|
|
691
|
-
default: {
|
|
700
|
+
default: {
|
|
701
|
+
deleteSite: false,
|
|
702
|
+
deleteSites: false,
|
|
703
|
+
viewLeads: false,
|
|
704
|
+
editScenarioTypes: true,
|
|
705
|
+
},
|
|
692
706
|
}),
|
|
693
707
|
__metadata("design:type", Rights)
|
|
694
708
|
], User.prototype, "rights", void 0);
|