@primocaredentgroup/elettromedicali 0.1.0
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 +72 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +233 -0
- package/dist/client/index.js.map +1 -0
- package/dist/component/_generated/api.d.ts +94 -0
- package/dist/component/_generated/api.d.ts.map +1 -0
- package/dist/component/_generated/api.js +31 -0
- package/dist/component/_generated/api.js.map +1 -0
- package/dist/component/_generated/component.d.ts +1444 -0
- package/dist/component/_generated/component.d.ts.map +1 -0
- package/dist/component/_generated/component.js +11 -0
- package/dist/component/_generated/component.js.map +1 -0
- package/dist/component/_generated/dataModel.d.ts +46 -0
- package/dist/component/_generated/dataModel.d.ts.map +1 -0
- package/dist/component/_generated/dataModel.js +11 -0
- package/dist/component/_generated/dataModel.js.map +1 -0
- package/dist/component/_generated/server.d.ts +121 -0
- package/dist/component/_generated/server.d.ts.map +1 -0
- package/dist/component/_generated/server.js +78 -0
- package/dist/component/_generated/server.js.map +1 -0
- package/dist/component/apiKeys.d.ts +69 -0
- package/dist/component/apiKeys.d.ts.map +1 -0
- package/dist/component/apiKeys.js +207 -0
- package/dist/component/apiKeys.js.map +1 -0
- package/dist/component/clinics.d.ts +103 -0
- package/dist/component/clinics.d.ts.map +1 -0
- package/dist/component/clinics.js +126 -0
- package/dist/component/clinics.js.map +1 -0
- package/dist/component/contracts.d.ts +85 -0
- package/dist/component/contracts.d.ts.map +1 -0
- package/dist/component/contracts.js +115 -0
- package/dist/component/contracts.js.map +1 -0
- package/dist/component/convex.config.d.ts +3 -0
- package/dist/component/convex.config.d.ts.map +1 -0
- package/dist/component/convex.config.js +3 -0
- package/dist/component/convex.config.js.map +1 -0
- package/dist/component/crons.d.ts +3 -0
- package/dist/component/crons.d.ts.map +1 -0
- package/dist/component/crons.js +7 -0
- package/dist/component/crons.js.map +1 -0
- package/dist/component/dashboardStats.d.ts +14 -0
- package/dist/component/dashboardStats.d.ts.map +1 -0
- package/dist/component/dashboardStats.js +136 -0
- package/dist/component/dashboardStats.js.map +1 -0
- package/dist/component/dashboardStatsCache.d.ts +32 -0
- package/dist/component/dashboardStatsCache.d.ts.map +1 -0
- package/dist/component/dashboardStatsCache.js +129 -0
- package/dist/component/dashboardStatsCache.js.map +1 -0
- package/dist/component/deviceCategories.d.ts +108 -0
- package/dist/component/deviceCategories.d.ts.map +1 -0
- package/dist/component/deviceCategories.js +254 -0
- package/dist/component/deviceCategories.js.map +1 -0
- package/dist/component/deviceQuestions.d.ts +129 -0
- package/dist/component/deviceQuestions.d.ts.map +1 -0
- package/dist/component/deviceQuestions.js +175 -0
- package/dist/component/deviceQuestions.js.map +1 -0
- package/dist/component/deviceRepairHistory.d.ts +30 -0
- package/dist/component/deviceRepairHistory.d.ts.map +1 -0
- package/dist/component/deviceRepairHistory.js +84 -0
- package/dist/component/deviceRepairHistory.js.map +1 -0
- package/dist/component/deviceStatus.d.ts +63 -0
- package/dist/component/deviceStatus.d.ts.map +1 -0
- package/dist/component/deviceStatus.js +58 -0
- package/dist/component/deviceStatus.js.map +1 -0
- package/dist/component/devices.d.ts +299 -0
- package/dist/component/devices.d.ts.map +1 -0
- package/dist/component/devices.js +587 -0
- package/dist/component/devices.js.map +1 -0
- package/dist/component/emailHelpers.d.ts +17 -0
- package/dist/component/emailHelpers.d.ts.map +1 -0
- package/dist/component/emailHelpers.js +39 -0
- package/dist/component/emailHelpers.js.map +1 -0
- package/dist/component/emails.d.ts +56 -0
- package/dist/component/emails.d.ts.map +1 -0
- package/dist/component/emails.js +58 -0
- package/dist/component/emails.js.map +1 -0
- package/dist/component/http.d.ts +3 -0
- package/dist/component/http.d.ts.map +1 -0
- package/dist/component/http.js +229 -0
- package/dist/component/http.js.map +1 -0
- package/dist/component/maintenanceTasks.d.ts +733 -0
- package/dist/component/maintenanceTasks.d.ts.map +1 -0
- package/dist/component/maintenanceTasks.js +937 -0
- package/dist/component/maintenanceTasks.js.map +1 -0
- package/dist/component/roles.d.ts +75 -0
- package/dist/component/roles.d.ts.map +1 -0
- package/dist/component/roles.js +98 -0
- package/dist/component/roles.js.map +1 -0
- package/dist/component/schema.d.ts +1295 -0
- package/dist/component/schema.d.ts.map +1 -0
- package/dist/component/schema.js +724 -0
- package/dist/component/schema.js.map +1 -0
- package/dist/component/slaMonitoring.d.ts +32 -0
- package/dist/component/slaMonitoring.d.ts.map +1 -0
- package/dist/component/slaMonitoring.js +111 -0
- package/dist/component/slaMonitoring.js.map +1 -0
- package/dist/component/slaRules.d.ts +72 -0
- package/dist/component/slaRules.d.ts.map +1 -0
- package/dist/component/slaRules.js +193 -0
- package/dist/component/slaRules.js.map +1 -0
- package/dist/component/sparePartOrders.d.ts +177 -0
- package/dist/component/sparePartOrders.d.ts.map +1 -0
- package/dist/component/sparePartOrders.js +243 -0
- package/dist/component/sparePartOrders.js.map +1 -0
- package/dist/component/spareParts.d.ts +472 -0
- package/dist/component/spareParts.d.ts.map +1 -0
- package/dist/component/spareParts.js +319 -0
- package/dist/component/spareParts.js.map +1 -0
- package/dist/component/supplierCategories.d.ts +22 -0
- package/dist/component/supplierCategories.d.ts.map +1 -0
- package/dist/component/supplierCategories.js +64 -0
- package/dist/component/supplierCategories.js.map +1 -0
- package/dist/component/suppliers.d.ts +94 -0
- package/dist/component/suppliers.d.ts.map +1 -0
- package/dist/component/suppliers.js +195 -0
- package/dist/component/suppliers.js.map +1 -0
- package/dist/component/ticketComments.d.ts +89 -0
- package/dist/component/ticketComments.d.ts.map +1 -0
- package/dist/component/ticketComments.js +246 -0
- package/dist/component/ticketComments.js.map +1 -0
- package/dist/component/ticketCustomFields.d.ts +149 -0
- package/dist/component/ticketCustomFields.d.ts.map +1 -0
- package/dist/component/ticketCustomFields.js +215 -0
- package/dist/component/ticketCustomFields.js.map +1 -0
- package/dist/component/ticketExport.d.ts +83 -0
- package/dist/component/ticketExport.d.ts.map +1 -0
- package/dist/component/ticketExport.js +182 -0
- package/dist/component/ticketExport.js.map +1 -0
- package/dist/component/ticketHistory.d.ts +57 -0
- package/dist/component/ticketHistory.d.ts.map +1 -0
- package/dist/component/ticketHistory.js +81 -0
- package/dist/component/ticketHistory.js.map +1 -0
- package/dist/component/ticketMacros.d.ts +141 -0
- package/dist/component/ticketMacros.d.ts.map +1 -0
- package/dist/component/ticketMacros.js +255 -0
- package/dist/component/ticketMacros.js.map +1 -0
- package/dist/component/ticketStatuses.d.ts +60 -0
- package/dist/component/ticketStatuses.d.ts.map +1 -0
- package/dist/component/ticketStatuses.js +110 -0
- package/dist/component/ticketStatuses.js.map +1 -0
- package/dist/component/ticketTriggers.d.ts +408 -0
- package/dist/component/ticketTriggers.d.ts.map +1 -0
- package/dist/component/ticketTriggers.js +941 -0
- package/dist/component/ticketTriggers.js.map +1 -0
- package/dist/component/userProfiles.d.ts +259 -0
- package/dist/component/userProfiles.d.ts.map +1 -0
- package/dist/component/userProfiles.js +634 -0
- package/dist/component/userProfiles.js.map +1 -0
- package/dist/component/vendorArticles.d.ts +64 -0
- package/dist/component/vendorArticles.d.ts.map +1 -0
- package/dist/component/vendorArticles.js +116 -0
- package/dist/component/vendorArticles.js.map +1 -0
- package/dist/test.d.ts +1302 -0
- package/dist/test.d.ts.map +1 -0
- package/dist/test.js +7 -0
- package/dist/test.js.map +1 -0
- package/package.json +71 -0
- package/src/client/index.ts +344 -0
- package/src/component/_generated/api.ts +110 -0
- package/src/component/_generated/component.ts +2460 -0
- package/src/component/_generated/dataModel.ts +60 -0
- package/src/component/_generated/server.ts +156 -0
- package/src/component/apiKeys.ts +229 -0
- package/src/component/clinics.ts +136 -0
- package/src/component/contracts.ts +136 -0
- package/src/component/convex.config.js +2 -0
- package/src/component/convex.config.ts +3 -0
- package/src/component/crons.ts +18 -0
- package/src/component/dashboardStats.ts +141 -0
- package/src/component/dashboardStatsCache.ts +145 -0
- package/src/component/deviceCategories.ts +280 -0
- package/src/component/deviceQuestions.ts +225 -0
- package/src/component/deviceRepairHistory.ts +94 -0
- package/src/component/deviceStatus.ts +79 -0
- package/src/component/devices.ts +645 -0
- package/src/component/emailHelpers.ts +38 -0
- package/src/component/emails.ts +61 -0
- package/src/component/http.ts +231 -0
- package/src/component/maintenanceTasks.ts +1003 -0
- package/src/component/roles.ts +99 -0
- package/src/component/schema.ts +842 -0
- package/src/component/slaMonitoring.ts +125 -0
- package/src/component/slaRules.ts +231 -0
- package/src/component/sparePartOrders.ts +290 -0
- package/src/component/spareParts.ts +362 -0
- package/src/component/supplierCategories.ts +65 -0
- package/src/component/suppliers.ts +234 -0
- package/src/component/ticketComments.ts +288 -0
- package/src/component/ticketCustomFields.ts +260 -0
- package/src/component/ticketExport.ts +220 -0
- package/src/component/ticketHistory.ts +106 -0
- package/src/component/ticketMacros.ts +291 -0
- package/src/component/ticketStatuses.ts +109 -0
- package/src/component/ticketTriggers.ts +1152 -0
- package/src/component/userProfiles.ts +745 -0
- package/src/component/vendorArticles.ts +139 -0
- package/src/test.ts +15 -0
|
@@ -0,0 +1,2460 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* Generated `ComponentApi` utility.
|
|
4
|
+
*
|
|
5
|
+
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
6
|
+
*
|
|
7
|
+
* To regenerate, run `npx convex dev`.
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import type { FunctionReference } from "convex/server";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A utility for referencing a Convex component's exposed API.
|
|
15
|
+
*
|
|
16
|
+
* Useful when expecting a parameter like `components.myComponent`.
|
|
17
|
+
* Usage:
|
|
18
|
+
* ```ts
|
|
19
|
+
* async function myFunction(ctx: QueryCtx, component: ComponentApi) {
|
|
20
|
+
* return ctx.runQuery(component.someFile.someQuery, { ...args });
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
25
|
+
{
|
|
26
|
+
apiKeys: {
|
|
27
|
+
createApiKey: FunctionReference<
|
|
28
|
+
"mutation",
|
|
29
|
+
"internal",
|
|
30
|
+
{
|
|
31
|
+
createdBy: string;
|
|
32
|
+
createdByEmail?: string;
|
|
33
|
+
expiresAt?: number;
|
|
34
|
+
name: string;
|
|
35
|
+
notes?: string;
|
|
36
|
+
permissions: Array<string>;
|
|
37
|
+
},
|
|
38
|
+
any,
|
|
39
|
+
Name
|
|
40
|
+
>;
|
|
41
|
+
deleteApiKey: FunctionReference<
|
|
42
|
+
"mutation",
|
|
43
|
+
"internal",
|
|
44
|
+
{ keyId: string },
|
|
45
|
+
any,
|
|
46
|
+
Name
|
|
47
|
+
>;
|
|
48
|
+
getAvailablePermissions: FunctionReference<
|
|
49
|
+
"query",
|
|
50
|
+
"internal",
|
|
51
|
+
{},
|
|
52
|
+
any,
|
|
53
|
+
Name
|
|
54
|
+
>;
|
|
55
|
+
listApiKeys: FunctionReference<"query", "internal", {}, any, Name>;
|
|
56
|
+
reactivateApiKey: FunctionReference<
|
|
57
|
+
"mutation",
|
|
58
|
+
"internal",
|
|
59
|
+
{ keyId: string },
|
|
60
|
+
any,
|
|
61
|
+
Name
|
|
62
|
+
>;
|
|
63
|
+
revokeApiKey: FunctionReference<
|
|
64
|
+
"mutation",
|
|
65
|
+
"internal",
|
|
66
|
+
{ keyId: string; revokedBy?: string },
|
|
67
|
+
any,
|
|
68
|
+
Name
|
|
69
|
+
>;
|
|
70
|
+
updateApiKey: FunctionReference<
|
|
71
|
+
"mutation",
|
|
72
|
+
"internal",
|
|
73
|
+
{
|
|
74
|
+
expiresAt?: number;
|
|
75
|
+
keyId: string;
|
|
76
|
+
name?: string;
|
|
77
|
+
notes?: string;
|
|
78
|
+
permissions?: Array<string>;
|
|
79
|
+
},
|
|
80
|
+
any,
|
|
81
|
+
Name
|
|
82
|
+
>;
|
|
83
|
+
validateApiKey: FunctionReference<
|
|
84
|
+
"query",
|
|
85
|
+
"internal",
|
|
86
|
+
{ plainKey: string },
|
|
87
|
+
any,
|
|
88
|
+
Name
|
|
89
|
+
>;
|
|
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
|
+
contracts: {
|
|
190
|
+
createContract: FunctionReference<
|
|
191
|
+
"mutation",
|
|
192
|
+
"internal",
|
|
193
|
+
{
|
|
194
|
+
amount: number;
|
|
195
|
+
clinicIds?: Array<string>;
|
|
196
|
+
description?: string;
|
|
197
|
+
end_date: number;
|
|
198
|
+
pdfStorageId?: string;
|
|
199
|
+
pdf_url?: string;
|
|
200
|
+
related_devices: Array<string>;
|
|
201
|
+
start_date: number;
|
|
202
|
+
supplierId: string;
|
|
203
|
+
type: "full" | "on_demand" | "mixed";
|
|
204
|
+
},
|
|
205
|
+
any,
|
|
206
|
+
Name
|
|
207
|
+
>;
|
|
208
|
+
deleteContract: FunctionReference<
|
|
209
|
+
"mutation",
|
|
210
|
+
"internal",
|
|
211
|
+
{ contractId: string },
|
|
212
|
+
any,
|
|
213
|
+
Name
|
|
214
|
+
>;
|
|
215
|
+
generateUploadUrl: FunctionReference<
|
|
216
|
+
"mutation",
|
|
217
|
+
"internal",
|
|
218
|
+
{},
|
|
219
|
+
any,
|
|
220
|
+
Name
|
|
221
|
+
>;
|
|
222
|
+
getContractPdfUrl: FunctionReference<
|
|
223
|
+
"query",
|
|
224
|
+
"internal",
|
|
225
|
+
{ storageId: string },
|
|
226
|
+
any,
|
|
227
|
+
Name
|
|
228
|
+
>;
|
|
229
|
+
getContractsByClinic: FunctionReference<
|
|
230
|
+
"query",
|
|
231
|
+
"internal",
|
|
232
|
+
{ clinicId: string },
|
|
233
|
+
any,
|
|
234
|
+
Name
|
|
235
|
+
>;
|
|
236
|
+
getContractsBySupplier: FunctionReference<
|
|
237
|
+
"query",
|
|
238
|
+
"internal",
|
|
239
|
+
{ supplierId: string },
|
|
240
|
+
any,
|
|
241
|
+
Name
|
|
242
|
+
>;
|
|
243
|
+
listContracts: FunctionReference<"query", "internal", {}, any, Name>;
|
|
244
|
+
updateContract: FunctionReference<
|
|
245
|
+
"mutation",
|
|
246
|
+
"internal",
|
|
247
|
+
{
|
|
248
|
+
amount?: number;
|
|
249
|
+
clinicIds?: Array<string>;
|
|
250
|
+
contractId: string;
|
|
251
|
+
description?: string;
|
|
252
|
+
end_date?: number;
|
|
253
|
+
pdfStorageId?: string;
|
|
254
|
+
pdf_url?: string;
|
|
255
|
+
related_devices?: Array<string>;
|
|
256
|
+
start_date?: number;
|
|
257
|
+
type?: "full" | "on_demand" | "mixed";
|
|
258
|
+
},
|
|
259
|
+
any,
|
|
260
|
+
Name
|
|
261
|
+
>;
|
|
262
|
+
};
|
|
263
|
+
dashboardStats: {
|
|
264
|
+
getAdminDashboardStats: FunctionReference<
|
|
265
|
+
"query",
|
|
266
|
+
"internal",
|
|
267
|
+
{},
|
|
268
|
+
any,
|
|
269
|
+
Name
|
|
270
|
+
>;
|
|
271
|
+
getRecentActivity: FunctionReference<"query", "internal", {}, any, Name>;
|
|
272
|
+
};
|
|
273
|
+
deviceCategories: {
|
|
274
|
+
create: FunctionReference<
|
|
275
|
+
"mutation",
|
|
276
|
+
"internal",
|
|
277
|
+
{
|
|
278
|
+
activeWarehouseCategory?: number;
|
|
279
|
+
createdAt?: string;
|
|
280
|
+
name: string;
|
|
281
|
+
note?: string;
|
|
282
|
+
orisId?: string;
|
|
283
|
+
parentId?: number;
|
|
284
|
+
primoupId: number;
|
|
285
|
+
type?: string;
|
|
286
|
+
updatedAt?: string;
|
|
287
|
+
},
|
|
288
|
+
any,
|
|
289
|
+
Name
|
|
290
|
+
>;
|
|
291
|
+
deleteAll: FunctionReference<"mutation", "internal", {}, any, Name>;
|
|
292
|
+
get: FunctionReference<"query", "internal", { id: string }, any, Name>;
|
|
293
|
+
getByPrimoupId: FunctionReference<
|
|
294
|
+
"query",
|
|
295
|
+
"internal",
|
|
296
|
+
{ primoupId: number },
|
|
297
|
+
any,
|
|
298
|
+
Name
|
|
299
|
+
>;
|
|
300
|
+
importCategories: FunctionReference<
|
|
301
|
+
"mutation",
|
|
302
|
+
"internal",
|
|
303
|
+
{
|
|
304
|
+
categories: Array<{
|
|
305
|
+
active_warehouse_category: number | null;
|
|
306
|
+
created_at: string | null;
|
|
307
|
+
id: number | null;
|
|
308
|
+
name: string | null;
|
|
309
|
+
note: string | null;
|
|
310
|
+
oris_id: string | null;
|
|
311
|
+
parent_id: number | null;
|
|
312
|
+
type: string | null;
|
|
313
|
+
updated_at: string | null;
|
|
314
|
+
}>;
|
|
315
|
+
},
|
|
316
|
+
any,
|
|
317
|
+
Name
|
|
318
|
+
>;
|
|
319
|
+
list: FunctionReference<
|
|
320
|
+
"query",
|
|
321
|
+
"internal",
|
|
322
|
+
{ noteFilter?: string; search?: string; typeFilter?: string },
|
|
323
|
+
any,
|
|
324
|
+
Name
|
|
325
|
+
>;
|
|
326
|
+
remove: FunctionReference<
|
|
327
|
+
"mutation",
|
|
328
|
+
"internal",
|
|
329
|
+
{ id: string },
|
|
330
|
+
any,
|
|
331
|
+
Name
|
|
332
|
+
>;
|
|
333
|
+
stats: FunctionReference<"query", "internal", {}, any, Name>;
|
|
334
|
+
update: FunctionReference<
|
|
335
|
+
"mutation",
|
|
336
|
+
"internal",
|
|
337
|
+
{
|
|
338
|
+
activeWarehouseCategory?: number;
|
|
339
|
+
createdAt?: string;
|
|
340
|
+
id: string;
|
|
341
|
+
name?: string;
|
|
342
|
+
note?: string;
|
|
343
|
+
orisId?: string;
|
|
344
|
+
parentId?: number;
|
|
345
|
+
type?: string;
|
|
346
|
+
updatedAt?: string;
|
|
347
|
+
},
|
|
348
|
+
any,
|
|
349
|
+
Name
|
|
350
|
+
>;
|
|
351
|
+
};
|
|
352
|
+
deviceQuestions: {
|
|
353
|
+
createQuestion: FunctionReference<
|
|
354
|
+
"mutation",
|
|
355
|
+
"internal",
|
|
356
|
+
{
|
|
357
|
+
conditionalLogic?: {
|
|
358
|
+
conditions: Array<{
|
|
359
|
+
operator:
|
|
360
|
+
| "equals"
|
|
361
|
+
| "not_equals"
|
|
362
|
+
| "contains"
|
|
363
|
+
| "not_contains"
|
|
364
|
+
| "greater_than"
|
|
365
|
+
| "less_than"
|
|
366
|
+
| "is_empty"
|
|
367
|
+
| "is_not_empty";
|
|
368
|
+
questionId: string;
|
|
369
|
+
value: any;
|
|
370
|
+
}>;
|
|
371
|
+
enabled: boolean;
|
|
372
|
+
logic: "AND" | "OR";
|
|
373
|
+
};
|
|
374
|
+
createdBy: string;
|
|
375
|
+
deviceId: string;
|
|
376
|
+
helpText?: string;
|
|
377
|
+
isRequired: boolean;
|
|
378
|
+
options?: Array<string>;
|
|
379
|
+
order: number;
|
|
380
|
+
placeholder?: string;
|
|
381
|
+
question: string;
|
|
382
|
+
questionType:
|
|
383
|
+
| "text"
|
|
384
|
+
| "textarea"
|
|
385
|
+
| "select"
|
|
386
|
+
| "multiselect"
|
|
387
|
+
| "yes_no"
|
|
388
|
+
| "number"
|
|
389
|
+
| "date";
|
|
390
|
+
},
|
|
391
|
+
any,
|
|
392
|
+
Name
|
|
393
|
+
>;
|
|
394
|
+
deleteQuestion: FunctionReference<
|
|
395
|
+
"mutation",
|
|
396
|
+
"internal",
|
|
397
|
+
{ questionId: string },
|
|
398
|
+
any,
|
|
399
|
+
Name
|
|
400
|
+
>;
|
|
401
|
+
getQuestion: FunctionReference<
|
|
402
|
+
"query",
|
|
403
|
+
"internal",
|
|
404
|
+
{ questionId: string },
|
|
405
|
+
any,
|
|
406
|
+
Name
|
|
407
|
+
>;
|
|
408
|
+
listAllQuestions: FunctionReference<"query", "internal", {}, any, Name>;
|
|
409
|
+
listQuestionsByDevice: FunctionReference<
|
|
410
|
+
"query",
|
|
411
|
+
"internal",
|
|
412
|
+
{ deviceId: string },
|
|
413
|
+
any,
|
|
414
|
+
Name
|
|
415
|
+
>;
|
|
416
|
+
reorderQuestions: FunctionReference<
|
|
417
|
+
"mutation",
|
|
418
|
+
"internal",
|
|
419
|
+
{ deviceId: string; questionIds: Array<string> },
|
|
420
|
+
any,
|
|
421
|
+
Name
|
|
422
|
+
>;
|
|
423
|
+
updateQuestion: FunctionReference<
|
|
424
|
+
"mutation",
|
|
425
|
+
"internal",
|
|
426
|
+
{
|
|
427
|
+
conditionalLogic?: {
|
|
428
|
+
conditions: Array<{
|
|
429
|
+
operator:
|
|
430
|
+
| "equals"
|
|
431
|
+
| "not_equals"
|
|
432
|
+
| "contains"
|
|
433
|
+
| "not_contains"
|
|
434
|
+
| "greater_than"
|
|
435
|
+
| "less_than"
|
|
436
|
+
| "is_empty"
|
|
437
|
+
| "is_not_empty";
|
|
438
|
+
questionId: string;
|
|
439
|
+
value: any;
|
|
440
|
+
}>;
|
|
441
|
+
enabled: boolean;
|
|
442
|
+
logic: "AND" | "OR";
|
|
443
|
+
};
|
|
444
|
+
helpText?: string;
|
|
445
|
+
isActive?: boolean;
|
|
446
|
+
isRequired?: boolean;
|
|
447
|
+
options?: Array<string>;
|
|
448
|
+
order?: number;
|
|
449
|
+
placeholder?: string;
|
|
450
|
+
question?: string;
|
|
451
|
+
questionId: string;
|
|
452
|
+
questionType?:
|
|
453
|
+
| "text"
|
|
454
|
+
| "textarea"
|
|
455
|
+
| "select"
|
|
456
|
+
| "multiselect"
|
|
457
|
+
| "yes_no"
|
|
458
|
+
| "number"
|
|
459
|
+
| "date";
|
|
460
|
+
},
|
|
461
|
+
any,
|
|
462
|
+
Name
|
|
463
|
+
>;
|
|
464
|
+
};
|
|
465
|
+
deviceRepairHistory: {
|
|
466
|
+
getRepairHistory: FunctionReference<
|
|
467
|
+
"query",
|
|
468
|
+
"internal",
|
|
469
|
+
{ deviceId: string },
|
|
470
|
+
any,
|
|
471
|
+
Name
|
|
472
|
+
>;
|
|
473
|
+
returnFromRepair: FunctionReference<
|
|
474
|
+
"mutation",
|
|
475
|
+
"internal",
|
|
476
|
+
{
|
|
477
|
+
deviceId: string;
|
|
478
|
+
notes?: string;
|
|
479
|
+
returnedBy: string;
|
|
480
|
+
statusAfterRepair: "active" | "out_of_service";
|
|
481
|
+
},
|
|
482
|
+
any,
|
|
483
|
+
Name
|
|
484
|
+
>;
|
|
485
|
+
sendToRepair: FunctionReference<
|
|
486
|
+
"mutation",
|
|
487
|
+
"internal",
|
|
488
|
+
{
|
|
489
|
+
createdBy: string;
|
|
490
|
+
deviceId: string;
|
|
491
|
+
notes?: string;
|
|
492
|
+
ticketId?: string;
|
|
493
|
+
},
|
|
494
|
+
any,
|
|
495
|
+
Name
|
|
496
|
+
>;
|
|
497
|
+
};
|
|
498
|
+
devices: {
|
|
499
|
+
createDevice: FunctionReference<
|
|
500
|
+
"mutation",
|
|
501
|
+
"internal",
|
|
502
|
+
{
|
|
503
|
+
authorizationsStorageIds?: Array<string>;
|
|
504
|
+
brand: string;
|
|
505
|
+
category: string;
|
|
506
|
+
clinicId: string;
|
|
507
|
+
conformityDeclarationStorageId?: string;
|
|
508
|
+
industry40Data?: string;
|
|
509
|
+
internalId?: string;
|
|
510
|
+
maintenanceManualStorageId?: string;
|
|
511
|
+
maintenanceReportsStorageIds?: Array<string>;
|
|
512
|
+
metadata?: any;
|
|
513
|
+
model: string;
|
|
514
|
+
name: string;
|
|
515
|
+
otherAttachmentsStorageIds?: Array<string>;
|
|
516
|
+
photoStorageId?: string;
|
|
517
|
+
purchaseCost?: number;
|
|
518
|
+
purchaseDate?: number;
|
|
519
|
+
serial_number: string;
|
|
520
|
+
spareParts?: Array<{
|
|
521
|
+
code: string;
|
|
522
|
+
name: string;
|
|
523
|
+
notes?: string;
|
|
524
|
+
photoStorageId?: string;
|
|
525
|
+
quantity: number;
|
|
526
|
+
}>;
|
|
527
|
+
status: "active" | "in_maintenance" | "out_of_service";
|
|
528
|
+
supplierId?: string;
|
|
529
|
+
vendor?: string;
|
|
530
|
+
warrantyEndDate?: number;
|
|
531
|
+
},
|
|
532
|
+
any,
|
|
533
|
+
Name
|
|
534
|
+
>;
|
|
535
|
+
createDeviceByUser: FunctionReference<
|
|
536
|
+
"mutation",
|
|
537
|
+
"internal",
|
|
538
|
+
{
|
|
539
|
+
brand: string;
|
|
540
|
+
category: string;
|
|
541
|
+
model: string;
|
|
542
|
+
name: string;
|
|
543
|
+
serial_number: string;
|
|
544
|
+
userPrimoupClinics?: Array<any>;
|
|
545
|
+
userSelectedClinicId: number;
|
|
546
|
+
},
|
|
547
|
+
any,
|
|
548
|
+
Name
|
|
549
|
+
>;
|
|
550
|
+
deleteDevice: FunctionReference<
|
|
551
|
+
"mutation",
|
|
552
|
+
"internal",
|
|
553
|
+
{ deviceId: string },
|
|
554
|
+
any,
|
|
555
|
+
Name
|
|
556
|
+
>;
|
|
557
|
+
generateUploadUrl: FunctionReference<
|
|
558
|
+
"mutation",
|
|
559
|
+
"internal",
|
|
560
|
+
{},
|
|
561
|
+
any,
|
|
562
|
+
Name
|
|
563
|
+
>;
|
|
564
|
+
getById: FunctionReference<
|
|
565
|
+
"query",
|
|
566
|
+
"internal",
|
|
567
|
+
{ id: string },
|
|
568
|
+
any,
|
|
569
|
+
Name
|
|
570
|
+
>;
|
|
571
|
+
getDevice: FunctionReference<
|
|
572
|
+
"query",
|
|
573
|
+
"internal",
|
|
574
|
+
{ deviceId: string },
|
|
575
|
+
any,
|
|
576
|
+
Name
|
|
577
|
+
>;
|
|
578
|
+
getDevicesCount: FunctionReference<
|
|
579
|
+
"query",
|
|
580
|
+
"internal",
|
|
581
|
+
{
|
|
582
|
+
brand?: string;
|
|
583
|
+
category?: string;
|
|
584
|
+
clinicId?: string;
|
|
585
|
+
status?: string;
|
|
586
|
+
userClinicId?: string;
|
|
587
|
+
userRole?: string;
|
|
588
|
+
userSelectedClinicId?: number;
|
|
589
|
+
},
|
|
590
|
+
any,
|
|
591
|
+
Name
|
|
592
|
+
>;
|
|
593
|
+
getDeviceStats: FunctionReference<
|
|
594
|
+
"query",
|
|
595
|
+
"internal",
|
|
596
|
+
{ userClinicId?: string; userRole?: string },
|
|
597
|
+
any,
|
|
598
|
+
Name
|
|
599
|
+
>;
|
|
600
|
+
getDeviceTemplates: FunctionReference<
|
|
601
|
+
"query",
|
|
602
|
+
"internal",
|
|
603
|
+
{ searchQuery?: string },
|
|
604
|
+
any,
|
|
605
|
+
Name
|
|
606
|
+
>;
|
|
607
|
+
getFileUrl: FunctionReference<
|
|
608
|
+
"query",
|
|
609
|
+
"internal",
|
|
610
|
+
{ storageId: string },
|
|
611
|
+
any,
|
|
612
|
+
Name
|
|
613
|
+
>;
|
|
614
|
+
getUniqueBrandsAndModels: FunctionReference<
|
|
615
|
+
"query",
|
|
616
|
+
"internal",
|
|
617
|
+
{},
|
|
618
|
+
any,
|
|
619
|
+
Name
|
|
620
|
+
>;
|
|
621
|
+
listAllDevicesForAdmin: FunctionReference<
|
|
622
|
+
"query",
|
|
623
|
+
"internal",
|
|
624
|
+
{},
|
|
625
|
+
any,
|
|
626
|
+
Name
|
|
627
|
+
>;
|
|
628
|
+
listAllDevicesForExport: FunctionReference<
|
|
629
|
+
"query",
|
|
630
|
+
"internal",
|
|
631
|
+
{},
|
|
632
|
+
any,
|
|
633
|
+
Name
|
|
634
|
+
>;
|
|
635
|
+
listAllDevicesForMigration: FunctionReference<
|
|
636
|
+
"query",
|
|
637
|
+
"internal",
|
|
638
|
+
{ lastCreationTime?: number; limit?: number },
|
|
639
|
+
any,
|
|
640
|
+
Name
|
|
641
|
+
>;
|
|
642
|
+
listDevices: FunctionReference<
|
|
643
|
+
"query",
|
|
644
|
+
"internal",
|
|
645
|
+
{
|
|
646
|
+
_triggerReload?: number;
|
|
647
|
+
clinicId?: string;
|
|
648
|
+
paginationOpts?: { cursor: string | null; numItems: number };
|
|
649
|
+
userClinicId?: string;
|
|
650
|
+
userRole?: string;
|
|
651
|
+
userSelectedClinicId?: number;
|
|
652
|
+
},
|
|
653
|
+
any,
|
|
654
|
+
Name
|
|
655
|
+
>;
|
|
656
|
+
listDevicesPaginated: FunctionReference<
|
|
657
|
+
"query",
|
|
658
|
+
"internal",
|
|
659
|
+
{
|
|
660
|
+
brand?: string;
|
|
661
|
+
category?: string;
|
|
662
|
+
clinicId?: string;
|
|
663
|
+
paginationOpts: { cursor: string | null; numItems: number };
|
|
664
|
+
searchTerm?: string;
|
|
665
|
+
status?: string;
|
|
666
|
+
userClinicId?: string;
|
|
667
|
+
userRole?: string;
|
|
668
|
+
userSelectedClinicId?: number;
|
|
669
|
+
},
|
|
670
|
+
any,
|
|
671
|
+
Name
|
|
672
|
+
>;
|
|
673
|
+
updateDevice: FunctionReference<
|
|
674
|
+
"mutation",
|
|
675
|
+
"internal",
|
|
676
|
+
{
|
|
677
|
+
authorizationsStorageIds?: Array<string>;
|
|
678
|
+
brand?: string;
|
|
679
|
+
category?: string;
|
|
680
|
+
clinicId?: string;
|
|
681
|
+
conformityDeclarationStorageId?: string;
|
|
682
|
+
deviceId: string;
|
|
683
|
+
industry40Data?: string;
|
|
684
|
+
internalId?: string;
|
|
685
|
+
maintenanceManualStorageId?: string;
|
|
686
|
+
maintenanceReportsStorageIds?: Array<string>;
|
|
687
|
+
metadata?: any;
|
|
688
|
+
model?: string;
|
|
689
|
+
name?: string;
|
|
690
|
+
otherAttachmentsStorageIds?: Array<string>;
|
|
691
|
+
photoStorageId?: string;
|
|
692
|
+
primoupCategoryId?: string;
|
|
693
|
+
primoupClinicId?: number;
|
|
694
|
+
purchaseCost?: number;
|
|
695
|
+
purchaseDate?: number;
|
|
696
|
+
serial_number?: string;
|
|
697
|
+
spareParts?: Array<{
|
|
698
|
+
code: string;
|
|
699
|
+
name: string;
|
|
700
|
+
notes?: string;
|
|
701
|
+
photoStorageId?: string;
|
|
702
|
+
quantity: number;
|
|
703
|
+
}>;
|
|
704
|
+
status?: "active" | "in_maintenance" | "out_of_service";
|
|
705
|
+
supplierId?: string;
|
|
706
|
+
vendor?: string;
|
|
707
|
+
warrantyEndDate?: number;
|
|
708
|
+
},
|
|
709
|
+
any,
|
|
710
|
+
Name
|
|
711
|
+
>;
|
|
712
|
+
updateDeviceByUser: FunctionReference<
|
|
713
|
+
"mutation",
|
|
714
|
+
"internal",
|
|
715
|
+
{
|
|
716
|
+
brand?: string;
|
|
717
|
+
category?: string;
|
|
718
|
+
deviceId: string;
|
|
719
|
+
industry40Data?: string;
|
|
720
|
+
model?: string;
|
|
721
|
+
name?: string;
|
|
722
|
+
serial_number?: string;
|
|
723
|
+
status?: "active" | "in_maintenance" | "out_of_service";
|
|
724
|
+
userClinicId?: string;
|
|
725
|
+
userRole: string;
|
|
726
|
+
userSelectedClinicId?: number;
|
|
727
|
+
},
|
|
728
|
+
any,
|
|
729
|
+
Name
|
|
730
|
+
>;
|
|
731
|
+
};
|
|
732
|
+
deviceStatus: {
|
|
733
|
+
computeDeviceStatus: FunctionReference<
|
|
734
|
+
"query",
|
|
735
|
+
"internal",
|
|
736
|
+
{ deviceId: string },
|
|
737
|
+
any,
|
|
738
|
+
Name
|
|
739
|
+
>;
|
|
740
|
+
getDeviceTicketHistory: FunctionReference<
|
|
741
|
+
"query",
|
|
742
|
+
"internal",
|
|
743
|
+
{ deviceId: string },
|
|
744
|
+
any,
|
|
745
|
+
Name
|
|
746
|
+
>;
|
|
747
|
+
};
|
|
748
|
+
emailHelpers: {
|
|
749
|
+
getAdminEmails: FunctionReference<"query", "internal", {}, any, Name>;
|
|
750
|
+
getClinicEmail: FunctionReference<
|
|
751
|
+
"query",
|
|
752
|
+
"internal",
|
|
753
|
+
{ clinicId: string },
|
|
754
|
+
any,
|
|
755
|
+
Name
|
|
756
|
+
>;
|
|
757
|
+
getSupplierEmail: FunctionReference<
|
|
758
|
+
"query",
|
|
759
|
+
"internal",
|
|
760
|
+
{ supplierId: string },
|
|
761
|
+
any,
|
|
762
|
+
Name
|
|
763
|
+
>;
|
|
764
|
+
};
|
|
765
|
+
emails: {
|
|
766
|
+
getAllEmailLogs: FunctionReference<
|
|
767
|
+
"query",
|
|
768
|
+
"internal",
|
|
769
|
+
{ limit?: number },
|
|
770
|
+
any,
|
|
771
|
+
Name
|
|
772
|
+
>;
|
|
773
|
+
getEmailLogsByTicket: FunctionReference<
|
|
774
|
+
"query",
|
|
775
|
+
"internal",
|
|
776
|
+
{ ticketId: string },
|
|
777
|
+
any,
|
|
778
|
+
Name
|
|
779
|
+
>;
|
|
780
|
+
getFailedEmails: FunctionReference<
|
|
781
|
+
"query",
|
|
782
|
+
"internal",
|
|
783
|
+
{ limit?: number },
|
|
784
|
+
any,
|
|
785
|
+
Name
|
|
786
|
+
>;
|
|
787
|
+
logEmail: FunctionReference<
|
|
788
|
+
"mutation",
|
|
789
|
+
"internal",
|
|
790
|
+
{
|
|
791
|
+
errorMessage?: string;
|
|
792
|
+
from: string;
|
|
793
|
+
html: string;
|
|
794
|
+
resendId?: string;
|
|
795
|
+
status: "sent" | "failed" | "pending";
|
|
796
|
+
subject: string;
|
|
797
|
+
ticketId?: string;
|
|
798
|
+
to: string | Array<string>;
|
|
799
|
+
},
|
|
800
|
+
any,
|
|
801
|
+
Name
|
|
802
|
+
>;
|
|
803
|
+
};
|
|
804
|
+
maintenanceTasks: {
|
|
805
|
+
addMaintenanceTaskPhotos: FunctionReference<
|
|
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<
|
|
874
|
+
"query",
|
|
875
|
+
"internal",
|
|
876
|
+
{ userClinicId?: string; userRole?: string; userSupplierId?: string },
|
|
877
|
+
any,
|
|
878
|
+
Name
|
|
879
|
+
>;
|
|
880
|
+
getTaskPhotoUrls: FunctionReference<
|
|
881
|
+
"query",
|
|
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",
|
|
904
|
+
"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
|
+
},
|
|
925
|
+
any,
|
|
926
|
+
Name
|
|
927
|
+
>;
|
|
928
|
+
reassignTicketToSupplier: FunctionReference<
|
|
929
|
+
"mutation",
|
|
930
|
+
"internal",
|
|
931
|
+
{ newSupplierId: string; taskId: string; userSupplierId?: string },
|
|
932
|
+
any,
|
|
933
|
+
Name
|
|
934
|
+
>;
|
|
935
|
+
updateMaintenanceTaskStatus: FunctionReference<
|
|
936
|
+
"mutation",
|
|
937
|
+
"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
|
+
},
|
|
949
|
+
any,
|
|
950
|
+
Name
|
|
951
|
+
>;
|
|
952
|
+
updateMaintenanceTaskSupplier: FunctionReference<
|
|
953
|
+
"mutation",
|
|
954
|
+
"internal",
|
|
955
|
+
{ supplierId?: string; taskId: string },
|
|
956
|
+
any,
|
|
957
|
+
Name
|
|
958
|
+
>;
|
|
959
|
+
};
|
|
960
|
+
roles: {
|
|
961
|
+
createRole: FunctionReference<
|
|
962
|
+
"mutation",
|
|
963
|
+
"internal",
|
|
964
|
+
{
|
|
965
|
+
description: string;
|
|
966
|
+
name: string;
|
|
967
|
+
policies?: {
|
|
968
|
+
canEditClinics?: boolean;
|
|
969
|
+
canEditDevices?: boolean;
|
|
970
|
+
canEditTickets?: boolean;
|
|
971
|
+
canManageRoles?: boolean;
|
|
972
|
+
canManageUsers?: boolean;
|
|
973
|
+
canViewAllClinics?: boolean;
|
|
974
|
+
canViewAllDevices?: boolean;
|
|
975
|
+
canViewAllTickets?: boolean;
|
|
976
|
+
canViewReports?: boolean;
|
|
977
|
+
};
|
|
978
|
+
},
|
|
979
|
+
any,
|
|
980
|
+
Name
|
|
981
|
+
>;
|
|
982
|
+
deleteRole: FunctionReference<
|
|
983
|
+
"mutation",
|
|
984
|
+
"internal",
|
|
985
|
+
{ roleId: string },
|
|
986
|
+
any,
|
|
987
|
+
Name
|
|
988
|
+
>;
|
|
989
|
+
getRole: FunctionReference<
|
|
990
|
+
"query",
|
|
991
|
+
"internal",
|
|
992
|
+
{ roleId: string },
|
|
993
|
+
any,
|
|
994
|
+
Name
|
|
995
|
+
>;
|
|
996
|
+
listRoles: FunctionReference<"query", "internal", {}, any, Name>;
|
|
997
|
+
updateRole: FunctionReference<
|
|
998
|
+
"mutation",
|
|
999
|
+
"internal",
|
|
1000
|
+
{
|
|
1001
|
+
description?: string;
|
|
1002
|
+
name?: string;
|
|
1003
|
+
policies?: {
|
|
1004
|
+
canEditClinics?: boolean;
|
|
1005
|
+
canEditDevices?: boolean;
|
|
1006
|
+
canEditTickets?: boolean;
|
|
1007
|
+
canManageRoles?: boolean;
|
|
1008
|
+
canManageUsers?: boolean;
|
|
1009
|
+
canViewAllClinics?: boolean;
|
|
1010
|
+
canViewAllDevices?: boolean;
|
|
1011
|
+
canViewAllTickets?: boolean;
|
|
1012
|
+
canViewReports?: boolean;
|
|
1013
|
+
};
|
|
1014
|
+
roleId: string;
|
|
1015
|
+
},
|
|
1016
|
+
any,
|
|
1017
|
+
Name
|
|
1018
|
+
>;
|
|
1019
|
+
};
|
|
1020
|
+
slaRules: {
|
|
1021
|
+
createSLARule: FunctionReference<
|
|
1022
|
+
"mutation",
|
|
1023
|
+
"internal",
|
|
1024
|
+
{
|
|
1025
|
+
description?: string;
|
|
1026
|
+
deviceCategory?: string;
|
|
1027
|
+
name?: string;
|
|
1028
|
+
priority: "low" | "medium" | "high";
|
|
1029
|
+
resolutionTimeHours: number;
|
|
1030
|
+
responseTimeHours: number;
|
|
1031
|
+
supplierId: string;
|
|
1032
|
+
},
|
|
1033
|
+
any,
|
|
1034
|
+
Name
|
|
1035
|
+
>;
|
|
1036
|
+
deleteSLARule: FunctionReference<
|
|
1037
|
+
"mutation",
|
|
1038
|
+
"internal",
|
|
1039
|
+
{ ruleId: string },
|
|
1040
|
+
any,
|
|
1041
|
+
Name
|
|
1042
|
+
>;
|
|
1043
|
+
getDeviceCategories: FunctionReference<
|
|
1044
|
+
"query",
|
|
1045
|
+
"internal",
|
|
1046
|
+
{},
|
|
1047
|
+
any,
|
|
1048
|
+
Name
|
|
1049
|
+
>;
|
|
1050
|
+
getSLARule: FunctionReference<
|
|
1051
|
+
"query",
|
|
1052
|
+
"internal",
|
|
1053
|
+
{
|
|
1054
|
+
deviceCategory?: string;
|
|
1055
|
+
priority: "low" | "medium" | "high";
|
|
1056
|
+
supplierId: string;
|
|
1057
|
+
},
|
|
1058
|
+
any,
|
|
1059
|
+
Name
|
|
1060
|
+
>;
|
|
1061
|
+
getSLARulesBySupplier: FunctionReference<
|
|
1062
|
+
"query",
|
|
1063
|
+
"internal",
|
|
1064
|
+
{ supplierId: string },
|
|
1065
|
+
any,
|
|
1066
|
+
Name
|
|
1067
|
+
>;
|
|
1068
|
+
listSLARules: FunctionReference<"query", "internal", {}, any, Name>;
|
|
1069
|
+
updateSLARule: FunctionReference<
|
|
1070
|
+
"mutation",
|
|
1071
|
+
"internal",
|
|
1072
|
+
{
|
|
1073
|
+
description?: string;
|
|
1074
|
+
deviceCategory?: string;
|
|
1075
|
+
name?: string;
|
|
1076
|
+
priority?: "low" | "medium" | "high";
|
|
1077
|
+
resolutionTimeHours: number;
|
|
1078
|
+
responseTimeHours: number;
|
|
1079
|
+
ruleId: string;
|
|
1080
|
+
supplierId?: string;
|
|
1081
|
+
},
|
|
1082
|
+
any,
|
|
1083
|
+
Name
|
|
1084
|
+
>;
|
|
1085
|
+
};
|
|
1086
|
+
sparePartOrders: {
|
|
1087
|
+
createOrder: FunctionReference<
|
|
1088
|
+
"mutation",
|
|
1089
|
+
"internal",
|
|
1090
|
+
{
|
|
1091
|
+
clinicId: number;
|
|
1092
|
+
createdBy: string;
|
|
1093
|
+
items: Array<{
|
|
1094
|
+
articleId: number;
|
|
1095
|
+
articleName: string;
|
|
1096
|
+
code?: string;
|
|
1097
|
+
notes?: string;
|
|
1098
|
+
quantity: number;
|
|
1099
|
+
sparePartId: string;
|
|
1100
|
+
totalPrice?: number;
|
|
1101
|
+
unitPrice?: number;
|
|
1102
|
+
}>;
|
|
1103
|
+
notes?: string;
|
|
1104
|
+
requestedDeliveryDate?: number;
|
|
1105
|
+
supplierId: string;
|
|
1106
|
+
},
|
|
1107
|
+
any,
|
|
1108
|
+
Name
|
|
1109
|
+
>;
|
|
1110
|
+
deleteOrder: FunctionReference<
|
|
1111
|
+
"mutation",
|
|
1112
|
+
"internal",
|
|
1113
|
+
{ orderId: string },
|
|
1114
|
+
any,
|
|
1115
|
+
Name
|
|
1116
|
+
>;
|
|
1117
|
+
getOrder: FunctionReference<
|
|
1118
|
+
"query",
|
|
1119
|
+
"internal",
|
|
1120
|
+
{ orderId: string },
|
|
1121
|
+
any,
|
|
1122
|
+
Name
|
|
1123
|
+
>;
|
|
1124
|
+
listAllOrders: FunctionReference<
|
|
1125
|
+
"query",
|
|
1126
|
+
"internal",
|
|
1127
|
+
{ limit?: number },
|
|
1128
|
+
any,
|
|
1129
|
+
Name
|
|
1130
|
+
>;
|
|
1131
|
+
listOrdersByClinic: FunctionReference<
|
|
1132
|
+
"query",
|
|
1133
|
+
"internal",
|
|
1134
|
+
{ clinicId: number; limit?: number },
|
|
1135
|
+
any,
|
|
1136
|
+
Name
|
|
1137
|
+
>;
|
|
1138
|
+
listOrdersBySupplier: FunctionReference<
|
|
1139
|
+
"query",
|
|
1140
|
+
"internal",
|
|
1141
|
+
{ limit?: number; supplierId: string },
|
|
1142
|
+
any,
|
|
1143
|
+
Name
|
|
1144
|
+
>;
|
|
1145
|
+
updateOrder: FunctionReference<
|
|
1146
|
+
"mutation",
|
|
1147
|
+
"internal",
|
|
1148
|
+
{
|
|
1149
|
+
items?: Array<{
|
|
1150
|
+
articleId: number;
|
|
1151
|
+
articleName: string;
|
|
1152
|
+
code?: string;
|
|
1153
|
+
notes?: string;
|
|
1154
|
+
quantity: number;
|
|
1155
|
+
sparePartId: string;
|
|
1156
|
+
totalPrice?: number;
|
|
1157
|
+
unitPrice?: number;
|
|
1158
|
+
}>;
|
|
1159
|
+
notes?: string;
|
|
1160
|
+
orderId: string;
|
|
1161
|
+
requestedDeliveryDate?: number;
|
|
1162
|
+
},
|
|
1163
|
+
any,
|
|
1164
|
+
Name
|
|
1165
|
+
>;
|
|
1166
|
+
updateOrderStatus: FunctionReference<
|
|
1167
|
+
"mutation",
|
|
1168
|
+
"internal",
|
|
1169
|
+
{
|
|
1170
|
+
orderId: string;
|
|
1171
|
+
status:
|
|
1172
|
+
| "draft"
|
|
1173
|
+
| "pending"
|
|
1174
|
+
| "confirmed"
|
|
1175
|
+
| "shipped"
|
|
1176
|
+
| "delivered"
|
|
1177
|
+
| "cancelled";
|
|
1178
|
+
},
|
|
1179
|
+
any,
|
|
1180
|
+
Name
|
|
1181
|
+
>;
|
|
1182
|
+
};
|
|
1183
|
+
spareParts: {
|
|
1184
|
+
createSparePart: FunctionReference<
|
|
1185
|
+
"mutation",
|
|
1186
|
+
"internal",
|
|
1187
|
+
{
|
|
1188
|
+
activeWarehouseCategory?: number;
|
|
1189
|
+
alternativeArticleId?: number;
|
|
1190
|
+
articleCategoryId?: number;
|
|
1191
|
+
articleCreatedAt?: string;
|
|
1192
|
+
articleDeadlineDate?: string;
|
|
1193
|
+
articleDeletedAt?: string;
|
|
1194
|
+
articleId: number;
|
|
1195
|
+
articleInternalId?: number;
|
|
1196
|
+
articleName?: string;
|
|
1197
|
+
articleOrisId?: string;
|
|
1198
|
+
articleUpdatedAt?: string;
|
|
1199
|
+
barcode?: string;
|
|
1200
|
+
brand?: string;
|
|
1201
|
+
case?: string;
|
|
1202
|
+
categoryCreatedAt?: string;
|
|
1203
|
+
categoryId?: number;
|
|
1204
|
+
categoryName?: string;
|
|
1205
|
+
categoryOrisId?: string;
|
|
1206
|
+
categoryType?: string;
|
|
1207
|
+
categoryUpdatedAt?: string;
|
|
1208
|
+
clinicId: number;
|
|
1209
|
+
code?: string;
|
|
1210
|
+
deadlineDate?: string;
|
|
1211
|
+
dentalUnitQuantity?: number;
|
|
1212
|
+
labelInfosLength?: number;
|
|
1213
|
+
lot?: string;
|
|
1214
|
+
minQuantity?: number;
|
|
1215
|
+
minimumStockAmount?: number;
|
|
1216
|
+
model?: string;
|
|
1217
|
+
mu?: string;
|
|
1218
|
+
name: string;
|
|
1219
|
+
netPrice?: number;
|
|
1220
|
+
package?: string;
|
|
1221
|
+
parentId?: number;
|
|
1222
|
+
quantity?: number;
|
|
1223
|
+
sellingUnit?: string;
|
|
1224
|
+
type?: string;
|
|
1225
|
+
vendorId?: number;
|
|
1226
|
+
warehouseCreatedAt?: string;
|
|
1227
|
+
warehouseDeletedAt?: string;
|
|
1228
|
+
warehouseItemId: number;
|
|
1229
|
+
warehouseOrisId?: string;
|
|
1230
|
+
warehouseUnit?: string;
|
|
1231
|
+
warehouseUpdatedAt?: string;
|
|
1232
|
+
},
|
|
1233
|
+
any,
|
|
1234
|
+
Name
|
|
1235
|
+
>;
|
|
1236
|
+
deleteSparePart: FunctionReference<
|
|
1237
|
+
"mutation",
|
|
1238
|
+
"internal",
|
|
1239
|
+
{ sparePartId: string },
|
|
1240
|
+
any,
|
|
1241
|
+
Name
|
|
1242
|
+
>;
|
|
1243
|
+
getAllSparePartsForMigration: FunctionReference<
|
|
1244
|
+
"query",
|
|
1245
|
+
"internal",
|
|
1246
|
+
{ batchSize?: number; lastId?: string },
|
|
1247
|
+
any,
|
|
1248
|
+
Name
|
|
1249
|
+
>;
|
|
1250
|
+
getSparePartByWarehouseItemId: FunctionReference<
|
|
1251
|
+
"query",
|
|
1252
|
+
"internal",
|
|
1253
|
+
{ warehouseItemId: number },
|
|
1254
|
+
any,
|
|
1255
|
+
Name
|
|
1256
|
+
>;
|
|
1257
|
+
getSparePartsByCategory: FunctionReference<
|
|
1258
|
+
"query",
|
|
1259
|
+
"internal",
|
|
1260
|
+
{ categoryId: number; clinicId?: number; limit?: number },
|
|
1261
|
+
any,
|
|
1262
|
+
Name
|
|
1263
|
+
>;
|
|
1264
|
+
importSparePartsBatch: FunctionReference<
|
|
1265
|
+
"mutation",
|
|
1266
|
+
"internal",
|
|
1267
|
+
{
|
|
1268
|
+
spareParts: Array<{
|
|
1269
|
+
activeWarehouseCategory?: number;
|
|
1270
|
+
alternativeArticleId?: number;
|
|
1271
|
+
articleCategoryId?: number;
|
|
1272
|
+
articleCreatedAt?: string;
|
|
1273
|
+
articleDeadlineDate?: string;
|
|
1274
|
+
articleDeletedAt?: string;
|
|
1275
|
+
articleId: number;
|
|
1276
|
+
articleInternalId?: number;
|
|
1277
|
+
articleName?: string;
|
|
1278
|
+
articleOrisId?: string;
|
|
1279
|
+
articleUpdatedAt?: string;
|
|
1280
|
+
barcode?: string;
|
|
1281
|
+
brand?: string;
|
|
1282
|
+
case?: string;
|
|
1283
|
+
categoryCreatedAt?: string;
|
|
1284
|
+
categoryId?: number;
|
|
1285
|
+
categoryName?: string;
|
|
1286
|
+
categoryOrisId?: string;
|
|
1287
|
+
categoryType?: string;
|
|
1288
|
+
categoryUpdatedAt?: string;
|
|
1289
|
+
clinicId: number;
|
|
1290
|
+
code?: string;
|
|
1291
|
+
deadlineDate?: string;
|
|
1292
|
+
dentalUnitQuantity?: number;
|
|
1293
|
+
labelInfosLength?: number;
|
|
1294
|
+
lot?: string;
|
|
1295
|
+
minQuantity?: number;
|
|
1296
|
+
minimumStockAmount?: number;
|
|
1297
|
+
model?: string;
|
|
1298
|
+
mu?: string;
|
|
1299
|
+
name: string;
|
|
1300
|
+
netPrice?: number;
|
|
1301
|
+
package?: string;
|
|
1302
|
+
parentId?: number;
|
|
1303
|
+
quantity?: number;
|
|
1304
|
+
sellingUnit?: string;
|
|
1305
|
+
type?: string;
|
|
1306
|
+
vendorId?: number;
|
|
1307
|
+
warehouseCreatedAt?: string;
|
|
1308
|
+
warehouseDeletedAt?: string;
|
|
1309
|
+
warehouseItemId: number;
|
|
1310
|
+
warehouseOrisId?: string;
|
|
1311
|
+
warehouseUnit?: string;
|
|
1312
|
+
warehouseUpdatedAt?: string;
|
|
1313
|
+
}>;
|
|
1314
|
+
},
|
|
1315
|
+
any,
|
|
1316
|
+
Name
|
|
1317
|
+
>;
|
|
1318
|
+
listSpareParts: FunctionReference<
|
|
1319
|
+
"query",
|
|
1320
|
+
"internal",
|
|
1321
|
+
{ _triggerReload?: number; limit?: number },
|
|
1322
|
+
any,
|
|
1323
|
+
Name
|
|
1324
|
+
>;
|
|
1325
|
+
listSparePartsByClinic: FunctionReference<
|
|
1326
|
+
"query",
|
|
1327
|
+
"internal",
|
|
1328
|
+
{ clinicId: number; limit?: number },
|
|
1329
|
+
any,
|
|
1330
|
+
Name
|
|
1331
|
+
>;
|
|
1332
|
+
listSparePartsPaginated: FunctionReference<
|
|
1333
|
+
"query",
|
|
1334
|
+
"internal",
|
|
1335
|
+
{
|
|
1336
|
+
categoryId?: number;
|
|
1337
|
+
clinicId: number;
|
|
1338
|
+
paginationOpts: {
|
|
1339
|
+
cursor: string | null;
|
|
1340
|
+
endCursor?: string | null;
|
|
1341
|
+
id?: number;
|
|
1342
|
+
maximumBytesRead?: number;
|
|
1343
|
+
maximumRowsRead?: number;
|
|
1344
|
+
numItems: number;
|
|
1345
|
+
};
|
|
1346
|
+
searchTerm?: string;
|
|
1347
|
+
vendorId?: number;
|
|
1348
|
+
},
|
|
1349
|
+
any,
|
|
1350
|
+
Name
|
|
1351
|
+
>;
|
|
1352
|
+
searchSpareParts: FunctionReference<
|
|
1353
|
+
"query",
|
|
1354
|
+
"internal",
|
|
1355
|
+
{ clinicId?: number; limit?: number; searchTerm: string },
|
|
1356
|
+
any,
|
|
1357
|
+
Name
|
|
1358
|
+
>;
|
|
1359
|
+
updateQuantity: FunctionReference<
|
|
1360
|
+
"mutation",
|
|
1361
|
+
"internal",
|
|
1362
|
+
{ quantity: number; sparePartId: string },
|
|
1363
|
+
any,
|
|
1364
|
+
Name
|
|
1365
|
+
>;
|
|
1366
|
+
updateSparePart: FunctionReference<
|
|
1367
|
+
"mutation",
|
|
1368
|
+
"internal",
|
|
1369
|
+
{
|
|
1370
|
+
articleName?: string;
|
|
1371
|
+
barcode?: string;
|
|
1372
|
+
brand?: string;
|
|
1373
|
+
code?: string;
|
|
1374
|
+
deadlineDate?: string;
|
|
1375
|
+
dentalUnitQuantity?: number;
|
|
1376
|
+
lot?: string;
|
|
1377
|
+
minQuantity?: number;
|
|
1378
|
+
minimumStockAmount?: number;
|
|
1379
|
+
model?: string;
|
|
1380
|
+
mu?: string;
|
|
1381
|
+
name?: string;
|
|
1382
|
+
netPrice?: number;
|
|
1383
|
+
quantity?: number;
|
|
1384
|
+
sparePartId: string;
|
|
1385
|
+
vendorId?: number;
|
|
1386
|
+
},
|
|
1387
|
+
any,
|
|
1388
|
+
Name
|
|
1389
|
+
>;
|
|
1390
|
+
};
|
|
1391
|
+
supplierCategories: {
|
|
1392
|
+
createCategory: FunctionReference<
|
|
1393
|
+
"mutation",
|
|
1394
|
+
"internal",
|
|
1395
|
+
{ description?: string; name: string },
|
|
1396
|
+
any,
|
|
1397
|
+
Name
|
|
1398
|
+
>;
|
|
1399
|
+
deleteCategory: FunctionReference<
|
|
1400
|
+
"mutation",
|
|
1401
|
+
"internal",
|
|
1402
|
+
{ categoryId: string },
|
|
1403
|
+
any,
|
|
1404
|
+
Name
|
|
1405
|
+
>;
|
|
1406
|
+
listCategories: FunctionReference<"query", "internal", {}, any, Name>;
|
|
1407
|
+
updateCategory: FunctionReference<
|
|
1408
|
+
"mutation",
|
|
1409
|
+
"internal",
|
|
1410
|
+
{ categoryId: string; description?: string; name: string },
|
|
1411
|
+
any,
|
|
1412
|
+
Name
|
|
1413
|
+
>;
|
|
1414
|
+
};
|
|
1415
|
+
suppliers: {
|
|
1416
|
+
createSupplier: FunctionReference<
|
|
1417
|
+
"mutation",
|
|
1418
|
+
"internal",
|
|
1419
|
+
{
|
|
1420
|
+
categories: Array<string>;
|
|
1421
|
+
contact_email: string;
|
|
1422
|
+
contact_phone: string;
|
|
1423
|
+
name: string;
|
|
1424
|
+
notes?: string;
|
|
1425
|
+
sla_days: number;
|
|
1426
|
+
},
|
|
1427
|
+
any,
|
|
1428
|
+
Name
|
|
1429
|
+
>;
|
|
1430
|
+
deleteSupplier: FunctionReference<
|
|
1431
|
+
"mutation",
|
|
1432
|
+
"internal",
|
|
1433
|
+
{ supplierId: string },
|
|
1434
|
+
any,
|
|
1435
|
+
Name
|
|
1436
|
+
>;
|
|
1437
|
+
getOrCreateSupplierForUser: FunctionReference<
|
|
1438
|
+
"mutation",
|
|
1439
|
+
"internal",
|
|
1440
|
+
{ userId: string },
|
|
1441
|
+
any,
|
|
1442
|
+
Name
|
|
1443
|
+
>;
|
|
1444
|
+
getSupplier: FunctionReference<
|
|
1445
|
+
"query",
|
|
1446
|
+
"internal",
|
|
1447
|
+
{ supplierId: string },
|
|
1448
|
+
any,
|
|
1449
|
+
Name
|
|
1450
|
+
>;
|
|
1451
|
+
getSuppliersByCategory: FunctionReference<
|
|
1452
|
+
"query",
|
|
1453
|
+
"internal",
|
|
1454
|
+
{ category: string },
|
|
1455
|
+
any,
|
|
1456
|
+
Name
|
|
1457
|
+
>;
|
|
1458
|
+
listSuppliers: FunctionReference<"query", "internal", {}, any, Name>;
|
|
1459
|
+
listSuppliersForOrders: FunctionReference<
|
|
1460
|
+
"query",
|
|
1461
|
+
"internal",
|
|
1462
|
+
{},
|
|
1463
|
+
any,
|
|
1464
|
+
Name
|
|
1465
|
+
>;
|
|
1466
|
+
listSuppliersForReassignment: FunctionReference<
|
|
1467
|
+
"query",
|
|
1468
|
+
"internal",
|
|
1469
|
+
{},
|
|
1470
|
+
any,
|
|
1471
|
+
Name
|
|
1472
|
+
>;
|
|
1473
|
+
listSupplierUsers: FunctionReference<"query", "internal", {}, any, Name>;
|
|
1474
|
+
updateSupplier: FunctionReference<
|
|
1475
|
+
"mutation",
|
|
1476
|
+
"internal",
|
|
1477
|
+
{
|
|
1478
|
+
categories: Array<string>;
|
|
1479
|
+
contact_email: string;
|
|
1480
|
+
contact_phone: string;
|
|
1481
|
+
name: string;
|
|
1482
|
+
notes?: string;
|
|
1483
|
+
sla_days: number;
|
|
1484
|
+
supplierId: string;
|
|
1485
|
+
},
|
|
1486
|
+
any,
|
|
1487
|
+
Name
|
|
1488
|
+
>;
|
|
1489
|
+
};
|
|
1490
|
+
ticketComments: {
|
|
1491
|
+
addComment: FunctionReference<
|
|
1492
|
+
"mutation",
|
|
1493
|
+
"internal",
|
|
1494
|
+
{
|
|
1495
|
+
attachments?: Array<string>;
|
|
1496
|
+
authorEmail?: string;
|
|
1497
|
+
authorId: string;
|
|
1498
|
+
authorName?: string;
|
|
1499
|
+
authorRole?: string;
|
|
1500
|
+
content: string;
|
|
1501
|
+
isInternal?: boolean;
|
|
1502
|
+
mentions?: Array<{ email: string; name: string; userId: string }>;
|
|
1503
|
+
taskId: string;
|
|
1504
|
+
},
|
|
1505
|
+
any,
|
|
1506
|
+
Name
|
|
1507
|
+
>;
|
|
1508
|
+
addCommentFromApi: FunctionReference<
|
|
1509
|
+
"mutation",
|
|
1510
|
+
"internal",
|
|
1511
|
+
{
|
|
1512
|
+
authorEmail?: string;
|
|
1513
|
+
authorName?: string;
|
|
1514
|
+
content: string;
|
|
1515
|
+
isInternal?: boolean;
|
|
1516
|
+
taskId: string;
|
|
1517
|
+
},
|
|
1518
|
+
any,
|
|
1519
|
+
Name
|
|
1520
|
+
>;
|
|
1521
|
+
deleteComment: FunctionReference<
|
|
1522
|
+
"mutation",
|
|
1523
|
+
"internal",
|
|
1524
|
+
{ commentId: string; userAuth0Id?: string; userRole?: string },
|
|
1525
|
+
any,
|
|
1526
|
+
Name
|
|
1527
|
+
>;
|
|
1528
|
+
generateUploadUrl: FunctionReference<
|
|
1529
|
+
"mutation",
|
|
1530
|
+
"internal",
|
|
1531
|
+
{},
|
|
1532
|
+
any,
|
|
1533
|
+
Name
|
|
1534
|
+
>;
|
|
1535
|
+
getCommentCount: FunctionReference<
|
|
1536
|
+
"query",
|
|
1537
|
+
"internal",
|
|
1538
|
+
{ taskId: string },
|
|
1539
|
+
any,
|
|
1540
|
+
Name
|
|
1541
|
+
>;
|
|
1542
|
+
getUsersForMention: FunctionReference<
|
|
1543
|
+
"query",
|
|
1544
|
+
"internal",
|
|
1545
|
+
{ excludeUserId?: string; searchQuery?: string; taskId: string },
|
|
1546
|
+
any,
|
|
1547
|
+
Name
|
|
1548
|
+
>;
|
|
1549
|
+
listComments: FunctionReference<
|
|
1550
|
+
"query",
|
|
1551
|
+
"internal",
|
|
1552
|
+
{ taskId: string; userRole?: string },
|
|
1553
|
+
any,
|
|
1554
|
+
Name
|
|
1555
|
+
>;
|
|
1556
|
+
updateComment: FunctionReference<
|
|
1557
|
+
"mutation",
|
|
1558
|
+
"internal",
|
|
1559
|
+
{
|
|
1560
|
+
commentId: string;
|
|
1561
|
+
content: string;
|
|
1562
|
+
userAuth0Id?: string;
|
|
1563
|
+
userRole?: string;
|
|
1564
|
+
},
|
|
1565
|
+
any,
|
|
1566
|
+
Name
|
|
1567
|
+
>;
|
|
1568
|
+
};
|
|
1569
|
+
ticketCustomFields: {
|
|
1570
|
+
createCustomField: FunctionReference<
|
|
1571
|
+
"mutation",
|
|
1572
|
+
"internal",
|
|
1573
|
+
{
|
|
1574
|
+
applyToAll: boolean;
|
|
1575
|
+
categories?: Array<string>;
|
|
1576
|
+
deviceIds?: Array<string>;
|
|
1577
|
+
fieldType:
|
|
1578
|
+
| "text"
|
|
1579
|
+
| "textarea"
|
|
1580
|
+
| "number"
|
|
1581
|
+
| "select"
|
|
1582
|
+
| "multiselect"
|
|
1583
|
+
| "date"
|
|
1584
|
+
| "checkbox"
|
|
1585
|
+
| "radio";
|
|
1586
|
+
helpText?: string;
|
|
1587
|
+
isRequired: boolean;
|
|
1588
|
+
name: string;
|
|
1589
|
+
options?: Array<string>;
|
|
1590
|
+
order?: number;
|
|
1591
|
+
parentFieldId?: string;
|
|
1592
|
+
parentFieldValue?: string;
|
|
1593
|
+
placeholder?: string;
|
|
1594
|
+
},
|
|
1595
|
+
any,
|
|
1596
|
+
Name
|
|
1597
|
+
>;
|
|
1598
|
+
deleteCustomField: FunctionReference<
|
|
1599
|
+
"mutation",
|
|
1600
|
+
"internal",
|
|
1601
|
+
{ fieldId: string },
|
|
1602
|
+
any,
|
|
1603
|
+
Name
|
|
1604
|
+
>;
|
|
1605
|
+
getAllChildFieldsForParent: FunctionReference<
|
|
1606
|
+
"query",
|
|
1607
|
+
"internal",
|
|
1608
|
+
{ parentFieldId: string },
|
|
1609
|
+
any,
|
|
1610
|
+
Name
|
|
1611
|
+
>;
|
|
1612
|
+
getChildFields: FunctionReference<
|
|
1613
|
+
"query",
|
|
1614
|
+
"internal",
|
|
1615
|
+
{ parentFieldId: string; parentValue: string },
|
|
1616
|
+
any,
|
|
1617
|
+
Name
|
|
1618
|
+
>;
|
|
1619
|
+
getDeviceCategories: FunctionReference<
|
|
1620
|
+
"query",
|
|
1621
|
+
"internal",
|
|
1622
|
+
{},
|
|
1623
|
+
any,
|
|
1624
|
+
Name
|
|
1625
|
+
>;
|
|
1626
|
+
listActiveCustomFields: FunctionReference<
|
|
1627
|
+
"query",
|
|
1628
|
+
"internal",
|
|
1629
|
+
{},
|
|
1630
|
+
any,
|
|
1631
|
+
Name
|
|
1632
|
+
>;
|
|
1633
|
+
listActiveCustomFieldsForDevice: FunctionReference<
|
|
1634
|
+
"query",
|
|
1635
|
+
"internal",
|
|
1636
|
+
{ deviceId: string },
|
|
1637
|
+
any,
|
|
1638
|
+
Name
|
|
1639
|
+
>;
|
|
1640
|
+
listAllCustomFields: FunctionReference<
|
|
1641
|
+
"query",
|
|
1642
|
+
"internal",
|
|
1643
|
+
{},
|
|
1644
|
+
any,
|
|
1645
|
+
Name
|
|
1646
|
+
>;
|
|
1647
|
+
reorderCustomFields: FunctionReference<
|
|
1648
|
+
"mutation",
|
|
1649
|
+
"internal",
|
|
1650
|
+
{ fieldOrders: Array<{ fieldId: string; order: number }> },
|
|
1651
|
+
any,
|
|
1652
|
+
Name
|
|
1653
|
+
>;
|
|
1654
|
+
updateCustomField: FunctionReference<
|
|
1655
|
+
"mutation",
|
|
1656
|
+
"internal",
|
|
1657
|
+
{
|
|
1658
|
+
applyToAll?: boolean;
|
|
1659
|
+
categories?: Array<string>;
|
|
1660
|
+
childFields?: Array<{
|
|
1661
|
+
childFieldIds: Array<string>;
|
|
1662
|
+
parentValue: string;
|
|
1663
|
+
}>;
|
|
1664
|
+
deviceIds?: Array<string>;
|
|
1665
|
+
fieldId: string;
|
|
1666
|
+
fieldType?:
|
|
1667
|
+
| "text"
|
|
1668
|
+
| "textarea"
|
|
1669
|
+
| "number"
|
|
1670
|
+
| "select"
|
|
1671
|
+
| "multiselect"
|
|
1672
|
+
| "date"
|
|
1673
|
+
| "checkbox"
|
|
1674
|
+
| "radio";
|
|
1675
|
+
helpText?: string;
|
|
1676
|
+
isActive?: boolean;
|
|
1677
|
+
isRequired?: boolean;
|
|
1678
|
+
name?: string;
|
|
1679
|
+
options?: Array<string>;
|
|
1680
|
+
order?: number;
|
|
1681
|
+
parentFieldId?: string;
|
|
1682
|
+
parentFieldValue?: string;
|
|
1683
|
+
placeholder?: string;
|
|
1684
|
+
},
|
|
1685
|
+
any,
|
|
1686
|
+
Name
|
|
1687
|
+
>;
|
|
1688
|
+
};
|
|
1689
|
+
ticketExport: {
|
|
1690
|
+
exportTickets: FunctionReference<
|
|
1691
|
+
"query",
|
|
1692
|
+
"internal",
|
|
1693
|
+
{
|
|
1694
|
+
clinicIds?: Array<string>;
|
|
1695
|
+
createdByEmail?: string;
|
|
1696
|
+
dateFrom?: number;
|
|
1697
|
+
dateTo?: number;
|
|
1698
|
+
deviceBrand?: string;
|
|
1699
|
+
deviceCategory?: string;
|
|
1700
|
+
hasDevice?: boolean;
|
|
1701
|
+
isExternal?: boolean;
|
|
1702
|
+
needsAssignment?: boolean;
|
|
1703
|
+
priorities?: Array<string>;
|
|
1704
|
+
slaBreached?: boolean;
|
|
1705
|
+
statuses?: Array<string>;
|
|
1706
|
+
supplierIds?: Array<string>;
|
|
1707
|
+
ticketNumber?: string;
|
|
1708
|
+
},
|
|
1709
|
+
any,
|
|
1710
|
+
Name
|
|
1711
|
+
>;
|
|
1712
|
+
getFilterOptions: FunctionReference<"query", "internal", {}, any, Name>;
|
|
1713
|
+
};
|
|
1714
|
+
ticketHistory: {
|
|
1715
|
+
getTicketHistory: FunctionReference<
|
|
1716
|
+
"query",
|
|
1717
|
+
"internal",
|
|
1718
|
+
{ ticketId: string },
|
|
1719
|
+
any,
|
|
1720
|
+
Name
|
|
1721
|
+
>;
|
|
1722
|
+
recordHistoryEvent: FunctionReference<
|
|
1723
|
+
"mutation",
|
|
1724
|
+
"internal",
|
|
1725
|
+
{
|
|
1726
|
+
eventType:
|
|
1727
|
+
| "created"
|
|
1728
|
+
| "status_change"
|
|
1729
|
+
| "assignee_change"
|
|
1730
|
+
| "priority_change"
|
|
1731
|
+
| "trigger_executed"
|
|
1732
|
+
| "comment_added"
|
|
1733
|
+
| "sla_set"
|
|
1734
|
+
| "sla_warning"
|
|
1735
|
+
| "sla_breach"
|
|
1736
|
+
| "updated";
|
|
1737
|
+
isSystemAction?: boolean;
|
|
1738
|
+
newSupplierId?: string;
|
|
1739
|
+
newSupplierName?: string;
|
|
1740
|
+
newValue?: string;
|
|
1741
|
+
notes?: string;
|
|
1742
|
+
oldSupplierId?: string;
|
|
1743
|
+
oldSupplierName?: string;
|
|
1744
|
+
oldValue?: string;
|
|
1745
|
+
performedBy?: string;
|
|
1746
|
+
performedByEmail?: string;
|
|
1747
|
+
performedByName?: string;
|
|
1748
|
+
ticketId: string;
|
|
1749
|
+
triggerId?: string;
|
|
1750
|
+
triggerName?: string;
|
|
1751
|
+
},
|
|
1752
|
+
any,
|
|
1753
|
+
Name
|
|
1754
|
+
>;
|
|
1755
|
+
};
|
|
1756
|
+
ticketMacros: {
|
|
1757
|
+
createMacro: FunctionReference<
|
|
1758
|
+
"mutation",
|
|
1759
|
+
"internal",
|
|
1760
|
+
{
|
|
1761
|
+
actions: {
|
|
1762
|
+
addNote?: string;
|
|
1763
|
+
applySlaRule?: boolean;
|
|
1764
|
+
assignSupplier?: string;
|
|
1765
|
+
assignUser?: string;
|
|
1766
|
+
changeStatus?: string;
|
|
1767
|
+
sendNotification?: { message: string; recipients: Array<any> };
|
|
1768
|
+
setPriority?: string;
|
|
1769
|
+
setSlaHours?: number;
|
|
1770
|
+
};
|
|
1771
|
+
createdBy: string;
|
|
1772
|
+
description?: string;
|
|
1773
|
+
isGlobal: boolean;
|
|
1774
|
+
name: string;
|
|
1775
|
+
},
|
|
1776
|
+
any,
|
|
1777
|
+
Name
|
|
1778
|
+
>;
|
|
1779
|
+
deleteMacro: FunctionReference<
|
|
1780
|
+
"mutation",
|
|
1781
|
+
"internal",
|
|
1782
|
+
{ macroId: string },
|
|
1783
|
+
any,
|
|
1784
|
+
Name
|
|
1785
|
+
>;
|
|
1786
|
+
duplicateMacro: FunctionReference<
|
|
1787
|
+
"mutation",
|
|
1788
|
+
"internal",
|
|
1789
|
+
{ createdBy: string; macroId: string; newName: string },
|
|
1790
|
+
any,
|
|
1791
|
+
Name
|
|
1792
|
+
>;
|
|
1793
|
+
executeMacro: FunctionReference<
|
|
1794
|
+
"mutation",
|
|
1795
|
+
"internal",
|
|
1796
|
+
{
|
|
1797
|
+
macroId: string;
|
|
1798
|
+
ticketId: string;
|
|
1799
|
+
userAuth0Id?: string;
|
|
1800
|
+
userEmail?: string;
|
|
1801
|
+
userName?: string;
|
|
1802
|
+
userProfileId?: string;
|
|
1803
|
+
},
|
|
1804
|
+
any,
|
|
1805
|
+
Name
|
|
1806
|
+
>;
|
|
1807
|
+
getMacro: FunctionReference<
|
|
1808
|
+
"query",
|
|
1809
|
+
"internal",
|
|
1810
|
+
{ macroId: string; userProfileId?: string },
|
|
1811
|
+
any,
|
|
1812
|
+
Name
|
|
1813
|
+
>;
|
|
1814
|
+
listActiveMacros: FunctionReference<
|
|
1815
|
+
"query",
|
|
1816
|
+
"internal",
|
|
1817
|
+
{ userProfileId?: string },
|
|
1818
|
+
any,
|
|
1819
|
+
Name
|
|
1820
|
+
>;
|
|
1821
|
+
listMacros: FunctionReference<
|
|
1822
|
+
"query",
|
|
1823
|
+
"internal",
|
|
1824
|
+
{ userProfileId?: string },
|
|
1825
|
+
any,
|
|
1826
|
+
Name
|
|
1827
|
+
>;
|
|
1828
|
+
toggleMacro: FunctionReference<
|
|
1829
|
+
"mutation",
|
|
1830
|
+
"internal",
|
|
1831
|
+
{ isActive: boolean; macroId: string },
|
|
1832
|
+
any,
|
|
1833
|
+
Name
|
|
1834
|
+
>;
|
|
1835
|
+
updateMacro: FunctionReference<
|
|
1836
|
+
"mutation",
|
|
1837
|
+
"internal",
|
|
1838
|
+
{
|
|
1839
|
+
actions?: {
|
|
1840
|
+
addNote?: string;
|
|
1841
|
+
applySlaRule?: boolean;
|
|
1842
|
+
assignSupplier?: string;
|
|
1843
|
+
assignUser?: string;
|
|
1844
|
+
changeStatus?: string;
|
|
1845
|
+
sendNotification?: { message: string; recipients: Array<any> };
|
|
1846
|
+
setPriority?: string;
|
|
1847
|
+
setSlaHours?: number;
|
|
1848
|
+
};
|
|
1849
|
+
description?: string;
|
|
1850
|
+
isActive?: boolean;
|
|
1851
|
+
isGlobal?: boolean;
|
|
1852
|
+
macroId: string;
|
|
1853
|
+
name?: string;
|
|
1854
|
+
},
|
|
1855
|
+
any,
|
|
1856
|
+
Name
|
|
1857
|
+
>;
|
|
1858
|
+
};
|
|
1859
|
+
ticketStatuses: {
|
|
1860
|
+
createTicketStatus: FunctionReference<
|
|
1861
|
+
"mutation",
|
|
1862
|
+
"internal",
|
|
1863
|
+
{ color: string; label: string; name: string; order: number },
|
|
1864
|
+
any,
|
|
1865
|
+
Name
|
|
1866
|
+
>;
|
|
1867
|
+
deleteTicketStatus: FunctionReference<
|
|
1868
|
+
"mutation",
|
|
1869
|
+
"internal",
|
|
1870
|
+
{ statusId: string },
|
|
1871
|
+
any,
|
|
1872
|
+
Name
|
|
1873
|
+
>;
|
|
1874
|
+
getTicketStatusByName: FunctionReference<
|
|
1875
|
+
"query",
|
|
1876
|
+
"internal",
|
|
1877
|
+
{ name: string },
|
|
1878
|
+
any,
|
|
1879
|
+
Name
|
|
1880
|
+
>;
|
|
1881
|
+
listAllTicketStatuses: FunctionReference<
|
|
1882
|
+
"query",
|
|
1883
|
+
"internal",
|
|
1884
|
+
{},
|
|
1885
|
+
any,
|
|
1886
|
+
Name
|
|
1887
|
+
>;
|
|
1888
|
+
listTicketStatuses: FunctionReference<"query", "internal", {}, any, Name>;
|
|
1889
|
+
seedTicketStatuses: FunctionReference<
|
|
1890
|
+
"mutation",
|
|
1891
|
+
"internal",
|
|
1892
|
+
{},
|
|
1893
|
+
any,
|
|
1894
|
+
Name
|
|
1895
|
+
>;
|
|
1896
|
+
updateTicketStatus: FunctionReference<
|
|
1897
|
+
"mutation",
|
|
1898
|
+
"internal",
|
|
1899
|
+
{
|
|
1900
|
+
color?: string;
|
|
1901
|
+
isActive?: boolean;
|
|
1902
|
+
label?: string;
|
|
1903
|
+
order?: number;
|
|
1904
|
+
statusId: string;
|
|
1905
|
+
},
|
|
1906
|
+
any,
|
|
1907
|
+
Name
|
|
1908
|
+
>;
|
|
1909
|
+
};
|
|
1910
|
+
ticketTriggers: {
|
|
1911
|
+
checkAttachmentRequired: FunctionReference<
|
|
1912
|
+
"query",
|
|
1913
|
+
"internal",
|
|
1914
|
+
{
|
|
1915
|
+
clinicId?: string;
|
|
1916
|
+
customFields?: any;
|
|
1917
|
+
deviceId?: string;
|
|
1918
|
+
priority?: "low" | "medium" | "high";
|
|
1919
|
+
status?: string;
|
|
1920
|
+
},
|
|
1921
|
+
any,
|
|
1922
|
+
Name
|
|
1923
|
+
>;
|
|
1924
|
+
createTrigger: FunctionReference<
|
|
1925
|
+
"mutation",
|
|
1926
|
+
"internal",
|
|
1927
|
+
{
|
|
1928
|
+
actions: {
|
|
1929
|
+
addNote?: string;
|
|
1930
|
+
applySlaRule?: boolean;
|
|
1931
|
+
assignSupplier?: string;
|
|
1932
|
+
changeStatus?: string;
|
|
1933
|
+
requireAttachment?: boolean;
|
|
1934
|
+
sendNotification?: {
|
|
1935
|
+
message: string;
|
|
1936
|
+
recipients: Array<{
|
|
1937
|
+
supplierId?: string;
|
|
1938
|
+
type:
|
|
1939
|
+
| "admin"
|
|
1940
|
+
| "supplier"
|
|
1941
|
+
| "ticket_creator"
|
|
1942
|
+
| "ticket_assignee"
|
|
1943
|
+
| "specific_user"
|
|
1944
|
+
| "specific_supplier";
|
|
1945
|
+
userId?: string;
|
|
1946
|
+
}>;
|
|
1947
|
+
};
|
|
1948
|
+
setPriority?: "low" | "medium" | "high";
|
|
1949
|
+
setSlaHours?: number;
|
|
1950
|
+
sparePartOrderActions?: {
|
|
1951
|
+
addOrderNote?: string;
|
|
1952
|
+
changeOrderStatus?: string;
|
|
1953
|
+
sendOrderNotification?: {
|
|
1954
|
+
message: string;
|
|
1955
|
+
recipients: Array<"admin" | "supplier" | "order_creator">;
|
|
1956
|
+
};
|
|
1957
|
+
};
|
|
1958
|
+
};
|
|
1959
|
+
conditions: {
|
|
1960
|
+
applyToAllCategories: boolean;
|
|
1961
|
+
applyToAllRegions?: boolean;
|
|
1962
|
+
brandOperator?: "is" | "is_not";
|
|
1963
|
+
brands?: Array<string>;
|
|
1964
|
+
categories?: Array<string>;
|
|
1965
|
+
conditionLogic?: "AND" | "OR";
|
|
1966
|
+
conditionsList?: Array<{
|
|
1967
|
+
customFieldId?: string;
|
|
1968
|
+
customFieldOperator?:
|
|
1969
|
+
| "equals"
|
|
1970
|
+
| "not_equals"
|
|
1971
|
+
| "contains"
|
|
1972
|
+
| "greater_than"
|
|
1973
|
+
| "less_than"
|
|
1974
|
+
| "is_empty"
|
|
1975
|
+
| "is_not_empty";
|
|
1976
|
+
negated: boolean;
|
|
1977
|
+
nextOperator: "AND" | "OR";
|
|
1978
|
+
type:
|
|
1979
|
+
| "trigger_event"
|
|
1980
|
+
| "status"
|
|
1981
|
+
| "category"
|
|
1982
|
+
| "brand"
|
|
1983
|
+
| "model"
|
|
1984
|
+
| "region"
|
|
1985
|
+
| "priority"
|
|
1986
|
+
| "custom_field";
|
|
1987
|
+
value: string | Array<string>;
|
|
1988
|
+
}>;
|
|
1989
|
+
customFieldConditions?: Array<{
|
|
1990
|
+
fieldId: string;
|
|
1991
|
+
operator:
|
|
1992
|
+
| "equals"
|
|
1993
|
+
| "not_equals"
|
|
1994
|
+
| "contains"
|
|
1995
|
+
| "greater_than"
|
|
1996
|
+
| "less_than"
|
|
1997
|
+
| "is_empty"
|
|
1998
|
+
| "is_not_empty";
|
|
1999
|
+
value?: any;
|
|
2000
|
+
}>;
|
|
2001
|
+
modelOperator?: "is" | "is_not";
|
|
2002
|
+
models?: Array<string>;
|
|
2003
|
+
regions?: Array<string>;
|
|
2004
|
+
sparePartOrderFilters?: {
|
|
2005
|
+
applyToAllSuppliers?: boolean;
|
|
2006
|
+
statuses?: Array<string>;
|
|
2007
|
+
supplierIds?: Array<string>;
|
|
2008
|
+
};
|
|
2009
|
+
statusOperator?: "is" | "is_not";
|
|
2010
|
+
statuses?: Array<string>;
|
|
2011
|
+
triggerOn:
|
|
2012
|
+
| "create"
|
|
2013
|
+
| "status_change"
|
|
2014
|
+
| "update"
|
|
2015
|
+
| "sla_warning"
|
|
2016
|
+
| "sla_breach"
|
|
2017
|
+
| "spare_part_order_created"
|
|
2018
|
+
| "spare_part_order_status_change";
|
|
2019
|
+
};
|
|
2020
|
+
createdBy: string;
|
|
2021
|
+
description?: string;
|
|
2022
|
+
name: string;
|
|
2023
|
+
priority?: number;
|
|
2024
|
+
},
|
|
2025
|
+
any,
|
|
2026
|
+
Name
|
|
2027
|
+
>;
|
|
2028
|
+
deleteTrigger: FunctionReference<
|
|
2029
|
+
"mutation",
|
|
2030
|
+
"internal",
|
|
2031
|
+
{ triggerId: string },
|
|
2032
|
+
any,
|
|
2033
|
+
Name
|
|
2034
|
+
>;
|
|
2035
|
+
duplicateTrigger: FunctionReference<
|
|
2036
|
+
"mutation",
|
|
2037
|
+
"internal",
|
|
2038
|
+
{ createdBy: string; newName?: string; triggerId: string },
|
|
2039
|
+
any,
|
|
2040
|
+
Name
|
|
2041
|
+
>;
|
|
2042
|
+
executeTriggers: FunctionReference<
|
|
2043
|
+
"mutation",
|
|
2044
|
+
"internal",
|
|
2045
|
+
{
|
|
2046
|
+
oldStatus?: string;
|
|
2047
|
+
ticketId: string;
|
|
2048
|
+
triggerOn:
|
|
2049
|
+
| "create"
|
|
2050
|
+
| "status_change"
|
|
2051
|
+
| "update"
|
|
2052
|
+
| "sla_warning"
|
|
2053
|
+
| "sla_breach";
|
|
2054
|
+
},
|
|
2055
|
+
any,
|
|
2056
|
+
Name
|
|
2057
|
+
>;
|
|
2058
|
+
getTrigger: FunctionReference<
|
|
2059
|
+
"query",
|
|
2060
|
+
"internal",
|
|
2061
|
+
{ triggerId: string },
|
|
2062
|
+
any,
|
|
2063
|
+
Name
|
|
2064
|
+
>;
|
|
2065
|
+
listActiveTriggers: FunctionReference<"query", "internal", {}, any, Name>;
|
|
2066
|
+
listAllTriggers: FunctionReference<"query", "internal", {}, any, Name>;
|
|
2067
|
+
reorderTriggers: FunctionReference<
|
|
2068
|
+
"mutation",
|
|
2069
|
+
"internal",
|
|
2070
|
+
{ triggerOrders: Array<{ priority: number; triggerId: string }> },
|
|
2071
|
+
any,
|
|
2072
|
+
Name
|
|
2073
|
+
>;
|
|
2074
|
+
simulateTrigger: FunctionReference<
|
|
2075
|
+
"query",
|
|
2076
|
+
"internal",
|
|
2077
|
+
{
|
|
2078
|
+
simulationData: {
|
|
2079
|
+
brand?: string;
|
|
2080
|
+
category?: string;
|
|
2081
|
+
customFields?: any;
|
|
2082
|
+
model?: string;
|
|
2083
|
+
priority?: "low" | "medium" | "high";
|
|
2084
|
+
region?: string;
|
|
2085
|
+
status?: string;
|
|
2086
|
+
triggerOn:
|
|
2087
|
+
| "create"
|
|
2088
|
+
| "status_change"
|
|
2089
|
+
| "update"
|
|
2090
|
+
| "sla_warning"
|
|
2091
|
+
| "sla_breach";
|
|
2092
|
+
};
|
|
2093
|
+
triggerId: string;
|
|
2094
|
+
},
|
|
2095
|
+
any,
|
|
2096
|
+
Name
|
|
2097
|
+
>;
|
|
2098
|
+
toggleTrigger: FunctionReference<
|
|
2099
|
+
"mutation",
|
|
2100
|
+
"internal",
|
|
2101
|
+
{ isActive: boolean; triggerId: string },
|
|
2102
|
+
any,
|
|
2103
|
+
Name
|
|
2104
|
+
>;
|
|
2105
|
+
updateTrigger: FunctionReference<
|
|
2106
|
+
"mutation",
|
|
2107
|
+
"internal",
|
|
2108
|
+
{
|
|
2109
|
+
actions?: {
|
|
2110
|
+
addNote?: string;
|
|
2111
|
+
applySlaRule?: boolean;
|
|
2112
|
+
assignSupplier?: string;
|
|
2113
|
+
changeStatus?: string;
|
|
2114
|
+
requireAttachment?: boolean;
|
|
2115
|
+
sendNotification?: {
|
|
2116
|
+
message: string;
|
|
2117
|
+
recipients: Array<{
|
|
2118
|
+
supplierId?: string;
|
|
2119
|
+
type:
|
|
2120
|
+
| "admin"
|
|
2121
|
+
| "supplier"
|
|
2122
|
+
| "ticket_creator"
|
|
2123
|
+
| "ticket_assignee"
|
|
2124
|
+
| "specific_user"
|
|
2125
|
+
| "specific_supplier";
|
|
2126
|
+
userId?: string;
|
|
2127
|
+
}>;
|
|
2128
|
+
};
|
|
2129
|
+
setPriority?: "low" | "medium" | "high";
|
|
2130
|
+
setSlaHours?: number;
|
|
2131
|
+
sparePartOrderActions?: {
|
|
2132
|
+
addOrderNote?: string;
|
|
2133
|
+
changeOrderStatus?: string;
|
|
2134
|
+
sendOrderNotification?: {
|
|
2135
|
+
message: string;
|
|
2136
|
+
recipients: Array<"admin" | "supplier" | "order_creator">;
|
|
2137
|
+
};
|
|
2138
|
+
};
|
|
2139
|
+
};
|
|
2140
|
+
conditions?: {
|
|
2141
|
+
applyToAllCategories: boolean;
|
|
2142
|
+
applyToAllRegions?: boolean;
|
|
2143
|
+
brandOperator?: "is" | "is_not";
|
|
2144
|
+
brands?: Array<string>;
|
|
2145
|
+
categories?: Array<string>;
|
|
2146
|
+
conditionLogic?: "AND" | "OR";
|
|
2147
|
+
conditionsList?: Array<{
|
|
2148
|
+
customFieldId?: string;
|
|
2149
|
+
customFieldOperator?:
|
|
2150
|
+
| "equals"
|
|
2151
|
+
| "not_equals"
|
|
2152
|
+
| "contains"
|
|
2153
|
+
| "greater_than"
|
|
2154
|
+
| "less_than"
|
|
2155
|
+
| "is_empty"
|
|
2156
|
+
| "is_not_empty";
|
|
2157
|
+
negated: boolean;
|
|
2158
|
+
nextOperator: "AND" | "OR";
|
|
2159
|
+
type:
|
|
2160
|
+
| "trigger_event"
|
|
2161
|
+
| "status"
|
|
2162
|
+
| "category"
|
|
2163
|
+
| "brand"
|
|
2164
|
+
| "model"
|
|
2165
|
+
| "region"
|
|
2166
|
+
| "priority"
|
|
2167
|
+
| "custom_field";
|
|
2168
|
+
value: string | Array<string>;
|
|
2169
|
+
}>;
|
|
2170
|
+
customFieldConditions?: Array<{
|
|
2171
|
+
fieldId: string;
|
|
2172
|
+
operator:
|
|
2173
|
+
| "equals"
|
|
2174
|
+
| "not_equals"
|
|
2175
|
+
| "contains"
|
|
2176
|
+
| "greater_than"
|
|
2177
|
+
| "less_than"
|
|
2178
|
+
| "is_empty"
|
|
2179
|
+
| "is_not_empty";
|
|
2180
|
+
value?: any;
|
|
2181
|
+
}>;
|
|
2182
|
+
modelOperator?: "is" | "is_not";
|
|
2183
|
+
models?: Array<string>;
|
|
2184
|
+
regions?: Array<string>;
|
|
2185
|
+
sparePartOrderFilters?: {
|
|
2186
|
+
applyToAllSuppliers?: boolean;
|
|
2187
|
+
statuses?: Array<string>;
|
|
2188
|
+
supplierIds?: Array<string>;
|
|
2189
|
+
};
|
|
2190
|
+
statusOperator?: "is" | "is_not";
|
|
2191
|
+
statuses?: Array<string>;
|
|
2192
|
+
triggerOn:
|
|
2193
|
+
| "create"
|
|
2194
|
+
| "status_change"
|
|
2195
|
+
| "update"
|
|
2196
|
+
| "sla_warning"
|
|
2197
|
+
| "sla_breach"
|
|
2198
|
+
| "spare_part_order_created"
|
|
2199
|
+
| "spare_part_order_status_change";
|
|
2200
|
+
};
|
|
2201
|
+
description?: string;
|
|
2202
|
+
isActive?: boolean;
|
|
2203
|
+
name?: string;
|
|
2204
|
+
priority?: number;
|
|
2205
|
+
triggerId: string;
|
|
2206
|
+
},
|
|
2207
|
+
any,
|
|
2208
|
+
Name
|
|
2209
|
+
>;
|
|
2210
|
+
};
|
|
2211
|
+
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
|
+
getCurrentUserProfile: FunctionReference<
|
|
2227
|
+
"query",
|
|
2228
|
+
"internal",
|
|
2229
|
+
{ auth0Id: string },
|
|
2230
|
+
any,
|
|
2231
|
+
Name
|
|
2232
|
+
>;
|
|
2233
|
+
getPrimoUPAccessLogs: FunctionReference<
|
|
2234
|
+
"query",
|
|
2235
|
+
"internal",
|
|
2236
|
+
{ auth0Id: string; isAdmin?: boolean; limit?: number; userId?: string },
|
|
2237
|
+
any,
|
|
2238
|
+
Name
|
|
2239
|
+
>;
|
|
2240
|
+
getPrimoUPToken: FunctionReference<
|
|
2241
|
+
"query",
|
|
2242
|
+
"internal",
|
|
2243
|
+
{ auth0Id: string },
|
|
2244
|
+
any,
|
|
2245
|
+
Name
|
|
2246
|
+
>;
|
|
2247
|
+
getRealAdminProfile: FunctionReference<
|
|
2248
|
+
"query",
|
|
2249
|
+
"internal",
|
|
2250
|
+
{ auth0Id: string },
|
|
2251
|
+
any,
|
|
2252
|
+
Name
|
|
2253
|
+
>;
|
|
2254
|
+
getUserProfile: FunctionReference<
|
|
2255
|
+
"query",
|
|
2256
|
+
"internal",
|
|
2257
|
+
{ auth0Id: string },
|
|
2258
|
+
any,
|
|
2259
|
+
Name
|
|
2260
|
+
>;
|
|
2261
|
+
getUsersCount: FunctionReference<
|
|
2262
|
+
"query",
|
|
2263
|
+
"internal",
|
|
2264
|
+
{ isActive?: boolean; roleId?: string },
|
|
2265
|
+
any,
|
|
2266
|
+
Name
|
|
2267
|
+
>;
|
|
2268
|
+
listUsers: FunctionReference<
|
|
2269
|
+
"query",
|
|
2270
|
+
"internal",
|
|
2271
|
+
{ limit?: number },
|
|
2272
|
+
any,
|
|
2273
|
+
Name
|
|
2274
|
+
>;
|
|
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
|
+
logPrimoUPAccess: FunctionReference<
|
|
2295
|
+
"mutation",
|
|
2296
|
+
"internal",
|
|
2297
|
+
{
|
|
2298
|
+
action: string;
|
|
2299
|
+
auth0Id: string;
|
|
2300
|
+
endpoint?: string;
|
|
2301
|
+
errorMessage?: string;
|
|
2302
|
+
metadata?: any;
|
|
2303
|
+
success: boolean;
|
|
2304
|
+
},
|
|
2305
|
+
any,
|
|
2306
|
+
Name
|
|
2307
|
+
>;
|
|
2308
|
+
savePrimoUPToken: FunctionReference<
|
|
2309
|
+
"mutation",
|
|
2310
|
+
"internal",
|
|
2311
|
+
{
|
|
2312
|
+
auth0Id: string;
|
|
2313
|
+
expiresAt?: number;
|
|
2314
|
+
refreshToken?: string;
|
|
2315
|
+
token: string;
|
|
2316
|
+
},
|
|
2317
|
+
any,
|
|
2318
|
+
Name
|
|
2319
|
+
>;
|
|
2320
|
+
saveUserClinics: FunctionReference<
|
|
2321
|
+
"mutation",
|
|
2322
|
+
"internal",
|
|
2323
|
+
{ auth0Id: string; primoupClinics: Array<any> },
|
|
2324
|
+
any,
|
|
2325
|
+
Name
|
|
2326
|
+
>;
|
|
2327
|
+
startImpersonation: FunctionReference<
|
|
2328
|
+
"mutation",
|
|
2329
|
+
"internal",
|
|
2330
|
+
{ auth0Id: string; targetUserId: string },
|
|
2331
|
+
any,
|
|
2332
|
+
Name
|
|
2333
|
+
>;
|
|
2334
|
+
stopImpersonation: FunctionReference<
|
|
2335
|
+
"mutation",
|
|
2336
|
+
"internal",
|
|
2337
|
+
{ auth0Id: string },
|
|
2338
|
+
any,
|
|
2339
|
+
Name
|
|
2340
|
+
>;
|
|
2341
|
+
updateSelectedClinic: FunctionReference<
|
|
2342
|
+
"mutation",
|
|
2343
|
+
"internal",
|
|
2344
|
+
{ auth0Id: string; clinicId: number },
|
|
2345
|
+
any,
|
|
2346
|
+
Name
|
|
2347
|
+
>;
|
|
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
|
+
updateUserSupplier: FunctionReference<
|
|
2382
|
+
"mutation",
|
|
2383
|
+
"internal",
|
|
2384
|
+
{ supplierId: string; userId: string },
|
|
2385
|
+
any,
|
|
2386
|
+
Name
|
|
2387
|
+
>;
|
|
2388
|
+
upsertUserProfile: FunctionReference<
|
|
2389
|
+
"mutation",
|
|
2390
|
+
"internal",
|
|
2391
|
+
{
|
|
2392
|
+
auth0Id: string;
|
|
2393
|
+
clinicId?: string;
|
|
2394
|
+
email: string;
|
|
2395
|
+
name?: string;
|
|
2396
|
+
roleName?: string;
|
|
2397
|
+
supplierId?: string;
|
|
2398
|
+
},
|
|
2399
|
+
any,
|
|
2400
|
+
Name
|
|
2401
|
+
>;
|
|
2402
|
+
};
|
|
2403
|
+
vendorArticles: {
|
|
2404
|
+
createVendorArticle: FunctionReference<
|
|
2405
|
+
"mutation",
|
|
2406
|
+
"internal",
|
|
2407
|
+
{
|
|
2408
|
+
deviceId: string;
|
|
2409
|
+
metadata?: any;
|
|
2410
|
+
primoupArticleId?: string;
|
|
2411
|
+
primoupVendorId?: string;
|
|
2412
|
+
vendorId: string;
|
|
2413
|
+
},
|
|
2414
|
+
any,
|
|
2415
|
+
Name
|
|
2416
|
+
>;
|
|
2417
|
+
deleteAllVendorArticlesBatch: FunctionReference<
|
|
2418
|
+
"mutation",
|
|
2419
|
+
"internal",
|
|
2420
|
+
{ limit: number },
|
|
2421
|
+
any,
|
|
2422
|
+
Name
|
|
2423
|
+
>;
|
|
2424
|
+
getAllVendorArticles: FunctionReference<
|
|
2425
|
+
"query",
|
|
2426
|
+
"internal",
|
|
2427
|
+
{},
|
|
2428
|
+
any,
|
|
2429
|
+
Name
|
|
2430
|
+
>;
|
|
2431
|
+
getSuppliersByDeviceArticleId: FunctionReference<
|
|
2432
|
+
"query",
|
|
2433
|
+
"internal",
|
|
2434
|
+
{ articleId: string },
|
|
2435
|
+
any,
|
|
2436
|
+
Name
|
|
2437
|
+
>;
|
|
2438
|
+
getTotalVendorArticlesCount: FunctionReference<
|
|
2439
|
+
"query",
|
|
2440
|
+
"internal",
|
|
2441
|
+
{},
|
|
2442
|
+
any,
|
|
2443
|
+
Name
|
|
2444
|
+
>;
|
|
2445
|
+
getVendorArticlesByDevice: FunctionReference<
|
|
2446
|
+
"query",
|
|
2447
|
+
"internal",
|
|
2448
|
+
{ deviceId: string },
|
|
2449
|
+
any,
|
|
2450
|
+
Name
|
|
2451
|
+
>;
|
|
2452
|
+
getVendorArticlesByVendor: FunctionReference<
|
|
2453
|
+
"query",
|
|
2454
|
+
"internal",
|
|
2455
|
+
{ vendorId: string },
|
|
2456
|
+
any,
|
|
2457
|
+
Name
|
|
2458
|
+
>;
|
|
2459
|
+
};
|
|
2460
|
+
};
|