@cool-digital-solutions/interferir-models 1.4.33 → 1.4.34

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.
@@ -8,7 +8,8 @@ const express_http_context_1 = __importDefault(require("express-http-context"));
8
8
  const _config_1 = require("../config");
9
9
  const pricing_analysis_credit_usage_type_1 = require("../types/pricing-analysis-credit-usage.type");
10
10
  const PricingAnalysisCreditUsageSchema = new mongoose_1.Schema({
11
- projectAnalysis: { type: mongoose_1.Types.ObjectId, ref: 'PricingProjectAnalysis', required: true },
11
+ projectAnalysis: { type: mongoose_1.Types.ObjectId, ref: 'PricingProjectAnalysis' },
12
+ analysisBaseId: { type: mongoose_1.Schema.Types.ObjectId },
12
13
  companyPlan: { type: mongoose_1.Types.ObjectId, ref: 'PricingCompanyPlan', required: true },
13
14
  usage: { type: Number, required: true },
14
15
  type: { type: String, enum: Object.values(pricing_analysis_credit_usage_type_1.PricingAnalysisCreditUsageType), required: true },
@@ -40,6 +40,7 @@ export interface IPricingAnalysisCreditSnapshot {
40
40
  }
41
41
  export interface IPricingAnalysisCreditUsage extends BaseSchema {
42
42
  projectAnalysis: Types.ObjectId | IPricingProjectAnalysis;
43
+ analysisBaseId: Types.ObjectId;
43
44
  companyPlan: Types.ObjectId | IPricingCompanyPlan;
44
45
  usage: number;
45
46
  type: PricingAnalysisCreditUsageType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cool-digital-solutions/interferir-models",
3
- "version": "1.4.33",
3
+ "version": "1.4.34",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist/**/*"