@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
|
@@ -51,54 +51,6 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
51
51
|
plainKey: string;
|
|
52
52
|
}, any, Name>;
|
|
53
53
|
};
|
|
54
|
-
clinics: {
|
|
55
|
-
createClinic: FunctionReference<"mutation", "internal", {
|
|
56
|
-
address: string;
|
|
57
|
-
contact_email: string;
|
|
58
|
-
contact_phone: string;
|
|
59
|
-
name: string;
|
|
60
|
-
}, any, Name>;
|
|
61
|
-
createClinicFromPrimoUP: FunctionReference<"mutation", "internal", {
|
|
62
|
-
address: string;
|
|
63
|
-
contact_email: string;
|
|
64
|
-
contact_phone: string;
|
|
65
|
-
name: string;
|
|
66
|
-
primoupId: string;
|
|
67
|
-
}, any, Name>;
|
|
68
|
-
deleteClinic: FunctionReference<"mutation", "internal", {
|
|
69
|
-
clinicId: string;
|
|
70
|
-
}, any, Name>;
|
|
71
|
-
getAllClinicsForMigration: FunctionReference<"query", "internal", {}, any, Name>;
|
|
72
|
-
getById: FunctionReference<"query", "internal", {
|
|
73
|
-
id: string;
|
|
74
|
-
}, any, Name>;
|
|
75
|
-
getClinic: FunctionReference<"query", "internal", {
|
|
76
|
-
clinicId: string;
|
|
77
|
-
}, any, Name>;
|
|
78
|
-
getClinicByName: FunctionReference<"query", "internal", {
|
|
79
|
-
name: string;
|
|
80
|
-
}, any, Name>;
|
|
81
|
-
getClinicByPrimoupId: FunctionReference<"query", "internal", {
|
|
82
|
-
primoupId: string;
|
|
83
|
-
}, any, Name>;
|
|
84
|
-
listClinics: FunctionReference<"query", "internal", {}, any, Name>;
|
|
85
|
-
updateClinic: FunctionReference<"mutation", "internal", {
|
|
86
|
-
address: string;
|
|
87
|
-
clinicId: string;
|
|
88
|
-
contact_email: string;
|
|
89
|
-
contact_phone: string;
|
|
90
|
-
name: string;
|
|
91
|
-
region?: string;
|
|
92
|
-
}, any, Name>;
|
|
93
|
-
updateClinicFromPrimoUP: FunctionReference<"mutation", "internal", {
|
|
94
|
-
address: string;
|
|
95
|
-
clinicId: string;
|
|
96
|
-
contact_email: string;
|
|
97
|
-
contact_phone: string;
|
|
98
|
-
name: string;
|
|
99
|
-
primoupId: string;
|
|
100
|
-
}, any, Name>;
|
|
101
|
-
};
|
|
102
54
|
contracts: {
|
|
103
55
|
createContract: FunctionReference<"mutation", "internal", {
|
|
104
56
|
amount: number;
|
|
@@ -140,8 +92,13 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
140
92
|
}, any, Name>;
|
|
141
93
|
};
|
|
142
94
|
dashboardStats: {
|
|
143
|
-
getAdminDashboardStats: FunctionReference<"query", "internal", {
|
|
144
|
-
|
|
95
|
+
getAdminDashboardStats: FunctionReference<"query", "internal", {
|
|
96
|
+
ticketStats?: any;
|
|
97
|
+
totalClinics?: number;
|
|
98
|
+
}, any, Name>;
|
|
99
|
+
getRecentActivity: FunctionReference<"query", "internal", {
|
|
100
|
+
recentTickets?: Array<any>;
|
|
101
|
+
}, any, Name>;
|
|
145
102
|
};
|
|
146
103
|
deviceCategories: {
|
|
147
104
|
create: FunctionReference<"mutation", "internal", {
|
|
@@ -177,6 +134,8 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
177
134
|
}, any, Name>;
|
|
178
135
|
list: FunctionReference<"query", "internal", {
|
|
179
136
|
noteFilter?: string;
|
|
137
|
+
page?: number;
|
|
138
|
+
pageSize?: number;
|
|
180
139
|
search?: string;
|
|
181
140
|
typeFilter?: string;
|
|
182
141
|
}, any, Name>;
|
|
@@ -223,7 +182,11 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
223
182
|
getQuestion: FunctionReference<"query", "internal", {
|
|
224
183
|
questionId: string;
|
|
225
184
|
}, any, Name>;
|
|
226
|
-
listAllQuestions: FunctionReference<"query", "internal", {
|
|
185
|
+
listAllQuestions: FunctionReference<"query", "internal", {
|
|
186
|
+
page?: number;
|
|
187
|
+
pageSize?: number;
|
|
188
|
+
search?: string;
|
|
189
|
+
}, any, Name>;
|
|
227
190
|
listQuestionsByDevice: FunctionReference<"query", "internal", {
|
|
228
191
|
deviceId: string;
|
|
229
192
|
}, any, Name>;
|
|
@@ -285,6 +248,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
285
248
|
name: string;
|
|
286
249
|
otherAttachmentsStorageIds?: Array<string>;
|
|
287
250
|
photoStorageId?: string;
|
|
251
|
+
primoupClinicId?: number;
|
|
288
252
|
purchaseCost?: number;
|
|
289
253
|
purchaseDate?: number;
|
|
290
254
|
serial_number: string;
|
|
@@ -303,10 +267,10 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
303
267
|
createDeviceByUser: FunctionReference<"mutation", "internal", {
|
|
304
268
|
brand: string;
|
|
305
269
|
category: string;
|
|
270
|
+
clinicId: string;
|
|
306
271
|
model: string;
|
|
307
272
|
name: string;
|
|
308
273
|
serial_number: string;
|
|
309
|
-
userPrimoupClinics?: Array<any>;
|
|
310
274
|
userSelectedClinicId: number;
|
|
311
275
|
}, any, Name>;
|
|
312
276
|
deleteDevice: FunctionReference<"mutation", "internal", {
|
|
@@ -347,14 +311,16 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
347
311
|
}, any, Name>;
|
|
348
312
|
listDevices: FunctionReference<"query", "internal", {
|
|
349
313
|
_triggerReload?: number;
|
|
314
|
+
category?: string;
|
|
350
315
|
clinicId?: string;
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
316
|
+
page?: number;
|
|
317
|
+
pageSize?: number;
|
|
318
|
+
search?: string;
|
|
319
|
+
status?: string;
|
|
355
320
|
userClinicId?: string;
|
|
356
321
|
userRole?: string;
|
|
357
322
|
userSelectedClinicId?: number;
|
|
323
|
+
userSupplierId?: string;
|
|
358
324
|
}, any, Name>;
|
|
359
325
|
listDevicesPaginated: FunctionReference<"query", "internal", {
|
|
360
326
|
brand?: string;
|
|
@@ -420,15 +386,29 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
420
386
|
deviceStatus: {
|
|
421
387
|
computeDeviceStatus: FunctionReference<"query", "internal", {
|
|
422
388
|
deviceId: string;
|
|
389
|
+
tickets?: Array<{
|
|
390
|
+
created_at?: number;
|
|
391
|
+
description?: string;
|
|
392
|
+
status: string;
|
|
393
|
+
updated_at?: number;
|
|
394
|
+
}>;
|
|
423
395
|
}, any, Name>;
|
|
424
396
|
getDeviceTicketHistory: FunctionReference<"query", "internal", {
|
|
425
397
|
deviceId: string;
|
|
398
|
+
tickets?: Array<any>;
|
|
426
399
|
}, any, Name>;
|
|
427
400
|
};
|
|
428
401
|
emailHelpers: {
|
|
429
|
-
getAdminEmails: FunctionReference<"query", "internal", {
|
|
402
|
+
getAdminEmails: FunctionReference<"query", "internal", {
|
|
403
|
+
adminEmails?: Array<{
|
|
404
|
+
email: string;
|
|
405
|
+
name: string;
|
|
406
|
+
}>;
|
|
407
|
+
}, any, Name>;
|
|
430
408
|
getClinicEmail: FunctionReference<"query", "internal", {
|
|
409
|
+
clinicEmail?: string;
|
|
431
410
|
clinicId: string;
|
|
411
|
+
clinicName?: string;
|
|
432
412
|
}, any, Name>;
|
|
433
413
|
getSupplierEmail: FunctionReference<"query", "internal", {
|
|
434
414
|
supplierId: string;
|
|
@@ -455,102 +435,26 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
455
435
|
to: string | Array<string>;
|
|
456
436
|
}, any, Name>;
|
|
457
437
|
};
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
}, any, Name>;
|
|
463
|
-
createMaintenanceTask: FunctionReference<"mutation", "internal", {
|
|
464
|
-
clinicId?: string;
|
|
465
|
-
createdBy: string;
|
|
466
|
-
createdByEmail?: string;
|
|
467
|
-
customFields?: any;
|
|
468
|
-
description: string;
|
|
469
|
-
deviceId: string;
|
|
470
|
-
deviceQuestionAnswers?: Array<{
|
|
471
|
-
answer: any;
|
|
472
|
-
question: string;
|
|
473
|
-
questionId: string;
|
|
474
|
-
}>;
|
|
475
|
-
photoStorageIds?: Array<string>;
|
|
476
|
-
photos?: Array<string>;
|
|
477
|
-
userClinicId?: string;
|
|
478
|
-
userRole?: string;
|
|
479
|
-
userSelectedClinicId?: number;
|
|
480
|
-
}, any, Name>;
|
|
481
|
-
deleteMaintenanceTask: FunctionReference<"mutation", "internal", {
|
|
482
|
-
taskId: string;
|
|
483
|
-
}, any, Name>;
|
|
484
|
-
generatePhotoUploadUrl: FunctionReference<"mutation", "internal", {}, any, Name>;
|
|
485
|
-
getMaintenanceTask: FunctionReference<"query", "internal", {
|
|
486
|
-
taskId: string;
|
|
487
|
-
}, any, Name>;
|
|
488
|
-
getMaintenanceTasksCount: FunctionReference<"query", "internal", {
|
|
489
|
-
clinicId?: string;
|
|
490
|
-
priority?: "low" | "medium" | "high";
|
|
491
|
-
status?: string;
|
|
492
|
-
supplierId?: string;
|
|
493
|
-
userClinicId?: string;
|
|
494
|
-
userRole?: string;
|
|
495
|
-
userSelectedClinicId?: number;
|
|
496
|
-
userSupplierId?: string;
|
|
497
|
-
}, any, Name>;
|
|
498
|
-
getMaintenanceTaskStats: FunctionReference<"query", "internal", {
|
|
499
|
-
userClinicId?: string;
|
|
500
|
-
userRole?: string;
|
|
501
|
-
userSupplierId?: string;
|
|
502
|
-
}, any, Name>;
|
|
503
|
-
getTaskPhotoUrls: FunctionReference<"query", "internal", {
|
|
504
|
-
taskId: string;
|
|
505
|
-
}, any, Name>;
|
|
506
|
-
listMaintenanceTasks: FunctionReference<"query", "internal", {
|
|
507
|
-
limit?: number;
|
|
508
|
-
userAuth0Id?: string;
|
|
509
|
-
userClinicId?: string;
|
|
510
|
-
userEmail?: string;
|
|
511
|
-
userRole?: string;
|
|
512
|
-
userSelectedClinicId?: number;
|
|
513
|
-
userSupplierId?: string;
|
|
438
|
+
migrationHelpers: {
|
|
439
|
+
listMaintenanceTasksForMigration: FunctionReference<"query", "internal", {
|
|
440
|
+
batchSize?: number;
|
|
441
|
+
cursor?: number;
|
|
514
442
|
}, any, Name>;
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
paginationOpts: {
|
|
519
|
-
cursor: string | null;
|
|
520
|
-
endCursor?: string | null;
|
|
521
|
-
id?: number;
|
|
522
|
-
maximumBytesRead?: number;
|
|
523
|
-
maximumRowsRead?: number;
|
|
524
|
-
numItems: number;
|
|
525
|
-
};
|
|
526
|
-
priority?: "low" | "medium" | "high";
|
|
527
|
-
searchTerm?: string;
|
|
528
|
-
status?: string;
|
|
529
|
-
supplierId?: string;
|
|
530
|
-
userClinicId?: string;
|
|
531
|
-
userRole?: string;
|
|
532
|
-
userSelectedClinicId?: number;
|
|
533
|
-
userSupplierId?: string;
|
|
443
|
+
updateCommentsTicketId: FunctionReference<"mutation", "internal", {
|
|
444
|
+
newTicketId: string;
|
|
445
|
+
oldTicketId: string;
|
|
534
446
|
}, any, Name>;
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
userSupplierId?: string;
|
|
447
|
+
updateEmailLogsTicketId: FunctionReference<"mutation", "internal", {
|
|
448
|
+
newTicketId: string;
|
|
449
|
+
oldTicketId: string;
|
|
539
450
|
}, any, Name>;
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
taskId: string;
|
|
544
|
-
userAuth0Id?: string;
|
|
545
|
-
userClinicId?: string;
|
|
546
|
-
userEmail?: string;
|
|
547
|
-
userName?: string;
|
|
548
|
-
userRole?: string;
|
|
549
|
-
userSupplierId?: string;
|
|
451
|
+
updateHistoryTicketId: FunctionReference<"mutation", "internal", {
|
|
452
|
+
newTicketId: string;
|
|
453
|
+
oldTicketId: string;
|
|
550
454
|
}, any, Name>;
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
455
|
+
updateRepairHistoryTicketId: FunctionReference<"mutation", "internal", {
|
|
456
|
+
newTicketId: string;
|
|
457
|
+
oldTicketId: string;
|
|
554
458
|
}, any, Name>;
|
|
555
459
|
};
|
|
556
460
|
roles: {
|
|
@@ -570,6 +474,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
570
474
|
};
|
|
571
475
|
}, any, Name>;
|
|
572
476
|
deleteRole: FunctionReference<"mutation", "internal", {
|
|
477
|
+
hasAssignedUsers?: boolean;
|
|
573
478
|
roleId: string;
|
|
574
479
|
}, any, Name>;
|
|
575
480
|
getRole: FunctionReference<"query", "internal", {
|
|
@@ -593,6 +498,22 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
593
498
|
roleId: string;
|
|
594
499
|
}, any, Name>;
|
|
595
500
|
};
|
|
501
|
+
slaMonitoring: {
|
|
502
|
+
computeSLADeadline: FunctionReference<"query", "internal", {
|
|
503
|
+
deviceCategory?: string;
|
|
504
|
+
priority?: string;
|
|
505
|
+
supplierId?: string;
|
|
506
|
+
}, any, Name>;
|
|
507
|
+
evaluateSLA: FunctionReference<"query", "internal", {
|
|
508
|
+
tickets: Array<{
|
|
509
|
+
slaBreached?: boolean;
|
|
510
|
+
slaDeadline?: number;
|
|
511
|
+
slaWarningSent?: boolean;
|
|
512
|
+
status: string;
|
|
513
|
+
ticketId: string;
|
|
514
|
+
}>;
|
|
515
|
+
}, any, Name>;
|
|
516
|
+
};
|
|
596
517
|
slaRules: {
|
|
597
518
|
createSLARule: FunctionReference<"mutation", "internal", {
|
|
598
519
|
description?: string;
|
|
@@ -794,7 +715,12 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
794
715
|
}, any, Name>;
|
|
795
716
|
listSpareParts: FunctionReference<"query", "internal", {
|
|
796
717
|
_triggerReload?: number;
|
|
797
|
-
|
|
718
|
+
clinicId?: number;
|
|
719
|
+
page?: number;
|
|
720
|
+
pageSize?: number;
|
|
721
|
+
search?: string;
|
|
722
|
+
userRole?: string;
|
|
723
|
+
userSelectedClinicId?: number;
|
|
798
724
|
}, any, Name>;
|
|
799
725
|
listSparePartsByClinic: FunctionReference<"query", "internal", {
|
|
800
726
|
clinicId: number;
|
|
@@ -867,10 +793,14 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
867
793
|
sla_days: number;
|
|
868
794
|
}, any, Name>;
|
|
869
795
|
deleteSupplier: FunctionReference<"mutation", "internal", {
|
|
796
|
+
hasLinkedTickets?: boolean;
|
|
870
797
|
supplierId: string;
|
|
871
798
|
}, any, Name>;
|
|
872
799
|
getOrCreateSupplierForUser: FunctionReference<"mutation", "internal", {
|
|
800
|
+
userEmail?: string;
|
|
873
801
|
userId: string;
|
|
802
|
+
userName?: string;
|
|
803
|
+
userRole?: string;
|
|
874
804
|
}, any, Name>;
|
|
875
805
|
getSupplier: FunctionReference<"query", "internal", {
|
|
876
806
|
supplierId: string;
|
|
@@ -878,10 +808,20 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
878
808
|
getSuppliersByCategory: FunctionReference<"query", "internal", {
|
|
879
809
|
category: string;
|
|
880
810
|
}, any, Name>;
|
|
881
|
-
listSuppliers: FunctionReference<"query", "internal", {
|
|
811
|
+
listSuppliers: FunctionReference<"query", "internal", {
|
|
812
|
+
page?: number;
|
|
813
|
+
pageSize?: number;
|
|
814
|
+
search?: string;
|
|
815
|
+
}, any, Name>;
|
|
882
816
|
listSuppliersForOrders: FunctionReference<"query", "internal", {}, any, Name>;
|
|
883
817
|
listSuppliersForReassignment: FunctionReference<"query", "internal", {}, any, Name>;
|
|
884
|
-
listSupplierUsers: FunctionReference<"query", "internal", {
|
|
818
|
+
listSupplierUsers: FunctionReference<"query", "internal", {
|
|
819
|
+
supplierUserList?: Array<{
|
|
820
|
+
auth0Id: string;
|
|
821
|
+
email: string;
|
|
822
|
+
name: string;
|
|
823
|
+
}>;
|
|
824
|
+
}, any, Name>;
|
|
885
825
|
updateSupplier: FunctionReference<"mutation", "internal", {
|
|
886
826
|
categories: Array<string>;
|
|
887
827
|
contact_email: string;
|
|
@@ -906,14 +846,14 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
906
846
|
name: string;
|
|
907
847
|
userId: string;
|
|
908
848
|
}>;
|
|
909
|
-
|
|
849
|
+
ticketId: string;
|
|
910
850
|
}, any, Name>;
|
|
911
851
|
addCommentFromApi: FunctionReference<"mutation", "internal", {
|
|
912
852
|
authorEmail?: string;
|
|
913
853
|
authorName?: string;
|
|
914
854
|
content: string;
|
|
915
855
|
isInternal?: boolean;
|
|
916
|
-
|
|
856
|
+
ticketId: string;
|
|
917
857
|
}, any, Name>;
|
|
918
858
|
deleteComment: FunctionReference<"mutation", "internal", {
|
|
919
859
|
commentId: string;
|
|
@@ -922,15 +862,21 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
922
862
|
}, any, Name>;
|
|
923
863
|
generateUploadUrl: FunctionReference<"mutation", "internal", {}, any, Name>;
|
|
924
864
|
getCommentCount: FunctionReference<"query", "internal", {
|
|
925
|
-
|
|
865
|
+
ticketId: string;
|
|
926
866
|
}, any, Name>;
|
|
927
867
|
getUsersForMention: FunctionReference<"query", "internal", {
|
|
928
868
|
excludeUserId?: string;
|
|
929
869
|
searchQuery?: string;
|
|
930
|
-
|
|
870
|
+
ticketId: string;
|
|
871
|
+
userList?: Array<{
|
|
872
|
+
auth0Id: string;
|
|
873
|
+
email: string;
|
|
874
|
+
name: string;
|
|
875
|
+
role: string;
|
|
876
|
+
}>;
|
|
931
877
|
}, any, Name>;
|
|
932
878
|
listComments: FunctionReference<"query", "internal", {
|
|
933
|
-
|
|
879
|
+
ticketId: string;
|
|
934
880
|
userRole?: string;
|
|
935
881
|
}, any, Name>;
|
|
936
882
|
updateComment: FunctionReference<"mutation", "internal", {
|
|
@@ -998,24 +944,50 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
998
944
|
placeholder?: string;
|
|
999
945
|
}, any, Name>;
|
|
1000
946
|
};
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
hasDevice?: boolean;
|
|
947
|
+
ticketDeviceData: {
|
|
948
|
+
create: FunctionReference<"mutation", "internal", {
|
|
949
|
+
deviceId?: string;
|
|
950
|
+
deviceQuestionAnswers?: Array<{
|
|
951
|
+
answer: any;
|
|
952
|
+
question: string;
|
|
953
|
+
questionId: string;
|
|
954
|
+
}>;
|
|
1010
955
|
isExternal?: boolean;
|
|
1011
956
|
needsAssignment?: boolean;
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
957
|
+
photoStorageIds?: Array<string>;
|
|
958
|
+
ticketId: string;
|
|
959
|
+
}, any, Name>;
|
|
960
|
+
deleteByTicketId: FunctionReference<"mutation", "internal", {
|
|
961
|
+
ticketId: string;
|
|
962
|
+
}, any, Name>;
|
|
963
|
+
getByDeviceId: FunctionReference<"query", "internal", {
|
|
964
|
+
deviceId: string;
|
|
965
|
+
}, any, Name>;
|
|
966
|
+
getByTicketId: FunctionReference<"query", "internal", {
|
|
967
|
+
ticketId: string;
|
|
968
|
+
}, any, Name>;
|
|
969
|
+
getPhotoUrls: FunctionReference<"query", "internal", {
|
|
970
|
+
ticketId: string;
|
|
971
|
+
}, any, Name>;
|
|
972
|
+
update: FunctionReference<"mutation", "internal", {
|
|
973
|
+
deviceId?: string;
|
|
974
|
+
deviceQuestionAnswers?: Array<{
|
|
975
|
+
answer: any;
|
|
976
|
+
question: string;
|
|
977
|
+
questionId: string;
|
|
978
|
+
}>;
|
|
979
|
+
photoStorageIds?: Array<string>;
|
|
980
|
+
ticketId: string;
|
|
981
|
+
}, any, Name>;
|
|
982
|
+
};
|
|
983
|
+
ticketExport: {
|
|
984
|
+
exportTickets: FunctionReference<"query", "internal", {
|
|
985
|
+
clinicDataMap?: any;
|
|
986
|
+
tickets: Array<any>;
|
|
987
|
+
}, any, Name>;
|
|
988
|
+
getFilterOptions: FunctionReference<"query", "internal", {
|
|
989
|
+
clinics?: Array<any>;
|
|
1017
990
|
}, any, Name>;
|
|
1018
|
-
getFilterOptions: FunctionReference<"query", "internal", {}, any, Name>;
|
|
1019
991
|
};
|
|
1020
992
|
ticketHistory: {
|
|
1021
993
|
getTicketHistory: FunctionReference<"query", "internal", {
|
|
@@ -1118,6 +1090,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1118
1090
|
order: number;
|
|
1119
1091
|
}, any, Name>;
|
|
1120
1092
|
deleteTicketStatus: FunctionReference<"mutation", "internal", {
|
|
1093
|
+
hasLinkedTickets?: boolean;
|
|
1121
1094
|
statusId: string;
|
|
1122
1095
|
}, any, Name>;
|
|
1123
1096
|
getTicketStatusByName: FunctionReference<"query", "internal", {
|
|
@@ -1137,6 +1110,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1137
1110
|
ticketTriggers: {
|
|
1138
1111
|
checkAttachmentRequired: FunctionReference<"query", "internal", {
|
|
1139
1112
|
clinicId?: string;
|
|
1113
|
+
clinicRegion?: string;
|
|
1140
1114
|
customFields?: any;
|
|
1141
1115
|
deviceId?: string;
|
|
1142
1116
|
priority?: "low" | "medium" | "high";
|
|
@@ -1214,7 +1188,21 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1214
1188
|
triggerId: string;
|
|
1215
1189
|
}, any, Name>;
|
|
1216
1190
|
executeTriggers: FunctionReference<"mutation", "internal", {
|
|
1191
|
+
clinicRegion?: string;
|
|
1192
|
+
deviceData?: {
|
|
1193
|
+
brand?: string;
|
|
1194
|
+
category?: string;
|
|
1195
|
+
model?: string;
|
|
1196
|
+
};
|
|
1217
1197
|
oldStatus?: string;
|
|
1198
|
+
ticketData: {
|
|
1199
|
+
clinicId?: string;
|
|
1200
|
+
customFields?: any;
|
|
1201
|
+
notes?: string;
|
|
1202
|
+
priority?: string;
|
|
1203
|
+
status: string;
|
|
1204
|
+
supplierId?: string;
|
|
1205
|
+
};
|
|
1218
1206
|
ticketId: string;
|
|
1219
1207
|
triggerOn: "create" | "status_change" | "update" | "sla_warning" | "sla_breach";
|
|
1220
1208
|
}, any, Name>;
|
|
@@ -1312,15 +1300,12 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1312
1300
|
}, any, Name>;
|
|
1313
1301
|
};
|
|
1314
1302
|
userProfiles: {
|
|
1315
|
-
disableUser: FunctionReference<"mutation", "internal", {
|
|
1316
|
-
callerUserId?: string;
|
|
1317
|
-
userId: string;
|
|
1318
|
-
}, any, Name>;
|
|
1319
|
-
enableUser: FunctionReference<"mutation", "internal", {
|
|
1320
|
-
userId: string;
|
|
1321
|
-
}, any, Name>;
|
|
1322
1303
|
getCurrentUserProfile: FunctionReference<"query", "internal", {
|
|
1323
1304
|
auth0Id: string;
|
|
1305
|
+
userEmail?: string;
|
|
1306
|
+
userIsActive?: boolean;
|
|
1307
|
+
userName?: string;
|
|
1308
|
+
userRole?: string;
|
|
1324
1309
|
}, any, Name>;
|
|
1325
1310
|
getPrimoUPAccessLogs: FunctionReference<"query", "internal", {
|
|
1326
1311
|
auth0Id: string;
|
|
@@ -1337,26 +1322,9 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1337
1322
|
getUserProfile: FunctionReference<"query", "internal", {
|
|
1338
1323
|
auth0Id: string;
|
|
1339
1324
|
}, any, Name>;
|
|
1340
|
-
getUsersCount: FunctionReference<"query", "internal", {
|
|
1341
|
-
isActive?: boolean;
|
|
1342
|
-
roleId?: string;
|
|
1343
|
-
}, any, Name>;
|
|
1344
1325
|
listUsers: FunctionReference<"query", "internal", {
|
|
1345
1326
|
limit?: number;
|
|
1346
1327
|
}, any, Name>;
|
|
1347
|
-
listUsersPaginated: FunctionReference<"query", "internal", {
|
|
1348
|
-
isActive?: boolean;
|
|
1349
|
-
paginationOpts: {
|
|
1350
|
-
cursor: string | null;
|
|
1351
|
-
endCursor?: string | null;
|
|
1352
|
-
id?: number;
|
|
1353
|
-
maximumBytesRead?: number;
|
|
1354
|
-
maximumRowsRead?: number;
|
|
1355
|
-
numItems: number;
|
|
1356
|
-
};
|
|
1357
|
-
roleId?: string;
|
|
1358
|
-
searchTerm?: string;
|
|
1359
|
-
}, any, Name>;
|
|
1360
1328
|
logPrimoUPAccess: FunctionReference<"mutation", "internal", {
|
|
1361
1329
|
action: string;
|
|
1362
1330
|
auth0Id: string;
|
|
@@ -1377,7 +1345,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1377
1345
|
}, any, Name>;
|
|
1378
1346
|
startImpersonation: FunctionReference<"mutation", "internal", {
|
|
1379
1347
|
auth0Id: string;
|
|
1380
|
-
|
|
1348
|
+
targetUserAuth0Id: string;
|
|
1381
1349
|
}, any, Name>;
|
|
1382
1350
|
stopImpersonation: FunctionReference<"mutation", "internal", {
|
|
1383
1351
|
auth0Id: string;
|
|
@@ -1386,24 +1354,6 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1386
1354
|
auth0Id: string;
|
|
1387
1355
|
clinicId: number;
|
|
1388
1356
|
}, any, Name>;
|
|
1389
|
-
updateUserProfile: FunctionReference<"mutation", "internal", {
|
|
1390
|
-
clinicId?: string;
|
|
1391
|
-
email?: string;
|
|
1392
|
-
name?: string;
|
|
1393
|
-
roleName?: string;
|
|
1394
|
-
supplierId?: string;
|
|
1395
|
-
userId: string;
|
|
1396
|
-
}, any, Name>;
|
|
1397
|
-
updateUserRole: FunctionReference<"mutation", "internal", {
|
|
1398
|
-
clinicId?: string;
|
|
1399
|
-
roleName: string;
|
|
1400
|
-
supplierId?: string;
|
|
1401
|
-
userId: string;
|
|
1402
|
-
}, any, Name>;
|
|
1403
|
-
updateUserRoleByEmail: FunctionReference<"mutation", "internal", {
|
|
1404
|
-
email: string;
|
|
1405
|
-
roleName: string;
|
|
1406
|
-
}, any, Name>;
|
|
1407
1357
|
updateUserSupplier: FunctionReference<"mutation", "internal", {
|
|
1408
1358
|
supplierId: string;
|
|
1409
1359
|
userId: string;
|
|
@@ -1411,9 +1361,6 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1411
1361
|
upsertUserProfile: FunctionReference<"mutation", "internal", {
|
|
1412
1362
|
auth0Id: string;
|
|
1413
1363
|
clinicId?: string;
|
|
1414
|
-
email: string;
|
|
1415
|
-
name?: string;
|
|
1416
|
-
roleName?: string;
|
|
1417
1364
|
supplierId?: string;
|
|
1418
1365
|
}, any, Name>;
|
|
1419
1366
|
};
|