@primocaredentgroup/elettromedicali 0.1.0 → 0.1.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.
Files changed (150) hide show
  1. package/dist/client/index.d.ts +0 -2
  2. package/dist/client/index.d.ts.map +1 -1
  3. package/dist/client/index.js +2 -28
  4. package/dist/client/index.js.map +1 -1
  5. package/dist/component/_generated/api.d.ts +4 -4
  6. package/dist/component/_generated/api.d.ts.map +1 -1
  7. package/dist/component/_generated/component.d.ts +165 -218
  8. package/dist/component/_generated/component.d.ts.map +1 -1
  9. package/dist/component/contracts.d.ts +9 -9
  10. package/dist/component/contracts.d.ts.map +1 -1
  11. package/dist/component/contracts.js +7 -13
  12. package/dist/component/contracts.js.map +1 -1
  13. package/dist/component/crons.d.ts.map +1 -1
  14. package/dist/component/crons.js +1 -2
  15. package/dist/component/crons.js.map +1 -1
  16. package/dist/component/dashboardStats.d.ts +8 -3
  17. package/dist/component/dashboardStats.d.ts.map +1 -1
  18. package/dist/component/dashboardStats.js +24 -39
  19. package/dist/component/dashboardStats.js.map +1 -1
  20. package/dist/component/dashboardStatsCache.d.ts +5 -11
  21. package/dist/component/dashboardStatsCache.d.ts.map +1 -1
  22. package/dist/component/dashboardStatsCache.js +12 -53
  23. package/dist/component/dashboardStatsCache.js.map +1 -1
  24. package/dist/component/deviceCategories.d.ts +22 -15
  25. package/dist/component/deviceCategories.d.ts.map +1 -1
  26. package/dist/component/deviceCategories.js +10 -4
  27. package/dist/component/deviceCategories.js.map +1 -1
  28. package/dist/component/deviceQuestions.d.ts +36 -27
  29. package/dist/component/deviceQuestions.d.ts.map +1 -1
  30. package/dist/component/deviceQuestions.js +22 -5
  31. package/dist/component/deviceQuestions.js.map +1 -1
  32. package/dist/component/deviceRepairHistory.d.ts +3 -3
  33. package/dist/component/deviceRepairHistory.js +1 -1
  34. package/dist/component/deviceRepairHistory.js.map +1 -1
  35. package/dist/component/deviceStatus.d.ts +8 -57
  36. package/dist/component/deviceStatus.d.ts.map +1 -1
  37. package/dist/component/deviceStatus.js +32 -30
  38. package/dist/component/deviceStatus.js.map +1 -1
  39. package/dist/component/devices.d.ts +39 -22
  40. package/dist/component/devices.d.ts.map +1 -1
  41. package/dist/component/devices.js +85 -96
  42. package/dist/component/devices.js.map +1 -1
  43. package/dist/component/emailHelpers.d.ts +10 -3
  44. package/dist/component/emailHelpers.d.ts.map +1 -1
  45. package/dist/component/emailHelpers.js +9 -20
  46. package/dist/component/emailHelpers.js.map +1 -1
  47. package/dist/component/emails.d.ts +5 -5
  48. package/dist/component/emails.js +2 -2
  49. package/dist/component/emails.js.map +1 -1
  50. package/dist/component/http.d.ts.map +1 -1
  51. package/dist/component/http.js +3 -108
  52. package/dist/component/http.js.map +1 -1
  53. package/dist/component/migrationHelpers.d.ts +29 -0
  54. package/dist/component/migrationHelpers.d.ts.map +1 -0
  55. package/dist/component/migrationHelpers.js +84 -0
  56. package/dist/component/migrationHelpers.js.map +1 -0
  57. package/dist/component/roles.d.ts +1 -0
  58. package/dist/component/roles.d.ts.map +1 -1
  59. package/dist/component/roles.js +5 -6
  60. package/dist/component/roles.js.map +1 -1
  61. package/dist/component/schema.d.ts +69 -150
  62. package/dist/component/schema.d.ts.map +1 -1
  63. package/dist/component/schema.js +35 -88
  64. package/dist/component/schema.js.map +1 -1
  65. package/dist/component/slaMonitoring.d.ts +16 -30
  66. package/dist/component/slaMonitoring.d.ts.map +1 -1
  67. package/dist/component/slaMonitoring.js +48 -99
  68. package/dist/component/slaMonitoring.js.map +1 -1
  69. package/dist/component/spareParts.d.ts +11 -48
  70. package/dist/component/spareParts.d.ts.map +1 -1
  71. package/dist/component/spareParts.js +41 -11
  72. package/dist/component/spareParts.js.map +1 -1
  73. package/dist/component/suppliers.d.ts +38 -19
  74. package/dist/component/suppliers.d.ts.map +1 -1
  75. package/dist/component/suppliers.js +63 -44
  76. package/dist/component/suppliers.js.map +1 -1
  77. package/dist/component/ticketComments.d.ts +18 -12
  78. package/dist/component/ticketComments.d.ts.map +1 -1
  79. package/dist/component/ticketComments.js +28 -59
  80. package/dist/component/ticketComments.js.map +1 -1
  81. package/dist/component/ticketDeviceData.d.ts +63 -0
  82. package/dist/component/ticketDeviceData.d.ts.map +1 -0
  83. package/dist/component/ticketDeviceData.js +103 -0
  84. package/dist/component/ticketDeviceData.js.map +1 -0
  85. package/dist/component/ticketExport.d.ts +22 -40
  86. package/dist/component/ticketExport.d.ts.map +1 -1
  87. package/dist/component/ticketExport.js +43 -109
  88. package/dist/component/ticketExport.js.map +1 -1
  89. package/dist/component/ticketHistory.d.ts +4 -4
  90. package/dist/component/ticketHistory.d.ts.map +1 -1
  91. package/dist/component/ticketHistory.js +6 -9
  92. package/dist/component/ticketHistory.js.map +1 -1
  93. package/dist/component/ticketMacros.d.ts +19 -18
  94. package/dist/component/ticketMacros.d.ts.map +1 -1
  95. package/dist/component/ticketMacros.js +24 -30
  96. package/dist/component/ticketMacros.js.map +1 -1
  97. package/dist/component/ticketStatuses.d.ts +1 -0
  98. package/dist/component/ticketStatuses.d.ts.map +1 -1
  99. package/dist/component/ticketStatuses.js +5 -6
  100. package/dist/component/ticketStatuses.js.map +1 -1
  101. package/dist/component/ticketTriggers.d.ts +36 -16
  102. package/dist/component/ticketTriggers.d.ts.map +1 -1
  103. package/dist/component/ticketTriggers.js +115 -153
  104. package/dist/component/ticketTriggers.js.map +1 -1
  105. package/dist/component/userProfiles.d.ts +25 -120
  106. package/dist/component/userProfiles.d.ts.map +1 -1
  107. package/dist/component/userProfiles.js +73 -384
  108. package/dist/component/userProfiles.js.map +1 -1
  109. package/dist/test.d.ts +69 -150
  110. package/dist/test.d.ts.map +1 -1
  111. package/package.json +12 -3
  112. package/src/client/index.ts +2 -30
  113. package/src/component/_generated/api.ts +4 -4
  114. package/src/component/_generated/component.ts +228 -350
  115. package/src/component/contracts.ts +7 -14
  116. package/src/component/crons.ts +2 -7
  117. package/src/component/dashboardStats.ts +24 -41
  118. package/src/component/dashboardStatsCache.ts +12 -61
  119. package/src/component/deviceCategories.ts +12 -4
  120. package/src/component/deviceQuestions.ts +28 -5
  121. package/src/component/deviceRepairHistory.ts +1 -1
  122. package/src/component/deviceStatus.ts +43 -45
  123. package/src/component/devices.ts +87 -106
  124. package/src/component/emailHelpers.ts +9 -19
  125. package/src/component/emails.ts +2 -2
  126. package/src/component/http.ts +3 -108
  127. package/src/component/migrationHelpers.ts +96 -0
  128. package/src/component/roles.ts +5 -6
  129. package/src/component/schema.ts +35 -93
  130. package/src/component/slaMonitoring.ts +52 -107
  131. package/src/component/spareParts.ts +46 -12
  132. package/src/component/suppliers.ts +71 -48
  133. package/src/component/ticketComments.ts +28 -71
  134. package/src/component/ticketDeviceData.ts +113 -0
  135. package/src/component/ticketExport.ts +52 -137
  136. package/src/component/ticketHistory.ts +6 -9
  137. package/src/component/ticketMacros.ts +25 -37
  138. package/src/component/ticketStatuses.ts +5 -6
  139. package/src/component/ticketTriggers.ts +121 -217
  140. package/src/component/userProfiles.ts +67 -451
  141. package/dist/component/clinics.d.ts +0 -103
  142. package/dist/component/clinics.d.ts.map +0 -1
  143. package/dist/component/clinics.js +0 -126
  144. package/dist/component/clinics.js.map +0 -1
  145. package/dist/component/maintenanceTasks.d.ts +0 -733
  146. package/dist/component/maintenanceTasks.d.ts.map +0 -1
  147. package/dist/component/maintenanceTasks.js +0 -937
  148. package/dist/component/maintenanceTasks.js.map +0 -1
  149. package/src/component/clinics.ts +0 -136
  150. package/src/component/maintenanceTasks.ts +0 -1003
