shuttlepro-shared 1.4.4 → 1.4.6

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.
@@ -84,7 +84,12 @@ const searchCustomerProfilesByName = async (
84
84
  const skip = (page - 1) * limit;
85
85
 
86
86
  const [profiles, total] = await Promise.all([
87
- CustomerProfile.find(queryObj).skip(skip).limit(limit).lean().exec(),
87
+ CustomerProfile.find(queryObj)
88
+ .sort({ createdAt: -1 })
89
+ .skip(skip)
90
+ .limit(limit)
91
+ .lean()
92
+ .exec(),
88
93
  CustomerProfile.countDocuments(queryObj),
89
94
  ]);
90
95
 
@@ -206,6 +206,25 @@ const AutomationCondition = new Schema({
206
206
  type: String,
207
207
  },
208
208
  ],
209
+ valuesArr: {
210
+ type: [
211
+ {
212
+ id: {
213
+ type: String,
214
+ default: "",
215
+ },
216
+ name: {
217
+ type: String,
218
+ default: "",
219
+ },
220
+ picture: {
221
+ type: String,
222
+ default: "",
223
+ },
224
+ },
225
+ ],
226
+ default: [],
227
+ },
209
228
  contains: {
210
229
  type: String,
211
230
  enum: ["equalTo", "contains", "notEqualTo", "notContains"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {