@kipicore/dbcore 1.1.463 → 1.1.464
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IDefaultAttributes } from './commonInterface';
|
|
2
2
|
import { COMMAN_STATUS } from '../constants/app';
|
|
3
|
+
import { Document } from 'mongoose';
|
|
3
4
|
export interface ICommonBannerAndSlimSchema {
|
|
4
5
|
time: number;
|
|
5
6
|
fileStorageId: string;
|
|
@@ -9,7 +10,7 @@ export interface ITimeDurationSchema {
|
|
|
9
10
|
startTime: Date;
|
|
10
11
|
endDate: Date;
|
|
11
12
|
}
|
|
12
|
-
export interface IAdvertisementNewModelAttributes extends IDefaultAttributes {
|
|
13
|
+
export interface IAdvertisementNewModelAttributes extends IDefaultAttributes, Document {
|
|
13
14
|
id: string;
|
|
14
15
|
appType: string;
|
|
15
16
|
userType: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Model } from 'mongoose';
|
|
2
2
|
import { IAdvertisementNewModelAttributes } from '../../interfaces/advertisementNewInterface';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const AdvertisementNewModel: Model<IAdvertisementNewModelAttributes>;
|
|
4
|
+
export default AdvertisementNewModel;
|
|
@@ -44,7 +44,7 @@ const TimeDurationSchema = new mongoose_1.Schema({
|
|
|
44
44
|
startTime: { type: Date, required: false },
|
|
45
45
|
endDate: { type: Date, required: false },
|
|
46
46
|
}, { _id: false });
|
|
47
|
-
const
|
|
47
|
+
const advertisementNewSchema = new mongoose_1.Schema({
|
|
48
48
|
instituteId: {
|
|
49
49
|
type: String,
|
|
50
50
|
trim: true,
|
|
@@ -104,5 +104,5 @@ const advertisementSchema = new mongoose_1.Schema({
|
|
|
104
104
|
timestamps: true,
|
|
105
105
|
versionKey: false,
|
|
106
106
|
});
|
|
107
|
-
const
|
|
108
|
-
exports.default =
|
|
107
|
+
const AdvertisementNewModel = mongoose_1.default.model('advertisement_new', advertisementNewSchema);
|
|
108
|
+
exports.default = AdvertisementNewModel;
|
package/package.json
CHANGED