@kipicore/dbcore 1.1.53 → 1.1.55
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.
|
@@ -2,13 +2,23 @@ import { Document } from 'mongoose';
|
|
|
2
2
|
import { USER_TYPES, COMMAN_STATUS } from '../constants/app';
|
|
3
3
|
import { IDefaultAttributes } from './commonInterface';
|
|
4
4
|
export interface IModuleList {
|
|
5
|
-
|
|
5
|
+
mobileSequenceNumber: number;
|
|
6
|
+
webSequenceNumber: number;
|
|
6
7
|
moduleName: string;
|
|
7
8
|
webConfig: string;
|
|
8
9
|
mobileConfig: string;
|
|
9
10
|
webStatus: COMMAN_STATUS;
|
|
10
11
|
mobileStatus: COMMAN_STATUS;
|
|
11
12
|
}
|
|
13
|
+
export interface IQuickLinkList {
|
|
14
|
+
mobileSequenceNumber: number;
|
|
15
|
+
webSequenceNumber: number;
|
|
16
|
+
moduleName: string;
|
|
17
|
+
webRoute: string;
|
|
18
|
+
mobileRoute: string;
|
|
19
|
+
webStatus: COMMAN_STATUS;
|
|
20
|
+
mobileStatus: COMMAN_STATUS;
|
|
21
|
+
}
|
|
12
22
|
export interface IDashboardManagementAttributes extends IDefaultAttributes, Document {
|
|
13
23
|
id: string;
|
|
14
24
|
isDefault: boolean;
|
|
@@ -16,4 +26,5 @@ export interface IDashboardManagementAttributes extends IDefaultAttributes, Docu
|
|
|
16
26
|
instituteId: string;
|
|
17
27
|
userType: USER_TYPES;
|
|
18
28
|
moduleList: IModuleList[];
|
|
29
|
+
quickLinkList: IModuleList[];
|
|
19
30
|
}
|
|
@@ -36,9 +36,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
const mongoose_1 = __importStar(require("mongoose"));
|
|
37
37
|
const app_1 = require("../../constants/app");
|
|
38
38
|
const DashboardManagementSchema = new mongoose_1.Schema({
|
|
39
|
-
|
|
39
|
+
mobileSequenceNumber: {
|
|
40
40
|
type: Number,
|
|
41
|
-
required:
|
|
41
|
+
required: false,
|
|
42
|
+
},
|
|
43
|
+
webSequenceNumber: {
|
|
44
|
+
type: Number,
|
|
45
|
+
required: false,
|
|
42
46
|
},
|
|
43
47
|
moduleName: {
|
|
44
48
|
type: String,
|
|
@@ -46,11 +50,45 @@ const DashboardManagementSchema = new mongoose_1.Schema({
|
|
|
46
50
|
},
|
|
47
51
|
webConfig: {
|
|
48
52
|
type: String,
|
|
49
|
-
required:
|
|
53
|
+
required: false,
|
|
50
54
|
},
|
|
51
55
|
mobileConfig: {
|
|
52
56
|
type: String,
|
|
53
|
-
required:
|
|
57
|
+
required: false,
|
|
58
|
+
},
|
|
59
|
+
webStatus: {
|
|
60
|
+
type: String,
|
|
61
|
+
enum: Object.values(app_1.COMMAN_STATUS),
|
|
62
|
+
default: app_1.COMMAN_STATUS.ACTIVE,
|
|
63
|
+
required: false,
|
|
64
|
+
},
|
|
65
|
+
mobileStatus: {
|
|
66
|
+
type: String,
|
|
67
|
+
enum: Object.values(app_1.COMMAN_STATUS),
|
|
68
|
+
default: app_1.COMMAN_STATUS.ACTIVE,
|
|
69
|
+
required: false,
|
|
70
|
+
},
|
|
71
|
+
}, { _id: false });
|
|
72
|
+
const quickLinkListSchema = new mongoose_1.Schema({
|
|
73
|
+
mobileSequenceNumber: {
|
|
74
|
+
type: Number,
|
|
75
|
+
required: false,
|
|
76
|
+
},
|
|
77
|
+
webSequenceNumber: {
|
|
78
|
+
type: Number,
|
|
79
|
+
required: false,
|
|
80
|
+
},
|
|
81
|
+
moduleName: {
|
|
82
|
+
type: String,
|
|
83
|
+
required: false,
|
|
84
|
+
},
|
|
85
|
+
webRoute: {
|
|
86
|
+
type: String,
|
|
87
|
+
required: false,
|
|
88
|
+
},
|
|
89
|
+
mobileRoute: {
|
|
90
|
+
type: String,
|
|
91
|
+
required: false,
|
|
54
92
|
},
|
|
55
93
|
webStatus: {
|
|
56
94
|
type: String,
|
|
@@ -85,7 +123,11 @@ const DashboardManagementModelSchema = new mongoose_1.Schema({
|
|
|
85
123
|
},
|
|
86
124
|
moduleList: {
|
|
87
125
|
type: [DashboardManagementSchema],
|
|
88
|
-
required:
|
|
126
|
+
required: false,
|
|
127
|
+
},
|
|
128
|
+
quickLinkList: {
|
|
129
|
+
type: [quickLinkListSchema],
|
|
130
|
+
required: false,
|
|
89
131
|
},
|
|
90
132
|
createdBy: {
|
|
91
133
|
type: String,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FindOptions, WhereOptions, Model, ModelStatic, UpdateOptions, BulkCreateOptions, DestroyOptions, CreateOptions, Identifier, UpsertOptions, CountOptions } from 'sequelize';
|
|
2
2
|
import { ISequelizeCommonService } from '../Contracts/ISequelizeCommonService';
|
|
3
3
|
import { TPaginationOptions } from '../../types/commonType';
|
|
4
|
-
export
|
|
4
|
+
export declare class SequelizeCommonService<T extends Model> implements ISequelizeCommonService<T> {
|
|
5
5
|
private model;
|
|
6
6
|
constructor(model: ModelStatic<T>);
|
|
7
7
|
findByPk(identifier: Identifier, options?: FindOptions<T['_attributes']>): Promise<T['_attributes'] | null>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SequelizeCommonService = void 0;
|
|
3
4
|
const app_1 = require("../../constants/app");
|
|
4
5
|
class SequelizeCommonService {
|
|
5
6
|
constructor(model) {
|
|
@@ -120,4 +121,4 @@ class SequelizeCommonService {
|
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
|
-
exports.
|
|
124
|
+
exports.SequelizeCommonService = SequelizeCommonService;
|
package/package.json
CHANGED