@likewatt/models 1.41.4 → 1.42.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
CHANGED
|
@@ -18,6 +18,31 @@ export declare const LeadThemeConfigSchema: import("mongoose").Schema<LeadThemeC
|
|
|
18
18
|
} & {
|
|
19
19
|
__v: number;
|
|
20
20
|
}>;
|
|
21
|
+
export declare class LeadLimitRule {
|
|
22
|
+
value: number;
|
|
23
|
+
comparison: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const LeadLimitRuleSchema: import("mongoose").Schema<LeadLimitRule, import("mongoose").Model<LeadLimitRule, any, any, any, Document<unknown, any, LeadLimitRule, any, {}> & LeadLimitRule & {
|
|
26
|
+
_id: import("mongoose").Types.ObjectId;
|
|
27
|
+
} & {
|
|
28
|
+
__v: number;
|
|
29
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, LeadLimitRule, Document<unknown, {}, import("mongoose").FlatRecord<LeadLimitRule>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<LeadLimitRule> & {
|
|
30
|
+
_id: import("mongoose").Types.ObjectId;
|
|
31
|
+
} & {
|
|
32
|
+
__v: number;
|
|
33
|
+
}>;
|
|
34
|
+
export declare class LeadTenantLimits {
|
|
35
|
+
subscribedPowers?: LeadLimitRule;
|
|
36
|
+
}
|
|
37
|
+
export declare const LeadTenantLimitsSchema: import("mongoose").Schema<LeadTenantLimits, import("mongoose").Model<LeadTenantLimits, any, any, any, Document<unknown, any, LeadTenantLimits, any, {}> & LeadTenantLimits & {
|
|
38
|
+
_id: import("mongoose").Types.ObjectId;
|
|
39
|
+
} & {
|
|
40
|
+
__v: number;
|
|
41
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, LeadTenantLimits, Document<unknown, {}, import("mongoose").FlatRecord<LeadTenantLimits>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<LeadTenantLimits> & {
|
|
42
|
+
_id: import("mongoose").Types.ObjectId;
|
|
43
|
+
} & {
|
|
44
|
+
__v: number;
|
|
45
|
+
}>;
|
|
21
46
|
export declare class LeadTenant {
|
|
22
47
|
_id: string;
|
|
23
48
|
userId: string;
|
|
@@ -26,6 +51,7 @@ export declare class LeadTenant {
|
|
|
26
51
|
theme?: LeadThemeConfig;
|
|
27
52
|
scenarioOptions: string[];
|
|
28
53
|
isActive: boolean;
|
|
54
|
+
limits?: LeadTenantLimits;
|
|
29
55
|
}
|
|
30
56
|
export declare const LeadTenantSchema: import("mongoose").Schema<LeadTenant, import("mongoose").Model<LeadTenant, any, any, any, Document<unknown, any, LeadTenant, any, {}> & LeadTenant & Required<{
|
|
31
57
|
_id: string;
|
package/dist/core/Leads.js
CHANGED
|
@@ -9,7 +9,7 @@ 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.LeadThemeConfigSchema = exports.LeadThemeConfig = exports.SUBDOMAIN_REGEX = void 0;
|
|
12
|
+
exports.LeadTenantSchema = exports.LeadTenant = exports.LeadTenantLimitsSchema = exports.LeadTenantLimits = exports.LeadLimitRuleSchema = exports.LeadLimitRule = exports.LeadThemeConfigSchema = exports.LeadThemeConfig = exports.SUBDOMAIN_REGEX = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const uuid_1 = require("uuid");
|
|
15
15
|
exports.SUBDOMAIN_REGEX = /^(?!-)[a-z0-9-]{1,63}(?<!-)$/;
|
|
@@ -45,6 +45,32 @@ exports.LeadThemeConfig = LeadThemeConfig = __decorate([
|
|
|
45
45
|
(0, mongoose_1.Schema)({ _id: false })
|
|
46
46
|
], LeadThemeConfig);
|
|
47
47
|
exports.LeadThemeConfigSchema = mongoose_1.SchemaFactory.createForClass(LeadThemeConfig);
|
|
48
|
+
let LeadLimitRule = class LeadLimitRule {
|
|
49
|
+
};
|
|
50
|
+
exports.LeadLimitRule = LeadLimitRule;
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, mongoose_1.Prop)({ type: Number, required: true }),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], LeadLimitRule.prototype, "value", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], LeadLimitRule.prototype, "comparison", void 0);
|
|
59
|
+
exports.LeadLimitRule = LeadLimitRule = __decorate([
|
|
60
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
61
|
+
], LeadLimitRule);
|
|
62
|
+
exports.LeadLimitRuleSchema = mongoose_1.SchemaFactory.createForClass(LeadLimitRule);
|
|
63
|
+
let LeadTenantLimits = class LeadTenantLimits {
|
|
64
|
+
};
|
|
65
|
+
exports.LeadTenantLimits = LeadTenantLimits;
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, mongoose_1.Prop)({ type: exports.LeadLimitRuleSchema }),
|
|
68
|
+
__metadata("design:type", LeadLimitRule)
|
|
69
|
+
], LeadTenantLimits.prototype, "subscribedPowers", void 0);
|
|
70
|
+
exports.LeadTenantLimits = LeadTenantLimits = __decorate([
|
|
71
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
72
|
+
], LeadTenantLimits);
|
|
73
|
+
exports.LeadTenantLimitsSchema = mongoose_1.SchemaFactory.createForClass(LeadTenantLimits);
|
|
48
74
|
let LeadTenant = class LeadTenant {
|
|
49
75
|
};
|
|
50
76
|
exports.LeadTenant = LeadTenant;
|
|
@@ -91,6 +117,10 @@ __decorate([
|
|
|
91
117
|
(0, mongoose_1.Prop)({ type: Boolean, default: true, index: true }),
|
|
92
118
|
__metadata("design:type", Boolean)
|
|
93
119
|
], LeadTenant.prototype, "isActive", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, mongoose_1.Prop)({ type: exports.LeadTenantLimitsSchema }),
|
|
122
|
+
__metadata("design:type", LeadTenantLimits)
|
|
123
|
+
], LeadTenant.prototype, "limits", void 0);
|
|
94
124
|
exports.LeadTenant = LeadTenant = __decorate([
|
|
95
125
|
(0, mongoose_1.Schema)({
|
|
96
126
|
id: false,
|
|
@@ -16,7 +16,7 @@ let OffPeakHour = class OffPeakHour {
|
|
|
16
16
|
};
|
|
17
17
|
exports.OffPeakHour = OffPeakHour;
|
|
18
18
|
__decorate([
|
|
19
|
-
(0, mongoose_1.Prop)({ required:
|
|
19
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
20
20
|
(0, class_validator_1.IsString)(),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], OffPeakHour.prototype, "id", void 0);
|