@likewatt/models 1.15.3 → 1.16.1

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.
@@ -19,6 +19,7 @@ export declare const LeadThemeConfigSchema: import("mongoose").Schema<LeadThemeC
19
19
  }>;
20
20
  export declare class LeadTenant {
21
21
  _id: string;
22
+ tenantId: string;
22
23
  subdomain: string;
23
24
  domain: string;
24
25
  defaultScenarioIds: string[];
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.LeadTenantSchema = exports.LeadTenant = exports.LeadThemeConfigSchema = exports.LeadThemeConfig = exports.SUBDOMAIN_REGEX = void 0;
13
13
  const mongoose_1 = require("@nestjs/mongoose");
14
+ const mongoose_2 = require("mongoose");
14
15
  const uuid_1 = require("uuid");
15
16
  exports.SUBDOMAIN_REGEX = /^(?!-)[a-z0-9-]{1,63}(?<!-)$/;
16
17
  const COLOR_REGEX = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
@@ -64,6 +65,10 @@ __decorate([
64
65
  }),
65
66
  __metadata("design:type", String)
66
67
  ], LeadTenant.prototype, "_id", void 0);
68
+ __decorate([
69
+ (0, mongoose_1.Prop)({ required: true, type: mongoose_2.SchemaTypes.ObjectId, ref: 'User' }),
70
+ __metadata("design:type", String)
71
+ ], LeadTenant.prototype, "tenantId", void 0);
67
72
  __decorate([
68
73
  (0, mongoose_1.Prop)({
69
74
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.15.3",
3
+ "version": "1.16.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {