cloud-ide-model-schema 1.0.6 → 1.0.7
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/lib/config/database.d.ts +3 -0
- package/lib/config/database.js +66 -0
- package/lib/config/index.d.ts +2 -0
- package/lib/config/index.js +5 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +23 -0
- package/lib/schema/auth/auth_logses.d.ts +42 -0
- package/lib/schema/auth/auth_logses.js +50 -0
- package/lib/schema/auth/auth_user_mst.d.ts +58 -0
- package/lib/schema/auth/auth_user_mst.js +107 -0
- package/lib/schema/auth/index.d.ts +4 -0
- package/lib/schema/auth/index.js +10 -0
- package/lib/schema/auth/mpin.d.ts +37 -0
- package/lib/schema/auth/mpin.js +54 -0
- package/lib/schema/core/core_entity_mapping.d.ts +39 -0
- package/lib/schema/core/core_entity_mapping.js +34 -0
- package/lib/schema/core/core_general_master.d.ts +39 -0
- package/lib/schema/core/core_general_master.js +37 -0
- package/lib/schema/core/core_general_master_type.d.ts +37 -0
- package/lib/schema/core/core_general_master_type.js +33 -0
- package/lib/schema/core/core_page_controls.d.ts +47 -0
- package/lib/schema/core/core_page_controls.js +75 -0
- package/lib/schema/core/core_page_grid.d.ts +36 -0
- package/lib/schema/core/core_page_grid.js +36 -0
- package/lib/schema/core/core_page_tab.d.ts +43 -0
- package/lib/schema/core/core_page_tab.js +33 -0
- package/lib/schema/core/core_pin_code.d.ts +44 -0
- package/lib/schema/core/core_pin_code.js +51 -0
- package/lib/schema/core/core_system_config.d.ts +37 -0
- package/lib/schema/core/core_system_config.js +48 -0
- package/lib/schema/core/core_system_entity.d.ts +63 -0
- package/lib/schema/core/core_system_entity.js +177 -0
- package/lib/schema/core/core_system_logs.d.ts +53 -0
- package/lib/schema/core/core_system_logs.js +117 -0
- package/lib/schema/core/core_system_menu.d.ts +42 -0
- package/lib/schema/core/core_system_menu.js +63 -0
- package/lib/schema/core/core_system_pages.d.ts +39 -0
- package/lib/schema/core/core_system_pages.js +51 -0
- package/lib/schema/core/core_system_pages_theme.d.ts +40 -0
- package/lib/schema/core/core_system_pages_theme.js +51 -0
- package/lib/schema/core/index.d.ts +14 -0
- package/lib/schema/core/index.js +34 -0
- package/lib/schema/email/elist.d.ts +36 -0
- package/lib/schema/email/elist.js +42 -0
- package/lib/schema/email/elog.d.ts +41 -0
- package/lib/schema/email/elog.js +58 -0
- package/lib/schema/email/eref.d.ts +37 -0
- package/lib/schema/email/eref.js +43 -0
- package/lib/schema/email/esub.d.ts +43 -0
- package/lib/schema/email/esub.js +69 -0
- package/lib/schema/email/etmp.d.ts +36 -0
- package/lib/schema/email/etmp.js +41 -0
- package/lib/schema/email/evdr.d.ts +36 -0
- package/lib/schema/email/evdr.js +41 -0
- package/lib/schema/email/index.d.ts +7 -0
- package/lib/schema/email/index.js +21 -0
- package/package.json +10 -7
- package/tsconfig.json +5 -3
- /package/{config → src/config}/database.ts +0 -0
- /package/{config → src/config}/index.ts +0 -0
- /package/{index.ts → src/index.ts} +0 -0
- /package/{schema → src/schema}/auth/auth_logses.ts +0 -0
- /package/{schema → src/schema}/auth/auth_user_mst.ts +0 -0
- /package/{schema → src/schema}/auth/index.ts +0 -0
- /package/{schema → src/schema}/auth/mpin.ts +0 -0
- /package/{schema → src/schema}/core/core_entity_mapping.ts +0 -0
- /package/{schema → src/schema}/core/core_general_master.ts +0 -0
- /package/{schema → src/schema}/core/core_general_master_type.ts +0 -0
- /package/{schema → src/schema}/core/core_page_controls.ts +0 -0
- /package/{schema → src/schema}/core/core_page_grid.ts +0 -0
- /package/{schema → src/schema}/core/core_page_tab.ts +0 -0
- /package/{schema → src/schema}/core/core_pin_code.ts +0 -0
- /package/{schema → src/schema}/core/core_system_config.ts +0 -0
- /package/{schema → src/schema}/core/core_system_entity.ts +0 -0
- /package/{schema → src/schema}/core/core_system_logs.ts +0 -0
- /package/{schema → src/schema}/core/core_system_menu.ts +0 -0
- /package/{schema → src/schema}/core/core_system_pages.ts +0 -0
- /package/{schema → src/schema}/core/core_system_pages_theme.ts +0 -0
- /package/{schema → src/schema}/core/index.ts +0 -0
- /package/{schema → src/schema}/email/elist.ts +0 -0
- /package/{schema → src/schema}/email/elog.ts +0 -0
- /package/{schema → src/schema}/email/eref.ts +0 -0
- /package/{schema → src/schema}/email/esub.ts +0 -0
- /package/{schema → src/schema}/email/etmp.ts +0 -0
- /package/{schema → src/schema}/email/evdr.ts +0 -0
- /package/{schema → src/schema}/email/index.ts +0 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.connectDB = void 0;
|
|
40
|
+
var mongoose = require("mongoose");
|
|
41
|
+
require("dotenv/config");
|
|
42
|
+
function connectDB() {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
44
|
+
var options;
|
|
45
|
+
return __generator(this, function (_a) {
|
|
46
|
+
switch (_a.label) {
|
|
47
|
+
case 0:
|
|
48
|
+
options = {
|
|
49
|
+
// authSource: process.env.MONGODB_AUTH_SOURCE || 'admin', // Optional authentication database
|
|
50
|
+
connectTimeoutMS: 10000,
|
|
51
|
+
socketTimeoutMS: 30000,
|
|
52
|
+
// Other MongoDB connection options as needed
|
|
53
|
+
};
|
|
54
|
+
return [4 /*yield*/, mongoose.connect(process.env.MONGODB_URI || '', options).then(function () {
|
|
55
|
+
console.log('Connected to MongoDB');
|
|
56
|
+
}).catch(function (error) {
|
|
57
|
+
console.error('Error connecting to MongoDB:', error);
|
|
58
|
+
})];
|
|
59
|
+
case 1:
|
|
60
|
+
_a.sent();
|
|
61
|
+
return [2 /*return*/];
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
exports.connectDB = connectDB;
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.connectDB = void 0;
|
|
18
|
+
__exportStar(require("./schema/auth"), exports);
|
|
19
|
+
__exportStar(require("./schema/core"), exports);
|
|
20
|
+
__exportStar(require("./schema/email"), exports);
|
|
21
|
+
/* database config */
|
|
22
|
+
var config_1 = require("./config");
|
|
23
|
+
Object.defineProperty(exports, "connectDB", { enumerable: true, get: function () { return config_1.connectDB; } });
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import mongoose from "mongoose";
|
|
26
|
+
interface ILogses {
|
|
27
|
+
_id: string;
|
|
28
|
+
logses_id_user: string;
|
|
29
|
+
logses_start_dtm: Date;
|
|
30
|
+
logses_end_dtm: Date;
|
|
31
|
+
logses_end_max_dtm: Date;
|
|
32
|
+
logses_token: string;
|
|
33
|
+
logses_user_ask_mpin: string;
|
|
34
|
+
logses_last_id_logses: string;
|
|
35
|
+
logses_sequence: number;
|
|
36
|
+
logses_isactive: boolean;
|
|
37
|
+
}
|
|
38
|
+
declare const Clogses: mongoose.Model<ILogses, {}, {}, {}, mongoose.Document<unknown, {}, ILogses> & ILogses & Required<{
|
|
39
|
+
_id: string;
|
|
40
|
+
}>, any>;
|
|
41
|
+
export { ILogses, // interface name
|
|
42
|
+
Clogses };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Clogses = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
/* INTERFACE END */
|
|
6
|
+
/* SCHEMA START */
|
|
7
|
+
var auth_logses = new mongoose_1.Schema({
|
|
8
|
+
logses_id_user: {
|
|
9
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
10
|
+
ref: 'auth_user_mst'
|
|
11
|
+
},
|
|
12
|
+
logses_start_dtm: {
|
|
13
|
+
type: Date,
|
|
14
|
+
required: true,
|
|
15
|
+
default: new Date()
|
|
16
|
+
},
|
|
17
|
+
logses_end_dtm: {
|
|
18
|
+
type: Date,
|
|
19
|
+
required: true,
|
|
20
|
+
default: new Date()
|
|
21
|
+
},
|
|
22
|
+
logses_end_max_dtm: {
|
|
23
|
+
type: Date,
|
|
24
|
+
required: true,
|
|
25
|
+
default: new Date()
|
|
26
|
+
},
|
|
27
|
+
logses_token: {
|
|
28
|
+
type: String,
|
|
29
|
+
trim: true
|
|
30
|
+
},
|
|
31
|
+
logses_user_ask_mpin: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
required: true,
|
|
34
|
+
default: false
|
|
35
|
+
},
|
|
36
|
+
logses_last_id_logses: {
|
|
37
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
38
|
+
ref: "auth_logses"
|
|
39
|
+
},
|
|
40
|
+
logses_sequence: {
|
|
41
|
+
type: Number,
|
|
42
|
+
default: 1
|
|
43
|
+
},
|
|
44
|
+
logses_isactive: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: true
|
|
47
|
+
}
|
|
48
|
+
}, { collection: 'auth_logses' });
|
|
49
|
+
var Clogses = mongoose_1.default.model('auth_logses', auth_logses);
|
|
50
|
+
exports.Clogses = Clogses;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import mongoose from "mongoose";
|
|
26
|
+
interface IUser {
|
|
27
|
+
_id?: string;
|
|
28
|
+
user_id_ent?: string;
|
|
29
|
+
user_username?: string;
|
|
30
|
+
user_firstname?: string;
|
|
31
|
+
user_middlename?: string;
|
|
32
|
+
user_lastname?: string;
|
|
33
|
+
user_fullname?: string;
|
|
34
|
+
user_emailid?: string;
|
|
35
|
+
user_mobileno?: number;
|
|
36
|
+
user_password?: string;
|
|
37
|
+
user_activefrom?: Date;
|
|
38
|
+
user_activeupto?: Date;
|
|
39
|
+
user_photo_id_fm?: string;
|
|
40
|
+
user_passwordchangeonlogin?: boolean;
|
|
41
|
+
user_id_role?: string;
|
|
42
|
+
user_id_desg?: string;
|
|
43
|
+
user_id_dept?: string;
|
|
44
|
+
user_permissions?: IUserPermissions[];
|
|
45
|
+
user_isactive?: boolean;
|
|
46
|
+
}
|
|
47
|
+
interface IUserPermissions {
|
|
48
|
+
_id: string;
|
|
49
|
+
create?: boolean;
|
|
50
|
+
read?: boolean;
|
|
51
|
+
update?: boolean;
|
|
52
|
+
delete?: boolean;
|
|
53
|
+
}
|
|
54
|
+
declare const CUser: mongoose.Model<IUser, {}, {}, {}, mongoose.Document<unknown, {}, IUser> & IUser & Required<{
|
|
55
|
+
_id: string;
|
|
56
|
+
}>, any>;
|
|
57
|
+
export { IUser, // interface name
|
|
58
|
+
IUserPermissions, CUser };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CUser = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
/* INTERFACE END */
|
|
6
|
+
/* SCHEMA START */
|
|
7
|
+
var auth_user_mst = new mongoose_1.Schema({
|
|
8
|
+
user_id_ent: {
|
|
9
|
+
type: String,
|
|
10
|
+
comment: "Unique Entity id"
|
|
11
|
+
},
|
|
12
|
+
user_username: {
|
|
13
|
+
type: String,
|
|
14
|
+
minlength: 8,
|
|
15
|
+
maxlength: 20,
|
|
16
|
+
required: true,
|
|
17
|
+
trim: true,
|
|
18
|
+
unique: true,
|
|
19
|
+
comment: "Unique User Name",
|
|
20
|
+
message: "Unique User Name"
|
|
21
|
+
},
|
|
22
|
+
user_firstname: {
|
|
23
|
+
type: String,
|
|
24
|
+
minlength: 3,
|
|
25
|
+
maxlength: 20
|
|
26
|
+
},
|
|
27
|
+
user_middlename: {
|
|
28
|
+
type: String,
|
|
29
|
+
minlength: 3,
|
|
30
|
+
maxlength: 20
|
|
31
|
+
},
|
|
32
|
+
user_lastname: {
|
|
33
|
+
type: String,
|
|
34
|
+
minlength: 8,
|
|
35
|
+
maxlength: 20
|
|
36
|
+
},
|
|
37
|
+
user_fullname: {
|
|
38
|
+
type: String,
|
|
39
|
+
minlength: 8,
|
|
40
|
+
maxlength: 52
|
|
41
|
+
},
|
|
42
|
+
user_emailid: {
|
|
43
|
+
type: String,
|
|
44
|
+
minlength: 8,
|
|
45
|
+
maxlength: 50,
|
|
46
|
+
trim: true,
|
|
47
|
+
unique: true,
|
|
48
|
+
comment: "Unique Email ID",
|
|
49
|
+
message: "Unique Email ID"
|
|
50
|
+
},
|
|
51
|
+
user_mobileno: {
|
|
52
|
+
type: Number,
|
|
53
|
+
minlength: 10,
|
|
54
|
+
maxlength: 15,
|
|
55
|
+
trim: true,
|
|
56
|
+
unique: true,
|
|
57
|
+
comment: "Unique Mobile no",
|
|
58
|
+
message: "Unique Mobile no"
|
|
59
|
+
},
|
|
60
|
+
user_password: {
|
|
61
|
+
type: String,
|
|
62
|
+
maxlength: 250,
|
|
63
|
+
trim: true
|
|
64
|
+
},
|
|
65
|
+
user_activefrom: {
|
|
66
|
+
type: Date,
|
|
67
|
+
comment: "User Effective from- Default is created date"
|
|
68
|
+
},
|
|
69
|
+
user_activeupto: {
|
|
70
|
+
type: Date,
|
|
71
|
+
comment: "User Valid upto registered academic year default"
|
|
72
|
+
},
|
|
73
|
+
user_photo_id_fm: {
|
|
74
|
+
type: String,
|
|
75
|
+
comment: "photo file manager id",
|
|
76
|
+
trim: true
|
|
77
|
+
},
|
|
78
|
+
user_passwordchangeonlogin: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
comment: "Change password on Login. Flag can be set by the Admin/ Reset option",
|
|
81
|
+
default: true
|
|
82
|
+
},
|
|
83
|
+
user_id_role: {
|
|
84
|
+
type: String,
|
|
85
|
+
comment: "Role Id associated with the user.",
|
|
86
|
+
trim: true
|
|
87
|
+
},
|
|
88
|
+
user_id_desg: {
|
|
89
|
+
type: String,
|
|
90
|
+
comment: "Users Designation",
|
|
91
|
+
trim: true
|
|
92
|
+
},
|
|
93
|
+
user_id_dept: {
|
|
94
|
+
type: String,
|
|
95
|
+
comment: "Users Department",
|
|
96
|
+
trim: true
|
|
97
|
+
},
|
|
98
|
+
user_permissions: {
|
|
99
|
+
type: Array,
|
|
100
|
+
default: []
|
|
101
|
+
},
|
|
102
|
+
user_isactive: {
|
|
103
|
+
type: Boolean
|
|
104
|
+
}
|
|
105
|
+
}, { collection: 'auth_user_mst' });
|
|
106
|
+
var CUser = mongoose_1.default.model('auth_user_mst', auth_user_mst);
|
|
107
|
+
exports.CUser = CUser;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CMpin = exports.IMpin = exports.Clogses = exports.CUser = void 0;
|
|
4
|
+
var auth_user_mst_1 = require("./auth_user_mst");
|
|
5
|
+
Object.defineProperty(exports, "CUser", { enumerable: true, get: function () { return auth_user_mst_1.CUser; } });
|
|
6
|
+
var auth_logses_1 = require("./auth_logses");
|
|
7
|
+
Object.defineProperty(exports, "Clogses", { enumerable: true, get: function () { return auth_logses_1.Clogses; } });
|
|
8
|
+
var mpin_1 = require("./mpin");
|
|
9
|
+
Object.defineProperty(exports, "IMpin", { enumerable: true, get: function () { return mpin_1.IMpin; } });
|
|
10
|
+
Object.defineProperty(exports, "CMpin", { enumerable: true, get: function () { return mpin_1.CMpin; } });
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import mongoose from "mongoose";
|
|
26
|
+
declare class IMpin {
|
|
27
|
+
mpin_pin: number;
|
|
28
|
+
mpin_id_user: string;
|
|
29
|
+
mpin_expiry_dtm: Date;
|
|
30
|
+
mpin_used: boolean;
|
|
31
|
+
mpin_isactive: boolean;
|
|
32
|
+
}
|
|
33
|
+
declare const CMpin: mongoose.Model<IMpin, {}, {}, {}, mongoose.Document<unknown, {}, IMpin> & IMpin & {
|
|
34
|
+
_id: mongoose.Types.ObjectId;
|
|
35
|
+
}, any>;
|
|
36
|
+
export { IMpin, // interface
|
|
37
|
+
CMpin };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CMpin = exports.IMpin = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
/* INTERFASE START */
|
|
6
|
+
var IMpin = /** @class */ (function () {
|
|
7
|
+
function IMpin() {
|
|
8
|
+
}
|
|
9
|
+
return IMpin;
|
|
10
|
+
}());
|
|
11
|
+
exports.IMpin = IMpin;
|
|
12
|
+
/* INTERFACE END */
|
|
13
|
+
/* SCHEMA START */
|
|
14
|
+
var auth_mpin = new mongoose_1.Schema({
|
|
15
|
+
mpin_id_user: {
|
|
16
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
17
|
+
ref: 'auth_user_mst',
|
|
18
|
+
required: true,
|
|
19
|
+
comment: "User unique primery key, reference user"
|
|
20
|
+
},
|
|
21
|
+
mpin_pin: {
|
|
22
|
+
type: Number,
|
|
23
|
+
require: true,
|
|
24
|
+
unique: true,
|
|
25
|
+
minlength: 6,
|
|
26
|
+
minlenght: 6
|
|
27
|
+
},
|
|
28
|
+
mpin_generation_dtm: {
|
|
29
|
+
type: Date,
|
|
30
|
+
required: true,
|
|
31
|
+
default: new Date()
|
|
32
|
+
},
|
|
33
|
+
mpin_expiry_dtm: {
|
|
34
|
+
type: Date,
|
|
35
|
+
required: true,
|
|
36
|
+
default: new Date()
|
|
37
|
+
},
|
|
38
|
+
mpin_used: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
41
|
+
},
|
|
42
|
+
mpin_id_logses: {
|
|
43
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
44
|
+
comment: "logses session table, whre loggin id is stored which used the mpin",
|
|
45
|
+
trim: true
|
|
46
|
+
},
|
|
47
|
+
mpin_isactive: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: true,
|
|
50
|
+
comment: "automaticaly expire when expiry time completes, when authenticator is refreshed new key generates and this will set to false"
|
|
51
|
+
}
|
|
52
|
+
}, { collection: 'auth_mpin' });
|
|
53
|
+
var CMpin = mongoose_1.default.model("auth_mpin", auth_mpin);
|
|
54
|
+
exports.CMpin = CMpin;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import mongoose from "mongoose";
|
|
26
|
+
interface ICoreSyenm {
|
|
27
|
+
_id?: string;
|
|
28
|
+
syenm_id_user?: string;
|
|
29
|
+
syenm_id_syen?: string;
|
|
30
|
+
syenm_id_logses?: string;
|
|
31
|
+
syenm_isactive?: boolean;
|
|
32
|
+
syenm_isdefault?: boolean;
|
|
33
|
+
syenm_isloggedin?: boolean;
|
|
34
|
+
}
|
|
35
|
+
declare const CCoreSyenm: mongoose.Model<ICoreSyenm, {}, {}, {}, mongoose.Document<unknown, {}, ICoreSyenm> & ICoreSyenm & Required<{
|
|
36
|
+
_id: string;
|
|
37
|
+
}>, any>;
|
|
38
|
+
export { ICoreSyenm, // interface
|
|
39
|
+
CCoreSyenm };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CCoreSyenm = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
/* INTERFACE END */
|
|
6
|
+
/* SCHEMA START */
|
|
7
|
+
var core_entity_mapping = new mongoose_1.Schema({
|
|
8
|
+
syenm_id_user: {
|
|
9
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
10
|
+
ref: "auth_user_mst"
|
|
11
|
+
},
|
|
12
|
+
syenm_id_syen: {
|
|
13
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
14
|
+
ref: "core_system_entity"
|
|
15
|
+
},
|
|
16
|
+
syenm_id_logses: {
|
|
17
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
18
|
+
ref: "auth_logses"
|
|
19
|
+
},
|
|
20
|
+
syenm_isactive: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: true
|
|
23
|
+
},
|
|
24
|
+
syenm_isloggedin: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: true
|
|
27
|
+
},
|
|
28
|
+
syenm_isdefault: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: true
|
|
31
|
+
},
|
|
32
|
+
}, { collection: 'core_entity_mapping' });
|
|
33
|
+
var CCoreSyenm = mongoose_1.default.model("core_entity_mapping", core_entity_mapping);
|
|
34
|
+
exports.CCoreSyenm = CCoreSyenm;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import mongoose from "mongoose";
|
|
26
|
+
interface ICoreSygms {
|
|
27
|
+
_id: string;
|
|
28
|
+
sygms_id_sygmt: string;
|
|
29
|
+
sygms_code: string;
|
|
30
|
+
sygms_title: string;
|
|
31
|
+
sygms_desc: string;
|
|
32
|
+
sygms_isactive: boolean;
|
|
33
|
+
sygms_configuration: object;
|
|
34
|
+
}
|
|
35
|
+
declare const CCoreSygms: mongoose.Model<ICoreSygms, {}, {}, {}, mongoose.Document<unknown, {}, ICoreSygms> & ICoreSygms & Required<{
|
|
36
|
+
_id: string;
|
|
37
|
+
}>, any>;
|
|
38
|
+
export { ICoreSygms, // interface
|
|
39
|
+
CCoreSygms };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CCoreSygms = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
/* INTERFACE END */
|
|
6
|
+
/* SCHEMA START */
|
|
7
|
+
var core_general_master = new mongoose_1.Schema({
|
|
8
|
+
sygms_id_sygmt: {
|
|
9
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
10
|
+
ref: "core_general_master_type"
|
|
11
|
+
},
|
|
12
|
+
sygms_code: {
|
|
13
|
+
type: String,
|
|
14
|
+
require: true,
|
|
15
|
+
maxlength: 40,
|
|
16
|
+
trim: true
|
|
17
|
+
},
|
|
18
|
+
sygms_title: {
|
|
19
|
+
type: String,
|
|
20
|
+
require: true,
|
|
21
|
+
minlength: 3,
|
|
22
|
+
maxlength: 150,
|
|
23
|
+
trim: true
|
|
24
|
+
},
|
|
25
|
+
sygms_desc: {
|
|
26
|
+
type: String,
|
|
27
|
+
minlength: 0,
|
|
28
|
+
maxlength: 500,
|
|
29
|
+
trim: true
|
|
30
|
+
},
|
|
31
|
+
sygms_isactive: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: true
|
|
34
|
+
},
|
|
35
|
+
}, { collection: 'core_general_master' });
|
|
36
|
+
var CCoreSygms = mongoose_1.default.model("core_general_master", core_general_master);
|
|
37
|
+
exports.CCoreSygms = CCoreSygms;
|