@grapadigital/shared-schemas 1.0.140 → 1.0.141

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.
@@ -45,6 +45,7 @@ export declare class Commission {
45
45
  description?: string;
46
46
  createdAt?: Date;
47
47
  updatedAt?: Date;
48
+ organization?: Types.ObjectId;
48
49
  }
49
50
  export declare const CommissionSchema: MongooseSchema<Commission, import("mongoose").Model<Commission, any, any, any, import("mongoose").Document<unknown, any, Commission, any, {}> & Commission & Required<{
50
51
  _id: Types.ObjectId;
@@ -100,6 +100,10 @@ __decorate([
100
100
  (0, mongoose_1.Prop)({ type: Date, default: Date.now, required: false }),
101
101
  __metadata("design:type", Date)
102
102
  ], Commission.prototype, "updatedAt", void 0);
103
+ __decorate([
104
+ (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, required: false }),
105
+ __metadata("design:type", mongoose_2.Types.ObjectId)
106
+ ], Commission.prototype, "organization", void 0);
103
107
  Commission = __decorate([
104
108
  (0, mongoose_1.Schema)({ timestamps: true })
105
109
  ], Commission);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "1.0.140",
3
+ "version": "1.0.141",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -80,6 +80,9 @@ export class Commission {
80
80
 
81
81
  @Prop({ type: Date, default: Date.now, required: false })
82
82
  updatedAt?: Date;
83
+
84
+ @Prop({ type: MongooseSchema.Types.ObjectId, required: false })
85
+ organization?: Types.ObjectId;
83
86
  }
84
87
 
85
88
  export const CommissionSchema = SchemaFactory.createForClass(Commission);