@likewatt/models 1.21.0 → 1.23.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 +5 -3
- package/dist/core/Leads.js +14 -18
- 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
|
@@ -4,9 +4,10 @@ export declare const SUBDOMAIN_REGEX: RegExp;
|
|
|
4
4
|
export declare class LeadThemeConfig {
|
|
5
5
|
logoUrl?: string;
|
|
6
6
|
backgroundImageUrl?: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
buttonBgColor?: string;
|
|
8
|
+
buttonTextColor?: string;
|
|
9
|
+
sectionBgColor?: string;
|
|
10
|
+
textColor?: string;
|
|
10
11
|
}
|
|
11
12
|
export declare const LeadThemeConfigSchema: import("mongoose").Schema<LeadThemeConfig, import("mongoose").Model<LeadThemeConfig, any, any, any, Document<unknown, any, LeadThemeConfig, any, {}> & LeadThemeConfig & {
|
|
12
13
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -23,6 +24,7 @@ export declare class LeadTenant {
|
|
|
23
24
|
subdomain: string;
|
|
24
25
|
domain: string;
|
|
25
26
|
theme?: LeadThemeConfig;
|
|
27
|
+
scenarioOptions: string[];
|
|
26
28
|
isActive: boolean;
|
|
27
29
|
}
|
|
28
30
|
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
|
@@ -26,29 +26,21 @@ __decorate([
|
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], LeadThemeConfig.prototype, "backgroundImageUrl", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
-
(0, mongoose_1.Prop)({
|
|
30
|
-
type: String,
|
|
31
|
-
match: COLOR_REGEX,
|
|
32
|
-
required: false,
|
|
33
|
-
}),
|
|
29
|
+
(0, mongoose_1.Prop)({ type: String, match: COLOR_REGEX }),
|
|
34
30
|
__metadata("design:type", String)
|
|
35
|
-
], LeadThemeConfig.prototype, "
|
|
31
|
+
], LeadThemeConfig.prototype, "buttonBgColor", void 0);
|
|
36
32
|
__decorate([
|
|
37
|
-
(0, mongoose_1.Prop)({
|
|
38
|
-
type: String,
|
|
39
|
-
match: COLOR_REGEX,
|
|
40
|
-
required: false,
|
|
41
|
-
}),
|
|
33
|
+
(0, mongoose_1.Prop)({ type: String, match: COLOR_REGEX }),
|
|
42
34
|
__metadata("design:type", String)
|
|
43
|
-
], LeadThemeConfig.prototype, "
|
|
35
|
+
], LeadThemeConfig.prototype, "buttonTextColor", void 0);
|
|
44
36
|
__decorate([
|
|
45
|
-
(0, mongoose_1.Prop)({
|
|
46
|
-
type: String,
|
|
47
|
-
match: COLOR_REGEX,
|
|
48
|
-
required: false,
|
|
49
|
-
}),
|
|
37
|
+
(0, mongoose_1.Prop)({ type: String, match: COLOR_REGEX }),
|
|
50
38
|
__metadata("design:type", String)
|
|
51
|
-
], LeadThemeConfig.prototype, "
|
|
39
|
+
], LeadThemeConfig.prototype, "sectionBgColor", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, mongoose_1.Prop)({ type: String, match: COLOR_REGEX }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], LeadThemeConfig.prototype, "textColor", void 0);
|
|
52
44
|
exports.LeadThemeConfig = LeadThemeConfig = __decorate([
|
|
53
45
|
(0, mongoose_1.Schema)({ _id: false })
|
|
54
46
|
], LeadThemeConfig);
|
|
@@ -91,6 +83,10 @@ __decorate([
|
|
|
91
83
|
(0, mongoose_1.Prop)({ type: exports.LeadThemeConfigSchema }),
|
|
92
84
|
__metadata("design:type", LeadThemeConfig)
|
|
93
85
|
], LeadTenant.prototype, "theme", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, mongoose_1.Prop)({ type: [String], default: [] }),
|
|
88
|
+
__metadata("design:type", Array)
|
|
89
|
+
], LeadTenant.prototype, "scenarioOptions", void 0);
|
|
94
90
|
__decorate([
|
|
95
91
|
(0, mongoose_1.Prop)({ type: Boolean, default: true, index: true }),
|
|
96
92
|
__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 = {}));
|