@likewatt/models 1.17.1 → 1.18.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.
|
@@ -0,0 +1,10 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ProjectType } from '../enums/ProjectType';
|
|
2
|
+
export declare class LeadsForm {
|
|
3
|
+
firstname: string;
|
|
4
|
+
lastname: string;
|
|
5
|
+
email: string;
|
|
6
|
+
phone: string;
|
|
7
|
+
company?: string;
|
|
8
|
+
address: string;
|
|
9
|
+
addressCity: string;
|
|
10
|
+
addressZipCode: string;
|
|
11
|
+
addressDepartement: string;
|
|
12
|
+
addressDepartementNum: number;
|
|
13
|
+
addressGeocode: number[];
|
|
14
|
+
projectType: ProjectType;
|
|
15
|
+
}
|
|
16
|
+
export declare const LeadsFormSchema: import("mongoose").Schema<LeadsForm, import("mongoose").Model<LeadsForm, any, any, any, import("mongoose").Document<unknown, any, LeadsForm, any, {}> & LeadsForm & {
|
|
17
|
+
_id: import("mongoose").Types.ObjectId;
|
|
18
|
+
} & {
|
|
19
|
+
__v: number;
|
|
20
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, LeadsForm, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<LeadsForm>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<LeadsForm> & {
|
|
21
|
+
_id: import("mongoose").Types.ObjectId;
|
|
22
|
+
} & {
|
|
23
|
+
__v: number;
|
|
24
|
+
}>;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.LeadsFormSchema = exports.LeadsForm = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const ProjectType_1 = require("../enums/ProjectType");
|
|
17
|
+
let LeadsForm = class LeadsForm {
|
|
18
|
+
};
|
|
19
|
+
exports.LeadsForm = LeadsForm;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, swagger_1.ApiProperty)(),
|
|
22
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], LeadsForm.prototype, "firstname", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)(),
|
|
28
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], LeadsForm.prototype, "lastname", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)(),
|
|
34
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
35
|
+
(0, class_validator_1.IsEmail)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], LeadsForm.prototype, "email", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)(),
|
|
40
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], LeadsForm.prototype, "phone", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
46
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], LeadsForm.prototype, "company", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, swagger_1.ApiProperty)(),
|
|
53
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
54
|
+
(0, class_validator_1.IsString)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], LeadsForm.prototype, "address", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiProperty)(),
|
|
59
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
60
|
+
(0, class_validator_1.IsString)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], LeadsForm.prototype, "addressCity", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, swagger_1.ApiProperty)(),
|
|
65
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
66
|
+
(0, class_validator_1.IsString)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], LeadsForm.prototype, "addressZipCode", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, swagger_1.ApiProperty)(),
|
|
71
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
72
|
+
(0, class_validator_1.IsString)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], LeadsForm.prototype, "addressDepartement", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, swagger_1.ApiProperty)(),
|
|
77
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
78
|
+
(0, class_validator_1.IsNumber)(),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], LeadsForm.prototype, "addressDepartementNum", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, swagger_1.ApiPropertyOptional)({ type: [Number] }),
|
|
83
|
+
(0, mongoose_1.Prop)({ type: [Number], required: false }),
|
|
84
|
+
(0, class_validator_1.IsOptional)(),
|
|
85
|
+
__metadata("design:type", Array)
|
|
86
|
+
], LeadsForm.prototype, "addressGeocode", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, swagger_1.ApiProperty)({ enum: ProjectType_1.ProjectType }),
|
|
89
|
+
(0, mongoose_1.Prop)({
|
|
90
|
+
type: String,
|
|
91
|
+
enum: ProjectType_1.ProjectType,
|
|
92
|
+
default: ProjectType_1.ProjectType.NOT_SPECIFIED,
|
|
93
|
+
}),
|
|
94
|
+
(0, class_validator_1.IsEnum)(ProjectType_1.ProjectType),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], LeadsForm.prototype, "projectType", void 0);
|
|
97
|
+
exports.LeadsForm = LeadsForm = __decorate([
|
|
98
|
+
(0, mongoose_1.Schema)({
|
|
99
|
+
timestamps: true,
|
|
100
|
+
toJSON: { virtuals: true, versionKey: false },
|
|
101
|
+
toObject: { virtuals: true, versionKey: false },
|
|
102
|
+
})
|
|
103
|
+
], LeadsForm);
|
|
104
|
+
exports.LeadsFormSchema = mongoose_1.SchemaFactory.createForClass(LeadsForm);
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './core/internal/enums';
|
|
|
27
27
|
export * from './core/enums/BuildingDataStatus';
|
|
28
28
|
export * from './core/enums/FileType';
|
|
29
29
|
export * from './core/enums/ImageryQuality';
|
|
30
|
+
export * from './core/enums/ProjectType';
|
|
30
31
|
export * from './core/internal/battery-params';
|
|
31
32
|
export * from './core/internal/bounding-box';
|
|
32
33
|
export * from './core/internal/building-data';
|
|
@@ -68,5 +69,6 @@ export * from './core/internal/solar-potential';
|
|
|
68
69
|
export * from './core/internal/subscription-rate.model';
|
|
69
70
|
export * from './core/internal/tarif';
|
|
70
71
|
export * from './core/internal/folder.model';
|
|
72
|
+
export * from './core/internal/leads-form';
|
|
71
73
|
export * from './core/webhookTypes/webhook-leads-output.dto';
|
|
72
74
|
export * from './core/webhookTypes/webhook-optimend-output.dto';
|
package/dist/index.js
CHANGED
|
@@ -50,6 +50,7 @@ __exportStar(require("./core/internal/enums"), exports);
|
|
|
50
50
|
__exportStar(require("./core/enums/BuildingDataStatus"), exports);
|
|
51
51
|
__exportStar(require("./core/enums/FileType"), exports);
|
|
52
52
|
__exportStar(require("./core/enums/ImageryQuality"), exports);
|
|
53
|
+
__exportStar(require("./core/enums/ProjectType"), exports);
|
|
53
54
|
// Sub-models
|
|
54
55
|
__exportStar(require("./core/internal/battery-params"), exports);
|
|
55
56
|
__exportStar(require("./core/internal/bounding-box"), exports);
|
|
@@ -92,6 +93,7 @@ __exportStar(require("./core/internal/solar-potential"), exports);
|
|
|
92
93
|
__exportStar(require("./core/internal/subscription-rate.model"), exports);
|
|
93
94
|
__exportStar(require("./core/internal/tarif"), exports);
|
|
94
95
|
__exportStar(require("./core/internal/folder.model"), exports);
|
|
96
|
+
__exportStar(require("./core/internal/leads-form"), exports);
|
|
95
97
|
// Webhook types
|
|
96
98
|
__exportStar(require("./core/webhookTypes/webhook-leads-output.dto"), exports);
|
|
97
99
|
__exportStar(require("./core/webhookTypes/webhook-optimend-output.dto"), exports);
|