@likewatt/models 1.21.0 → 1.22.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/Leads.d.ts +1 -0
- package/dist/core/Leads.js +4 -0
- package/dist/core/Site.d.ts +1 -0
- package/dist/core/Site.js +7 -0
- package/dist/core/internal/leads-form.d.ts +1 -0
- package/dist/core/internal/leads-form.js +7 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/package.json +1 -1
- package/dist/core/enums/ProjectType.d.ts +0 -6
- package/dist/core/enums/ProjectType.js +0 -10
package/dist/core/Leads.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare class LeadTenant {
|
|
|
23
23
|
subdomain: string;
|
|
24
24
|
domain: string;
|
|
25
25
|
theme?: LeadThemeConfig;
|
|
26
|
+
scenarioOptions: string[];
|
|
26
27
|
isActive: boolean;
|
|
27
28
|
}
|
|
28
29
|
export declare const LeadTenantSchema: import("mongoose").Schema<LeadTenant, import("mongoose").Model<LeadTenant, any, any, any, Document<unknown, any, LeadTenant, any, {}> & LeadTenant & Required<{
|
package/dist/core/Leads.js
CHANGED
|
@@ -91,6 +91,10 @@ __decorate([
|
|
|
91
91
|
(0, mongoose_1.Prop)({ type: exports.LeadThemeConfigSchema }),
|
|
92
92
|
__metadata("design:type", LeadThemeConfig)
|
|
93
93
|
], LeadTenant.prototype, "theme", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, mongoose_1.Prop)({ type: [String], default: [] }),
|
|
96
|
+
__metadata("design:type", Array)
|
|
97
|
+
], LeadTenant.prototype, "scenarioOptions", void 0);
|
|
94
98
|
__decorate([
|
|
95
99
|
(0, mongoose_1.Prop)({ type: Boolean, default: true, index: true }),
|
|
96
100
|
__metadata("design:type", Boolean)
|
package/dist/core/Site.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ export declare class Site {
|
|
|
97
97
|
hasConsoData: boolean;
|
|
98
98
|
hasAnalysis: boolean;
|
|
99
99
|
hasContractData: boolean;
|
|
100
|
+
scenarioOption?: string;
|
|
100
101
|
}
|
|
101
102
|
export type SiteDocument = Site & Document;
|
|
102
103
|
export declare const SiteSchema: import("mongoose").Schema<Site, import("mongoose").Model<Site, any, any, any, Document<unknown, any, Site, any, {}> & Site & Required<{
|
package/dist/core/Site.js
CHANGED
|
@@ -565,6 +565,13 @@ __decorate([
|
|
|
565
565
|
(0, class_validator_1.IsBoolean)(),
|
|
566
566
|
__metadata("design:type", Boolean)
|
|
567
567
|
], Site.prototype, "hasContractData", void 0);
|
|
568
|
+
__decorate([
|
|
569
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
570
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
571
|
+
(0, class_validator_1.IsOptional)(),
|
|
572
|
+
(0, class_validator_1.IsString)(),
|
|
573
|
+
__metadata("design:type", String)
|
|
574
|
+
], Site.prototype, "scenarioOption", void 0);
|
|
568
575
|
exports.Site = Site = __decorate([
|
|
569
576
|
(0, mongoose_1.Schema)({
|
|
570
577
|
id: false,
|
|
@@ -10,6 +10,7 @@ export declare class LeadsForm {
|
|
|
10
10
|
addressDepartement: string;
|
|
11
11
|
addressDepartementNum: number;
|
|
12
12
|
addressGeocode: number[];
|
|
13
|
+
scenarioOption?: string;
|
|
13
14
|
}
|
|
14
15
|
export declare const LeadsFormSchema: import("mongoose").Schema<LeadsForm, import("mongoose").Model<LeadsForm, any, any, any, import("mongoose").Document<unknown, any, LeadsForm, any, {}> & LeadsForm & {
|
|
15
16
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -13,7 +13,6 @@ exports.LeadsFormSchema = exports.LeadsForm = void 0;
|
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
|
-
// import { ProjectType } from '../enums/ProjectType';
|
|
17
16
|
let LeadsForm = class LeadsForm {
|
|
18
17
|
};
|
|
19
18
|
exports.LeadsForm = LeadsForm;
|
|
@@ -84,6 +83,13 @@ __decorate([
|
|
|
84
83
|
(0, class_validator_1.IsOptional)(),
|
|
85
84
|
__metadata("design:type", Array)
|
|
86
85
|
], LeadsForm.prototype, "addressGeocode", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
88
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
89
|
+
(0, class_validator_1.IsOptional)(),
|
|
90
|
+
(0, class_validator_1.IsString)(),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], LeadsForm.prototype, "scenarioOption", void 0);
|
|
87
93
|
exports.LeadsForm = LeadsForm = __decorate([
|
|
88
94
|
(0, mongoose_1.Schema)({
|
|
89
95
|
timestamps: true,
|
package/dist/index.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ export * from './core/internal/enums';
|
|
|
28
28
|
export * from './core/enums/BuildingDataStatus';
|
|
29
29
|
export * from './core/enums/FileType';
|
|
30
30
|
export * from './core/enums/ImageryQuality';
|
|
31
|
-
export * from './core/enums/ProjectType';
|
|
32
31
|
export * from './core/internal/battery-params';
|
|
33
32
|
export * from './core/internal/bounding-box';
|
|
34
33
|
export * from './core/internal/building-data';
|
package/dist/index.js
CHANGED
|
@@ -51,7 +51,6 @@ __exportStar(require("./core/internal/enums"), exports);
|
|
|
51
51
|
__exportStar(require("./core/enums/BuildingDataStatus"), exports);
|
|
52
52
|
__exportStar(require("./core/enums/FileType"), exports);
|
|
53
53
|
__exportStar(require("./core/enums/ImageryQuality"), exports);
|
|
54
|
-
__exportStar(require("./core/enums/ProjectType"), exports);
|
|
55
54
|
// Sub-models
|
|
56
55
|
__exportStar(require("./core/internal/battery-params"), exports);
|
|
57
56
|
__exportStar(require("./core/internal/bounding-box"), exports);
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProjectType = void 0;
|
|
4
|
-
var ProjectType;
|
|
5
|
-
(function (ProjectType) {
|
|
6
|
-
ProjectType["NOT_SPECIFIED"] = "";
|
|
7
|
-
ProjectType["OMBRIERE"] = "ombriere";
|
|
8
|
-
ProjectType["PV_CLASSIC"] = "pv_classique";
|
|
9
|
-
ProjectType["PV_LIGHT"] = "pv_leger";
|
|
10
|
-
})(ProjectType || (exports.ProjectType = ProjectType = {}));
|