@grapadigital/shared-schemas 1.0.117 → 1.0.118

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.
@@ -53,8 +53,8 @@ export declare const CompanySchema: import("mongoose").Schema<Company, import("m
53
53
  __v: number;
54
54
  }>;
55
55
  export declare class CommissionRange {
56
- startValue: number | null;
57
- endValue: number | null;
56
+ startValue: number;
57
+ endValue: number;
58
58
  percent: number;
59
59
  }
60
60
  export declare const CommissionRangeSchema: import("mongoose").Schema<CommissionRange, import("mongoose").Model<CommissionRange, any, any, any, import("mongoose").Document<unknown, any, CommissionRange, any, {}> & CommissionRange & {
@@ -47,11 +47,11 @@ let CommissionRange = class CommissionRange {
47
47
  };
48
48
  __decorate([
49
49
  (0, mongoose_1.Prop)({ required: false }),
50
- __metadata("design:type", Object)
50
+ __metadata("design:type", Number)
51
51
  ], CommissionRange.prototype, "startValue", void 0);
52
52
  __decorate([
53
53
  (0, mongoose_1.Prop)({ required: false }),
54
- __metadata("design:type", Object)
54
+ __metadata("design:type", Number)
55
55
  ], CommissionRange.prototype, "endValue", void 0);
56
56
  __decorate([
57
57
  (0, mongoose_1.Prop)({ required: true }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "1.0.117",
3
+ "version": "1.0.118",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -29,10 +29,10 @@ export const CompanySchema = SchemaFactory.createForClass(Company);
29
29
  @Schema({ _id: false })
30
30
  export class CommissionRange {
31
31
  @Prop({ required: false })
32
- startValue: number | null;
32
+ startValue: number;
33
33
 
34
34
  @Prop({ required: false })
35
- endValue: number | null;
35
+ endValue: number;
36
36
 
37
37
  @Prop({ required: true })
38
38
  percent: number;