@dynamatix/gb-schemas 1.3.267 → 1.3.269

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.
@@ -35,8 +35,8 @@ declare const ApplicationsTaskModel: mongoose.Model<{
35
35
  createdOn: string;
36
36
  additionalData: {
37
37
  statusLid: mongoose.Types.ObjectId;
38
- requesterId: string;
39
- responderId: string;
38
+ requesterId: mongoose.Types.ObjectId;
39
+ responderId: mongoose.Types.ObjectId;
40
40
  concernTypeLid: mongoose.Types.ObjectId;
41
41
  concernComments: string;
42
42
  resolvedComments: string;
@@ -62,8 +62,8 @@ declare const ApplicationsTaskModel: mongoose.Model<{
62
62
  createdOn: string;
63
63
  additionalData: {
64
64
  statusLid: mongoose.Types.ObjectId;
65
- requesterId: string;
66
- responderId: string;
65
+ requesterId: mongoose.Types.ObjectId;
66
+ responderId: mongoose.Types.ObjectId;
67
67
  concernTypeLid: mongoose.Types.ObjectId;
68
68
  concernComments: string;
69
69
  resolvedComments: string;
@@ -89,8 +89,8 @@ declare const ApplicationsTaskModel: mongoose.Model<{
89
89
  createdOn: string;
90
90
  additionalData: {
91
91
  statusLid: mongoose.Types.ObjectId;
92
- requesterId: string;
93
- responderId: string;
92
+ requesterId: mongoose.Types.ObjectId;
93
+ responderId: mongoose.Types.ObjectId;
94
94
  concernTypeLid: mongoose.Types.ObjectId;
95
95
  concernComments: string;
96
96
  resolvedComments: string;
@@ -122,8 +122,8 @@ declare const ApplicationsTaskModel: mongoose.Model<{
122
122
  createdOn: string;
123
123
  additionalData: {
124
124
  statusLid: mongoose.Types.ObjectId;
125
- requesterId: string;
126
- responderId: string;
125
+ requesterId: mongoose.Types.ObjectId;
126
+ responderId: mongoose.Types.ObjectId;
127
127
  concernTypeLid: mongoose.Types.ObjectId;
128
128
  concernComments: string;
129
129
  resolvedComments: string;
@@ -149,8 +149,8 @@ declare const ApplicationsTaskModel: mongoose.Model<{
149
149
  createdOn: string;
150
150
  additionalData: {
151
151
  statusLid: mongoose.Types.ObjectId;
152
- requesterId: string;
153
- responderId: string;
152
+ requesterId: mongoose.Types.ObjectId;
153
+ responderId: mongoose.Types.ObjectId;
154
154
  concernTypeLid: mongoose.Types.ObjectId;
155
155
  concernComments: string;
156
156
  resolvedComments: string;
@@ -176,8 +176,8 @@ declare const ApplicationsTaskModel: mongoose.Model<{
176
176
  createdOn: string;
177
177
  additionalData: {
178
178
  statusLid: mongoose.Types.ObjectId;
179
- requesterId: string;
180
- responderId: string;
179
+ requesterId: mongoose.Types.ObjectId;
180
+ responderId: mongoose.Types.ObjectId;
181
181
  concernTypeLid: mongoose.Types.ObjectId;
182
182
  concernComments: string;
183
183
  resolvedComments: string;
@@ -1,8 +1,8 @@
1
1
  import mongoose from "mongoose";
2
2
  // Additional Data schema for the nested object
3
3
  const additionalDataSchema = new mongoose.Schema({
4
- requesterId: { type: String, required: true },
5
- responderId: { type: String, required: true },
4
+ requesterId: { type: mongoose.Schema.Types.ObjectId, ref: "User", required: true },
5
+ responderId: { type: mongoose.Schema.Types.ObjectId, ref: "User", required: true },
6
6
  statusLid: { type: mongoose.Schema.Types.ObjectId, ref: "Status", required: true },
7
7
  concernTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "ConcernType", required: true },
8
8
  concernComments: { type: String, required: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "1.3.267",
3
+ "version": "1.3.269",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",