@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
|
@@ -88,104 +88,6 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
88
88
|
Name
|
|
89
89
|
>;
|
|
90
90
|
};
|
|
91
|
-
clinics: {
|
|
92
|
-
createClinic: FunctionReference<
|
|
93
|
-
"mutation",
|
|
94
|
-
"internal",
|
|
95
|
-
{
|
|
96
|
-
address: string;
|
|
97
|
-
contact_email: string;
|
|
98
|
-
contact_phone: string;
|
|
99
|
-
name: string;
|
|
100
|
-
},
|
|
101
|
-
any,
|
|
102
|
-
Name
|
|
103
|
-
>;
|
|
104
|
-
createClinicFromPrimoUP: FunctionReference<
|
|
105
|
-
"mutation",
|
|
106
|
-
"internal",
|
|
107
|
-
{
|
|
108
|
-
address: string;
|
|
109
|
-
contact_email: string;
|
|
110
|
-
contact_phone: string;
|
|
111
|
-
name: string;
|
|
112
|
-
primoupId: string;
|
|
113
|
-
},
|
|
114
|
-
any,
|
|
115
|
-
Name
|
|
116
|
-
>;
|
|
117
|
-
deleteClinic: FunctionReference<
|
|
118
|
-
"mutation",
|
|
119
|
-
"internal",
|
|
120
|
-
{ clinicId: string },
|
|
121
|
-
any,
|
|
122
|
-
Name
|
|
123
|
-
>;
|
|
124
|
-
getAllClinicsForMigration: FunctionReference<
|
|
125
|
-
"query",
|
|
126
|
-
"internal",
|
|
127
|
-
{},
|
|
128
|
-
any,
|
|
129
|
-
Name
|
|
130
|
-
>;
|
|
131
|
-
getById: FunctionReference<
|
|
132
|
-
"query",
|
|
133
|
-
"internal",
|
|
134
|
-
{ id: string },
|
|
135
|
-
any,
|
|
136
|
-
Name
|
|
137
|
-
>;
|
|
138
|
-
getClinic: FunctionReference<
|
|
139
|
-
"query",
|
|
140
|
-
"internal",
|
|
141
|
-
{ clinicId: string },
|
|
142
|
-
any,
|
|
143
|
-
Name
|
|
144
|
-
>;
|
|
145
|
-
getClinicByName: FunctionReference<
|
|
146
|
-
"query",
|
|
147
|
-
"internal",
|
|
148
|
-
{ name: string },
|
|
149
|
-
any,
|
|
150
|
-
Name
|
|
151
|
-
>;
|
|
152
|
-
getClinicByPrimoupId: FunctionReference<
|
|
153
|
-
"query",
|
|
154
|
-
"internal",
|
|
155
|
-
{ primoupId: string },
|
|
156
|
-
any,
|
|
157
|
-
Name
|
|
158
|
-
>;
|
|
159
|
-
listClinics: FunctionReference<"query", "internal", {}, any, Name>;
|
|
160
|
-
updateClinic: FunctionReference<
|
|
161
|
-
"mutation",
|
|
162
|
-
"internal",
|
|
163
|
-
{
|
|
164
|
-
address: string;
|
|
165
|
-
clinicId: string;
|
|
166
|
-
contact_email: string;
|
|
167
|
-
contact_phone: string;
|
|
168
|
-
name: string;
|
|
169
|
-
region?: string;
|
|
170
|
-
},
|
|
171
|
-
any,
|
|
172
|
-
Name
|
|
173
|
-
>;
|
|
174
|
-
updateClinicFromPrimoUP: FunctionReference<
|
|
175
|
-
"mutation",
|
|
176
|
-
"internal",
|
|
177
|
-
{
|
|
178
|
-
address: string;
|
|
179
|
-
clinicId: string;
|
|
180
|
-
contact_email: string;
|
|
181
|
-
contact_phone: string;
|
|
182
|
-
name: string;
|
|
183
|
-
primoupId: string;
|
|
184
|
-
},
|
|
185
|
-
any,
|
|
186
|
-
Name
|
|
187
|
-
>;
|
|
188
|
-
};
|
|
189
91
|
contracts: {
|
|
190
92
|
createContract: FunctionReference<
|
|
191
93
|
"mutation",
|
|
@@ -264,11 +166,17 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
264
166
|
getAdminDashboardStats: FunctionReference<
|
|
265
167
|
"query",
|
|
266
168
|
"internal",
|
|
267
|
-
{},
|
|
169
|
+
{ ticketStats?: any; totalClinics?: number },
|
|
170
|
+
any,
|
|
171
|
+
Name
|
|
172
|
+
>;
|
|
173
|
+
getRecentActivity: FunctionReference<
|
|
174
|
+
"query",
|
|
175
|
+
"internal",
|
|
176
|
+
{ recentTickets?: Array<any> },
|
|
268
177
|
any,
|
|
269
178
|
Name
|
|
270
179
|
>;
|
|
271
|
-
getRecentActivity: FunctionReference<"query", "internal", {}, any, Name>;
|
|
272
180
|
};
|
|
273
181
|
deviceCategories: {
|
|
274
182
|
create: FunctionReference<
|
|
@@ -319,7 +227,13 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
319
227
|
list: FunctionReference<
|
|
320
228
|
"query",
|
|
321
229
|
"internal",
|
|
322
|
-
{
|
|
230
|
+
{
|
|
231
|
+
noteFilter?: string;
|
|
232
|
+
page?: number;
|
|
233
|
+
pageSize?: number;
|
|
234
|
+
search?: string;
|
|
235
|
+
typeFilter?: string;
|
|
236
|
+
},
|
|
323
237
|
any,
|
|
324
238
|
Name
|
|
325
239
|
>;
|
|
@@ -405,7 +319,13 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
405
319
|
any,
|
|
406
320
|
Name
|
|
407
321
|
>;
|
|
408
|
-
listAllQuestions: FunctionReference<
|
|
322
|
+
listAllQuestions: FunctionReference<
|
|
323
|
+
"query",
|
|
324
|
+
"internal",
|
|
325
|
+
{ page?: number; pageSize?: number; search?: string },
|
|
326
|
+
any,
|
|
327
|
+
Name
|
|
328
|
+
>;
|
|
409
329
|
listQuestionsByDevice: FunctionReference<
|
|
410
330
|
"query",
|
|
411
331
|
"internal",
|
|
@@ -514,6 +434,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
514
434
|
name: string;
|
|
515
435
|
otherAttachmentsStorageIds?: Array<string>;
|
|
516
436
|
photoStorageId?: string;
|
|
437
|
+
primoupClinicId?: number;
|
|
517
438
|
purchaseCost?: number;
|
|
518
439
|
purchaseDate?: number;
|
|
519
440
|
serial_number: string;
|
|
@@ -538,10 +459,10 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
538
459
|
{
|
|
539
460
|
brand: string;
|
|
540
461
|
category: string;
|
|
462
|
+
clinicId: string;
|
|
541
463
|
model: string;
|
|
542
464
|
name: string;
|
|
543
465
|
serial_number: string;
|
|
544
|
-
userPrimoupClinics?: Array<any>;
|
|
545
466
|
userSelectedClinicId: number;
|
|
546
467
|
},
|
|
547
468
|
any,
|
|
@@ -644,11 +565,16 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
644
565
|
"internal",
|
|
645
566
|
{
|
|
646
567
|
_triggerReload?: number;
|
|
568
|
+
category?: string;
|
|
647
569
|
clinicId?: string;
|
|
648
|
-
|
|
570
|
+
page?: number;
|
|
571
|
+
pageSize?: number;
|
|
572
|
+
search?: string;
|
|
573
|
+
status?: string;
|
|
649
574
|
userClinicId?: string;
|
|
650
575
|
userRole?: string;
|
|
651
576
|
userSelectedClinicId?: number;
|
|
577
|
+
userSupplierId?: string;
|
|
652
578
|
},
|
|
653
579
|
any,
|
|
654
580
|
Name
|
|
@@ -733,24 +659,38 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
733
659
|
computeDeviceStatus: FunctionReference<
|
|
734
660
|
"query",
|
|
735
661
|
"internal",
|
|
736
|
-
{
|
|
662
|
+
{
|
|
663
|
+
deviceId: string;
|
|
664
|
+
tickets?: Array<{
|
|
665
|
+
created_at?: number;
|
|
666
|
+
description?: string;
|
|
667
|
+
status: string;
|
|
668
|
+
updated_at?: number;
|
|
669
|
+
}>;
|
|
670
|
+
},
|
|
737
671
|
any,
|
|
738
672
|
Name
|
|
739
673
|
>;
|
|
740
674
|
getDeviceTicketHistory: FunctionReference<
|
|
741
675
|
"query",
|
|
742
676
|
"internal",
|
|
743
|
-
{ deviceId: string },
|
|
677
|
+
{ deviceId: string; tickets?: Array<any> },
|
|
744
678
|
any,
|
|
745
679
|
Name
|
|
746
680
|
>;
|
|
747
681
|
};
|
|
748
682
|
emailHelpers: {
|
|
749
|
-
getAdminEmails: FunctionReference<
|
|
683
|
+
getAdminEmails: FunctionReference<
|
|
684
|
+
"query",
|
|
685
|
+
"internal",
|
|
686
|
+
{ adminEmails?: Array<{ email: string; name: string }> },
|
|
687
|
+
any,
|
|
688
|
+
Name
|
|
689
|
+
>;
|
|
750
690
|
getClinicEmail: FunctionReference<
|
|
751
691
|
"query",
|
|
752
692
|
"internal",
|
|
753
|
-
{ clinicId: string },
|
|
693
|
+
{ clinicEmail?: string; clinicId: string; clinicName?: string },
|
|
754
694
|
any,
|
|
755
695
|
Name
|
|
756
696
|
>;
|
|
@@ -801,158 +741,39 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
801
741
|
Name
|
|
802
742
|
>;
|
|
803
743
|
};
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
"mutation",
|
|
807
|
-
"internal",
|
|
808
|
-
{ photos: Array<string>; taskId: string },
|
|
809
|
-
any,
|
|
810
|
-
Name
|
|
811
|
-
>;
|
|
812
|
-
createMaintenanceTask: FunctionReference<
|
|
813
|
-
"mutation",
|
|
814
|
-
"internal",
|
|
815
|
-
{
|
|
816
|
-
clinicId?: string;
|
|
817
|
-
createdBy: string;
|
|
818
|
-
createdByEmail?: string;
|
|
819
|
-
customFields?: any;
|
|
820
|
-
description: string;
|
|
821
|
-
deviceId: string;
|
|
822
|
-
deviceQuestionAnswers?: Array<{
|
|
823
|
-
answer: any;
|
|
824
|
-
question: string;
|
|
825
|
-
questionId: string;
|
|
826
|
-
}>;
|
|
827
|
-
photoStorageIds?: Array<string>;
|
|
828
|
-
photos?: Array<string>;
|
|
829
|
-
userClinicId?: string;
|
|
830
|
-
userRole?: string;
|
|
831
|
-
userSelectedClinicId?: number;
|
|
832
|
-
},
|
|
833
|
-
any,
|
|
834
|
-
Name
|
|
835
|
-
>;
|
|
836
|
-
deleteMaintenanceTask: FunctionReference<
|
|
837
|
-
"mutation",
|
|
838
|
-
"internal",
|
|
839
|
-
{ taskId: string },
|
|
840
|
-
any,
|
|
841
|
-
Name
|
|
842
|
-
>;
|
|
843
|
-
generatePhotoUploadUrl: FunctionReference<
|
|
844
|
-
"mutation",
|
|
845
|
-
"internal",
|
|
846
|
-
{},
|
|
847
|
-
any,
|
|
848
|
-
Name
|
|
849
|
-
>;
|
|
850
|
-
getMaintenanceTask: FunctionReference<
|
|
851
|
-
"query",
|
|
852
|
-
"internal",
|
|
853
|
-
{ taskId: string },
|
|
854
|
-
any,
|
|
855
|
-
Name
|
|
856
|
-
>;
|
|
857
|
-
getMaintenanceTasksCount: FunctionReference<
|
|
858
|
-
"query",
|
|
859
|
-
"internal",
|
|
860
|
-
{
|
|
861
|
-
clinicId?: string;
|
|
862
|
-
priority?: "low" | "medium" | "high";
|
|
863
|
-
status?: string;
|
|
864
|
-
supplierId?: string;
|
|
865
|
-
userClinicId?: string;
|
|
866
|
-
userRole?: string;
|
|
867
|
-
userSelectedClinicId?: number;
|
|
868
|
-
userSupplierId?: string;
|
|
869
|
-
},
|
|
870
|
-
any,
|
|
871
|
-
Name
|
|
872
|
-
>;
|
|
873
|
-
getMaintenanceTaskStats: FunctionReference<
|
|
744
|
+
migrationHelpers: {
|
|
745
|
+
listMaintenanceTasksForMigration: FunctionReference<
|
|
874
746
|
"query",
|
|
875
747
|
"internal",
|
|
876
|
-
{
|
|
748
|
+
{ batchSize?: number; cursor?: number },
|
|
877
749
|
any,
|
|
878
750
|
Name
|
|
879
751
|
>;
|
|
880
|
-
|
|
881
|
-
"
|
|
882
|
-
"internal",
|
|
883
|
-
{ taskId: string },
|
|
884
|
-
any,
|
|
885
|
-
Name
|
|
886
|
-
>;
|
|
887
|
-
listMaintenanceTasks: FunctionReference<
|
|
888
|
-
"query",
|
|
889
|
-
"internal",
|
|
890
|
-
{
|
|
891
|
-
limit?: number;
|
|
892
|
-
userAuth0Id?: string;
|
|
893
|
-
userClinicId?: string;
|
|
894
|
-
userEmail?: string;
|
|
895
|
-
userRole?: string;
|
|
896
|
-
userSelectedClinicId?: number;
|
|
897
|
-
userSupplierId?: string;
|
|
898
|
-
},
|
|
899
|
-
any,
|
|
900
|
-
Name
|
|
901
|
-
>;
|
|
902
|
-
listMaintenanceTasksPaginated: FunctionReference<
|
|
903
|
-
"query",
|
|
752
|
+
updateCommentsTicketId: FunctionReference<
|
|
753
|
+
"mutation",
|
|
904
754
|
"internal",
|
|
905
|
-
{
|
|
906
|
-
clinicId?: string;
|
|
907
|
-
deviceCategory?: string;
|
|
908
|
-
paginationOpts: {
|
|
909
|
-
cursor: string | null;
|
|
910
|
-
endCursor?: string | null;
|
|
911
|
-
id?: number;
|
|
912
|
-
maximumBytesRead?: number;
|
|
913
|
-
maximumRowsRead?: number;
|
|
914
|
-
numItems: number;
|
|
915
|
-
};
|
|
916
|
-
priority?: "low" | "medium" | "high";
|
|
917
|
-
searchTerm?: string;
|
|
918
|
-
status?: string;
|
|
919
|
-
supplierId?: string;
|
|
920
|
-
userClinicId?: string;
|
|
921
|
-
userRole?: string;
|
|
922
|
-
userSelectedClinicId?: number;
|
|
923
|
-
userSupplierId?: string;
|
|
924
|
-
},
|
|
755
|
+
{ newTicketId: string; oldTicketId: string },
|
|
925
756
|
any,
|
|
926
757
|
Name
|
|
927
758
|
>;
|
|
928
|
-
|
|
759
|
+
updateEmailLogsTicketId: FunctionReference<
|
|
929
760
|
"mutation",
|
|
930
761
|
"internal",
|
|
931
|
-
{
|
|
762
|
+
{ newTicketId: string; oldTicketId: string },
|
|
932
763
|
any,
|
|
933
764
|
Name
|
|
934
765
|
>;
|
|
935
|
-
|
|
766
|
+
updateHistoryTicketId: FunctionReference<
|
|
936
767
|
"mutation",
|
|
937
768
|
"internal",
|
|
938
|
-
{
|
|
939
|
-
notes?: string;
|
|
940
|
-
status: string;
|
|
941
|
-
taskId: string;
|
|
942
|
-
userAuth0Id?: string;
|
|
943
|
-
userClinicId?: string;
|
|
944
|
-
userEmail?: string;
|
|
945
|
-
userName?: string;
|
|
946
|
-
userRole?: string;
|
|
947
|
-
userSupplierId?: string;
|
|
948
|
-
},
|
|
769
|
+
{ newTicketId: string; oldTicketId: string },
|
|
949
770
|
any,
|
|
950
771
|
Name
|
|
951
772
|
>;
|
|
952
|
-
|
|
773
|
+
updateRepairHistoryTicketId: FunctionReference<
|
|
953
774
|
"mutation",
|
|
954
775
|
"internal",
|
|
955
|
-
{
|
|
776
|
+
{ newTicketId: string; oldTicketId: string },
|
|
956
777
|
any,
|
|
957
778
|
Name
|
|
958
779
|
>;
|
|
@@ -982,7 +803,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
982
803
|
deleteRole: FunctionReference<
|
|
983
804
|
"mutation",
|
|
984
805
|
"internal",
|
|
985
|
-
{ roleId: string },
|
|
806
|
+
{ hasAssignedUsers?: boolean; roleId: string },
|
|
986
807
|
any,
|
|
987
808
|
Name
|
|
988
809
|
>;
|
|
@@ -1017,6 +838,30 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1017
838
|
Name
|
|
1018
839
|
>;
|
|
1019
840
|
};
|
|
841
|
+
slaMonitoring: {
|
|
842
|
+
computeSLADeadline: FunctionReference<
|
|
843
|
+
"query",
|
|
844
|
+
"internal",
|
|
845
|
+
{ deviceCategory?: string; priority?: string; supplierId?: string },
|
|
846
|
+
any,
|
|
847
|
+
Name
|
|
848
|
+
>;
|
|
849
|
+
evaluateSLA: FunctionReference<
|
|
850
|
+
"query",
|
|
851
|
+
"internal",
|
|
852
|
+
{
|
|
853
|
+
tickets: Array<{
|
|
854
|
+
slaBreached?: boolean;
|
|
855
|
+
slaDeadline?: number;
|
|
856
|
+
slaWarningSent?: boolean;
|
|
857
|
+
status: string;
|
|
858
|
+
ticketId: string;
|
|
859
|
+
}>;
|
|
860
|
+
},
|
|
861
|
+
any,
|
|
862
|
+
Name
|
|
863
|
+
>;
|
|
864
|
+
};
|
|
1020
865
|
slaRules: {
|
|
1021
866
|
createSLARule: FunctionReference<
|
|
1022
867
|
"mutation",
|
|
@@ -1318,7 +1163,15 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1318
1163
|
listSpareParts: FunctionReference<
|
|
1319
1164
|
"query",
|
|
1320
1165
|
"internal",
|
|
1321
|
-
{
|
|
1166
|
+
{
|
|
1167
|
+
_triggerReload?: number;
|
|
1168
|
+
clinicId?: number;
|
|
1169
|
+
page?: number;
|
|
1170
|
+
pageSize?: number;
|
|
1171
|
+
search?: string;
|
|
1172
|
+
userRole?: string;
|
|
1173
|
+
userSelectedClinicId?: number;
|
|
1174
|
+
},
|
|
1322
1175
|
any,
|
|
1323
1176
|
Name
|
|
1324
1177
|
>;
|
|
@@ -1430,14 +1283,19 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1430
1283
|
deleteSupplier: FunctionReference<
|
|
1431
1284
|
"mutation",
|
|
1432
1285
|
"internal",
|
|
1433
|
-
{ supplierId: string },
|
|
1286
|
+
{ hasLinkedTickets?: boolean; supplierId: string },
|
|
1434
1287
|
any,
|
|
1435
1288
|
Name
|
|
1436
1289
|
>;
|
|
1437
1290
|
getOrCreateSupplierForUser: FunctionReference<
|
|
1438
1291
|
"mutation",
|
|
1439
1292
|
"internal",
|
|
1440
|
-
{
|
|
1293
|
+
{
|
|
1294
|
+
userEmail?: string;
|
|
1295
|
+
userId: string;
|
|
1296
|
+
userName?: string;
|
|
1297
|
+
userRole?: string;
|
|
1298
|
+
},
|
|
1441
1299
|
any,
|
|
1442
1300
|
Name
|
|
1443
1301
|
>;
|
|
@@ -1455,7 +1313,13 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1455
1313
|
any,
|
|
1456
1314
|
Name
|
|
1457
1315
|
>;
|
|
1458
|
-
listSuppliers: FunctionReference<
|
|
1316
|
+
listSuppliers: FunctionReference<
|
|
1317
|
+
"query",
|
|
1318
|
+
"internal",
|
|
1319
|
+
{ page?: number; pageSize?: number; search?: string },
|
|
1320
|
+
any,
|
|
1321
|
+
Name
|
|
1322
|
+
>;
|
|
1459
1323
|
listSuppliersForOrders: FunctionReference<
|
|
1460
1324
|
"query",
|
|
1461
1325
|
"internal",
|
|
@@ -1470,7 +1334,19 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1470
1334
|
any,
|
|
1471
1335
|
Name
|
|
1472
1336
|
>;
|
|
1473
|
-
listSupplierUsers: FunctionReference<
|
|
1337
|
+
listSupplierUsers: FunctionReference<
|
|
1338
|
+
"query",
|
|
1339
|
+
"internal",
|
|
1340
|
+
{
|
|
1341
|
+
supplierUserList?: Array<{
|
|
1342
|
+
auth0Id: string;
|
|
1343
|
+
email: string;
|
|
1344
|
+
name: string;
|
|
1345
|
+
}>;
|
|
1346
|
+
},
|
|
1347
|
+
any,
|
|
1348
|
+
Name
|
|
1349
|
+
>;
|
|
1474
1350
|
updateSupplier: FunctionReference<
|
|
1475
1351
|
"mutation",
|
|
1476
1352
|
"internal",
|
|
@@ -1500,7 +1376,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1500
1376
|
content: string;
|
|
1501
1377
|
isInternal?: boolean;
|
|
1502
1378
|
mentions?: Array<{ email: string; name: string; userId: string }>;
|
|
1503
|
-
|
|
1379
|
+
ticketId: string;
|
|
1504
1380
|
},
|
|
1505
1381
|
any,
|
|
1506
1382
|
Name
|
|
@@ -1513,7 +1389,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1513
1389
|
authorName?: string;
|
|
1514
1390
|
content: string;
|
|
1515
1391
|
isInternal?: boolean;
|
|
1516
|
-
|
|
1392
|
+
ticketId: string;
|
|
1517
1393
|
},
|
|
1518
1394
|
any,
|
|
1519
1395
|
Name
|
|
@@ -1535,21 +1411,31 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1535
1411
|
getCommentCount: FunctionReference<
|
|
1536
1412
|
"query",
|
|
1537
1413
|
"internal",
|
|
1538
|
-
{
|
|
1414
|
+
{ ticketId: string },
|
|
1539
1415
|
any,
|
|
1540
1416
|
Name
|
|
1541
1417
|
>;
|
|
1542
1418
|
getUsersForMention: FunctionReference<
|
|
1543
1419
|
"query",
|
|
1544
1420
|
"internal",
|
|
1545
|
-
{
|
|
1421
|
+
{
|
|
1422
|
+
excludeUserId?: string;
|
|
1423
|
+
searchQuery?: string;
|
|
1424
|
+
ticketId: string;
|
|
1425
|
+
userList?: Array<{
|
|
1426
|
+
auth0Id: string;
|
|
1427
|
+
email: string;
|
|
1428
|
+
name: string;
|
|
1429
|
+
role: string;
|
|
1430
|
+
}>;
|
|
1431
|
+
},
|
|
1546
1432
|
any,
|
|
1547
1433
|
Name
|
|
1548
1434
|
>;
|
|
1549
1435
|
listComments: FunctionReference<
|
|
1550
1436
|
"query",
|
|
1551
1437
|
"internal",
|
|
1552
|
-
{
|
|
1438
|
+
{ ticketId: string; userRole?: string },
|
|
1553
1439
|
any,
|
|
1554
1440
|
Name
|
|
1555
1441
|
>;
|
|
@@ -1686,30 +1572,85 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1686
1572
|
Name
|
|
1687
1573
|
>;
|
|
1688
1574
|
};
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
"
|
|
1575
|
+
ticketDeviceData: {
|
|
1576
|
+
create: FunctionReference<
|
|
1577
|
+
"mutation",
|
|
1692
1578
|
"internal",
|
|
1693
1579
|
{
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
hasDevice?: boolean;
|
|
1580
|
+
deviceId?: string;
|
|
1581
|
+
deviceQuestionAnswers?: Array<{
|
|
1582
|
+
answer: any;
|
|
1583
|
+
question: string;
|
|
1584
|
+
questionId: string;
|
|
1585
|
+
}>;
|
|
1701
1586
|
isExternal?: boolean;
|
|
1702
1587
|
needsAssignment?: boolean;
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1588
|
+
photoStorageIds?: Array<string>;
|
|
1589
|
+
ticketId: string;
|
|
1590
|
+
},
|
|
1591
|
+
any,
|
|
1592
|
+
Name
|
|
1593
|
+
>;
|
|
1594
|
+
deleteByTicketId: FunctionReference<
|
|
1595
|
+
"mutation",
|
|
1596
|
+
"internal",
|
|
1597
|
+
{ ticketId: string },
|
|
1598
|
+
any,
|
|
1599
|
+
Name
|
|
1600
|
+
>;
|
|
1601
|
+
getByDeviceId: FunctionReference<
|
|
1602
|
+
"query",
|
|
1603
|
+
"internal",
|
|
1604
|
+
{ deviceId: string },
|
|
1605
|
+
any,
|
|
1606
|
+
Name
|
|
1607
|
+
>;
|
|
1608
|
+
getByTicketId: FunctionReference<
|
|
1609
|
+
"query",
|
|
1610
|
+
"internal",
|
|
1611
|
+
{ ticketId: string },
|
|
1612
|
+
any,
|
|
1613
|
+
Name
|
|
1614
|
+
>;
|
|
1615
|
+
getPhotoUrls: FunctionReference<
|
|
1616
|
+
"query",
|
|
1617
|
+
"internal",
|
|
1618
|
+
{ ticketId: string },
|
|
1619
|
+
any,
|
|
1620
|
+
Name
|
|
1621
|
+
>;
|
|
1622
|
+
update: FunctionReference<
|
|
1623
|
+
"mutation",
|
|
1624
|
+
"internal",
|
|
1625
|
+
{
|
|
1626
|
+
deviceId?: string;
|
|
1627
|
+
deviceQuestionAnswers?: Array<{
|
|
1628
|
+
answer: any;
|
|
1629
|
+
question: string;
|
|
1630
|
+
questionId: string;
|
|
1631
|
+
}>;
|
|
1632
|
+
photoStorageIds?: Array<string>;
|
|
1633
|
+
ticketId: string;
|
|
1708
1634
|
},
|
|
1709
1635
|
any,
|
|
1710
1636
|
Name
|
|
1711
1637
|
>;
|
|
1712
|
-
|
|
1638
|
+
};
|
|
1639
|
+
ticketExport: {
|
|
1640
|
+
exportTickets: FunctionReference<
|
|
1641
|
+
"query",
|
|
1642
|
+
"internal",
|
|
1643
|
+
{ clinicDataMap?: any; tickets: Array<any> },
|
|
1644
|
+
any,
|
|
1645
|
+
Name
|
|
1646
|
+
>;
|
|
1647
|
+
getFilterOptions: FunctionReference<
|
|
1648
|
+
"query",
|
|
1649
|
+
"internal",
|
|
1650
|
+
{ clinics?: Array<any> },
|
|
1651
|
+
any,
|
|
1652
|
+
Name
|
|
1653
|
+
>;
|
|
1713
1654
|
};
|
|
1714
1655
|
ticketHistory: {
|
|
1715
1656
|
getTicketHistory: FunctionReference<
|
|
@@ -1867,7 +1808,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1867
1808
|
deleteTicketStatus: FunctionReference<
|
|
1868
1809
|
"mutation",
|
|
1869
1810
|
"internal",
|
|
1870
|
-
{ statusId: string },
|
|
1811
|
+
{ hasLinkedTickets?: boolean; statusId: string },
|
|
1871
1812
|
any,
|
|
1872
1813
|
Name
|
|
1873
1814
|
>;
|
|
@@ -1913,6 +1854,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1913
1854
|
"internal",
|
|
1914
1855
|
{
|
|
1915
1856
|
clinicId?: string;
|
|
1857
|
+
clinicRegion?: string;
|
|
1916
1858
|
customFields?: any;
|
|
1917
1859
|
deviceId?: string;
|
|
1918
1860
|
priority?: "low" | "medium" | "high";
|
|
@@ -2043,7 +1985,17 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
2043
1985
|
"mutation",
|
|
2044
1986
|
"internal",
|
|
2045
1987
|
{
|
|
1988
|
+
clinicRegion?: string;
|
|
1989
|
+
deviceData?: { brand?: string; category?: string; model?: string };
|
|
2046
1990
|
oldStatus?: string;
|
|
1991
|
+
ticketData: {
|
|
1992
|
+
clinicId?: string;
|
|
1993
|
+
customFields?: any;
|
|
1994
|
+
notes?: string;
|
|
1995
|
+
priority?: string;
|
|
1996
|
+
status: string;
|
|
1997
|
+
supplierId?: string;
|
|
1998
|
+
};
|
|
2047
1999
|
ticketId: string;
|
|
2048
2000
|
triggerOn:
|
|
2049
2001
|
| "create"
|
|
@@ -2209,24 +2161,16 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
2209
2161
|
>;
|
|
2210
2162
|
};
|
|
2211
2163
|
userProfiles: {
|
|
2212
|
-
disableUser: FunctionReference<
|
|
2213
|
-
"mutation",
|
|
2214
|
-
"internal",
|
|
2215
|
-
{ callerUserId?: string; userId: string },
|
|
2216
|
-
any,
|
|
2217
|
-
Name
|
|
2218
|
-
>;
|
|
2219
|
-
enableUser: FunctionReference<
|
|
2220
|
-
"mutation",
|
|
2221
|
-
"internal",
|
|
2222
|
-
{ userId: string },
|
|
2223
|
-
any,
|
|
2224
|
-
Name
|
|
2225
|
-
>;
|
|
2226
2164
|
getCurrentUserProfile: FunctionReference<
|
|
2227
2165
|
"query",
|
|
2228
2166
|
"internal",
|
|
2229
|
-
{
|
|
2167
|
+
{
|
|
2168
|
+
auth0Id: string;
|
|
2169
|
+
userEmail?: string;
|
|
2170
|
+
userIsActive?: boolean;
|
|
2171
|
+
userName?: string;
|
|
2172
|
+
userRole?: string;
|
|
2173
|
+
},
|
|
2230
2174
|
any,
|
|
2231
2175
|
Name
|
|
2232
2176
|
>;
|
|
@@ -2258,13 +2202,6 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
2258
2202
|
any,
|
|
2259
2203
|
Name
|
|
2260
2204
|
>;
|
|
2261
|
-
getUsersCount: FunctionReference<
|
|
2262
|
-
"query",
|
|
2263
|
-
"internal",
|
|
2264
|
-
{ isActive?: boolean; roleId?: string },
|
|
2265
|
-
any,
|
|
2266
|
-
Name
|
|
2267
|
-
>;
|
|
2268
2205
|
listUsers: FunctionReference<
|
|
2269
2206
|
"query",
|
|
2270
2207
|
"internal",
|
|
@@ -2272,25 +2209,6 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
2272
2209
|
any,
|
|
2273
2210
|
Name
|
|
2274
2211
|
>;
|
|
2275
|
-
listUsersPaginated: FunctionReference<
|
|
2276
|
-
"query",
|
|
2277
|
-
"internal",
|
|
2278
|
-
{
|
|
2279
|
-
isActive?: boolean;
|
|
2280
|
-
paginationOpts: {
|
|
2281
|
-
cursor: string | null;
|
|
2282
|
-
endCursor?: string | null;
|
|
2283
|
-
id?: number;
|
|
2284
|
-
maximumBytesRead?: number;
|
|
2285
|
-
maximumRowsRead?: number;
|
|
2286
|
-
numItems: number;
|
|
2287
|
-
};
|
|
2288
|
-
roleId?: string;
|
|
2289
|
-
searchTerm?: string;
|
|
2290
|
-
},
|
|
2291
|
-
any,
|
|
2292
|
-
Name
|
|
2293
|
-
>;
|
|
2294
2212
|
logPrimoUPAccess: FunctionReference<
|
|
2295
2213
|
"mutation",
|
|
2296
2214
|
"internal",
|
|
@@ -2327,7 +2245,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
2327
2245
|
startImpersonation: FunctionReference<
|
|
2328
2246
|
"mutation",
|
|
2329
2247
|
"internal",
|
|
2330
|
-
{ auth0Id: string;
|
|
2248
|
+
{ auth0Id: string; targetUserAuth0Id: string },
|
|
2331
2249
|
any,
|
|
2332
2250
|
Name
|
|
2333
2251
|
>;
|
|
@@ -2345,39 +2263,6 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
2345
2263
|
any,
|
|
2346
2264
|
Name
|
|
2347
2265
|
>;
|
|
2348
|
-
updateUserProfile: FunctionReference<
|
|
2349
|
-
"mutation",
|
|
2350
|
-
"internal",
|
|
2351
|
-
{
|
|
2352
|
-
clinicId?: string;
|
|
2353
|
-
email?: string;
|
|
2354
|
-
name?: string;
|
|
2355
|
-
roleName?: string;
|
|
2356
|
-
supplierId?: string;
|
|
2357
|
-
userId: string;
|
|
2358
|
-
},
|
|
2359
|
-
any,
|
|
2360
|
-
Name
|
|
2361
|
-
>;
|
|
2362
|
-
updateUserRole: FunctionReference<
|
|
2363
|
-
"mutation",
|
|
2364
|
-
"internal",
|
|
2365
|
-
{
|
|
2366
|
-
clinicId?: string;
|
|
2367
|
-
roleName: string;
|
|
2368
|
-
supplierId?: string;
|
|
2369
|
-
userId: string;
|
|
2370
|
-
},
|
|
2371
|
-
any,
|
|
2372
|
-
Name
|
|
2373
|
-
>;
|
|
2374
|
-
updateUserRoleByEmail: FunctionReference<
|
|
2375
|
-
"mutation",
|
|
2376
|
-
"internal",
|
|
2377
|
-
{ email: string; roleName: string },
|
|
2378
|
-
any,
|
|
2379
|
-
Name
|
|
2380
|
-
>;
|
|
2381
2266
|
updateUserSupplier: FunctionReference<
|
|
2382
2267
|
"mutation",
|
|
2383
2268
|
"internal",
|
|
@@ -2388,14 +2273,7 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
2388
2273
|
upsertUserProfile: FunctionReference<
|
|
2389
2274
|
"mutation",
|
|
2390
2275
|
"internal",
|
|
2391
|
-
{
|
|
2392
|
-
auth0Id: string;
|
|
2393
|
-
clinicId?: string;
|
|
2394
|
-
email: string;
|
|
2395
|
-
name?: string;
|
|
2396
|
-
roleName?: string;
|
|
2397
|
-
supplierId?: string;
|
|
2398
|
-
},
|
|
2276
|
+
{ auth0Id: string; clinicId?: string; supplierId?: string },
|
|
2399
2277
|
any,
|
|
2400
2278
|
Name
|
|
2401
2279
|
>;
|