@@ -1 +1 @@
1
- {"version":3,"file":"roles.js","sourceRoot":"","sources":["../../src/component/roles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAAC;IAC7B,IAAI,EAAE,EAAE;IACR,OAAO,EAAE,KAAK,EAAE,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AC;QACjC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3B,CAAC;CACF,CAAC,CAAC"}
@@ -43,47 +43,34 @@ declare const _default: import("convex/server").SchemaDefinition<{
43
43
  by_name: ["name", "_creationTime"];
44
44
  }, {}, {}>;
45
45
  user_profiles: import("convex/server").TableDefinition<import("convex/values").VObject<{
46
- name?: string | undefined;
47
- roleId?: import("convex/values").GenericId<"roles"> | undefined;
48
- role?: string | undefined;
49
- clinicId?: import("convex/values").GenericId<"clinics"> | undefined;
46
+ clinicId?: string | undefined;
50
47
  supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
51
48
  primoupClinics?: any[] | undefined;
52
49
  selectedClinicId?: number | undefined;
53
50
  clinicChangeCounter?: number | undefined;
54
- impersonatingUserId?: import("convex/values").GenericId<"user_profiles"> | undefined;
55
- isActive?: boolean | undefined;
51
+ impersonatingUserId?: string | undefined;
56
52
  auth0Id: string;
57
- email: string;
58
53
  }, {
59
54
  auth0Id: import("convex/values").VString<string, "required">;
60
- roleId: import("convex/values").VId<import("convex/values").GenericId<"roles"> | undefined, "optional">;
61
- role: import("convex/values").VString<string | undefined, "optional">;
62
- clinicId: import("convex/values").VId<import("convex/values").GenericId<"clinics"> | undefined, "optional">;
55
+ clinicId: import("convex/values").VString<string | undefined, "optional">;
63
56
  supplierId: import("convex/values").VId<import("convex/values").GenericId<"suppliers"> | undefined, "optional">;
64
- email: import("convex/values").VString<string, "required">;
65
- name: import("convex/values").VString<string | undefined, "optional">;
66
57
  primoupClinics: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
67
58
  selectedClinicId: import("convex/values").VFloat64<number | undefined, "optional">;
68
59
  clinicChangeCounter: import("convex/values").VFloat64<number | undefined, "optional">;
69
- impersonatingUserId: import("convex/values").VId<import("convex/values").GenericId<"user_profiles"> | undefined, "optional">;
70
- isActive: import("convex/values").VBoolean<boolean | undefined, "optional">;
71
- }, "required", "name" | "auth0Id" | "roleId" | "role" | "clinicId" | "supplierId" | "email" | "primoupClinics" | "selectedClinicId" | "clinicChangeCounter" | "impersonatingUserId" | "isActive">, {
60
+ impersonatingUserId: import("convex/values").VString<string | undefined, "optional">;
61
+ }, "required", "auth0Id" | "clinicId" | "supplierId" | "primoupClinics" | "selectedClinicId" | "clinicChangeCounter" | "impersonatingUserId">, {
72
62
  by_auth0Id: ["auth0Id", "_creationTime"];
73
- by_email: ["email", "_creationTime"];
74
- by_roleId: ["roleId", "_creationTime"];
75
63
  by_clinicId: ["clinicId", "_creationTime"];
76
64
  by_supplierId: ["supplierId", "_creationTime"];
77
- by_isActive: ["isActive", "_creationTime"];
78
65
  }, {}, {}>;
79
66
  primoup_tokens: import("convex/server").TableDefinition<import("convex/values").VObject<{
80
67
  refreshToken?: string | undefined;
81
68
  expiresAt?: number | undefined;
82
69
  lastUsedAt?: number | undefined;
83
70
  createdAt: number;
84
- isActive: boolean;
85
71
  userId: string;
86
72
  token: string;
73
+ isActive: boolean;
87
74
  }, {
88
75
  userId: import("convex/values").VString<string, "required">;
89
76
  token: import("convex/values").VString<string, "required">;
@@ -92,7 +79,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
92
79
  createdAt: import("convex/values").VFloat64<number, "required">;
93
80
  lastUsedAt: import("convex/values").VFloat64<number | undefined, "optional">;
94
81
  isActive: import("convex/values").VBoolean<boolean, "required">;
95
- }, "required", "createdAt" | "isActive" | "userId" | "token" | "refreshToken" | "expiresAt" | "lastUsedAt">, {
82
+ }, "required", "createdAt" | "userId" | "token" | "refreshToken" | "expiresAt" | "lastUsedAt" | "isActive">, {
96
83
  by_userId: ["userId", "_creationTime"];
97
84
  by_userId_active: ["userId", "isActive", "_creationTime"];
98
85
  }, {}, {}>;
@@ -117,23 +104,6 @@ declare const _default: import("convex/server").SchemaDefinition<{
117
104
  by_timestamp: ["timestamp", "_creationTime"];
118
105
  by_userId_timestamp: ["userId", "timestamp", "_creationTime"];
119
106
  }, {}, {}>;
120
- clinics: import("convex/server").TableDefinition<import("convex/values").VObject<{
121
- region?: string | undefined;
122
- primoupId?: string | undefined;
123
- name: string;
124
- address: string;
125
- contact_email: string;
126
- contact_phone: string;
127
- }, {
128
- name: import("convex/values").VString<string, "required">;
129
- address: import("convex/values").VString<string, "required">;
130
- contact_email: import("convex/values").VString<string, "required">;
131
- contact_phone: import("convex/values").VString<string, "required">;
132
- region: import("convex/values").VString<string | undefined, "optional">;
133
- primoupId: import("convex/values").VString<string | undefined, "optional">;
134
- }, "required", "name" | "address" | "contact_email" | "contact_phone" | "region" | "primoupId">, {
135
- by_primoupId: ["primoupId", "_creationTime"];
136
- }, {}, {}>;
137
107
  devices: import("convex/server").TableDefinition<import("convex/values").VObject<{
138
108
  supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
139
109
  metadata?: any;
@@ -162,14 +132,14 @@ declare const _default: import("convex/server").SchemaDefinition<{
162
132
  authorizationsStorageIds?: import("convex/values").GenericId<"_storage">[] | undefined;
163
133
  otherAttachmentsStorageIds?: import("convex/values").GenericId<"_storage">[] | undefined;
164
134
  name: string;
165
- clinicId: import("convex/values").GenericId<"clinics">;
135
+ clinicId: string;
166
136
  category: string;
167
137
  brand: string;
168
138
  model: string;
169
139
  serial_number: string;
170
140
  status: "active" | "in_maintenance" | "out_of_service";
171
141
  }, {
172
- clinicId: import("convex/values").VId<import("convex/values").GenericId<"clinics">, "required">;
142
+ clinicId: import("convex/values").VString<string, "required">;
173
143
  primoupClinicId: import("convex/values").VFloat64<number | undefined, "optional">;
174
144
  supplierId: import("convex/values").VId<import("convex/values").GenericId<"suppliers"> | undefined, "optional">;
175
145
  name: import("convex/values").VString<string, "required">;
@@ -226,18 +196,18 @@ declare const _default: import("convex/server").SchemaDefinition<{
226
196
  }, {}, {}>;
227
197
  device_repair_history: import("convex/server").TableDefinition<import("convex/values").VObject<{
228
198
  notes?: string | undefined;
229
- ticketId?: import("convex/values").GenericId<"maintenance_tasks"> | undefined;
199
+ ticketId?: string | undefined;
230
200
  returnedAt?: number | undefined;
231
201
  statusAfterRepair?: "active" | "out_of_service" | undefined;
232
202
  returnedBy?: string | undefined;
233
- clinicId: import("convex/values").GenericId<"clinics">;
203
+ clinicId: string;
234
204
  deviceId: import("convex/values").GenericId<"devices">;
235
205
  sentToRepairAt: number;
236
206
  createdBy: string;
237
207
  }, {
238
208
  deviceId: import("convex/values").VId<import("convex/values").GenericId<"devices">, "required">;
239
- clinicId: import("convex/values").VId<import("convex/values").GenericId<"clinics">, "required">;
240
- ticketId: import("convex/values").VId<import("convex/values").GenericId<"maintenance_tasks"> | undefined, "optional">;
209
+ clinicId: import("convex/values").VString<string, "required">;
210
+ ticketId: import("convex/values").VString<string | undefined, "optional">;
241
211
  sentToRepairAt: import("convex/values").VFloat64<number, "required">;
242
212
  returnedAt: import("convex/values").VFloat64<number | undefined, "optional">;
243
213
  statusAfterRepair: import("convex/values").VUnion<"active" | "out_of_service" | undefined, [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"out_of_service", "required">], "optional", never>;
@@ -287,8 +257,8 @@ declare const _default: import("convex/server").SchemaDefinition<{
287
257
  }, {}, {}>;
288
258
  suppliers: import("convex/server").TableDefinition<import("convex/values").VObject<{
289
259
  type?: string | undefined;
290
- primoupId?: string | undefined;
291
260
  notes?: string | undefined;
261
+ primoupId?: string | undefined;
292
262
  name: string;
293
263
  contact_email: string;
294
264
  contact_phone: string;
@@ -303,7 +273,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
303
273
  notes: import("convex/values").VString<string | undefined, "optional">;
304
274
  primoupId: import("convex/values").VString<string | undefined, "optional">;
305
275
  type: import("convex/values").VString<string | undefined, "optional">;
306
- }, "required", "name" | "type" | "contact_email" | "contact_phone" | "primoupId" | "notes" | "categories" | "sla_days">, {
276
+ }, "required", "name" | "type" | "notes" | "contact_email" | "contact_phone" | "categories" | "sla_days" | "primoupId">, {
307
277
  by_primoupId: ["primoupId", "_creationTime"];
308
278
  }, {}, {}>;
309
279
  vendor_articles: import("convex/server").TableDefinition<import("convex/values").VObject<{
@@ -327,8 +297,8 @@ declare const _default: import("convex/server").SchemaDefinition<{
327
297
  }, {}, {}>;
328
298
  contracts: import("convex/server").TableDefinition<import("convex/values").VObject<{
329
299
  description?: string | undefined;
330
- clinicId?: import("convex/values").GenericId<"clinics"> | undefined;
331
- clinicIds?: import("convex/values").GenericId<"clinics">[] | undefined;
300
+ clinicId?: string | undefined;
301
+ clinicIds?: string[] | undefined;
332
302
  pdfStorageId?: import("convex/values").GenericId<"_storage"> | undefined;
333
303
  pdf_url?: string | undefined;
334
304
  type: "full" | "on_demand" | "mixed";
@@ -339,8 +309,8 @@ declare const _default: import("convex/server").SchemaDefinition<{
339
309
  related_devices: import("convex/values").GenericId<"devices">[];
340
310
  }, {
341
311
  supplierId: import("convex/values").VId<import("convex/values").GenericId<"suppliers">, "required">;
342
- clinicId: import("convex/values").VId<import("convex/values").GenericId<"clinics"> | undefined, "optional">;
343
- clinicIds: import("convex/values").VArray<import("convex/values").GenericId<"clinics">[] | undefined, import("convex/values").VId<import("convex/values").GenericId<"clinics">, "required">, "optional">;
312
+ clinicId: import("convex/values").VString<string | undefined, "optional">;
313
+ clinicIds: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
344
314
  start_date: import("convex/values").VFloat64<number, "required">;
345
315
  end_date: import("convex/values").VFloat64<number, "required">;
346
316
  amount: import("convex/values").VFloat64<number, "required">;
@@ -427,53 +397,20 @@ declare const _default: import("convex/server").SchemaDefinition<{
427
397
  by_applyToAll: ["applyToAll", "_creationTime"];
428
398
  by_parentFieldId: ["parentFieldId", "_creationTime"];
429
399
  }, {}, {}>;
430
- maintenance_tasks: import("convex/server").TableDefinition<import("convex/values").VObject<{
431
- supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
432
- notes?: string | undefined;
400
+ ticket_device_data: import("convex/server").TableDefinition<import("convex/values").VObject<{
433
401
  deviceId?: import("convex/values").GenericId<"devices"> | undefined;
434
- priority?: "low" | "medium" | "high" | undefined;
435
- ticketNumber?: string | undefined;
436
- title?: string | undefined;
437
- createdByEmail?: string | undefined;
438
- photoStorageIds?: import("convex/values").GenericId<"_storage">[] | undefined;
439
- customFields?: any;
440
402
  deviceQuestionAnswers?: {
441
403
  questionId: import("convex/values").GenericId<"device_questions">;
442
404
  question: string;
443
405
  answer: any;
444
406
  }[] | undefined;
445
- slaDeadline?: number | undefined;
446
- slaBreached?: boolean | undefined;
447
- slaWarningSent?: boolean | undefined;
448
- externalTicketId?: string | undefined;
449
- externalTicketNumber?: number | undefined;
450
- importSource?: string | undefined;
451
- legacyTicketId?: number | undefined;
407
+ photoStorageIds?: import("convex/values").GenericId<"_storage">[] | undefined;
452
408
  isExternal?: boolean | undefined;
453
409
  needsAssignment?: boolean | undefined;
454
- closed_at?: number | undefined;
455
- description: string;
456
- clinicId: import("convex/values").GenericId<"clinics">;
457
- status: string;
458
- created_by: string;
459
- photos: string[];
460
- created_at: number;
461
- updated_at: number;
410
+ ticketId: string;
462
411
  }, {
463
- ticketNumber: import("convex/values").VString<string | undefined, "optional">;
464
- title: import("convex/values").VString<string | undefined, "optional">;
412
+ ticketId: import("convex/values").VString<string, "required">;
465
413
  deviceId: import("convex/values").VId<import("convex/values").GenericId<"devices"> | undefined, "optional">;
466
- clinicId: import("convex/values").VId<import("convex/values").GenericId<"clinics">, "required">;
467
- supplierId: import("convex/values").VId<import("convex/values").GenericId<"suppliers"> | undefined, "optional">;
468
- created_by: import("convex/values").VString<string, "required">;
469
- createdByEmail: import("convex/values").VString<string | undefined, "optional">;
470
- description: import("convex/values").VString<string, "required">;
471
- photos: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
472
- photoStorageIds: import("convex/values").VArray<import("convex/values").GenericId<"_storage">[] | undefined, import("convex/values").VId<import("convex/values").GenericId<"_storage">, "required">, "optional">;
473
- status: import("convex/values").VString<string, "required">;
474
- priority: import("convex/values").VUnion<"low" | "medium" | "high" | undefined, [import("convex/values").VLiteral<"low", "required">, import("convex/values").VLiteral<"medium", "required">, import("convex/values").VLiteral<"high", "required">], "optional", never>;
475
- notes: import("convex/values").VString<string | undefined, "optional">;
476
- customFields: import("convex/values").VAny<any, "optional", string>;
477
414
  deviceQuestionAnswers: import("convex/values").VArray<{
478
415
  questionId: import("convex/values").GenericId<"device_questions">;
479
416
  question: string;
@@ -487,30 +424,12 @@ declare const _default: import("convex/server").SchemaDefinition<{
487
424
  question: import("convex/values").VString<string, "required">;
488
425
  answer: import("convex/values").VAny<any, "required", string>;
489
426
  }, "required", "questionId" | "question" | "answer" | `answer.${string}`>, "optional">;
490
- slaDeadline: import("convex/values").VFloat64<number | undefined, "optional">;
491
- slaBreached: import("convex/values").VBoolean<boolean | undefined, "optional">;
492
- slaWarningSent: import("convex/values").VBoolean<boolean | undefined, "optional">;
493
- externalTicketId: import("convex/values").VString<string | undefined, "optional">;
494
- externalTicketNumber: import("convex/values").VFloat64<number | undefined, "optional">;
495
- importSource: import("convex/values").VString<string | undefined, "optional">;
496
- legacyTicketId: import("convex/values").VFloat64<number | undefined, "optional">;
427
+ photoStorageIds: import("convex/values").VArray<import("convex/values").GenericId<"_storage">[] | undefined, import("convex/values").VId<import("convex/values").GenericId<"_storage">, "required">, "optional">;
497
428
  isExternal: import("convex/values").VBoolean<boolean | undefined, "optional">;
498
429
  needsAssignment: import("convex/values").VBoolean<boolean | undefined, "optional">;
499
- created_at: import("convex/values").VFloat64<number, "required">;
500
- updated_at: import("convex/values").VFloat64<number, "required">;
501
- closed_at: import("convex/values").VFloat64<number | undefined, "optional">;
502
- }, "required", "description" | "clinicId" | "supplierId" | "status" | "notes" | "deviceId" | "priority" | "ticketNumber" | "title" | "created_by" | "createdByEmail" | "photos" | "photoStorageIds" | "customFields" | "deviceQuestionAnswers" | "slaDeadline" | "slaBreached" | "slaWarningSent" | "externalTicketId" | "externalTicketNumber" | "importSource" | "legacyTicketId" | "isExternal" | "needsAssignment" | "created_at" | "updated_at" | "closed_at" | `customFields.${string}`>, {
503
- by_ticketNumber: ["ticketNumber", "_creationTime"];
430
+ }, "required", "deviceId" | "ticketId" | "deviceQuestionAnswers" | "photoStorageIds" | "isExternal" | "needsAssignment">, {
431
+ by_ticketId: ["ticketId", "_creationTime"];
504
432
  by_deviceId: ["deviceId", "_creationTime"];
505
- by_clinicId: ["clinicId", "_creationTime"];
506
- by_supplierId: ["supplierId", "_creationTime"];
507
- by_status: ["status", "_creationTime"];
508
- by_status_created_at: ["status", "created_at", "_creationTime"];
509
- by_priority: ["priority", "_creationTime"];
510
- by_created_at: ["created_at", "_creationTime"];
511
- by_slaDeadline: ["slaDeadline", "_creationTime"];
512
- by_externalTicketId: ["externalTicketId", "_creationTime"];
513
- by_importSource: ["importSource", "_creationTime"];
514
433
  }, {}, {}>;
515
434
  dashboard_stats_cache: import("convex/server").TableDefinition<import("convex/values").VObject<{
516
435
  lastUpdated: number;
@@ -552,7 +471,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
552
471
  conditionsList?: {
553
472
  customFieldId?: import("convex/values").GenericId<"ticket_custom_fields"> | undefined;
554
473
  customFieldOperator?: "equals" | "not_equals" | "contains" | "greater_than" | "less_than" | "is_empty" | "is_not_empty" | undefined;
555
- type: "region" | "category" | "brand" | "model" | "status" | "priority" | "trigger_event" | "custom_field";
474
+ type: "category" | "brand" | "model" | "status" | "priority" | "trigger_event" | "region" | "custom_field";
556
475
  negated: boolean;
557
476
  value: string | string[];
558
477
  nextOperator: "AND" | "OR";
@@ -581,14 +500,14 @@ declare const _default: import("convex/server").SchemaDefinition<{
581
500
  actions: {
582
501
  changeStatus?: string | undefined;
583
502
  assignSupplier?: import("convex/values").GenericId<"suppliers"> | undefined;
584
- assignUser?: import("convex/values").GenericId<"user_profiles"> | undefined;
503
+ assignUser?: string | undefined;
585
504
  setSlaHours?: number | undefined;
586
505
  applySlaRule?: boolean | undefined;
587
506
  addNote?: string | undefined;
588
507
  sendNotification?: {
589
508
  recipients: ("admin" | "supplier" | {
590
509
  supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
591
- userId?: import("convex/values").GenericId<"user_profiles"> | undefined;
510
+ userId?: string | undefined;
592
511
  type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
593
512
  } | "clinic")[];
594
513
  message: string;
@@ -615,7 +534,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
615
534
  conditionsList?: {
616
535
  customFieldId?: import("convex/values").GenericId<"ticket_custom_fields"> | undefined;
617
536
  customFieldOperator?: "equals" | "not_equals" | "contains" | "greater_than" | "less_than" | "is_empty" | "is_not_empty" | undefined;
618
- type: "region" | "category" | "brand" | "model" | "status" | "priority" | "trigger_event" | "custom_field";
537
+ type: "category" | "brand" | "model" | "status" | "priority" | "trigger_event" | "region" | "custom_field";
619
538
  negated: boolean;
620
539
  value: string | string[];
621
540
  nextOperator: "AND" | "OR";
@@ -645,19 +564,19 @@ declare const _default: import("convex/server").SchemaDefinition<{
645
564
  conditionsList: import("convex/values").VArray<{
646
565
  customFieldId?: import("convex/values").GenericId<"ticket_custom_fields"> | undefined;
647
566
  customFieldOperator?: "equals" | "not_equals" | "contains" | "greater_than" | "less_than" | "is_empty" | "is_not_empty" | undefined;
648
- type: "region" | "category" | "brand" | "model" | "status" | "priority" | "trigger_event" | "custom_field";
567
+ type: "category" | "brand" | "model" | "status" | "priority" | "trigger_event" | "region" | "custom_field";
649
568
  negated: boolean;
650
569
  value: string | string[];
651
570
  nextOperator: "AND" | "OR";
652
571
  }[] | undefined, import("convex/values").VObject<{
653
572
  customFieldId?: import("convex/values").GenericId<"ticket_custom_fields"> | undefined;
654
573
  customFieldOperator?: "equals" | "not_equals" | "contains" | "greater_than" | "less_than" | "is_empty" | "is_not_empty" | undefined;
655
- type: "region" | "category" | "brand" | "model" | "status" | "priority" | "trigger_event" | "custom_field";
574
+ type: "category" | "brand" | "model" | "status" | "priority" | "trigger_event" | "region" | "custom_field";
656
575
  negated: boolean;
657
576
  value: string | string[];
658
577
  nextOperator: "AND" | "OR";
659
578
  }, {
660
- type: import("convex/values").VUnion<"region" | "category" | "brand" | "model" | "status" | "priority" | "trigger_event" | "custom_field", [import("convex/values").VLiteral<"trigger_event", "required">, import("convex/values").VLiteral<"status", "required">, import("convex/values").VLiteral<"category", "required">, import("convex/values").VLiteral<"brand", "required">, import("convex/values").VLiteral<"model", "required">, import("convex/values").VLiteral<"region", "required">, import("convex/values").VLiteral<"priority", "required">, import("convex/values").VLiteral<"custom_field", "required">], "required", never>;
579
+ type: import("convex/values").VUnion<"category" | "brand" | "model" | "status" | "priority" | "trigger_event" | "region" | "custom_field", [import("convex/values").VLiteral<"trigger_event", "required">, import("convex/values").VLiteral<"status", "required">, import("convex/values").VLiteral<"category", "required">, import("convex/values").VLiteral<"brand", "required">, import("convex/values").VLiteral<"model", "required">, import("convex/values").VLiteral<"region", "required">, import("convex/values").VLiteral<"priority", "required">, import("convex/values").VLiteral<"custom_field", "required">], "required", never>;
661
580
  negated: import("convex/values").VBoolean<boolean, "required">;
662
581
  value: import("convex/values").VUnion<string | string[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">], "required", never>;
663
582
  nextOperator: import("convex/values").VUnion<"AND" | "OR", [import("convex/values").VLiteral<"AND", "required">, import("convex/values").VLiteral<"OR", "required">], "required", never>;
@@ -701,14 +620,14 @@ declare const _default: import("convex/server").SchemaDefinition<{
701
620
  actions: import("convex/values").VObject<{
702
621
  changeStatus?: string | undefined;
703
622
  assignSupplier?: import("convex/values").GenericId<"suppliers"> | undefined;
704
- assignUser?: import("convex/values").GenericId<"user_profiles"> | undefined;
623
+ assignUser?: string | undefined;
705
624
  setSlaHours?: number | undefined;
706
625
  applySlaRule?: boolean | undefined;
707
626
  addNote?: string | undefined;
708
627
  sendNotification?: {
709
628
  recipients: ("admin" | "supplier" | {
710
629
  supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
711
- userId?: import("convex/values").GenericId<"user_profiles"> | undefined;
630
+ userId?: string | undefined;
712
631
  type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
713
632
  } | "clinic")[];
714
633
  message: string;
@@ -726,33 +645,33 @@ declare const _default: import("convex/server").SchemaDefinition<{
726
645
  }, {
727
646
  changeStatus: import("convex/values").VString<string | undefined, "optional">;
728
647
  assignSupplier: import("convex/values").VId<import("convex/values").GenericId<"suppliers"> | undefined, "optional">;
729
- assignUser: import("convex/values").VId<import("convex/values").GenericId<"user_profiles"> | undefined, "optional">;
648
+ assignUser: import("convex/values").VString<string | undefined, "optional">;
730
649
  setSlaHours: import("convex/values").VFloat64<number | undefined, "optional">;
731
650
  applySlaRule: import("convex/values").VBoolean<boolean | undefined, "optional">;
732
651
  addNote: import("convex/values").VString<string | undefined, "optional">;
733
652
  sendNotification: import("convex/values").VObject<{
734
653
  recipients: ("admin" | "supplier" | {
735
654
  supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
736
- userId?: import("convex/values").GenericId<"user_profiles"> | undefined;
655
+ userId?: string | undefined;
737
656
  type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
738
657
  } | "clinic")[];
739
658
  message: string;
740
659
  } | undefined, {
741
660
  recipients: import("convex/values").VArray<("admin" | "supplier" | {
742
661
  supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
743
- userId?: import("convex/values").GenericId<"user_profiles"> | undefined;
662
+ userId?: string | undefined;
744
663
  type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
745
664
  } | "clinic")[], import("convex/values").VUnion<"admin" | "supplier" | {
746
665
  supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
747
- userId?: import("convex/values").GenericId<"user_profiles"> | undefined;
666
+ userId?: string | undefined;
748
667
  type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
749
668
  } | "clinic", [import("convex/values").VObject<{
750
669
  supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
751
- userId?: import("convex/values").GenericId<"user_profiles"> | undefined;
670
+ userId?: string | undefined;
752
671
  type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
753
672
  }, {
754
673
  type: import("convex/values").VUnion<"admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier", [import("convex/values").VLiteral<"admin", "required">, import("convex/values").VLiteral<"supplier", "required">, import("convex/values").VLiteral<"ticket_creator", "required">, import("convex/values").VLiteral<"ticket_assignee", "required">, import("convex/values").VLiteral<"specific_user", "required">, import("convex/values").VLiteral<"specific_supplier", "required">], "required", never>;
755
- userId: import("convex/values").VId<import("convex/values").GenericId<"user_profiles"> | undefined, "optional">;
674
+ userId: import("convex/values").VString<string | undefined, "optional">;
756
675
  supplierId: import("convex/values").VId<import("convex/values").GenericId<"suppliers"> | undefined, "optional">;
757
676
  }, "required", "type" | "supplierId" | "userId">, import("convex/values").VLiteral<"admin", "required">, import("convex/values").VLiteral<"supplier", "required">, import("convex/values").VLiteral<"clinic", "required">], "required", "type" | "supplierId" | "userId">, "required">;
758
677
  message: import("convex/values").VString<string, "required">;
@@ -791,19 +710,19 @@ declare const _default: import("convex/server").SchemaDefinition<{
791
710
  name: string;
792
711
  createdAt: number;
793
712
  isActive: boolean;
794
- createdBy: import("convex/values").GenericId<"user_profiles">;
713
+ createdBy: string;
795
714
  updatedAt: number;
796
715
  actions: {
797
716
  changeStatus?: string | undefined;
798
717
  assignSupplier?: import("convex/values").GenericId<"suppliers"> | undefined;
799
- assignUser?: import("convex/values").GenericId<"user_profiles"> | undefined;
718
+ assignUser?: string | undefined;
800
719
  setSlaHours?: number | undefined;
801
720
  applySlaRule?: boolean | undefined;
802
721
  addNote?: string | undefined;
803
722
  sendNotification?: {
804
723
  recipients: ("admin" | "supplier" | "clinic" | {
805
724
  supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
806
- userId?: import("convex/values").GenericId<"user_profiles"> | undefined;
725
+ userId?: string | undefined;
807
726
  type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
808
727
  })[];
809
728
  message: string;
@@ -819,14 +738,14 @@ declare const _default: import("convex/server").SchemaDefinition<{
819
738
  actions: import("convex/values").VObject<{
820
739
  changeStatus?: string | undefined;
821
740
  assignSupplier?: import("convex/values").GenericId<"suppliers"> | undefined;
822
- assignUser?: import("convex/values").GenericId<"user_profiles"> | undefined;
741
+ assignUser?: string | undefined;
823
742
  setSlaHours?: number | undefined;
824
743
  applySlaRule?: boolean | undefined;
825
744
  addNote?: string | undefined;
826
745
  sendNotification?: {
827
746
  recipients: ("admin" | "supplier" | "clinic" | {
828
747
  supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
829
- userId?: import("convex/values").GenericId<"user_profiles"> | undefined;
748
+ userId?: string | undefined;
830
749
  type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
831
750
  })[];
832
751
  message: string;
@@ -835,33 +754,33 @@ declare const _default: import("convex/server").SchemaDefinition<{
835
754
  }, {
836
755
  changeStatus: import("convex/values").VString<string | undefined, "optional">;
837
756
  assignSupplier: import("convex/values").VId<import("convex/values").GenericId<"suppliers"> | undefined, "optional">;
838
- assignUser: import("convex/values").VId<import("convex/values").GenericId<"user_profiles"> | undefined, "optional">;
757
+ assignUser: import("convex/values").VString<string | undefined, "optional">;
839
758
  setSlaHours: import("convex/values").VFloat64<number | undefined, "optional">;
840
759
  applySlaRule: import("convex/values").VBoolean<boolean | undefined, "optional">;
841
760
  addNote: import("convex/values").VString<string | undefined, "optional">;
842
761
  sendNotification: import("convex/values").VObject<{
843
762
  recipients: ("admin" | "supplier" | "clinic" | {
844
763
  supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
845
- userId?: import("convex/values").GenericId<"user_profiles"> | undefined;
764
+ userId?: string | undefined;
846
765
  type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
847
766
  })[];
848
767
  message: string;
849
768
  } | undefined, {
850
769
  recipients: import("convex/values").VArray<("admin" | "supplier" | "clinic" | {
851
770
  supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
852
- userId?: import("convex/values").GenericId<"user_profiles"> | undefined;
771
+ userId?: string | undefined;
853
772
  type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
854
773
  })[], import("convex/values").VUnion<"admin" | "supplier" | "clinic" | {
855
774
  supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
856
- userId?: import("convex/values").GenericId<"user_profiles"> | undefined;
775
+ userId?: string | undefined;
857
776
  type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
858
777
  }, [import("convex/values").VObject<{
859
778
  supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
860
- userId?: import("convex/values").GenericId<"user_profiles"> | undefined;
779
+ userId?: string | undefined;
861
780
  type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
862
781
  }, {
863
782
  type: import("convex/values").VUnion<"admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier", [import("convex/values").VLiteral<"admin", "required">, import("convex/values").VLiteral<"supplier", "required">, import("convex/values").VLiteral<"ticket_creator", "required">, import("convex/values").VLiteral<"ticket_assignee", "required">, import("convex/values").VLiteral<"specific_user", "required">, import("convex/values").VLiteral<"specific_supplier", "required">], "required", never>;
864
- userId: import("convex/values").VId<import("convex/values").GenericId<"user_profiles"> | undefined, "optional">;
783
+ userId: import("convex/values").VString<string | undefined, "optional">;
865
784
  supplierId: import("convex/values").VId<import("convex/values").GenericId<"suppliers"> | undefined, "optional">;
866
785
  }, "required", "type" | "supplierId" | "userId">, import("convex/values").VLiteral<"admin", "required">, import("convex/values").VLiteral<"supplier", "required">, import("convex/values").VLiteral<"clinic", "required">], "required", "type" | "supplierId" | "userId">, "required">;
867
786
  message: import("convex/values").VString<string, "required">;
@@ -870,7 +789,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
870
789
  }, "required", "changeStatus" | "assignSupplier" | "assignUser" | "setSlaHours" | "applySlaRule" | "addNote" | "sendNotification" | "setPriority" | "sendNotification.recipients" | "sendNotification.message">;
871
790
  createdAt: import("convex/values").VFloat64<number, "required">;
872
791
  updatedAt: import("convex/values").VFloat64<number, "required">;
873
- createdBy: import("convex/values").VId<import("convex/values").GenericId<"user_profiles">, "required">;
792
+ createdBy: import("convex/values").VString<string, "required">;
874
793
  }, "required", "name" | "description" | "createdAt" | "isActive" | "createdBy" | "updatedAt" | "actions" | "actions.changeStatus" | "actions.assignSupplier" | "actions.assignUser" | "actions.setSlaHours" | "actions.applySlaRule" | "actions.addNote" | "actions.sendNotification" | "actions.setPriority" | "actions.sendNotification.recipients" | "actions.sendNotification.message" | "isGlobal">, {
875
794
  by_createdBy: ["createdBy", "_creationTime"];
876
795
  by_isGlobal: ["isGlobal", "_creationTime"];
@@ -1068,7 +987,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
1068
987
  revokedBy: import("convex/values").VString<string | undefined, "optional">;
1069
988
  notes: import("convex/values").VString<string | undefined, "optional">;
1070
989
  createdAt: import("convex/values").VFloat64<number, "required">;
1071
- }, "required", "name" | "createdAt" | "isActive" | "expiresAt" | "lastUsedAt" | "notes" | "createdBy" | "createdByEmail" | "keyHash" | "keyPrefix" | "permissions" | "usageCount" | "revokedAt" | "revokedBy">, {
990
+ }, "required", "name" | "createdAt" | "expiresAt" | "lastUsedAt" | "isActive" | "notes" | "createdBy" | "keyHash" | "keyPrefix" | "permissions" | "createdByEmail" | "usageCount" | "revokedAt" | "revokedBy">, {
1072
991
  by_keyHash: ["keyHash", "_creationTime"];
1073
992
  by_keyPrefix: ["keyPrefix", "_creationTime"];
1074
993
  by_isActive: ["isActive", "_creationTime"];
@@ -1084,15 +1003,15 @@ declare const _default: import("convex/server").SchemaDefinition<{
1084
1003
  attachments?: import("convex/values").GenericId<"_storage">[] | undefined;
1085
1004
  mentions?: {
1086
1005
  name: string;
1006
+ userId: string;
1087
1007
  email: string;
1088
- userId: import("convex/values").GenericId<"user_profiles">;
1089
1008
  }[] | undefined;
1090
1009
  createdAt: number;
1091
- taskId: import("convex/values").GenericId<"maintenance_tasks">;
1010
+ ticketId: string;
1092
1011
  authorId: string;
1093
1012
  content: string;
1094
1013
  }, {
1095
- taskId: import("convex/values").VId<import("convex/values").GenericId<"maintenance_tasks">, "required">;
1014
+ ticketId: import("convex/values").VString<string, "required">;
1096
1015
  authorId: import("convex/values").VString<string, "required">;
1097
1016
  authorName: import("convex/values").VString<string | undefined, "optional">;
1098
1017
  authorEmail: import("convex/values").VString<string | undefined, "optional">;
@@ -1103,23 +1022,23 @@ declare const _default: import("convex/server").SchemaDefinition<{
1103
1022
  attachments: import("convex/values").VArray<import("convex/values").GenericId<"_storage">[] | undefined, import("convex/values").VId<import("convex/values").GenericId<"_storage">, "required">, "optional">;
1104
1023
  mentions: import("convex/values").VArray<{
1105
1024
  name: string;
1025
+ userId: string;
1106
1026
  email: string;
1107
- userId: import("convex/values").GenericId<"user_profiles">;
1108
1027
  }[] | undefined, import("convex/values").VObject<{
1109
1028
  name: string;
1029
+ userId: string;
1110
1030
  email: string;
1111
- userId: import("convex/values").GenericId<"user_profiles">;
1112
1031
  }, {
1113
- userId: import("convex/values").VId<import("convex/values").GenericId<"user_profiles">, "required">;
1032
+ userId: import("convex/values").VString<string, "required">;
1114
1033
  name: import("convex/values").VString<string, "required">;
1115
1034
  email: import("convex/values").VString<string, "required">;
1116
- }, "required", "name" | "email" | "userId">, "optional">;
1035
+ }, "required", "name" | "userId" | "email">, "optional">;
1117
1036
  createdAt: import("convex/values").VFloat64<number, "required">;
1118
1037
  updatedAt: import("convex/values").VFloat64<number | undefined, "optional">;
1119
- }, "required", "createdAt" | "updatedAt" | "taskId" | "authorId" | "authorName" | "authorEmail" | "authorRole" | "content" | "isInternal" | "isFromApi" | "attachments" | "mentions">, {
1120
- by_taskId: ["taskId", "_creationTime"];
1038
+ }, "required", "createdAt" | "ticketId" | "updatedAt" | "authorId" | "authorName" | "authorEmail" | "authorRole" | "content" | "isInternal" | "isFromApi" | "attachments" | "mentions">, {
1039
+ by_ticketId: ["ticketId", "_creationTime"];
1121
1040
  by_authorId: ["authorId", "_creationTime"];
1122
- by_taskId_createdAt: ["taskId", "createdAt", "_creationTime"];
1041
+ by_ticketId_createdAt: ["ticketId", "createdAt", "_creationTime"];
1123
1042
  }, {}, {}>;
1124
1043
  spare_part_orders: import("convex/server").TableDefinition<import("convex/values").VObject<{
1125
1044
  notes?: string | undefined;
@@ -1218,7 +1137,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
1218
1137
  createdAt: import("convex/values").VString<string | undefined, "optional">;
1219
1138
  updatedAt: import("convex/values").VString<string | undefined, "optional">;
1220
1139
  importedAt: import("convex/values").VFloat64<number, "required">;
1221
- }, "required", "name" | "type" | "createdAt" | "primoupId" | "updatedAt" | "parentId" | "activeWarehouseCategory" | "orisId" | "note" | "importedAt">, {
1140
+ }, "required", "name" | "type" | "createdAt" | "updatedAt" | "primoupId" | "parentId" | "activeWarehouseCategory" | "orisId" | "note" | "importedAt">, {
1222
1141
  by_primoupId: ["primoupId", "_creationTime"];
1223
1142
  by_parentId: ["parentId", "_creationTime"];
1224
1143
  by_note: ["note", "_creationTime"];
@@ -1227,7 +1146,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
1227
1146
  }, {}, {}>;
1228
1147
  email_logs: import("convex/server").TableDefinition<import("convex/values").VObject<{
1229
1148
  errorMessage?: string | undefined;
1230
- ticketId?: import("convex/values").GenericId<"maintenance_tasks"> | undefined;
1149
+ ticketId?: string | undefined;
1231
1150
  resendId?: string | undefined;
1232
1151
  status: "pending" | "sent" | "failed";
1233
1152
  from: string;
@@ -1240,7 +1159,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
1240
1159
  to: import("convex/values").VUnion<string | string[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">], "required", never>;
1241
1160
  subject: import("convex/values").VString<string, "required">;
1242
1161
  html: import("convex/values").VString<string, "required">;
1243
- ticketId: import("convex/values").VId<import("convex/values").GenericId<"maintenance_tasks"> | undefined, "optional">;
1162
+ ticketId: import("convex/values").VString<string | undefined, "optional">;
1244
1163
  status: import("convex/values").VUnion<"pending" | "sent" | "failed", [import("convex/values").VLiteral<"sent", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"pending", "required">], "required", never>;
1245
1164
  resendId: import("convex/values").VString<string | undefined, "optional">;
1246
1165
  errorMessage: import("convex/values").VString<string | undefined, "optional">;
@@ -1264,11 +1183,11 @@ declare const _default: import("convex/server").SchemaDefinition<{
1264
1183
  performedByName?: string | undefined;
1265
1184
  performedByEmail?: string | undefined;
1266
1185
  timestamp: number;
1267
- ticketId: import("convex/values").GenericId<"maintenance_tasks">;
1186
+ ticketId: string;
1268
1187
  eventType: "status_change" | "sla_warning" | "sla_breach" | "created" | "assignee_change" | "priority_change" | "trigger_executed" | "comment_added" | "sla_set" | "updated";
1269
1188
  isSystemAction: boolean;
1270
1189
  }, {
1271
- ticketId: import("convex/values").VId<import("convex/values").GenericId<"maintenance_tasks">, "required">;
1190
+ ticketId: import("convex/values").VString<string, "required">;
1272
1191
  eventType: import("convex/values").VUnion<"status_change" | "sla_warning" | "sla_breach" | "created" | "assignee_change" | "priority_change" | "trigger_executed" | "comment_added" | "sla_set" | "updated", [import("convex/values").VLiteral<"created", "required">, import("convex/values").VLiteral<"status_change", "required">, import("convex/values").VLiteral<"assignee_change", "required">, import("convex/values").VLiteral<"priority_change", "required">, import("convex/values").VLiteral<"trigger_executed", "required">, import("convex/values").VLiteral<"comment_added", "required">, import("convex/values").VLiteral<"sla_set", "required">, import("convex/values").VLiteral<"sla_warning", "required">, import("convex/values").VLiteral<"sla_breach", "required">, import("convex/values").VLiteral<"updated", "required">], "required", never>;
1273
1192
  oldValue: import("convex/values").VString<string | undefined, "optional">;
1274
1193
  newValue: import("convex/values").VString<string | undefined, "optional">;