@likewatt/models 1.47.0 → 1.48.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 +0 -1
- package/dist/core/Leads.js +7 -8
- package/dist/core/Regex.d.ts +4 -0
- package/dist/core/Regex.js +7 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/core/Leads.d.ts
CHANGED
package/dist/core/Leads.js
CHANGED
|
@@ -9,11 +9,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.LeadTenantSchema = exports.LeadTenant = exports.LeadTenantLimitsSchema = exports.LeadTenantLimits = exports.LeadLimitRuleSchema = exports.LeadLimitRule = exports.LeadThemeConfigSchema = exports.LeadThemeConfig =
|
|
12
|
+
exports.LeadTenantSchema = exports.LeadTenant = exports.LeadTenantLimitsSchema = exports.LeadTenantLimits = exports.LeadLimitRuleSchema = exports.LeadLimitRule = exports.LeadThemeConfigSchema = exports.LeadThemeConfig = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const uuid_1 = require("uuid");
|
|
15
|
-
|
|
16
|
-
const COLOR_REGEX = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
|
|
15
|
+
const Regex_1 = require("./Regex");
|
|
17
16
|
let LeadThemeConfig = class LeadThemeConfig {
|
|
18
17
|
};
|
|
19
18
|
exports.LeadThemeConfig = LeadThemeConfig;
|
|
@@ -26,19 +25,19 @@ __decorate([
|
|
|
26
25
|
__metadata("design:type", String)
|
|
27
26
|
], LeadThemeConfig.prototype, "backgroundImageUrl", void 0);
|
|
28
27
|
__decorate([
|
|
29
|
-
(0, mongoose_1.Prop)({ type: String, match: COLOR_REGEX }),
|
|
28
|
+
(0, mongoose_1.Prop)({ type: String, match: Regex_1.COLOR_REGEX }),
|
|
30
29
|
__metadata("design:type", String)
|
|
31
30
|
], LeadThemeConfig.prototype, "buttonBgColor", void 0);
|
|
32
31
|
__decorate([
|
|
33
|
-
(0, mongoose_1.Prop)({ type: String, match: COLOR_REGEX }),
|
|
32
|
+
(0, mongoose_1.Prop)({ type: String, match: Regex_1.COLOR_REGEX }),
|
|
34
33
|
__metadata("design:type", String)
|
|
35
34
|
], LeadThemeConfig.prototype, "buttonTextColor", void 0);
|
|
36
35
|
__decorate([
|
|
37
|
-
(0, mongoose_1.Prop)({ type: String, match: COLOR_REGEX }),
|
|
36
|
+
(0, mongoose_1.Prop)({ type: String, match: Regex_1.COLOR_REGEX }),
|
|
38
37
|
__metadata("design:type", String)
|
|
39
38
|
], LeadThemeConfig.prototype, "sectionBgColor", void 0);
|
|
40
39
|
__decorate([
|
|
41
|
-
(0, mongoose_1.Prop)({ type: String, match: COLOR_REGEX }),
|
|
40
|
+
(0, mongoose_1.Prop)({ type: String, match: Regex_1.COLOR_REGEX }),
|
|
42
41
|
__metadata("design:type", String)
|
|
43
42
|
], LeadThemeConfig.prototype, "textColor", void 0);
|
|
44
43
|
exports.LeadThemeConfig = LeadThemeConfig = __decorate([
|
|
@@ -92,7 +91,7 @@ __decorate([
|
|
|
92
91
|
required: true,
|
|
93
92
|
lowercase: true,
|
|
94
93
|
trim: true,
|
|
95
|
-
match:
|
|
94
|
+
match: Regex_1.SUBDOMAIN_REGEX,
|
|
96
95
|
}),
|
|
97
96
|
__metadata("design:type", String)
|
|
98
97
|
], LeadTenant.prototype, "subdomain", void 0);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.STRASBOURG_REGEX = exports.ENEDIS_REGEX = exports.COLOR_REGEX = exports.SUBDOMAIN_REGEX = void 0;
|
|
4
|
+
exports.SUBDOMAIN_REGEX = /^(?!-)[a-z0-9-]{1,63}(?<!-)$/;
|
|
5
|
+
exports.COLOR_REGEX = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
|
|
6
|
+
exports.ENEDIS_REGEX = /^\d{14}$/;
|
|
7
|
+
exports.STRASBOURG_REGEX = /^\d{5}_[A-Z]\d_\d{7}$/;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './core/ScenarioDefaultValue';
|
|
|
9
9
|
export * from './core/Invitation';
|
|
10
10
|
export * from './core/DefaultRate';
|
|
11
11
|
export * from './core/Leads';
|
|
12
|
+
export * from './core/Regex';
|
|
12
13
|
export * from './core/TypeORM/analysis';
|
|
13
14
|
export * from './core/TypeORM/Co2History';
|
|
14
15
|
export * from './core/TypeORM/EnedisReportHistory';
|
package/dist/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __exportStar(require("./core/ScenarioDefaultValue"), exports);
|
|
|
27
27
|
__exportStar(require("./core/Invitation"), exports);
|
|
28
28
|
__exportStar(require("./core/DefaultRate"), exports);
|
|
29
29
|
__exportStar(require("./core/Leads"), exports);
|
|
30
|
+
__exportStar(require("./core/Regex"), exports);
|
|
30
31
|
// TypeORM entities
|
|
31
32
|
__exportStar(require("./core/TypeORM/analysis"), exports);
|
|
32
33
|
__exportStar(require("./core/TypeORM/Co2History"), exports);
|