@likewatt/models 1.22.0 → 1.24.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.
@@ -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
- primaryColor?: string;
8
- secondaryColor?: string;
9
- accentColor?: string;
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;
@@ -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, "primaryColor", void 0);
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, "secondaryColor", void 0);
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 }),
38
+ __metadata("design:type", String)
39
+ ], LeadThemeConfig.prototype, "sectionBgColor", void 0);
40
+ __decorate([
41
+ (0, mongoose_1.Prop)({ type: String, match: COLOR_REGEX }),
50
42
  __metadata("design:type", String)
51
- ], LeadThemeConfig.prototype, "accentColor", void 0);
43
+ ], LeadThemeConfig.prototype, "textColor", void 0);
52
44
  exports.LeadThemeConfig = LeadThemeConfig = __decorate([
53
45
  (0, mongoose_1.Schema)({ _id: false })
54
46
  ], LeadThemeConfig);
@@ -48,6 +48,7 @@ export declare class ScenarioDefaultValue {
48
48
  description?: string;
49
49
  isActive?: boolean;
50
50
  isOptimized?: boolean;
51
+ scenarioOption?: string;
51
52
  createdBy?: Date;
52
53
  updatedAt?: Date;
53
54
  }
@@ -216,6 +216,13 @@ __decorate([
216
216
  (0, class_validator_1.IsBoolean)(),
217
217
  __metadata("design:type", Boolean)
218
218
  ], ScenarioDefaultValue.prototype, "isOptimized", void 0);
219
+ __decorate([
220
+ (0, swagger_1.ApiPropertyOptional)(),
221
+ (0, mongoose_1.Prop)({ type: String, required: false }),
222
+ (0, class_validator_1.IsOptional)(),
223
+ (0, class_validator_1.IsString)(),
224
+ __metadata("design:type", String)
225
+ ], ScenarioDefaultValue.prototype, "scenarioOption", void 0);
219
226
  __decorate([
220
227
  (0, swagger_1.ApiPropertyOptional)(),
221
228
  (0, mongoose_1.Prop)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.22.0",
3
+ "version": "1.24.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {