@likewatt/models 1.90.0 → 1.92.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/Scenario.d.ts
CHANGED
|
@@ -130,6 +130,7 @@ export declare class ConfigSite {
|
|
|
130
130
|
demandMultiplier?: number;
|
|
131
131
|
demandMultiplierSlots?: DemandMultiplierSlot[];
|
|
132
132
|
demandMultiplierUnit?: string;
|
|
133
|
+
distributionKey?: DistributionKey[];
|
|
133
134
|
priorityStage?: number;
|
|
134
135
|
rateOfGrowth?: RateOfGrowth[];
|
|
135
136
|
settings?: Record<string, unknown>;
|
package/dist/core/Scenario.js
CHANGED
|
@@ -370,6 +370,17 @@ __decorate([
|
|
|
370
370
|
(0, class_validator_1.IsString)(),
|
|
371
371
|
__metadata("design:type", String)
|
|
372
372
|
], ConfigSite.prototype, "demandMultiplierUnit", void 0);
|
|
373
|
+
__decorate([
|
|
374
|
+
(0, swagger_1.ApiProperty)({ type: [DistributionKey], required: false }),
|
|
375
|
+
(0, mongoose_1.Prop)({
|
|
376
|
+
type: [exports.DistributionKeySchema],
|
|
377
|
+
required: false,
|
|
378
|
+
default: undefined,
|
|
379
|
+
}),
|
|
380
|
+
(0, class_validator_1.IsOptional)(),
|
|
381
|
+
(0, class_validator_1.IsArray)(),
|
|
382
|
+
__metadata("design:type", Array)
|
|
383
|
+
], ConfigSite.prototype, "distributionKey", void 0);
|
|
373
384
|
__decorate([
|
|
374
385
|
(0, swagger_1.ApiPropertyOptional)({ example: 1 }),
|
|
375
386
|
(0, mongoose_1.Prop)(),
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export declare class AuroraProjectAddressComponents {
|
|
2
|
+
street_address?: string | null;
|
|
3
|
+
city?: string | null;
|
|
4
|
+
region?: string | null;
|
|
5
|
+
postal_code?: string | null;
|
|
6
|
+
country?: string | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const AuroraProjectAddressComponentsSchema: import("mongoose").Schema<AuroraProjectAddressComponents, import("mongoose").Model<AuroraProjectAddressComponents, any, any, any, import("mongoose").Document<unknown, any, AuroraProjectAddressComponents, any, {}> & AuroraProjectAddressComponents & {
|
|
9
|
+
_id: import("mongoose").Types.ObjectId;
|
|
10
|
+
} & {
|
|
11
|
+
__v: number;
|
|
12
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, AuroraProjectAddressComponents, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<AuroraProjectAddressComponents>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<AuroraProjectAddressComponents> & {
|
|
13
|
+
_id: import("mongoose").Types.ObjectId;
|
|
14
|
+
} & {
|
|
15
|
+
__v: number;
|
|
16
|
+
}>;
|
|
17
|
+
export declare class AuroraProjectLocation {
|
|
18
|
+
property_address?: string;
|
|
19
|
+
latitude?: number;
|
|
20
|
+
longitude?: number;
|
|
21
|
+
property_address_components?: AuroraProjectAddressComponents;
|
|
22
|
+
}
|
|
23
|
+
export declare const AuroraProjectLocationSchema: import("mongoose").Schema<AuroraProjectLocation, import("mongoose").Model<AuroraProjectLocation, any, any, any, import("mongoose").Document<unknown, any, AuroraProjectLocation, any, {}> & AuroraProjectLocation & {
|
|
24
|
+
_id: import("mongoose").Types.ObjectId;
|
|
25
|
+
} & {
|
|
26
|
+
__v: number;
|
|
27
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, AuroraProjectLocation, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<AuroraProjectLocation>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<AuroraProjectLocation> & {
|
|
28
|
+
_id: import("mongoose").Types.ObjectId;
|
|
29
|
+
} & {
|
|
30
|
+
__v: number;
|
|
31
|
+
}>;
|
|
32
|
+
export declare class AuroraProject {
|
|
33
|
+
id: string;
|
|
34
|
+
external_provider_id: string | null;
|
|
35
|
+
created_from_lead_id?: string | null;
|
|
36
|
+
name: string | null;
|
|
37
|
+
customer_salutation?: string | null;
|
|
38
|
+
customer_first_name?: string | null;
|
|
39
|
+
customer_last_name?: string | null;
|
|
40
|
+
mailing_address?: string | null;
|
|
41
|
+
customer_email?: string | null;
|
|
42
|
+
customer_phone?: string | null;
|
|
43
|
+
location: AuroraProjectLocation;
|
|
44
|
+
project_type?: string;
|
|
45
|
+
owner_id?: string | null;
|
|
46
|
+
team_id?: string | null;
|
|
47
|
+
status?: string | null;
|
|
48
|
+
ahj_id?: string | null;
|
|
49
|
+
preferred_solar_modules?: string[];
|
|
50
|
+
partner_id?: string | null;
|
|
51
|
+
tags?: string[];
|
|
52
|
+
order_id?: string | null;
|
|
53
|
+
created_at?: string | null;
|
|
54
|
+
}
|
|
55
|
+
export declare const AuroraProjectSchema: import("mongoose").Schema<AuroraProject, import("mongoose").Model<AuroraProject, any, any, any, import("mongoose").Document<unknown, any, AuroraProject, any, {}> & AuroraProject & {
|
|
56
|
+
_id: import("mongoose").Types.ObjectId;
|
|
57
|
+
} & {
|
|
58
|
+
__v: number;
|
|
59
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, AuroraProject, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<AuroraProject>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<AuroraProject> & {
|
|
60
|
+
_id: import("mongoose").Types.ObjectId;
|
|
61
|
+
} & {
|
|
62
|
+
__v: number;
|
|
63
|
+
}>;
|
|
64
|
+
/** Réponse brute d'Aurora : le projet est encapsulé dans une clé `project`. */
|
|
65
|
+
export declare class AuroraProjectResponse {
|
|
66
|
+
project: AuroraProject;
|
|
67
|
+
}
|
|
68
|
+
export declare const AuroraProjectResponseSchema: import("mongoose").Schema<AuroraProjectResponse, import("mongoose").Model<AuroraProjectResponse, any, any, any, import("mongoose").Document<unknown, any, AuroraProjectResponse, any, {}> & AuroraProjectResponse & {
|
|
69
|
+
_id: import("mongoose").Types.ObjectId;
|
|
70
|
+
} & {
|
|
71
|
+
__v: number;
|
|
72
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, AuroraProjectResponse, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<AuroraProjectResponse>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<AuroraProjectResponse> & {
|
|
73
|
+
_id: import("mongoose").Types.ObjectId;
|
|
74
|
+
} & {
|
|
75
|
+
__v: number;
|
|
76
|
+
}>;
|
|
77
|
+
/** Réponse renvoyée par notre micro-service : projet + deeplink prêt à afficher. */
|
|
78
|
+
export declare class AuroraProjectWithDeeplink {
|
|
79
|
+
project: AuroraProject;
|
|
80
|
+
deeplink: string;
|
|
81
|
+
}
|
|
82
|
+
export declare const AuroraProjectWithDeeplinkSchema: import("mongoose").Schema<AuroraProjectWithDeeplink, import("mongoose").Model<AuroraProjectWithDeeplink, any, any, any, import("mongoose").Document<unknown, any, AuroraProjectWithDeeplink, any, {}> & AuroraProjectWithDeeplink & {
|
|
83
|
+
_id: import("mongoose").Types.ObjectId;
|
|
84
|
+
} & {
|
|
85
|
+
__v: number;
|
|
86
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, AuroraProjectWithDeeplink, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<AuroraProjectWithDeeplink>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<AuroraProjectWithDeeplink> & {
|
|
87
|
+
_id: import("mongoose").Types.ObjectId;
|
|
88
|
+
} & {
|
|
89
|
+
__v: number;
|
|
90
|
+
}>;
|
|
@@ -0,0 +1,251 @@
|
|
|
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.AuroraProjectWithDeeplinkSchema = exports.AuroraProjectWithDeeplink = exports.AuroraProjectResponseSchema = exports.AuroraProjectResponse = exports.AuroraProjectSchema = exports.AuroraProject = exports.AuroraProjectLocationSchema = exports.AuroraProjectLocation = exports.AuroraProjectAddressComponentsSchema = exports.AuroraProjectAddressComponents = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
let AuroraProjectAddressComponents = class AuroraProjectAddressComponents {
|
|
17
|
+
};
|
|
18
|
+
exports.AuroraProjectAddressComponents = AuroraProjectAddressComponents;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
21
|
+
(0, class_validator_1.IsOptional)(),
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", Object)
|
|
24
|
+
], AuroraProjectAddressComponents.prototype, "street_address", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], AuroraProjectAddressComponents.prototype, "city", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], AuroraProjectAddressComponents.prototype, "region", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], AuroraProjectAddressComponents.prototype, "postal_code", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], AuroraProjectAddressComponents.prototype, "country", void 0);
|
|
49
|
+
exports.AuroraProjectAddressComponents = AuroraProjectAddressComponents = __decorate([
|
|
50
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
51
|
+
], AuroraProjectAddressComponents);
|
|
52
|
+
exports.AuroraProjectAddressComponentsSchema = mongoose_1.SchemaFactory.createForClass(AuroraProjectAddressComponents);
|
|
53
|
+
let AuroraProjectLocation = class AuroraProjectLocation {
|
|
54
|
+
};
|
|
55
|
+
exports.AuroraProjectLocation = AuroraProjectLocation;
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.IsString)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], AuroraProjectLocation.prototype, "property_address", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, mongoose_1.Prop)({ type: Number, required: false }),
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, class_validator_1.IsNumber)(),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], AuroraProjectLocation.prototype, "latitude", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, mongoose_1.Prop)({ type: Number, required: false }),
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
(0, class_validator_1.IsNumber)(),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], AuroraProjectLocation.prototype, "longitude", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, mongoose_1.Prop)({ type: exports.AuroraProjectAddressComponentsSchema, required: false }),
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
(0, class_validator_1.ValidateNested)(),
|
|
78
|
+
(0, class_transformer_1.Type)(() => AuroraProjectAddressComponents),
|
|
79
|
+
__metadata("design:type", AuroraProjectAddressComponents)
|
|
80
|
+
], AuroraProjectLocation.prototype, "property_address_components", void 0);
|
|
81
|
+
exports.AuroraProjectLocation = AuroraProjectLocation = __decorate([
|
|
82
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
83
|
+
], AuroraProjectLocation);
|
|
84
|
+
exports.AuroraProjectLocationSchema = mongoose_1.SchemaFactory.createForClass(AuroraProjectLocation);
|
|
85
|
+
let AuroraProject = class AuroraProject {
|
|
86
|
+
};
|
|
87
|
+
exports.AuroraProject = AuroraProject;
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
90
|
+
(0, class_validator_1.IsString)(),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], AuroraProject.prototype, "id", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
95
|
+
(0, class_validator_1.IsOptional)(),
|
|
96
|
+
(0, class_validator_1.IsString)(),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], AuroraProject.prototype, "external_provider_id", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
101
|
+
(0, class_validator_1.IsOptional)(),
|
|
102
|
+
(0, class_validator_1.IsString)(),
|
|
103
|
+
__metadata("design:type", Object)
|
|
104
|
+
], AuroraProject.prototype, "created_from_lead_id", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
107
|
+
(0, class_validator_1.IsOptional)(),
|
|
108
|
+
(0, class_validator_1.IsString)(),
|
|
109
|
+
__metadata("design:type", Object)
|
|
110
|
+
], AuroraProject.prototype, "name", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
113
|
+
(0, class_validator_1.IsOptional)(),
|
|
114
|
+
(0, class_validator_1.IsString)(),
|
|
115
|
+
__metadata("design:type", Object)
|
|
116
|
+
], AuroraProject.prototype, "customer_salutation", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
119
|
+
(0, class_validator_1.IsOptional)(),
|
|
120
|
+
(0, class_validator_1.IsString)(),
|
|
121
|
+
__metadata("design:type", Object)
|
|
122
|
+
], AuroraProject.prototype, "customer_first_name", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
125
|
+
(0, class_validator_1.IsOptional)(),
|
|
126
|
+
(0, class_validator_1.IsString)(),
|
|
127
|
+
__metadata("design:type", Object)
|
|
128
|
+
], AuroraProject.prototype, "customer_last_name", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
131
|
+
(0, class_validator_1.IsOptional)(),
|
|
132
|
+
(0, class_validator_1.IsString)(),
|
|
133
|
+
__metadata("design:type", Object)
|
|
134
|
+
], AuroraProject.prototype, "mailing_address", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
137
|
+
(0, class_validator_1.IsOptional)(),
|
|
138
|
+
(0, class_validator_1.IsString)(),
|
|
139
|
+
__metadata("design:type", Object)
|
|
140
|
+
], AuroraProject.prototype, "customer_email", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
143
|
+
(0, class_validator_1.IsOptional)(),
|
|
144
|
+
(0, class_validator_1.IsString)(),
|
|
145
|
+
__metadata("design:type", Object)
|
|
146
|
+
], AuroraProject.prototype, "customer_phone", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, mongoose_1.Prop)({ type: exports.AuroraProjectLocationSchema, required: true }),
|
|
149
|
+
(0, class_validator_1.ValidateNested)(),
|
|
150
|
+
(0, class_transformer_1.Type)(() => AuroraProjectLocation),
|
|
151
|
+
__metadata("design:type", AuroraProjectLocation)
|
|
152
|
+
], AuroraProject.prototype, "location", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
155
|
+
(0, class_validator_1.IsOptional)(),
|
|
156
|
+
(0, class_validator_1.IsString)(),
|
|
157
|
+
__metadata("design:type", String)
|
|
158
|
+
], AuroraProject.prototype, "project_type", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
161
|
+
(0, class_validator_1.IsOptional)(),
|
|
162
|
+
(0, class_validator_1.IsString)(),
|
|
163
|
+
__metadata("design:type", Object)
|
|
164
|
+
], AuroraProject.prototype, "owner_id", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
167
|
+
(0, class_validator_1.IsOptional)(),
|
|
168
|
+
(0, class_validator_1.IsString)(),
|
|
169
|
+
__metadata("design:type", Object)
|
|
170
|
+
], AuroraProject.prototype, "team_id", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
173
|
+
(0, class_validator_1.IsOptional)(),
|
|
174
|
+
(0, class_validator_1.IsString)(),
|
|
175
|
+
__metadata("design:type", Object)
|
|
176
|
+
], AuroraProject.prototype, "status", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
179
|
+
(0, class_validator_1.IsOptional)(),
|
|
180
|
+
(0, class_validator_1.IsString)(),
|
|
181
|
+
__metadata("design:type", Object)
|
|
182
|
+
], AuroraProject.prototype, "ahj_id", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
(0, mongoose_1.Prop)({ type: [String], required: false }),
|
|
185
|
+
(0, class_validator_1.IsOptional)(),
|
|
186
|
+
(0, class_validator_1.IsArray)(),
|
|
187
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
188
|
+
__metadata("design:type", Array)
|
|
189
|
+
], AuroraProject.prototype, "preferred_solar_modules", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
192
|
+
(0, class_validator_1.IsOptional)(),
|
|
193
|
+
(0, class_validator_1.IsString)(),
|
|
194
|
+
__metadata("design:type", Object)
|
|
195
|
+
], AuroraProject.prototype, "partner_id", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
(0, mongoose_1.Prop)({ type: [String], required: false }),
|
|
198
|
+
(0, class_validator_1.IsOptional)(),
|
|
199
|
+
(0, class_validator_1.IsArray)(),
|
|
200
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
201
|
+
__metadata("design:type", Array)
|
|
202
|
+
], AuroraProject.prototype, "tags", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
205
|
+
(0, class_validator_1.IsOptional)(),
|
|
206
|
+
(0, class_validator_1.IsString)(),
|
|
207
|
+
__metadata("design:type", Object)
|
|
208
|
+
], AuroraProject.prototype, "order_id", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, mongoose_1.Prop)({ type: String, default: null }),
|
|
211
|
+
(0, class_validator_1.IsOptional)(),
|
|
212
|
+
(0, class_validator_1.IsString)(),
|
|
213
|
+
__metadata("design:type", Object)
|
|
214
|
+
], AuroraProject.prototype, "created_at", void 0);
|
|
215
|
+
exports.AuroraProject = AuroraProject = __decorate([
|
|
216
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
217
|
+
], AuroraProject);
|
|
218
|
+
exports.AuroraProjectSchema = mongoose_1.SchemaFactory.createForClass(AuroraProject);
|
|
219
|
+
/** Réponse brute d'Aurora : le projet est encapsulé dans une clé `project`. */
|
|
220
|
+
let AuroraProjectResponse = class AuroraProjectResponse {
|
|
221
|
+
};
|
|
222
|
+
exports.AuroraProjectResponse = AuroraProjectResponse;
|
|
223
|
+
__decorate([
|
|
224
|
+
(0, mongoose_1.Prop)({ type: exports.AuroraProjectSchema, required: true }),
|
|
225
|
+
(0, class_validator_1.ValidateNested)(),
|
|
226
|
+
(0, class_transformer_1.Type)(() => AuroraProject),
|
|
227
|
+
__metadata("design:type", AuroraProject)
|
|
228
|
+
], AuroraProjectResponse.prototype, "project", void 0);
|
|
229
|
+
exports.AuroraProjectResponse = AuroraProjectResponse = __decorate([
|
|
230
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
231
|
+
], AuroraProjectResponse);
|
|
232
|
+
exports.AuroraProjectResponseSchema = mongoose_1.SchemaFactory.createForClass(AuroraProjectResponse);
|
|
233
|
+
/** Réponse renvoyée par notre micro-service : projet + deeplink prêt à afficher. */
|
|
234
|
+
let AuroraProjectWithDeeplink = class AuroraProjectWithDeeplink {
|
|
235
|
+
};
|
|
236
|
+
exports.AuroraProjectWithDeeplink = AuroraProjectWithDeeplink;
|
|
237
|
+
__decorate([
|
|
238
|
+
(0, mongoose_1.Prop)({ type: exports.AuroraProjectSchema, required: true }),
|
|
239
|
+
(0, class_validator_1.ValidateNested)(),
|
|
240
|
+
(0, class_transformer_1.Type)(() => AuroraProject),
|
|
241
|
+
__metadata("design:type", AuroraProject)
|
|
242
|
+
], AuroraProjectWithDeeplink.prototype, "project", void 0);
|
|
243
|
+
__decorate([
|
|
244
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
245
|
+
(0, class_validator_1.IsString)(),
|
|
246
|
+
__metadata("design:type", String)
|
|
247
|
+
], AuroraProjectWithDeeplink.prototype, "deeplink", void 0);
|
|
248
|
+
exports.AuroraProjectWithDeeplink = AuroraProjectWithDeeplink = __decorate([
|
|
249
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
250
|
+
], AuroraProjectWithDeeplink);
|
|
251
|
+
exports.AuroraProjectWithDeeplinkSchema = mongoose_1.SchemaFactory.createForClass(AuroraProjectWithDeeplink);
|
package/dist/index.d.ts
CHANGED
|
@@ -81,6 +81,7 @@ export * from './core/internal/subscription-rate.model';
|
|
|
81
81
|
export * from './core/internal/rates';
|
|
82
82
|
export * from './core/internal/folder.model';
|
|
83
83
|
export * from './core/internal/leads-form';
|
|
84
|
+
export * from './core/internal/aurora-solar';
|
|
84
85
|
export * from './core/internal/koncile';
|
|
85
86
|
export * from './core/webhookTypes/webhook-leads-output.dto';
|
|
86
87
|
export * from './core/webhookTypes/webhook-optimend-output.dto';
|
package/dist/index.js
CHANGED
|
@@ -109,6 +109,7 @@ __exportStar(require("./core/internal/subscription-rate.model"), exports);
|
|
|
109
109
|
__exportStar(require("./core/internal/rates"), exports);
|
|
110
110
|
__exportStar(require("./core/internal/folder.model"), exports);
|
|
111
111
|
__exportStar(require("./core/internal/leads-form"), exports);
|
|
112
|
+
__exportStar(require("./core/internal/aurora-solar"), exports);
|
|
112
113
|
// Koncile OCR
|
|
113
114
|
__exportStar(require("./core/internal/koncile"), exports);
|
|
114
115
|
// Webhook types
|