orbitx-core-models 9.0.0 → 9.0.2

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,5 +6,7 @@ export interface ITierConfig {
6
6
  minCredits: number;
7
7
  maxCredits?: number | null;
8
8
  commissionRate: number;
9
+ leadsPerClient: number;
10
+ rewardPerClient: number;
9
11
  }
10
12
  //# sourceMappingURL=tierConfig.interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tierConfig.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/tierConfig.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;AAEtD,MAAM,WAAW,WAAW;IAC1B,GAAG,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,IAAI,EAAE,QAAQ,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;CACxB"}
1
+ {"version":3,"file":"tierConfig.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/tierConfig.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;AAEtD,MAAM,WAAW,WAAW;IAC1B,GAAG,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,IAAI,EAAE,QAAQ,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACzB"}
@@ -6,5 +6,6 @@ export interface ITierProgress {
6
6
  activeClientsCount: number;
7
7
  reviewCredits: IReviewCredits;
8
8
  lastUpdatedAt?: Date;
9
+ monthlyLeadsGenerated: number;
9
10
  }
10
11
  //# sourceMappingURL=tierProgress.interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tierProgress.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/tierProgress.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,cAAc,CAAC;IAC9B,aAAa,CAAC,EAAE,IAAI,CAAC;CACtB"}
1
+ {"version":3,"file":"tierProgress.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/tierProgress.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,cAAc,CAAC;IAC9B,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB,qBAAqB,EAAE,MAAM,CAAC;CAC/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"tierConfig.model.d.ts","sourceRoot":"","sources":["../../src/models/tierConfig.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAY,MAAM,oCAAoC,CAAC;AA8B3E,eAAO,MAAM,UAAU;;;;OAA8D,CAAC;AACtF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"tierConfig.model.d.ts","sourceRoot":"","sources":["../../src/models/tierConfig.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAY,MAAM,oCAAoC,CAAC;AAyC3E,eAAO,MAAM,UAAU;;;;OAGtB,CAAC;AACF,eAAe,UAAU,CAAC"}
@@ -48,13 +48,22 @@ const tierConfigSchema = new mongoose_1.Schema({
48
48
  },
49
49
  maxCredits: {
50
50
  type: Number,
51
- required: false,
52
51
  default: null,
53
52
  },
54
53
  commissionRate: {
55
54
  type: Number,
56
55
  required: true,
57
56
  },
57
+ leadsPerClient: {
58
+ type: Number,
59
+ required: true,
60
+ min: 0,
61
+ },
62
+ rewardPerClient: {
63
+ type: Number,
64
+ required: true,
65
+ min: 0,
66
+ },
58
67
  }, { timestamps: false });
59
68
  exports.TierConfig = mongoose_1.default.model("TierConfig", tierConfigSchema);
60
69
  exports.default = exports.TierConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"tierProgress.model.d.ts","sourceRoot":"","sources":["../../src/models/tierProgress.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAErE,eAAO,MAAM,kBAAkB;;;;;;;;EA4B9B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;OAGxB,CAAC;AACF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"tierProgress.model.d.ts","sourceRoot":"","sources":["../../src/models/tierProgress.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAErE,eAAO,MAAM,kBAAkB;;;;;;;;EAiC9B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;OAGxB,CAAC;AACF,eAAe,YAAY,CAAC"}
@@ -54,10 +54,15 @@ exports.TierProgressSchema = new mongoose_1.Schema({
54
54
  min: 0,
55
55
  },
56
56
  },
57
+ monthlyLeadsGenerated: {
58
+ type: Number,
59
+ default: 0,
60
+ min: 0,
61
+ },
57
62
  lastUpdatedAt: {
58
63
  type: Date,
59
64
  default: Date.now,
60
65
  },
61
- }, { _id: false });
66
+ });
62
67
  exports.TierProgress = mongoose_1.default.model("TierProgress", exports.TierProgressSchema);
63
68
  exports.default = exports.TierProgress;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orbitx-core-models",
3
- "version": "9.0.0",
3
+ "version": "9.0.2",
4
4
  "description": "Shared Mongoose models and interfaces for OrbitX services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",