@openinc/parse-server-opendash 3.13.0 → 3.14.1
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/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Maintenance_Ticket, Maintenance_Ticket_Material, Maintenance_Ticket_Source } from "../types";
|
|
2
2
|
type FilterParams = {
|
|
3
|
-
attribute: "objectId" | "state" | "issuecategory" | "user" | "role" | "userRole" | "createdUser" | "source" | "project";
|
|
3
|
+
attribute: "objectId" | "state" | "issuecategory" | "user" | "role" | "userRole" | "createdUser" | "source" | "project" | "title";
|
|
4
4
|
/**
|
|
5
5
|
* the objectId of the attribute to filter by
|
|
6
6
|
*/
|
|
@@ -328,6 +328,9 @@ const filterQueryMap = {
|
|
|
328
328
|
query.include("project");
|
|
329
329
|
query.equalTo("project", new types_1.Maintenance_Project({ objectId: value }));
|
|
330
330
|
},
|
|
331
|
+
title: async (query, value) => {
|
|
332
|
+
query.matches("title", new RegExp(value, "i")); // case-insensitive match
|
|
333
|
+
},
|
|
331
334
|
};
|
|
332
335
|
/**
|
|
333
336
|
* Creates a distinct array based on the getId function and can afterwards filter the array
|