cloud-ide-model-schema 1.1.99 → 1.1.101

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.
@@ -6,7 +6,7 @@ var mongoose_1 = require("mongoose");
6
6
  var auth_user_mst = new mongoose_1.Schema({
7
7
  user_username: {
8
8
  type: String,
9
- minlength: 8,
9
+ minlength: 5,
10
10
  maxlength: 20,
11
11
  required: true,
12
12
  trim: true,
@@ -26,7 +26,7 @@ var auth_user_mst = new mongoose_1.Schema({
26
26
  },
27
27
  user_lastname: {
28
28
  type: String,
29
- minlength: 8,
29
+ minlength: 3,
30
30
  maxlength: 20
31
31
  },
32
32
  user_fullname: {
@@ -1,11 +1,11 @@
1
- import { AuthUserCoreUserContactAddresses, CoreEntityAccessPassManagementSycad } from "cloud-ide-lms-model";
1
+ import { AuthUserCoreUserContactAddresses, CoreEntityAccessPassManagement } from "cloud-ide-lms-model";
2
2
  import mongoose from "mongoose";
3
3
  declare const CCoreUserContactAddresses: mongoose.Model<AuthUserCoreUserContactAddresses, {}, {}, {}, mongoose.Document<unknown, {}, AuthUserCoreUserContactAddresses, {}> & AuthUserCoreUserContactAddresses & Required<{
4
4
  _id: string;
5
5
  }> & {
6
6
  __v: number;
7
7
  }, any>;
8
- declare const CCoreEntityAccessPassManagementSycad: mongoose.Model<CoreEntityAccessPassManagementSycad, {}, {}, {}, mongoose.Document<unknown, {}, CoreEntityAccessPassManagementSycad, {}> & CoreEntityAccessPassManagementSycad & Required<{
8
+ declare const CCoreEntityAccessPassManagementSycad: mongoose.Model<CoreEntityAccessPassManagement, {}, {}, {}, mongoose.Document<unknown, {}, CoreEntityAccessPassManagement, {}> & CoreEntityAccessPassManagement & Required<{
9
9
  _id: string;
10
10
  }> & {
11
11
  __v: number;
@@ -0,0 +1,8 @@
1
+ import { FdskLeadAssignmentDetail } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CFdskLeadAssignmentDetail: mongoose.Model<FdskLeadAssignmentDetail, {}, {}, {}, mongoose.Document<unknown, {}, FdskLeadAssignmentDetail, {}> & FdskLeadAssignmentDetail & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CFdskLeadAssignmentDetail };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CFdskLeadAssignmentDetail = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var fdsk_lead_assignment_detail = new mongoose_1.Schema({
7
+ fdla_action_date_time: {
8
+ type: Date,
9
+ default: Date.now
10
+ },
11
+ fdla_action_assigned_to_id_user: {
12
+ type: mongoose_1.default.Schema.Types.ObjectId,
13
+ ref: "auth_user_mst",
14
+ comment: "user assigned to"
15
+ },
16
+ fdla_action_assigned_from_id_user: {
17
+ type: mongoose_1.default.Schema.Types.ObjectId,
18
+ ref: "auth_user_mst",
19
+ comment: "user assigned from"
20
+ },
21
+ fdla_status_id_sygms: {
22
+ type: mongoose_1.default.Schema.Types.ObjectId,
23
+ ref: "core_general_master",
24
+ comment: "assigned, acknowledge"
25
+ }
26
+ }, { collection: 'fdsk_lead_assignment_detail' });
27
+ var CFdskLeadAssignmentDetail = mongoose_1.default.model("fdsk_lead_assignment_detail", fdsk_lead_assignment_detail);
28
+ exports.CFdskLeadAssignmentDetail = CFdskLeadAssignmentDetail;
@@ -0,0 +1,8 @@
1
+ import { FdskLeadConfigMaster } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CFdskLeadConfigMaster: mongoose.Model<FdskLeadConfigMaster, {}, {}, {}, mongoose.Document<unknown, {}, FdskLeadConfigMaster, {}> & FdskLeadConfigMaster & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CFdskLeadConfigMaster };
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CFdskLeadConfigMaster = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var fdsk_lead_config_master = new mongoose_1.Schema({
7
+ fdlcm_title: {
8
+ type: String,
9
+ required: true,
10
+ minlength: 1,
11
+ maxlength: 200,
12
+ trim: true,
13
+ comment: "this is to show the title on the form while lead capturing"
14
+ },
15
+ fdlcm_description: {
16
+ type: String,
17
+ minlength: 0,
18
+ maxlength: 500,
19
+ trim: true,
20
+ comment: "details explanation for what this is going to be captured, this is also visible on lead capturing form"
21
+ },
22
+ fdlcm_lead_created_for_id_sygms: {
23
+ type: mongoose_1.default.Schema.Types.ObjectId,
24
+ ref: "core_general_master",
25
+ comment: "Admission, Staff recruitment Leads, Other..."
26
+ },
27
+ fdlcm_defalut_priority_id_sygms: {
28
+ type: mongoose_1.default.Schema.Types.ObjectId,
29
+ ref: "core_general_master",
30
+ comment: "default priority set internally to the form, for specific leads we can set the priority internally"
31
+ },
32
+ fdlcm_form_endpoint: {
33
+ type: String,
34
+ minlength: 0,
35
+ maxlength: 50,
36
+ trim: true,
37
+ comment: "this is like https://cloudidesys.com/leads/admissions where admissions is the endpoint, user can define its own endpoint, on the basics of that we will identify which lead config was applicable to that"
38
+ },
39
+ fdlcm_default_counselor_id_user: {
40
+ type: mongoose_1.default.Schema.Types.ObjectId,
41
+ ref: "auth_user_mst",
42
+ comment: "default counselor id whom we can assign all the leads, after that he can decide leads should transfer to whom, but note default counselor will have all the insights, like total leads how much of them to whom assigned and many things..."
43
+ },
44
+ fdlcm_isactive: {
45
+ type: Boolean,
46
+ default: true,
47
+ comment: "is this lead is we are accepting or not"
48
+ },
49
+ fdlcm_start_date_time: {
50
+ type: Date,
51
+ default: Date.now,
52
+ comment: "from date we will start accepting the leads till on form we will show time remaining countdown"
53
+ },
54
+ fdlcm_end_date_time: {
55
+ type: Date,
56
+ comment: "to date till this time we will accepts the leads, after that we will stops the lead acceptance"
57
+ }
58
+ }, { collection: 'fdsk_lead_config_master' });
59
+ var CFdskLeadConfigMaster = mongoose_1.default.model("fdsk_lead_config_master", fdsk_lead_config_master);
60
+ exports.CFdskLeadConfigMaster = CFdskLeadConfigMaster;
@@ -0,0 +1,8 @@
1
+ import { FdskLeadDetail } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CFdskLeadDetail: mongoose.Model<FdskLeadDetail, {}, {}, {}, mongoose.Document<unknown, {}, FdskLeadDetail, {}> & FdskLeadDetail & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CFdskLeadDetail };
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CFdskLeadDetail = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var fdsk_lead_detail = new mongoose_1.Schema({
7
+ fdld_lead_id_fdlds: {
8
+ type: mongoose_1.default.Schema.Types.ObjectId,
9
+ ref: "fdsk_leads",
10
+ required: true,
11
+ comment: "lead table id"
12
+ },
13
+ fdld_status_sygms: {
14
+ type: mongoose_1.default.Schema.Types.ObjectId,
15
+ ref: "core_general_master",
16
+ comment: "lead status if current is completed, but this table holds the when what status done what is the remark that time"
17
+ },
18
+ fdld_remark: {
19
+ type: String,
20
+ minlength: 0,
21
+ maxlength: 500,
22
+ trim: true,
23
+ comment: "remark by counselor this is like commit message, whenever counselor wants to log the message"
24
+ },
25
+ fdld_action_date_time: {
26
+ type: Date,
27
+ default: Date.now,
28
+ comment: "date time of this action performed"
29
+ },
30
+ fdld_counselor_id_user: {
31
+ type: mongoose_1.default.Schema.Types.ObjectId,
32
+ ref: "auth_user_mst",
33
+ comment: "counselor id if, we change the counselor this time we will set the detail level counselor ids, this is done by the assigned user or the someone else, its very important"
34
+ }
35
+ }, { collection: 'fdsk_lead_detail' });
36
+ var CFdskLeadDetail = mongoose_1.default.model("fdsk_lead_detail", fdsk_lead_detail);
37
+ exports.CFdskLeadDetail = CFdskLeadDetail;
@@ -0,0 +1,8 @@
1
+ import { FdskLeadScheduling } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CFdskLeadScheduling: mongoose.Model<FdskLeadScheduling, {}, {}, {}, mongoose.Document<unknown, {}, FdskLeadScheduling, {}> & FdskLeadScheduling & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CFdskLeadScheduling };
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CFdskLeadScheduling = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var fdsk_lead_scheduling = new mongoose_1.Schema({
7
+ fdlsc_lead_id_fdlds: {
8
+ type: mongoose_1.default.Schema.Types.ObjectId,
9
+ ref: "fdsk_leads",
10
+ required: true,
11
+ comment: "lead table id"
12
+ },
13
+ fdlsc_remark: {
14
+ type: String,
15
+ minlength: 0,
16
+ maxlength: 500,
17
+ trim: true,
18
+ comment: "remark by counselor this is like commit message, whenever counselor wants to log the message"
19
+ },
20
+ fdlsc_schedule_date_time: {
21
+ type: Date,
22
+ required: true,
23
+ comment: "date time of this action performed"
24
+ },
25
+ fdlsc_counselor_id_user: {
26
+ type: mongoose_1.default.Schema.Types.ObjectId,
27
+ ref: "auth_user_mst",
28
+ comment: "counselor id if, we change the counselor this time we will set the detail level counselor ids, this is done by the assigned user or the someone else, its very important"
29
+ },
30
+ fdlsc_isactive: {
31
+ type: Boolean,
32
+ default: true,
33
+ comment: "is schedule active"
34
+ },
35
+ fdlsc_action_date_time: {
36
+ type: Date,
37
+ default: Date.now,
38
+ comment: "store time when we create the schedule"
39
+ },
40
+ fdlsc_status_id_sygms: {
41
+ type: mongoose_1.default.Schema.Types.ObjectId,
42
+ ref: "core_general_master",
43
+ comment: "schedule status scheduled, started, hold, completed, rescheduled, canceled"
44
+ }
45
+ }, { collection: 'fdsk_lead_scheduling' });
46
+ var CFdskLeadScheduling = mongoose_1.default.model("fdsk_lead_scheduling", fdsk_lead_scheduling);
47
+ exports.CFdskLeadScheduling = CFdskLeadScheduling;
@@ -0,0 +1,8 @@
1
+ import { FdskLeads } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CFdskLeads: mongoose.Model<FdskLeads, {}, {}, {}, mongoose.Document<unknown, {}, FdskLeads, {}> & FdskLeads & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CFdskLeads };
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CFdskLeads = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var fdsk_leads = new mongoose_1.Schema({
7
+ fdlds_doc_no: {
8
+ type: String,
9
+ minlength: 0,
10
+ maxlength: 16,
11
+ trim: true,
12
+ unique: true,
13
+ comment: "uniq 16 digit and characters note here we will generate entity specific, and we will make sure same no will not generate for same hierarchy example: <entity_code_by_entity>-0001"
14
+ },
15
+ fdlds_created_date_time: {
16
+ type: Date,
17
+ default: Date.now,
18
+ comment: "date and time of lead created on"
19
+ },
20
+ fdlds_display_text: {
21
+ type: String,
22
+ minlength: 0,
23
+ maxlength: 250,
24
+ trim: true,
25
+ comment: "we will do configuration of this, at lead config master like templating variable replacement"
26
+ },
27
+ fdlds_template_id: {
28
+ type: String,
29
+ minlength: 0,
30
+ maxlength: 50,
31
+ trim: true,
32
+ comment: "we will decide the which theme by page theme form note lead form is one ui but there is different reason read is capturing like cars, schools then they have selection dependent UI"
33
+ },
34
+ fdlds_first_name: {
35
+ type: String,
36
+ required: true,
37
+ minlength: 1,
38
+ maxlength: 50,
39
+ trim: true,
40
+ comment: "name of lead maker, customer"
41
+ },
42
+ fdlds_middle_name: {
43
+ type: String,
44
+ minlength: 0,
45
+ maxlength: 50,
46
+ trim: true
47
+ },
48
+ fdlds_last_name: {
49
+ type: String,
50
+ minlength: 0,
51
+ maxlength: 50,
52
+ trim: true
53
+ },
54
+ fdlds_address: {
55
+ type: String,
56
+ minlength: 0,
57
+ maxlength: 255,
58
+ trim: true
59
+ },
60
+ fdlds_phone: {
61
+ type: Number,
62
+ minlength: 10,
63
+ maxlength: 15,
64
+ trim: true
65
+ },
66
+ fdlds_email: {
67
+ type: String,
68
+ minlength: 8,
69
+ maxlength: 320,
70
+ trim: true
71
+ },
72
+ fdlds_entity_id_syen: {
73
+ type: mongoose_1.default.Schema.Types.ObjectId,
74
+ ref: "core_system_entity",
75
+ required: true,
76
+ comment: "entity id"
77
+ },
78
+ fdlds_config_fdlcm: {
79
+ type: mongoose_1.default.Schema.Types.ObjectId,
80
+ ref: "fdsk_lead_config_master",
81
+ comment: "lead captured for like, BMW, Volvo cars for this we will create different form(normally we give dropdown but to feel premium company may ask object specific lead form)"
82
+ },
83
+ fdlds_counselor_id_user: {
84
+ type: mongoose_1.default.Schema.Types.ObjectId,
85
+ ref: "auth_user_mst",
86
+ comment: "lead reviewed by which user, this is assigned by owner, or this can be set by config screen whom this leads can transfer default lead transfer screen"
87
+ },
88
+ fdlds_owner_id_user: {
89
+ type: mongoose_1.default.Schema.Types.ObjectId,
90
+ ref: "auth_user_mst",
91
+ comment: "owner user id for whom this lead is own by this sit check the whom as assigned the leads after generation, this to show at pending actions till completion"
92
+ },
93
+ fdlds_active_status_id_sygms: {
94
+ type: mongoose_1.default.Schema.Types.ObjectId,
95
+ ref: "core_general_master",
96
+ comment: "active, inactive, closed, completed, pending"
97
+ },
98
+ fdlds_pin_sypin: {
99
+ type: mongoose_1.default.Schema.Types.ObjectId,
100
+ ref: "core_postal_code"
101
+ },
102
+ fdlds_city_sypin: {
103
+ type: mongoose_1.default.Schema.Types.ObjectId,
104
+ ref: "core_postal_code"
105
+ },
106
+ fdlds_state_sypin: {
107
+ type: mongoose_1.default.Schema.Types.ObjectId,
108
+ ref: "core_postal_code"
109
+ },
110
+ fdlds_country_syctr: {
111
+ type: mongoose_1.default.Schema.Types.ObjectId,
112
+ ref: "core_system_country"
113
+ },
114
+ fdlds_priority_id_sygms: {
115
+ type: mongoose_1.default.Schema.Types.ObjectId,
116
+ ref: "core_general_master",
117
+ comment: "Low, Medium, High"
118
+ },
119
+ fdlds_reference_by_id_user: {
120
+ type: mongoose_1.default.Schema.Types.ObjectId,
121
+ ref: "auth_user_mst",
122
+ comment: "lead referred by user name, this is configurable to ask on lead form or we will update by ourself, because this should be field by us to prevent data breach of user"
123
+ }
124
+ }, { collection: 'fdsk_leads' });
125
+ var CFdskLeads = mongoose_1.default.model("fdsk_leads", fdsk_leads);
126
+ exports.CFdskLeads = CFdskLeads;
@@ -0,0 +1,5 @@
1
+ export * from "./fdsk_lead_assignment_detail";
2
+ export * from "./fdsk_lead_config_master";
3
+ export * from "./fdsk_lead_detail";
4
+ export * from "./fdsk_lead_scheduling";
5
+ export * from "./fdsk_leads";
@@ -0,0 +1,21 @@
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
+ __exportStar(require("./fdsk_lead_assignment_detail"), exports);
18
+ __exportStar(require("./fdsk_lead_config_master"), exports);
19
+ __exportStar(require("./fdsk_lead_detail"), exports);
20
+ __exportStar(require("./fdsk_lead_scheduling"), exports);
21
+ __exportStar(require("./fdsk_leads"), exports);
@@ -3,3 +3,4 @@ export * from "./core";
3
3
  export * from "./email";
4
4
  export * from "./academics";
5
5
  export * from "./accounts";
6
+ export * from "./frontdesk";
@@ -19,3 +19,4 @@ __exportStar(require("./core"), exports);
19
19
  __exportStar(require("./email"), exports);
20
20
  __exportStar(require("./academics"), exports);
21
21
  __exportStar(require("./accounts"), exports);
22
+ __exportStar(require("./frontdesk"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "cloud-ide-lms-model": "^1.0.289",
3
+ "cloud-ide-lms-model": "^1.0.304",
4
4
  "dotenv": "^16.5.0",
5
5
  "mongoose": "^8.15.0"
6
6
  },
@@ -9,7 +9,7 @@
9
9
  "typescript": "^5.8.3"
10
10
  },
11
11
  "name": "cloud-ide-model-schema",
12
- "version": "1.1.99",
12
+ "version": "1.1.101",
13
13
  "description": "Pachage for schema management of Cloud IDEsys LMS",
14
14
  "main": "lib/index.js",
15
15
  "types": "lib/index.d.ts",