@kipicore/dbcore 1.1.504 → 1.1.505

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,5 @@
1
1
  import { IDefaultAttributes } from './commonInterface';
2
- import { COMMAN_STATUS } from '../constants/app';
2
+ import { APP_TYPE, COMMAN_STATUS, USER_TYPES } from '../constants/app';
3
3
  import { Document } from 'mongoose';
4
4
  export interface ICommonBannerAndSlimSchema {
5
5
  time: number;
@@ -21,4 +21,6 @@ export interface IAdvertisementModelAttributes extends IDefaultAttributes, Docum
21
21
  startDate: Date;
22
22
  endDate: Date;
23
23
  duration: ITimeDurationSchema[];
24
+ appType: APP_TYPE[];
25
+ userType: USER_TYPES[];
24
26
  }
@@ -84,6 +84,14 @@ const advertisementSchema = new mongoose_1.Schema({
84
84
  type: [TimeDurationSchema],
85
85
  required: false,
86
86
  },
87
+ appType: {
88
+ type: [String],
89
+ required: false,
90
+ },
91
+ userType: {
92
+ type: [String],
93
+ required: false,
94
+ },
87
95
  createdBy: {
88
96
  type: String,
89
97
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.504",
3
+ "version": "1.1.505",
4
4
  "description": "Reusable DB core package with Postgres, MongoDB, models, services, interfaces, and types",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",