@likewatt/models 1.14.2 → 1.14.3
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 -17
- package/dist/core/Leads.js +1 -29
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/package.json +1 -1
- package/dist/core/enums/LeadsAuthMode.d.ts +0 -4
- package/dist/core/enums/LeadsAuthMode.js +0 -8
package/dist/core/Leads.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Document } from 'mongoose';
|
|
2
|
-
import { AuthMode } from './enums/LeadsAuthMode';
|
|
3
2
|
export type LeadTenantDocument = LeadTenant & Document;
|
|
4
3
|
export declare class LeadThemeConfig {
|
|
5
4
|
logoUrl?: string;
|
|
@@ -15,27 +14,11 @@ export declare const LeadThemeConfigSchema: import("mongoose").Schema<LeadThemeC
|
|
|
15
14
|
} & {
|
|
16
15
|
__v: number;
|
|
17
16
|
}>;
|
|
18
|
-
export declare class LeadAuthConfig {
|
|
19
|
-
mode: AuthMode;
|
|
20
|
-
apiLogin?: string;
|
|
21
|
-
apiPasswordEncryptedOrSecretRef?: string;
|
|
22
|
-
apiTokenHash?: string;
|
|
23
|
-
}
|
|
24
|
-
export declare const LeadAuthConfigSchema: import("mongoose").Schema<LeadAuthConfig, import("mongoose").Model<LeadAuthConfig, any, any, any, Document<unknown, any, LeadAuthConfig, any, {}> & LeadAuthConfig & {
|
|
25
|
-
_id: import("mongoose").Types.ObjectId;
|
|
26
|
-
} & {
|
|
27
|
-
__v: number;
|
|
28
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, LeadAuthConfig, Document<unknown, {}, import("mongoose").FlatRecord<LeadAuthConfig>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<LeadAuthConfig> & {
|
|
29
|
-
_id: import("mongoose").Types.ObjectId;
|
|
30
|
-
} & {
|
|
31
|
-
__v: number;
|
|
32
|
-
}>;
|
|
33
17
|
export declare class LeadTenant {
|
|
34
18
|
_id: string;
|
|
35
19
|
tenantId: string;
|
|
36
20
|
subdomain: string;
|
|
37
21
|
domain: string;
|
|
38
|
-
auth: LeadAuthConfig;
|
|
39
22
|
defaultScenarioIds: string[];
|
|
40
23
|
theme?: LeadThemeConfig;
|
|
41
24
|
isActive: boolean;
|
package/dist/core/Leads.js
CHANGED
|
@@ -9,10 +9,9 @@ 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.
|
|
12
|
+
exports.LeadTenantSchema = exports.LeadTenant = exports.LeadThemeConfigSchema = exports.LeadThemeConfig = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const uuid_1 = require("uuid");
|
|
15
|
-
const LeadsAuthMode_1 = require("./enums/LeadsAuthMode");
|
|
16
15
|
const SUBDOMAIN_REGEX = /^(?!-)[a-z0-9-]{1,63}(?<!-)$/;
|
|
17
16
|
let LeadThemeConfig = class LeadThemeConfig {
|
|
18
17
|
};
|
|
@@ -33,29 +32,6 @@ exports.LeadThemeConfig = LeadThemeConfig = __decorate([
|
|
|
33
32
|
(0, mongoose_1.Schema)({ _id: false })
|
|
34
33
|
], LeadThemeConfig);
|
|
35
34
|
exports.LeadThemeConfigSchema = mongoose_1.SchemaFactory.createForClass(LeadThemeConfig);
|
|
36
|
-
let LeadAuthConfig = class LeadAuthConfig {
|
|
37
|
-
};
|
|
38
|
-
exports.LeadAuthConfig = LeadAuthConfig;
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, mongoose_1.Prop)({ type: String, enum: LeadsAuthMode_1.AuthMode, required: true }),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], LeadAuthConfig.prototype, "mode", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, mongoose_1.Prop)({ type: String }),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], LeadAuthConfig.prototype, "apiLogin", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, mongoose_1.Prop)({ type: String }),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], LeadAuthConfig.prototype, "apiPasswordEncryptedOrSecretRef", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, mongoose_1.Prop)({ type: String }),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], LeadAuthConfig.prototype, "apiTokenHash", void 0);
|
|
55
|
-
exports.LeadAuthConfig = LeadAuthConfig = __decorate([
|
|
56
|
-
(0, mongoose_1.Schema)({ _id: false })
|
|
57
|
-
], LeadAuthConfig);
|
|
58
|
-
exports.LeadAuthConfigSchema = mongoose_1.SchemaFactory.createForClass(LeadAuthConfig);
|
|
59
35
|
let LeadTenant = class LeadTenant {
|
|
60
36
|
};
|
|
61
37
|
exports.LeadTenant = LeadTenant;
|
|
@@ -93,10 +69,6 @@ __decorate([
|
|
|
93
69
|
}),
|
|
94
70
|
__metadata("design:type", String)
|
|
95
71
|
], LeadTenant.prototype, "domain", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, mongoose_1.Prop)({ type: exports.LeadAuthConfigSchema, required: true }),
|
|
98
|
-
__metadata("design:type", LeadAuthConfig)
|
|
99
|
-
], LeadTenant.prototype, "auth", void 0);
|
|
100
72
|
__decorate([
|
|
101
73
|
(0, mongoose_1.Prop)({ type: [String], default: [] }),
|
|
102
74
|
__metadata("design:type", Array)
|
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ export * from './core/internal/enums';
|
|
|
27
27
|
export * from './core/enums/BuildingDataStatus';
|
|
28
28
|
export * from './core/enums/FileType';
|
|
29
29
|
export * from './core/enums/ImageryQuality';
|
|
30
|
-
export * from './core/enums/LeadsAuthMode';
|
|
31
30
|
export * from './core/internal/battery-params';
|
|
32
31
|
export * from './core/internal/bounding-box';
|
|
33
32
|
export * from './core/internal/building-data';
|
package/dist/index.js
CHANGED
|
@@ -50,7 +50,6 @@ __exportStar(require("./core/internal/enums"), exports);
|
|
|
50
50
|
__exportStar(require("./core/enums/BuildingDataStatus"), exports);
|
|
51
51
|
__exportStar(require("./core/enums/FileType"), exports);
|
|
52
52
|
__exportStar(require("./core/enums/ImageryQuality"), exports);
|
|
53
|
-
__exportStar(require("./core/enums/LeadsAuthMode"), exports);
|
|
54
53
|
// Sub-models
|
|
55
54
|
__exportStar(require("./core/internal/battery-params"), exports);
|
|
56
55
|
__exportStar(require("./core/internal/bounding-box"), exports);
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthMode = void 0;
|
|
4
|
-
var AuthMode;
|
|
5
|
-
(function (AuthMode) {
|
|
6
|
-
AuthMode["V1_LOGIN_PASSWORD"] = "v1_login_password";
|
|
7
|
-
AuthMode["V2_TOKEN"] = "v2_token";
|
|
8
|
-
})(AuthMode || (exports.AuthMode = AuthMode = {}));
|