orbitx-core-models 11.123.0 → 11.124.0

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.
@@ -10,6 +10,13 @@ export interface IReview {
10
10
  reviewContent: string;
11
11
  media: string[];
12
12
  status: "Pending" | "Approved" | "Rejected";
13
+ /** The Partner-side team User who submitted this review. */
14
+ submittedBy?: Types.ObjectId;
15
+ /** The Ops-side User who last approved/rejected this review. */
16
+ reviewedBy?: Types.ObjectId;
17
+ reviewedAt?: Date;
18
+ /** Ops-only notes, never shown to the partner. */
19
+ internalNotes?: string;
13
20
  createdAt?: Date;
14
21
  updatedAt?: Date;
15
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"review.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/review.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC;IACxB,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,GAAG,OAAO,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,IAAI,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;IAC5C,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
1
+ {"version":3,"file":"review.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/review.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC;IACxB,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,GAAG,OAAO,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,IAAI,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;IAC5C,4DAA4D;IAC5D,WAAW,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC7B,gEAAgE;IAChE,UAAU,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC5B,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,kDAAkD;IAClD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
@@ -1 +1 @@
1
- {"version":3,"file":"review.model.d.ts","sourceRoot":"","sources":["../../src/models/review.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAqEzD,eAAO,MAAM,MAAM;;;;OAAkD,CAAC;AACtE,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"review.model.d.ts","sourceRoot":"","sources":["../../src/models/review.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAqFzD,eAAO,MAAM,MAAM;;;;OAAkD,CAAC;AACtE,eAAe,MAAM,CAAC"}
@@ -89,6 +89,22 @@ const reviewSchema = new mongoose_1.Schema({
89
89
  enum: ["Pending", "Approved", "Rejected"],
90
90
  default: "Pending",
91
91
  },
92
+ submittedBy: {
93
+ type: mongoose_1.Schema.Types.ObjectId,
94
+ ref: "User",
95
+ },
96
+ reviewedBy: {
97
+ type: mongoose_1.Schema.Types.ObjectId,
98
+ ref: "User",
99
+ },
100
+ reviewedAt: {
101
+ type: Date,
102
+ },
103
+ internalNotes: {
104
+ type: String,
105
+ trim: true,
106
+ maxlength: 5000,
107
+ },
92
108
  }, {
93
109
  timestamps: true,
94
110
  toJSON: { virtuals: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orbitx-core-models",
3
- "version": "11.123.0",
3
+ "version": "11.124.0",
4
4
  "description": "Shared Mongoose models and interfaces for OrbitX services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",