@dragonmastery/dragoncore-api 0.0.4 → 0.0.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.
package/dist/index.mjs CHANGED
@@ -4061,6 +4061,15 @@ let NoteRepo = class NoteRepo$1 {
4061
4061
  return result[0];
4062
4062
  }
4063
4063
  /**
4064
+ * Get all note IDs for records (e.g. tracker + its followups).
4065
+ * Used to include note activity in tracker activity timeline.
4066
+ */
4067
+ async readAllIdsForRecords(records) {
4068
+ if (records.length === 0) return [];
4069
+ const conditions = [isNull(note_table.deleted_at), or(...records.map((r) => and(eq(note_table.record_id, r.record_id), eq(note_table.record_type, r.record_type))))];
4070
+ return (await this.router.queryLatest((db) => db.select({ id: note_table.id }).from(note_table).where(and(...conditions)))).map((r) => r.id);
4071
+ }
4072
+ /**
4064
4073
  * Get unique tags for notes
4065
4074
  */
4066
4075
  async getUniqueTags() {
@@ -5603,6 +5612,13 @@ function registerSupportStaffDependencies() {
5603
5612
  //#endregion
5604
5613
  //#region src/slices/support_ticket/db/support_ticket_query_config.ts
5605
5614
  const supportTicketFields = {
5615
+ display_id: {
5616
+ column: support_ticket_table.display_id,
5617
+ type: "number",
5618
+ filterable: false,
5619
+ searchable: true,
5620
+ sortable: true
5621
+ },
5606
5622
  type: {
5607
5623
  column: support_ticket_table.type,
5608
5624
  type: "string",