@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
@@ -29,5 +29,3 @@ For a full list of options see the file at [CONFIG.md](https://github.com/open-i
29
29
  ## Development
30
30
 
31
31
  See the file at [DEVELOPMENT.md](https://github.com/open-inc/node-parse-server-opendash/blob/master/DEVELOPMENT.md)
32
-
33
- ##
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openinc/parse-server-opendash",
3
- "version": "3.13.0",
3
+ "version": "3.14.1",
4
4
  "description": "Parse Server Cloud Code for open.INC Stack.",
5
5
  "packageManager": "pnpm@10.13.1",
6
6
  "keywords": [