shuttlepro-shared 1.3.57 → 1.3.58

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.
@@ -106,40 +106,6 @@ const agentActivitySchema = new mongoose.Schema(
106
106
  { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
107
107
  );
108
108
 
109
- agentActivitySchema.index({ workspaceId: 1 });
110
- agentActivitySchema.index({ date: 1 });
111
- agentActivitySchema.index({ agentId: 1 });
112
- agentActivitySchema.index({ "activities.platformId": 1 });
113
- agentActivitySchema.index({ "activities.labels": 1 });
114
- agentActivitySchema.index({ workspaceId: 1, date: 1, agentId: 1 });
115
- agentActivitySchema.index({
116
- workspaceId: 1,
117
- date: 1,
118
- agentId: 1,
119
- "activities.platformId": 1,
120
- "activities.labels": 1,
121
- });
122
- agentActivitySchema.index({
123
- workspaceId: 1,
124
- date: 1,
125
- agentId: 1,
126
- "activities.platformId": 1,
127
- });
128
- agentActivitySchema.index({
129
- workspaceId: 1,
130
- date: 1,
131
- agentId: 1,
132
- "activities.labels": 1,
133
- });
134
- agentActivitySchema.index(
135
- { "activities.platformId": 1, "activities.labels": 1 },
136
- {
137
- partialFilterExpression: {
138
- "activities.platformId": { $exists: true },
139
- "activities.labels": { $exists: true },
140
- },
141
- }
142
- );
143
109
  const AgentActivity = mongoose.model("AgentActivity", agentActivitySchema);
144
110
 
145
111
  const findOneAndUpdateAgentActivity = async (
package/models/Shipper.js CHANGED
@@ -31,6 +31,11 @@ const shipperInformationSchema = new Schema({
31
31
  shipperCityId: { type: Number, default: 0 }, //this will not be shown
32
32
  shipperAreaId: { type: Number, default: 0 }, //this will not be shown
33
33
  locationId: { type: Number, default: 0 }, //this will not be shown
34
+ // Missing fields added:
35
+ shippmentType: { type: String, default: "" },
36
+ bankId: { type: Schema.Types.Mixed, default: "" },
37
+ companyId: { type: String, default: "" },
38
+ shipperDetails: [],
34
39
  });
35
40
 
36
41
  const shipperSchema = new mongoose.Schema(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.3.57",
3
+ "version": "1.3.58",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {