@kipicore/dbcore 1.1.447 → 1.1.449

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.
@@ -110,7 +110,8 @@ export declare enum COMMAN_STATUS {
110
110
  export declare enum OFFER_COMMAND_STATUS {
111
111
  UPDATED = "UPDATED",
112
112
  ACTIVE = "ACTIVE",
113
- INACTIVE = "INACTIVE"
113
+ INACTIVE = "INACTIVE",
114
+ CUSTOM = "CUSTOM"
114
115
  }
115
116
  export declare enum USER_COURSE_STATUS {
116
117
  RUNNING = "RUNNING",
@@ -140,6 +140,7 @@ var OFFER_COMMAND_STATUS;
140
140
  OFFER_COMMAND_STATUS["UPDATED"] = "UPDATED";
141
141
  OFFER_COMMAND_STATUS["ACTIVE"] = "ACTIVE";
142
142
  OFFER_COMMAND_STATUS["INACTIVE"] = "INACTIVE";
143
+ OFFER_COMMAND_STATUS["CUSTOM"] = "CUSTOM";
143
144
  })(OFFER_COMMAND_STATUS || (exports.OFFER_COMMAND_STATUS = OFFER_COMMAND_STATUS = {}));
144
145
  var USER_COURSE_STATUS;
145
146
  (function (USER_COURSE_STATUS) {
@@ -35,4 +35,5 @@ export interface IOfferAndDiscountModelAttributes extends IDefaultAttributes, Do
35
35
  needApproval: boolean;
36
36
  userId: string;
37
37
  status: OFFER_COMMAND_STATUS;
38
+ parentOfferId?: string;
38
39
  }
@@ -124,6 +124,9 @@ const OfferAndDiscountSchema = new mongoose_1.Schema({
124
124
  usedCount: {
125
125
  type: Number,
126
126
  },
127
+ parentOfferId: {
128
+ type: String,
129
+ },
127
130
  whoCanOfferApply: { type: [String], default: [] },
128
131
  paymentMode: { type: [String], default: [] },
129
132
  conditions: [ConditionSchema],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.447",
3
+ "version": "1.1.449",
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",