shuttlepro-shared 1.3.57 → 1.3.59
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.
- package/models/AgentActivity.js +0 -34
- package/models/Automation.js +4 -1
- package/models/Shipper.js +5 -0
- package/package.json +1 -1
package/models/AgentActivity.js
CHANGED
|
@@ -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/Automation.js
CHANGED
|
@@ -40,6 +40,10 @@ const AutomationAction = new Schema({
|
|
|
40
40
|
templateId: descriptionJoin,
|
|
41
41
|
sendTicketNumber: descriptionJoin,
|
|
42
42
|
alreadyTicketTemplateId: descriptionJoin,
|
|
43
|
+
columnId: {
|
|
44
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
45
|
+
ref: "Column",
|
|
46
|
+
},
|
|
43
47
|
},
|
|
44
48
|
commentReplyPrivately: {
|
|
45
49
|
enabled: { type: Boolean, default: false },
|
|
@@ -95,7 +99,6 @@ const AutomationAction = new Schema({
|
|
|
95
99
|
enabled: { type: Boolean, default: false },
|
|
96
100
|
notificationMemberIds: [userJoin],
|
|
97
101
|
},
|
|
98
|
-
|
|
99
102
|
orderConfirmation: {
|
|
100
103
|
type: [Schema.Types.Mixed],
|
|
101
104
|
default: [],
|
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(
|