@likewatt/models 1.50.0 → 1.52.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.
@@ -27,6 +27,8 @@ export declare class CollectiveSite {
27
27
  timezone: number;
28
28
  sites: string[];
29
29
  hasAnalysis: boolean;
30
+ createdAt?: Date | string;
31
+ updatedAt?: Date | string;
30
32
  }
31
33
  export declare const CollectiveSiteSchema: import("mongoose").Schema<CollectiveSite, import("mongoose").Model<CollectiveSite, any, any, any, Document<unknown, any, CollectiveSite, any, {}> & CollectiveSite & Required<{
32
34
  _id: string;
@@ -177,6 +177,18 @@ __decorate([
177
177
  (0, class_validator_1.IsBoolean)(),
178
178
  __metadata("design:type", Boolean)
179
179
  ], CollectiveSite.prototype, "hasAnalysis", void 0);
180
+ __decorate([
181
+ (0, swagger_1.ApiPropertyOptional)(),
182
+ (0, class_validator_1.IsOptional)(),
183
+ (0, class_validator_1.IsDate)(),
184
+ __metadata("design:type", Object)
185
+ ], CollectiveSite.prototype, "createdAt", void 0);
186
+ __decorate([
187
+ (0, swagger_1.ApiPropertyOptional)(),
188
+ (0, class_validator_1.IsOptional)(),
189
+ (0, class_validator_1.IsDate)(),
190
+ __metadata("design:type", Object)
191
+ ], CollectiveSite.prototype, "updatedAt", void 0);
180
192
  exports.CollectiveSite = CollectiveSite = __decorate([
181
193
  (0, mongoose_1.Schema)({
182
194
  id: false,
@@ -14,7 +14,7 @@ export declare class Customer {
14
14
  email: string;
15
15
  sites: string[];
16
16
  }
17
- export type LicenseDocument = Customer & Document;
17
+ export type CustomerDocument = Customer & Document;
18
18
  export declare const CustomerSchema: import("mongoose").Schema<Customer, import("mongoose").Model<Customer, any, any, any, Document<unknown, any, Customer, any, {}> & Customer & Required<{
19
19
  _id: string;
20
20
  }> & {
@@ -52,6 +52,8 @@ export declare class LeadTenant {
52
52
  isActive: boolean;
53
53
  limits?: LeadTenantLimits;
54
54
  email: string[];
55
+ createdAt?: Date | string;
56
+ updatedAt?: Date | string;
55
57
  }
56
58
  export declare const LeadTenantSchema: import("mongoose").Schema<LeadTenant, import("mongoose").Model<LeadTenant, any, any, any, Document<unknown, any, LeadTenant, any, {}> & LeadTenant & Required<{
57
59
  _id: string;
@@ -53,6 +53,7 @@ export declare class ScenarioDefaultValue {
53
53
  createdBy?: Date;
54
54
  updatedAt?: Date;
55
55
  isLeads?: boolean;
56
+ createdAt?: Date;
56
57
  }
57
58
  export type ScenarioDefaultValueDocument = ScenarioDefaultValue & Document;
58
59
  export declare const ScenarioDefaultValueSchema: import("mongoose").Schema<ScenarioDefaultValue, import("mongoose").Model<ScenarioDefaultValue, any, any, any, Document<unknown, any, ScenarioDefaultValue, any, {}> & ScenarioDefaultValue & Required<{
@@ -251,6 +251,12 @@ __decorate([
251
251
  (0, class_validator_1.IsBoolean)(),
252
252
  __metadata("design:type", Boolean)
253
253
  ], ScenarioDefaultValue.prototype, "isLeads", void 0);
254
+ __decorate([
255
+ (0, swagger_1.ApiPropertyOptional)(),
256
+ (0, class_validator_1.IsOptional)(),
257
+ (0, class_validator_1.IsDate)(),
258
+ __metadata("design:type", Date)
259
+ ], ScenarioDefaultValue.prototype, "createdAt", void 0);
254
260
  exports.ScenarioDefaultValue = ScenarioDefaultValue = __decorate([
255
261
  (0, mongoose_1.Schema)({
256
262
  id: false,
@@ -99,6 +99,8 @@ export declare class Site {
99
99
  hasAnalysis: boolean;
100
100
  hasContractData: boolean;
101
101
  scenarioOption?: string;
102
+ createdAt?: Date | string;
103
+ updatedAt?: Date | string;
102
104
  }
103
105
  export type SiteDocument = Site & Document;
104
106
  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
@@ -578,6 +578,18 @@ __decorate([
578
578
  (0, class_validator_1.IsString)(),
579
579
  __metadata("design:type", String)
580
580
  ], Site.prototype, "scenarioOption", void 0);
581
+ __decorate([
582
+ (0, swagger_1.ApiPropertyOptional)({ description: 'Date de création (Mongoose timestamps)' }),
583
+ (0, class_validator_1.IsOptional)(),
584
+ (0, class_validator_1.IsDate)(),
585
+ __metadata("design:type", Object)
586
+ ], Site.prototype, "createdAt", void 0);
587
+ __decorate([
588
+ (0, swagger_1.ApiPropertyOptional)({ description: 'Date de dernière mise à jour (Mongoose timestamps)' }),
589
+ (0, class_validator_1.IsOptional)(),
590
+ (0, class_validator_1.IsDate)(),
591
+ __metadata("design:type", Object)
592
+ ], Site.prototype, "updatedAt", void 0);
581
593
  exports.Site = Site = __decorate([
582
594
  (0, mongoose_1.Schema)({
583
595
  id: false,
@@ -12,6 +12,8 @@ export declare class LeadsForm {
12
12
  addressGeocode: number[];
13
13
  scenarioOption?: string;
14
14
  code?: string;
15
+ createdAt?: Date | string;
16
+ updatedAt?: Date | string;
15
17
  }
16
18
  export declare const LeadsFormSchema: import("mongoose").Schema<LeadsForm, import("mongoose").Model<LeadsForm, any, any, any, import("mongoose").Document<unknown, any, LeadsForm, any, {}> & LeadsForm & {
17
19
  _id: import("mongoose").Types.ObjectId;
@@ -97,6 +97,18 @@ __decorate([
97
97
  (0, class_validator_1.IsString)(),
98
98
  __metadata("design:type", String)
99
99
  ], LeadsForm.prototype, "code", void 0);
100
+ __decorate([
101
+ (0, swagger_1.ApiPropertyOptional)(),
102
+ (0, class_validator_1.IsOptional)(),
103
+ (0, class_validator_1.IsDate)(),
104
+ __metadata("design:type", Object)
105
+ ], LeadsForm.prototype, "createdAt", void 0);
106
+ __decorate([
107
+ (0, swagger_1.ApiPropertyOptional)(),
108
+ (0, class_validator_1.IsOptional)(),
109
+ (0, class_validator_1.IsDate)(),
110
+ __metadata("design:type", Object)
111
+ ], LeadsForm.prototype, "updatedAt", void 0);
100
112
  exports.LeadsForm = LeadsForm = __decorate([
101
113
  (0, mongoose_1.Schema)({
102
114
  timestamps: true,
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './core/CollectiveSite';
2
2
  export * from './core/Scenario';
3
3
  export * from './core/Site';
4
+ export * from './core/Customer';
4
5
  export * from './core/Consent';
5
6
  export * from './core/User';
6
7
  export * from './core/License';
package/dist/index.js CHANGED
@@ -19,6 +19,7 @@ exports.EnedisReportOperationType = exports.EnedisReportAcquisitionMethod = void
19
19
  __exportStar(require("./core/CollectiveSite"), exports);
20
20
  __exportStar(require("./core/Scenario"), exports);
21
21
  __exportStar(require("./core/Site"), exports);
22
+ __exportStar(require("./core/Customer"), exports);
22
23
  __exportStar(require("./core/Consent"), exports);
23
24
  __exportStar(require("./core/User"), exports);
24
25
  __exportStar(require("./core/License"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.50.0",
3
+ "version": "1.52.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {