@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.
- package/dist/client/index.d.ts +0 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +2 -28
- package/dist/client/index.js.map +1 -1
- package/dist/component/_generated/api.d.ts +4 -4
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/component.d.ts +165 -218
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/contracts.d.ts +9 -9
- package/dist/component/contracts.d.ts.map +1 -1
- package/dist/component/contracts.js +7 -13
- package/dist/component/contracts.js.map +1 -1
- package/dist/component/crons.d.ts.map +1 -1
- package/dist/component/crons.js +1 -2
- package/dist/component/crons.js.map +1 -1
- package/dist/component/dashboardStats.d.ts +8 -3
- package/dist/component/dashboardStats.d.ts.map +1 -1
- package/dist/component/dashboardStats.js +24 -39
- package/dist/component/dashboardStats.js.map +1 -1
- package/dist/component/dashboardStatsCache.d.ts +5 -11
- package/dist/component/dashboardStatsCache.d.ts.map +1 -1
- package/dist/component/dashboardStatsCache.js +12 -53
- package/dist/component/dashboardStatsCache.js.map +1 -1
- package/dist/component/deviceCategories.d.ts +22 -15
- package/dist/component/deviceCategories.d.ts.map +1 -1
- package/dist/component/deviceCategories.js +10 -4
- package/dist/component/deviceCategories.js.map +1 -1
- package/dist/component/deviceQuestions.d.ts +36 -27
- package/dist/component/deviceQuestions.d.ts.map +1 -1
- package/dist/component/deviceQuestions.js +22 -5
- package/dist/component/deviceQuestions.js.map +1 -1
- package/dist/component/deviceRepairHistory.d.ts +3 -3
- package/dist/component/deviceRepairHistory.js +1 -1
- package/dist/component/deviceRepairHistory.js.map +1 -1
- package/dist/component/deviceStatus.d.ts +8 -57
- package/dist/component/deviceStatus.d.ts.map +1 -1
- package/dist/component/deviceStatus.js +32 -30
- package/dist/component/deviceStatus.js.map +1 -1
- package/dist/component/devices.d.ts +39 -22
- package/dist/component/devices.d.ts.map +1 -1
- package/dist/component/devices.js +85 -96
- package/dist/component/devices.js.map +1 -1
- package/dist/component/emailHelpers.d.ts +10 -3
- package/dist/component/emailHelpers.d.ts.map +1 -1
- package/dist/component/emailHelpers.js +9 -20
- package/dist/component/emailHelpers.js.map +1 -1
- package/dist/component/emails.d.ts +5 -5
- package/dist/component/emails.js +2 -2
- package/dist/component/emails.js.map +1 -1
- package/dist/component/http.d.ts.map +1 -1
- package/dist/component/http.js +3 -108
- package/dist/component/http.js.map +1 -1
- package/dist/component/migrationHelpers.d.ts +29 -0
- package/dist/component/migrationHelpers.d.ts.map +1 -0
- package/dist/component/migrationHelpers.js +84 -0
- package/dist/component/migrationHelpers.js.map +1 -0
- package/dist/component/roles.d.ts +1 -0
- package/dist/component/roles.d.ts.map +1 -1
- package/dist/component/roles.js +5 -6
- package/dist/component/roles.js.map +1 -1
- package/dist/component/schema.d.ts +69 -150
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +35 -88
- package/dist/component/schema.js.map +1 -1
- package/dist/component/slaMonitoring.d.ts +16 -30
- package/dist/component/slaMonitoring.d.ts.map +1 -1
- package/dist/component/slaMonitoring.js +48 -99
- package/dist/component/slaMonitoring.js.map +1 -1
- package/dist/component/spareParts.d.ts +11 -48
- package/dist/component/spareParts.d.ts.map +1 -1
- package/dist/component/spareParts.js +41 -11
- package/dist/component/spareParts.js.map +1 -1
- package/dist/component/suppliers.d.ts +38 -19
- package/dist/component/suppliers.d.ts.map +1 -1
- package/dist/component/suppliers.js +63 -44
- package/dist/component/suppliers.js.map +1 -1
- package/dist/component/ticketComments.d.ts +18 -12
- package/dist/component/ticketComments.d.ts.map +1 -1
- package/dist/component/ticketComments.js +28 -59
- package/dist/component/ticketComments.js.map +1 -1
- package/dist/component/ticketDeviceData.d.ts +63 -0
- package/dist/component/ticketDeviceData.d.ts.map +1 -0
- package/dist/component/ticketDeviceData.js +103 -0
- package/dist/component/ticketDeviceData.js.map +1 -0
- package/dist/component/ticketExport.d.ts +22 -40
- package/dist/component/ticketExport.d.ts.map +1 -1
- package/dist/component/ticketExport.js +43 -109
- package/dist/component/ticketExport.js.map +1 -1
- package/dist/component/ticketHistory.d.ts +4 -4
- package/dist/component/ticketHistory.d.ts.map +1 -1
- package/dist/component/ticketHistory.js +6 -9
- package/dist/component/ticketHistory.js.map +1 -1
- package/dist/component/ticketMacros.d.ts +19 -18
- package/dist/component/ticketMacros.d.ts.map +1 -1
- package/dist/component/ticketMacros.js +24 -30
- package/dist/component/ticketMacros.js.map +1 -1
- package/dist/component/ticketStatuses.d.ts +1 -0
- package/dist/component/ticketStatuses.d.ts.map +1 -1
- package/dist/component/ticketStatuses.js +5 -6
- package/dist/component/ticketStatuses.js.map +1 -1
- package/dist/component/ticketTriggers.d.ts +36 -16
- package/dist/component/ticketTriggers.d.ts.map +1 -1
- package/dist/component/ticketTriggers.js +115 -153
- package/dist/component/ticketTriggers.js.map +1 -1
- package/dist/component/userProfiles.d.ts +25 -120
- package/dist/component/userProfiles.d.ts.map +1 -1
- package/dist/component/userProfiles.js +73 -384
- package/dist/component/userProfiles.js.map +1 -1
- package/dist/test.d.ts +69 -150
- package/dist/test.d.ts.map +1 -1
- package/package.json +12 -3
- package/src/client/index.ts +2 -30
- package/src/component/_generated/api.ts +4 -4
- package/src/component/_generated/component.ts +228 -350
- package/src/component/contracts.ts +7 -14
- package/src/component/crons.ts +2 -7
- package/src/component/dashboardStats.ts +24 -41
- package/src/component/dashboardStatsCache.ts +12 -61
- package/src/component/deviceCategories.ts +12 -4
- package/src/component/deviceQuestions.ts +28 -5
- package/src/component/deviceRepairHistory.ts +1 -1
- package/src/component/deviceStatus.ts +43 -45
- package/src/component/devices.ts +87 -106
- package/src/component/emailHelpers.ts +9 -19
- package/src/component/emails.ts +2 -2
- package/src/component/http.ts +3 -108
- package/src/component/migrationHelpers.ts +96 -0
- package/src/component/roles.ts +5 -6
- package/src/component/schema.ts +35 -93
- package/src/component/slaMonitoring.ts +52 -107
- package/src/component/spareParts.ts +46 -12
- package/src/component/suppliers.ts +71 -48
- package/src/component/ticketComments.ts +28 -71
- package/src/component/ticketDeviceData.ts +113 -0
- package/src/component/ticketExport.ts +52 -137
- package/src/component/ticketHistory.ts +6 -9
- package/src/component/ticketMacros.ts +25 -37
- package/src/component/ticketStatuses.ts +5 -6
- package/src/component/ticketTriggers.ts +121 -217
- package/src/component/userProfiles.ts +67 -451
- package/dist/component/clinics.d.ts +0 -103
- package/dist/component/clinics.d.ts.map +0 -1
- package/dist/component/clinics.js +0 -126
- package/dist/component/clinics.js.map +0 -1
- package/dist/component/maintenanceTasks.d.ts +0 -733
- package/dist/component/maintenanceTasks.d.ts.map +0 -1
- package/dist/component/maintenanceTasks.js +0 -937
- package/dist/component/maintenanceTasks.js.map +0 -1
- package/src/component/clinics.ts +0 -136
- package/src/component/maintenanceTasks.ts +0 -1003
package/dist/test.d.ts
CHANGED
|
@@ -48,47 +48,34 @@ declare const _default: {
|
|
|
48
48
|
by_name: ["name", "_creationTime"];
|
|
49
49
|
}, {}, {}>;
|
|
50
50
|
user_profiles: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
51
|
-
|
|
52
|
-
roleId?: import("convex/values").GenericId<"roles"> | undefined;
|
|
53
|
-
role?: string | undefined;
|
|
54
|
-
clinicId?: import("convex/values").GenericId<"clinics"> | undefined;
|
|
51
|
+
clinicId?: string | undefined;
|
|
55
52
|
supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
56
53
|
primoupClinics?: any[] | undefined;
|
|
57
54
|
selectedClinicId?: number | undefined;
|
|
58
55
|
clinicChangeCounter?: number | undefined;
|
|
59
|
-
impersonatingUserId?:
|
|
60
|
-
isActive?: boolean | undefined;
|
|
56
|
+
impersonatingUserId?: string | undefined;
|
|
61
57
|
auth0Id: string;
|
|
62
|
-
email: string;
|
|
63
58
|
}, {
|
|
64
59
|
auth0Id: import("convex/values").VString<string, "required">;
|
|
65
|
-
|
|
66
|
-
role: import("convex/values").VString<string | undefined, "optional">;
|
|
67
|
-
clinicId: import("convex/values").VId<import("convex/values").GenericId<"clinics"> | undefined, "optional">;
|
|
60
|
+
clinicId: import("convex/values").VString<string | undefined, "optional">;
|
|
68
61
|
supplierId: import("convex/values").VId<import("convex/values").GenericId<"suppliers"> | undefined, "optional">;
|
|
69
|
-
email: import("convex/values").VString<string, "required">;
|
|
70
|
-
name: import("convex/values").VString<string | undefined, "optional">;
|
|
71
62
|
primoupClinics: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
|
|
72
63
|
selectedClinicId: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
73
64
|
clinicChangeCounter: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
74
|
-
impersonatingUserId: import("convex/values").
|
|
75
|
-
|
|
76
|
-
}, "required", "name" | "auth0Id" | "roleId" | "role" | "clinicId" | "supplierId" | "email" | "primoupClinics" | "selectedClinicId" | "clinicChangeCounter" | "impersonatingUserId" | "isActive">, {
|
|
65
|
+
impersonatingUserId: import("convex/values").VString<string | undefined, "optional">;
|
|
66
|
+
}, "required", "auth0Id" | "clinicId" | "supplierId" | "primoupClinics" | "selectedClinicId" | "clinicChangeCounter" | "impersonatingUserId">, {
|
|
77
67
|
by_auth0Id: ["auth0Id", "_creationTime"];
|
|
78
|
-
by_email: ["email", "_creationTime"];
|
|
79
|
-
by_roleId: ["roleId", "_creationTime"];
|
|
80
68
|
by_clinicId: ["clinicId", "_creationTime"];
|
|
81
69
|
by_supplierId: ["supplierId", "_creationTime"];
|
|
82
|
-
by_isActive: ["isActive", "_creationTime"];
|
|
83
70
|
}, {}, {}>;
|
|
84
71
|
primoup_tokens: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
85
72
|
refreshToken?: string | undefined;
|
|
86
73
|
expiresAt?: number | undefined;
|
|
87
74
|
lastUsedAt?: number | undefined;
|
|
88
75
|
createdAt: number;
|
|
89
|
-
isActive: boolean;
|
|
90
76
|
userId: string;
|
|
91
77
|
token: string;
|
|
78
|
+
isActive: boolean;
|
|
92
79
|
}, {
|
|
93
80
|
userId: import("convex/values").VString<string, "required">;
|
|
94
81
|
token: import("convex/values").VString<string, "required">;
|
|
@@ -97,7 +84,7 @@ declare const _default: {
|
|
|
97
84
|
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
98
85
|
lastUsedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
99
86
|
isActive: import("convex/values").VBoolean<boolean, "required">;
|
|
100
|
-
}, "required", "createdAt" | "
|
|
87
|
+
}, "required", "createdAt" | "userId" | "token" | "refreshToken" | "expiresAt" | "lastUsedAt" | "isActive">, {
|
|
101
88
|
by_userId: ["userId", "_creationTime"];
|
|
102
89
|
by_userId_active: ["userId", "isActive", "_creationTime"];
|
|
103
90
|
}, {}, {}>;
|
|
@@ -122,23 +109,6 @@ declare const _default: {
|
|
|
122
109
|
by_timestamp: ["timestamp", "_creationTime"];
|
|
123
110
|
by_userId_timestamp: ["userId", "timestamp", "_creationTime"];
|
|
124
111
|
}, {}, {}>;
|
|
125
|
-
clinics: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
126
|
-
region?: string | undefined;
|
|
127
|
-
primoupId?: string | undefined;
|
|
128
|
-
name: string;
|
|
129
|
-
address: string;
|
|
130
|
-
contact_email: string;
|
|
131
|
-
contact_phone: string;
|
|
132
|
-
}, {
|
|
133
|
-
name: import("convex/values").VString<string, "required">;
|
|
134
|
-
address: import("convex/values").VString<string, "required">;
|
|
135
|
-
contact_email: import("convex/values").VString<string, "required">;
|
|
136
|
-
contact_phone: import("convex/values").VString<string, "required">;
|
|
137
|
-
region: import("convex/values").VString<string | undefined, "optional">;
|
|
138
|
-
primoupId: import("convex/values").VString<string | undefined, "optional">;
|
|
139
|
-
}, "required", "name" | "address" | "contact_email" | "contact_phone" | "region" | "primoupId">, {
|
|
140
|
-
by_primoupId: ["primoupId", "_creationTime"];
|
|
141
|
-
}, {}, {}>;
|
|
142
112
|
devices: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
143
113
|
supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
144
114
|
metadata?: any;
|
|
@@ -167,14 +137,14 @@ declare const _default: {
|
|
|
167
137
|
authorizationsStorageIds?: import("convex/values").GenericId<"_storage">[] | undefined;
|
|
168
138
|
otherAttachmentsStorageIds?: import("convex/values").GenericId<"_storage">[] | undefined;
|
|
169
139
|
name: string;
|
|
170
|
-
clinicId:
|
|
140
|
+
clinicId: string;
|
|
171
141
|
category: string;
|
|
172
142
|
brand: string;
|
|
173
143
|
model: string;
|
|
174
144
|
serial_number: string;
|
|
175
145
|
status: "active" | "in_maintenance" | "out_of_service";
|
|
176
146
|
}, {
|
|
177
|
-
clinicId: import("convex/values").
|
|
147
|
+
clinicId: import("convex/values").VString<string, "required">;
|
|
178
148
|
primoupClinicId: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
179
149
|
supplierId: import("convex/values").VId<import("convex/values").GenericId<"suppliers"> | undefined, "optional">;
|
|
180
150
|
name: import("convex/values").VString<string, "required">;
|
|
@@ -231,18 +201,18 @@ declare const _default: {
|
|
|
231
201
|
}, {}, {}>;
|
|
232
202
|
device_repair_history: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
233
203
|
notes?: string | undefined;
|
|
234
|
-
ticketId?:
|
|
204
|
+
ticketId?: string | undefined;
|
|
235
205
|
returnedAt?: number | undefined;
|
|
236
206
|
statusAfterRepair?: "active" | "out_of_service" | undefined;
|
|
237
207
|
returnedBy?: string | undefined;
|
|
238
|
-
clinicId:
|
|
208
|
+
clinicId: string;
|
|
239
209
|
deviceId: import("convex/values").GenericId<"devices">;
|
|
240
210
|
sentToRepairAt: number;
|
|
241
211
|
createdBy: string;
|
|
242
212
|
}, {
|
|
243
213
|
deviceId: import("convex/values").VId<import("convex/values").GenericId<"devices">, "required">;
|
|
244
|
-
clinicId: import("convex/values").
|
|
245
|
-
ticketId: import("convex/values").
|
|
214
|
+
clinicId: import("convex/values").VString<string, "required">;
|
|
215
|
+
ticketId: import("convex/values").VString<string | undefined, "optional">;
|
|
246
216
|
sentToRepairAt: import("convex/values").VFloat64<number, "required">;
|
|
247
217
|
returnedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
248
218
|
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>;
|
|
@@ -292,8 +262,8 @@ declare const _default: {
|
|
|
292
262
|
}, {}, {}>;
|
|
293
263
|
suppliers: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
294
264
|
type?: string | undefined;
|
|
295
|
-
primoupId?: string | undefined;
|
|
296
265
|
notes?: string | undefined;
|
|
266
|
+
primoupId?: string | undefined;
|
|
297
267
|
name: string;
|
|
298
268
|
contact_email: string;
|
|
299
269
|
contact_phone: string;
|
|
@@ -308,7 +278,7 @@ declare const _default: {
|
|
|
308
278
|
notes: import("convex/values").VString<string | undefined, "optional">;
|
|
309
279
|
primoupId: import("convex/values").VString<string | undefined, "optional">;
|
|
310
280
|
type: import("convex/values").VString<string | undefined, "optional">;
|
|
311
|
-
}, "required", "name" | "type" | "
|
|
281
|
+
}, "required", "name" | "type" | "notes" | "contact_email" | "contact_phone" | "categories" | "sla_days" | "primoupId">, {
|
|
312
282
|
by_primoupId: ["primoupId", "_creationTime"];
|
|
313
283
|
}, {}, {}>;
|
|
314
284
|
vendor_articles: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -332,8 +302,8 @@ declare const _default: {
|
|
|
332
302
|
}, {}, {}>;
|
|
333
303
|
contracts: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
334
304
|
description?: string | undefined;
|
|
335
|
-
clinicId?:
|
|
336
|
-
clinicIds?:
|
|
305
|
+
clinicId?: string | undefined;
|
|
306
|
+
clinicIds?: string[] | undefined;
|
|
337
307
|
pdfStorageId?: import("convex/values").GenericId<"_storage"> | undefined;
|
|
338
308
|
pdf_url?: string | undefined;
|
|
339
309
|
type: "full" | "on_demand" | "mixed";
|
|
@@ -344,8 +314,8 @@ declare const _default: {
|
|
|
344
314
|
related_devices: import("convex/values").GenericId<"devices">[];
|
|
345
315
|
}, {
|
|
346
316
|
supplierId: import("convex/values").VId<import("convex/values").GenericId<"suppliers">, "required">;
|
|
347
|
-
clinicId: import("convex/values").
|
|
348
|
-
clinicIds: import("convex/values").VArray<
|
|
317
|
+
clinicId: import("convex/values").VString<string | undefined, "optional">;
|
|
318
|
+
clinicIds: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
349
319
|
start_date: import("convex/values").VFloat64<number, "required">;
|
|
350
320
|
end_date: import("convex/values").VFloat64<number, "required">;
|
|
351
321
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
@@ -432,53 +402,20 @@ declare const _default: {
|
|
|
432
402
|
by_applyToAll: ["applyToAll", "_creationTime"];
|
|
433
403
|
by_parentFieldId: ["parentFieldId", "_creationTime"];
|
|
434
404
|
}, {}, {}>;
|
|
435
|
-
|
|
436
|
-
supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
437
|
-
notes?: string | undefined;
|
|
405
|
+
ticket_device_data: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
438
406
|
deviceId?: import("convex/values").GenericId<"devices"> | undefined;
|
|
439
|
-
priority?: "low" | "medium" | "high" | undefined;
|
|
440
|
-
ticketNumber?: string | undefined;
|
|
441
|
-
title?: string | undefined;
|
|
442
|
-
createdByEmail?: string | undefined;
|
|
443
|
-
photoStorageIds?: import("convex/values").GenericId<"_storage">[] | undefined;
|
|
444
|
-
customFields?: any;
|
|
445
407
|
deviceQuestionAnswers?: {
|
|
446
408
|
questionId: import("convex/values").GenericId<"device_questions">;
|
|
447
409
|
question: string;
|
|
448
410
|
answer: any;
|
|
449
411
|
}[] | undefined;
|
|
450
|
-
|
|
451
|
-
slaBreached?: boolean | undefined;
|
|
452
|
-
slaWarningSent?: boolean | undefined;
|
|
453
|
-
externalTicketId?: string | undefined;
|
|
454
|
-
externalTicketNumber?: number | undefined;
|
|
455
|
-
importSource?: string | undefined;
|
|
456
|
-
legacyTicketId?: number | undefined;
|
|
412
|
+
photoStorageIds?: import("convex/values").GenericId<"_storage">[] | undefined;
|
|
457
413
|
isExternal?: boolean | undefined;
|
|
458
414
|
needsAssignment?: boolean | undefined;
|
|
459
|
-
|
|
460
|
-
description: string;
|
|
461
|
-
clinicId: import("convex/values").GenericId<"clinics">;
|
|
462
|
-
status: string;
|
|
463
|
-
created_by: string;
|
|
464
|
-
photos: string[];
|
|
465
|
-
created_at: number;
|
|
466
|
-
updated_at: number;
|
|
415
|
+
ticketId: string;
|
|
467
416
|
}, {
|
|
468
|
-
|
|
469
|
-
title: import("convex/values").VString<string | undefined, "optional">;
|
|
417
|
+
ticketId: import("convex/values").VString<string, "required">;
|
|
470
418
|
deviceId: import("convex/values").VId<import("convex/values").GenericId<"devices"> | undefined, "optional">;
|
|
471
|
-
clinicId: import("convex/values").VId<import("convex/values").GenericId<"clinics">, "required">;
|
|
472
|
-
supplierId: import("convex/values").VId<import("convex/values").GenericId<"suppliers"> | undefined, "optional">;
|
|
473
|
-
created_by: import("convex/values").VString<string, "required">;
|
|
474
|
-
createdByEmail: import("convex/values").VString<string | undefined, "optional">;
|
|
475
|
-
description: import("convex/values").VString<string, "required">;
|
|
476
|
-
photos: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
477
|
-
photoStorageIds: import("convex/values").VArray<import("convex/values").GenericId<"_storage">[] | undefined, import("convex/values").VId<import("convex/values").GenericId<"_storage">, "required">, "optional">;
|
|
478
|
-
status: import("convex/values").VString<string, "required">;
|
|
479
|
-
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>;
|
|
480
|
-
notes: import("convex/values").VString<string | undefined, "optional">;
|
|
481
|
-
customFields: import("convex/values").VAny<any, "optional", string>;
|
|
482
419
|
deviceQuestionAnswers: import("convex/values").VArray<{
|
|
483
420
|
questionId: import("convex/values").GenericId<"device_questions">;
|
|
484
421
|
question: string;
|
|
@@ -492,30 +429,12 @@ declare const _default: {
|
|
|
492
429
|
question: import("convex/values").VString<string, "required">;
|
|
493
430
|
answer: import("convex/values").VAny<any, "required", string>;
|
|
494
431
|
}, "required", "questionId" | "question" | "answer" | `answer.${string}`>, "optional">;
|
|
495
|
-
|
|
496
|
-
slaBreached: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
497
|
-
slaWarningSent: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
498
|
-
externalTicketId: import("convex/values").VString<string | undefined, "optional">;
|
|
499
|
-
externalTicketNumber: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
500
|
-
importSource: import("convex/values").VString<string | undefined, "optional">;
|
|
501
|
-
legacyTicketId: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
432
|
+
photoStorageIds: import("convex/values").VArray<import("convex/values").GenericId<"_storage">[] | undefined, import("convex/values").VId<import("convex/values").GenericId<"_storage">, "required">, "optional">;
|
|
502
433
|
isExternal: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
503
434
|
needsAssignment: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
closed_at: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
507
|
-
}, "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}`>, {
|
|
508
|
-
by_ticketNumber: ["ticketNumber", "_creationTime"];
|
|
435
|
+
}, "required", "deviceId" | "ticketId" | "deviceQuestionAnswers" | "photoStorageIds" | "isExternal" | "needsAssignment">, {
|
|
436
|
+
by_ticketId: ["ticketId", "_creationTime"];
|
|
509
437
|
by_deviceId: ["deviceId", "_creationTime"];
|
|
510
|
-
by_clinicId: ["clinicId", "_creationTime"];
|
|
511
|
-
by_supplierId: ["supplierId", "_creationTime"];
|
|
512
|
-
by_status: ["status", "_creationTime"];
|
|
513
|
-
by_status_created_at: ["status", "created_at", "_creationTime"];
|
|
514
|
-
by_priority: ["priority", "_creationTime"];
|
|
515
|
-
by_created_at: ["created_at", "_creationTime"];
|
|
516
|
-
by_slaDeadline: ["slaDeadline", "_creationTime"];
|
|
517
|
-
by_externalTicketId: ["externalTicketId", "_creationTime"];
|
|
518
|
-
by_importSource: ["importSource", "_creationTime"];
|
|
519
438
|
}, {}, {}>;
|
|
520
439
|
dashboard_stats_cache: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
521
440
|
lastUpdated: number;
|
|
@@ -557,7 +476,7 @@ declare const _default: {
|
|
|
557
476
|
conditionsList?: {
|
|
558
477
|
customFieldId?: import("convex/values").GenericId<"ticket_custom_fields"> | undefined;
|
|
559
478
|
customFieldOperator?: "equals" | "not_equals" | "contains" | "greater_than" | "less_than" | "is_empty" | "is_not_empty" | undefined;
|
|
560
|
-
type: "
|
|
479
|
+
type: "category" | "brand" | "model" | "status" | "priority" | "trigger_event" | "region" | "custom_field";
|
|
561
480
|
negated: boolean;
|
|
562
481
|
value: string | string[];
|
|
563
482
|
nextOperator: "AND" | "OR";
|
|
@@ -586,14 +505,14 @@ declare const _default: {
|
|
|
586
505
|
actions: {
|
|
587
506
|
changeStatus?: string | undefined;
|
|
588
507
|
assignSupplier?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
589
|
-
assignUser?:
|
|
508
|
+
assignUser?: string | undefined;
|
|
590
509
|
setSlaHours?: number | undefined;
|
|
591
510
|
applySlaRule?: boolean | undefined;
|
|
592
511
|
addNote?: string | undefined;
|
|
593
512
|
sendNotification?: {
|
|
594
513
|
recipients: ("admin" | "supplier" | {
|
|
595
514
|
supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
596
|
-
userId?:
|
|
515
|
+
userId?: string | undefined;
|
|
597
516
|
type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
|
|
598
517
|
} | "clinic")[];
|
|
599
518
|
message: string;
|
|
@@ -620,7 +539,7 @@ declare const _default: {
|
|
|
620
539
|
conditionsList?: {
|
|
621
540
|
customFieldId?: import("convex/values").GenericId<"ticket_custom_fields"> | undefined;
|
|
622
541
|
customFieldOperator?: "equals" | "not_equals" | "contains" | "greater_than" | "less_than" | "is_empty" | "is_not_empty" | undefined;
|
|
623
|
-
type: "
|
|
542
|
+
type: "category" | "brand" | "model" | "status" | "priority" | "trigger_event" | "region" | "custom_field";
|
|
624
543
|
negated: boolean;
|
|
625
544
|
value: string | string[];
|
|
626
545
|
nextOperator: "AND" | "OR";
|
|
@@ -650,19 +569,19 @@ declare const _default: {
|
|
|
650
569
|
conditionsList: import("convex/values").VArray<{
|
|
651
570
|
customFieldId?: import("convex/values").GenericId<"ticket_custom_fields"> | undefined;
|
|
652
571
|
customFieldOperator?: "equals" | "not_equals" | "contains" | "greater_than" | "less_than" | "is_empty" | "is_not_empty" | undefined;
|
|
653
|
-
type: "
|
|
572
|
+
type: "category" | "brand" | "model" | "status" | "priority" | "trigger_event" | "region" | "custom_field";
|
|
654
573
|
negated: boolean;
|
|
655
574
|
value: string | string[];
|
|
656
575
|
nextOperator: "AND" | "OR";
|
|
657
576
|
}[] | undefined, import("convex/values").VObject<{
|
|
658
577
|
customFieldId?: import("convex/values").GenericId<"ticket_custom_fields"> | undefined;
|
|
659
578
|
customFieldOperator?: "equals" | "not_equals" | "contains" | "greater_than" | "less_than" | "is_empty" | "is_not_empty" | undefined;
|
|
660
|
-
type: "
|
|
579
|
+
type: "category" | "brand" | "model" | "status" | "priority" | "trigger_event" | "region" | "custom_field";
|
|
661
580
|
negated: boolean;
|
|
662
581
|
value: string | string[];
|
|
663
582
|
nextOperator: "AND" | "OR";
|
|
664
583
|
}, {
|
|
665
|
-
type: import("convex/values").VUnion<"
|
|
584
|
+
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>;
|
|
666
585
|
negated: import("convex/values").VBoolean<boolean, "required">;
|
|
667
586
|
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>;
|
|
668
587
|
nextOperator: import("convex/values").VUnion<"AND" | "OR", [import("convex/values").VLiteral<"AND", "required">, import("convex/values").VLiteral<"OR", "required">], "required", never>;
|
|
@@ -706,14 +625,14 @@ declare const _default: {
|
|
|
706
625
|
actions: import("convex/values").VObject<{
|
|
707
626
|
changeStatus?: string | undefined;
|
|
708
627
|
assignSupplier?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
709
|
-
assignUser?:
|
|
628
|
+
assignUser?: string | undefined;
|
|
710
629
|
setSlaHours?: number | undefined;
|
|
711
630
|
applySlaRule?: boolean | undefined;
|
|
712
631
|
addNote?: string | undefined;
|
|
713
632
|
sendNotification?: {
|
|
714
633
|
recipients: ("admin" | "supplier" | {
|
|
715
634
|
supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
716
|
-
userId?:
|
|
635
|
+
userId?: string | undefined;
|
|
717
636
|
type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
|
|
718
637
|
} | "clinic")[];
|
|
719
638
|
message: string;
|
|
@@ -731,33 +650,33 @@ declare const _default: {
|
|
|
731
650
|
}, {
|
|
732
651
|
changeStatus: import("convex/values").VString<string | undefined, "optional">;
|
|
733
652
|
assignSupplier: import("convex/values").VId<import("convex/values").GenericId<"suppliers"> | undefined, "optional">;
|
|
734
|
-
assignUser: import("convex/values").
|
|
653
|
+
assignUser: import("convex/values").VString<string | undefined, "optional">;
|
|
735
654
|
setSlaHours: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
736
655
|
applySlaRule: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
737
656
|
addNote: import("convex/values").VString<string | undefined, "optional">;
|
|
738
657
|
sendNotification: import("convex/values").VObject<{
|
|
739
658
|
recipients: ("admin" | "supplier" | {
|
|
740
659
|
supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
741
|
-
userId?:
|
|
660
|
+
userId?: string | undefined;
|
|
742
661
|
type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
|
|
743
662
|
} | "clinic")[];
|
|
744
663
|
message: string;
|
|
745
664
|
} | undefined, {
|
|
746
665
|
recipients: import("convex/values").VArray<("admin" | "supplier" | {
|
|
747
666
|
supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
748
|
-
userId?:
|
|
667
|
+
userId?: string | undefined;
|
|
749
668
|
type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
|
|
750
669
|
} | "clinic")[], import("convex/values").VUnion<"admin" | "supplier" | {
|
|
751
670
|
supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
752
|
-
userId?:
|
|
671
|
+
userId?: string | undefined;
|
|
753
672
|
type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
|
|
754
673
|
} | "clinic", [import("convex/values").VObject<{
|
|
755
674
|
supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
756
|
-
userId?:
|
|
675
|
+
userId?: string | undefined;
|
|
757
676
|
type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
|
|
758
677
|
}, {
|
|
759
678
|
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>;
|
|
760
|
-
userId: import("convex/values").
|
|
679
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
761
680
|
supplierId: import("convex/values").VId<import("convex/values").GenericId<"suppliers"> | undefined, "optional">;
|
|
762
681
|
}, "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">;
|
|
763
682
|
message: import("convex/values").VString<string, "required">;
|
|
@@ -796,19 +715,19 @@ declare const _default: {
|
|
|
796
715
|
name: string;
|
|
797
716
|
createdAt: number;
|
|
798
717
|
isActive: boolean;
|
|
799
|
-
createdBy:
|
|
718
|
+
createdBy: string;
|
|
800
719
|
updatedAt: number;
|
|
801
720
|
actions: {
|
|
802
721
|
changeStatus?: string | undefined;
|
|
803
722
|
assignSupplier?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
804
|
-
assignUser?:
|
|
723
|
+
assignUser?: string | undefined;
|
|
805
724
|
setSlaHours?: number | undefined;
|
|
806
725
|
applySlaRule?: boolean | undefined;
|
|
807
726
|
addNote?: string | undefined;
|
|
808
727
|
sendNotification?: {
|
|
809
728
|
recipients: ("admin" | "supplier" | "clinic" | {
|
|
810
729
|
supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
811
|
-
userId?:
|
|
730
|
+
userId?: string | undefined;
|
|
812
731
|
type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
|
|
813
732
|
})[];
|
|
814
733
|
message: string;
|
|
@@ -824,14 +743,14 @@ declare const _default: {
|
|
|
824
743
|
actions: import("convex/values").VObject<{
|
|
825
744
|
changeStatus?: string | undefined;
|
|
826
745
|
assignSupplier?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
827
|
-
assignUser?:
|
|
746
|
+
assignUser?: string | undefined;
|
|
828
747
|
setSlaHours?: number | undefined;
|
|
829
748
|
applySlaRule?: boolean | undefined;
|
|
830
749
|
addNote?: string | undefined;
|
|
831
750
|
sendNotification?: {
|
|
832
751
|
recipients: ("admin" | "supplier" | "clinic" | {
|
|
833
752
|
supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
834
|
-
userId?:
|
|
753
|
+
userId?: string | undefined;
|
|
835
754
|
type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
|
|
836
755
|
})[];
|
|
837
756
|
message: string;
|
|
@@ -840,33 +759,33 @@ declare const _default: {
|
|
|
840
759
|
}, {
|
|
841
760
|
changeStatus: import("convex/values").VString<string | undefined, "optional">;
|
|
842
761
|
assignSupplier: import("convex/values").VId<import("convex/values").GenericId<"suppliers"> | undefined, "optional">;
|
|
843
|
-
assignUser: import("convex/values").
|
|
762
|
+
assignUser: import("convex/values").VString<string | undefined, "optional">;
|
|
844
763
|
setSlaHours: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
845
764
|
applySlaRule: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
846
765
|
addNote: import("convex/values").VString<string | undefined, "optional">;
|
|
847
766
|
sendNotification: import("convex/values").VObject<{
|
|
848
767
|
recipients: ("admin" | "supplier" | "clinic" | {
|
|
849
768
|
supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
850
|
-
userId?:
|
|
769
|
+
userId?: string | undefined;
|
|
851
770
|
type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
|
|
852
771
|
})[];
|
|
853
772
|
message: string;
|
|
854
773
|
} | undefined, {
|
|
855
774
|
recipients: import("convex/values").VArray<("admin" | "supplier" | "clinic" | {
|
|
856
775
|
supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
857
|
-
userId?:
|
|
776
|
+
userId?: string | undefined;
|
|
858
777
|
type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
|
|
859
778
|
})[], import("convex/values").VUnion<"admin" | "supplier" | "clinic" | {
|
|
860
779
|
supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
861
|
-
userId?:
|
|
780
|
+
userId?: string | undefined;
|
|
862
781
|
type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
|
|
863
782
|
}, [import("convex/values").VObject<{
|
|
864
783
|
supplierId?: import("convex/values").GenericId<"suppliers"> | undefined;
|
|
865
|
-
userId?:
|
|
784
|
+
userId?: string | undefined;
|
|
866
785
|
type: "admin" | "supplier" | "ticket_creator" | "ticket_assignee" | "specific_user" | "specific_supplier";
|
|
867
786
|
}, {
|
|
868
787
|
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>;
|
|
869
|
-
userId: import("convex/values").
|
|
788
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
870
789
|
supplierId: import("convex/values").VId<import("convex/values").GenericId<"suppliers"> | undefined, "optional">;
|
|
871
790
|
}, "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">;
|
|
872
791
|
message: import("convex/values").VString<string, "required">;
|
|
@@ -875,7 +794,7 @@ declare const _default: {
|
|
|
875
794
|
}, "required", "changeStatus" | "assignSupplier" | "assignUser" | "setSlaHours" | "applySlaRule" | "addNote" | "sendNotification" | "setPriority" | "sendNotification.recipients" | "sendNotification.message">;
|
|
876
795
|
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
877
796
|
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
878
|
-
createdBy: import("convex/values").
|
|
797
|
+
createdBy: import("convex/values").VString<string, "required">;
|
|
879
798
|
}, "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">, {
|
|
880
799
|
by_createdBy: ["createdBy", "_creationTime"];
|
|
881
800
|
by_isGlobal: ["isGlobal", "_creationTime"];
|
|
@@ -1073,7 +992,7 @@ declare const _default: {
|
|
|
1073
992
|
revokedBy: import("convex/values").VString<string | undefined, "optional">;
|
|
1074
993
|
notes: import("convex/values").VString<string | undefined, "optional">;
|
|
1075
994
|
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
1076
|
-
}, "required", "name" | "createdAt" | "
|
|
995
|
+
}, "required", "name" | "createdAt" | "expiresAt" | "lastUsedAt" | "isActive" | "notes" | "createdBy" | "keyHash" | "keyPrefix" | "permissions" | "createdByEmail" | "usageCount" | "revokedAt" | "revokedBy">, {
|
|
1077
996
|
by_keyHash: ["keyHash", "_creationTime"];
|
|
1078
997
|
by_keyPrefix: ["keyPrefix", "_creationTime"];
|
|
1079
998
|
by_isActive: ["isActive", "_creationTime"];
|
|
@@ -1089,15 +1008,15 @@ declare const _default: {
|
|
|
1089
1008
|
attachments?: import("convex/values").GenericId<"_storage">[] | undefined;
|
|
1090
1009
|
mentions?: {
|
|
1091
1010
|
name: string;
|
|
1011
|
+
userId: string;
|
|
1092
1012
|
email: string;
|
|
1093
|
-
userId: import("convex/values").GenericId<"user_profiles">;
|
|
1094
1013
|
}[] | undefined;
|
|
1095
1014
|
createdAt: number;
|
|
1096
|
-
|
|
1015
|
+
ticketId: string;
|
|
1097
1016
|
authorId: string;
|
|
1098
1017
|
content: string;
|
|
1099
1018
|
}, {
|
|
1100
|
-
|
|
1019
|
+
ticketId: import("convex/values").VString<string, "required">;
|
|
1101
1020
|
authorId: import("convex/values").VString<string, "required">;
|
|
1102
1021
|
authorName: import("convex/values").VString<string | undefined, "optional">;
|
|
1103
1022
|
authorEmail: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -1108,23 +1027,23 @@ declare const _default: {
|
|
|
1108
1027
|
attachments: import("convex/values").VArray<import("convex/values").GenericId<"_storage">[] | undefined, import("convex/values").VId<import("convex/values").GenericId<"_storage">, "required">, "optional">;
|
|
1109
1028
|
mentions: import("convex/values").VArray<{
|
|
1110
1029
|
name: string;
|
|
1030
|
+
userId: string;
|
|
1111
1031
|
email: string;
|
|
1112
|
-
userId: import("convex/values").GenericId<"user_profiles">;
|
|
1113
1032
|
}[] | undefined, import("convex/values").VObject<{
|
|
1114
1033
|
name: string;
|
|
1034
|
+
userId: string;
|
|
1115
1035
|
email: string;
|
|
1116
|
-
userId: import("convex/values").GenericId<"user_profiles">;
|
|
1117
1036
|
}, {
|
|
1118
|
-
userId: import("convex/values").
|
|
1037
|
+
userId: import("convex/values").VString<string, "required">;
|
|
1119
1038
|
name: import("convex/values").VString<string, "required">;
|
|
1120
1039
|
email: import("convex/values").VString<string, "required">;
|
|
1121
|
-
}, "required", "name" | "
|
|
1040
|
+
}, "required", "name" | "userId" | "email">, "optional">;
|
|
1122
1041
|
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
1123
1042
|
updatedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1124
|
-
}, "required", "createdAt" | "
|
|
1125
|
-
|
|
1043
|
+
}, "required", "createdAt" | "ticketId" | "updatedAt" | "authorId" | "authorName" | "authorEmail" | "authorRole" | "content" | "isInternal" | "isFromApi" | "attachments" | "mentions">, {
|
|
1044
|
+
by_ticketId: ["ticketId", "_creationTime"];
|
|
1126
1045
|
by_authorId: ["authorId", "_creationTime"];
|
|
1127
|
-
|
|
1046
|
+
by_ticketId_createdAt: ["ticketId", "createdAt", "_creationTime"];
|
|
1128
1047
|
}, {}, {}>;
|
|
1129
1048
|
spare_part_orders: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1130
1049
|
notes?: string | undefined;
|
|
@@ -1223,7 +1142,7 @@ declare const _default: {
|
|
|
1223
1142
|
createdAt: import("convex/values").VString<string | undefined, "optional">;
|
|
1224
1143
|
updatedAt: import("convex/values").VString<string | undefined, "optional">;
|
|
1225
1144
|
importedAt: import("convex/values").VFloat64<number, "required">;
|
|
1226
|
-
}, "required", "name" | "type" | "createdAt" | "
|
|
1145
|
+
}, "required", "name" | "type" | "createdAt" | "updatedAt" | "primoupId" | "parentId" | "activeWarehouseCategory" | "orisId" | "note" | "importedAt">, {
|
|
1227
1146
|
by_primoupId: ["primoupId", "_creationTime"];
|
|
1228
1147
|
by_parentId: ["parentId", "_creationTime"];
|
|
1229
1148
|
by_note: ["note", "_creationTime"];
|
|
@@ -1232,7 +1151,7 @@ declare const _default: {
|
|
|
1232
1151
|
}, {}, {}>;
|
|
1233
1152
|
email_logs: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1234
1153
|
errorMessage?: string | undefined;
|
|
1235
|
-
ticketId?:
|
|
1154
|
+
ticketId?: string | undefined;
|
|
1236
1155
|
resendId?: string | undefined;
|
|
1237
1156
|
status: "pending" | "sent" | "failed";
|
|
1238
1157
|
from: string;
|
|
@@ -1245,7 +1164,7 @@ declare const _default: {
|
|
|
1245
1164
|
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>;
|
|
1246
1165
|
subject: import("convex/values").VString<string, "required">;
|
|
1247
1166
|
html: import("convex/values").VString<string, "required">;
|
|
1248
|
-
ticketId: import("convex/values").
|
|
1167
|
+
ticketId: import("convex/values").VString<string | undefined, "optional">;
|
|
1249
1168
|
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>;
|
|
1250
1169
|
resendId: import("convex/values").VString<string | undefined, "optional">;
|
|
1251
1170
|
errorMessage: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -1269,11 +1188,11 @@ declare const _default: {
|
|
|
1269
1188
|
performedByName?: string | undefined;
|
|
1270
1189
|
performedByEmail?: string | undefined;
|
|
1271
1190
|
timestamp: number;
|
|
1272
|
-
ticketId:
|
|
1191
|
+
ticketId: string;
|
|
1273
1192
|
eventType: "status_change" | "sla_warning" | "sla_breach" | "created" | "assignee_change" | "priority_change" | "trigger_executed" | "comment_added" | "sla_set" | "updated";
|
|
1274
1193
|
isSystemAction: boolean;
|
|
1275
1194
|
}, {
|
|
1276
|
-
ticketId: import("convex/values").
|
|
1195
|
+
ticketId: import("convex/values").VString<string, "required">;
|
|
1277
1196
|
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>;
|
|
1278
1197
|
oldValue: import("convex/values").VString<string | undefined, "optional">;
|
|
1279
1198
|
newValue: import("convex/values").VString<string | undefined, "optional">;
|
package/dist/test.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAKrE,wBAAgB,QAAQ,CACtB,CAAC,EAAE,UAAU,CAAC,gBAAgB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,EACvD,IAAI,GAAE,MAA0B,QAGjC
|
|
1
|
+
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAKrE,wBAAgB,QAAQ,CACtB,CAAC,EAAE,UAAU,CAAC,gBAAgB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,EACvD,IAAI,GAAE,MAA0B,QAGjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED,wBAA6C"}
|