@primocaredentgroup/prescriptions-component 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/LICENSE +21 -0
- package/README.md +84 -0
- package/dist/_internal/client/PrescriptionsComponentClient.d.ts +25 -0
- package/dist/_internal/client/PrescriptionsComponentClient.d.ts.map +1 -0
- package/dist/_internal/client/PrescriptionsComponentClient.js +61 -0
- package/dist/_internal/client/PrescriptionsComponentClient.js.map +1 -0
- package/dist/_internal/client/index.d.ts +3 -0
- package/dist/_internal/client/index.d.ts.map +1 -0
- package/dist/_internal/client/index.js +2 -0
- package/dist/_internal/client/index.js.map +1 -0
- package/dist/_internal/client/types.d.ts +47 -0
- package/dist/_internal/client/types.d.ts.map +1 -0
- package/dist/_internal/client/types.js +2 -0
- package/dist/_internal/client/types.js.map +1 -0
- package/dist/_internal/component/convex.config.d.ts +7 -0
- package/dist/_internal/component/convex.config.d.ts.map +1 -0
- package/dist/_internal/component/convex.config.js +8 -0
- package/dist/_internal/component/convex.config.js.map +1 -0
- package/dist/_internal/component/functions.d.ts +9 -0
- package/dist/_internal/component/functions.d.ts.map +1 -0
- package/dist/_internal/component/functions.js +11 -0
- package/dist/_internal/component/functions.js.map +1 -0
- package/dist/_internal/component/index.d.ts +18 -0
- package/dist/_internal/component/index.d.ts.map +1 -0
- package/dist/_internal/component/index.js +20 -0
- package/dist/_internal/component/index.js.map +1 -0
- package/dist/_internal/component/schema.d.ts +2 -0
- package/dist/_internal/component/schema.d.ts.map +1 -0
- package/dist/_internal/component/schema.js +2 -0
- package/dist/_internal/component/schema.js.map +1 -0
- package/dist/_internal/react/PrescriptionsWidget.d.ts +18 -0
- package/dist/_internal/react/PrescriptionsWidget.d.ts.map +1 -0
- package/dist/_internal/react/PrescriptionsWidget.js +137 -0
- package/dist/_internal/react/PrescriptionsWidget.js.map +1 -0
- package/dist/_internal/react/index.d.ts +3 -0
- package/dist/_internal/react/index.d.ts.map +1 -0
- package/dist/_internal/react/index.js +2 -0
- package/dist/_internal/react/index.js.map +1 -0
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.js +1 -0
- package/dist/component/convex.config.d.ts +2 -0
- package/dist/component/convex.config.js +2 -0
- package/dist/component/index.d.ts +1 -0
- package/dist/component/index.js +1 -0
- package/dist/convex/lib/auth.d.ts +7 -0
- package/dist/convex/lib/auth.d.ts.map +1 -0
- package/dist/convex/lib/auth.js +38 -0
- package/dist/convex/lib/auth.js.map +1 -0
- package/dist/convex/lib/clinicalNormalize.d.ts +13 -0
- package/dist/convex/lib/clinicalNormalize.d.ts.map +1 -0
- package/dist/convex/lib/clinicalNormalize.js +82 -0
- package/dist/convex/lib/clinicalNormalize.js.map +1 -0
- package/dist/convex/lib/dental.d.ts +13 -0
- package/dist/convex/lib/dental.d.ts.map +1 -0
- package/dist/convex/lib/dental.js +79 -0
- package/dist/convex/lib/dental.js.map +1 -0
- package/dist/convex/lib/dynamicFieldsStrict.d.ts +9 -0
- package/dist/convex/lib/dynamicFieldsStrict.d.ts.map +1 -0
- package/dist/convex/lib/dynamicFieldsStrict.js +65 -0
- package/dist/convex/lib/dynamicFieldsStrict.js.map +1 -0
- package/dist/convex/lib/dynamicRules.d.ts +61 -0
- package/dist/convex/lib/dynamicRules.d.ts.map +1 -0
- package/dist/convex/lib/dynamicRules.js +221 -0
- package/dist/convex/lib/dynamicRules.js.map +1 -0
- package/dist/convex/lib/storage.d.ts +59 -0
- package/dist/convex/lib/storage.d.ts.map +1 -0
- package/dist/convex/lib/storage.js +120 -0
- package/dist/convex/lib/storage.js.map +1 -0
- package/dist/convex/lib/utils.d.ts +61 -0
- package/dist/convex/lib/utils.d.ts.map +1 -0
- package/dist/convex/lib/utils.js +135 -0
- package/dist/convex/lib/utils.js.map +1 -0
- package/dist/convex/lib/validation.d.ts +24 -0
- package/dist/convex/lib/validation.d.ts.map +1 -0
- package/dist/convex/lib/validation.js +333 -0
- package/dist/convex/lib/validation.js.map +1 -0
- package/dist/convex/mutations/digitalAssets.d.ts +54 -0
- package/dist/convex/mutations/digitalAssets.d.ts.map +1 -0
- package/dist/convex/mutations/digitalAssets.js +297 -0
- package/dist/convex/mutations/digitalAssets.js.map +1 -0
- package/dist/convex/mutations/operational.d.ts +38 -0
- package/dist/convex/mutations/operational.d.ts.map +1 -0
- package/dist/convex/mutations/operational.js +226 -0
- package/dist/convex/mutations/operational.js.map +1 -0
- package/dist/convex/mutations/phases.d.ts +45 -0
- package/dist/convex/mutations/phases.d.ts.map +1 -0
- package/dist/convex/mutations/phases.js +334 -0
- package/dist/convex/mutations/phases.js.map +1 -0
- package/dist/convex/mutations/prescriptions.d.ts +191 -0
- package/dist/convex/mutations/prescriptions.d.ts.map +1 -0
- package/dist/convex/mutations/prescriptions.js +1263 -0
- package/dist/convex/mutations/prescriptions.js.map +1 -0
- package/dist/convex/mutations/syncJobs.d.ts +37 -0
- package/dist/convex/mutations/syncJobs.d.ts.map +1 -0
- package/dist/convex/mutations/syncJobs.js +238 -0
- package/dist/convex/mutations/syncJobs.js.map +1 -0
- package/dist/convex/prescriptions/fields.d.ts +50 -0
- package/dist/convex/prescriptions/fields.d.ts.map +1 -0
- package/dist/convex/prescriptions/fields.js +242 -0
- package/dist/convex/prescriptions/fields.js.map +1 -0
- package/dist/convex/queries/dynamicFields.d.ts +27 -0
- package/dist/convex/queries/dynamicFields.d.ts.map +1 -0
- package/dist/convex/queries/dynamicFields.js +119 -0
- package/dist/convex/queries/dynamicFields.js.map +1 -0
- package/dist/convex/queries/prescriptions.d.ts +583 -0
- package/dist/convex/queries/prescriptions.d.ts.map +1 -0
- package/dist/convex/queries/prescriptions.js +208 -0
- package/dist/convex/queries/prescriptions.js.map +1 -0
- package/dist/convex/schema.d.ts +962 -0
- package/dist/convex/schema.d.ts.map +1 -0
- package/dist/convex/schema.js +434 -0
- package/dist/convex/schema.js.map +1 -0
- package/dist/convex/types.d.ts +267 -0
- package/dist/convex/types.d.ts.map +1 -0
- package/dist/convex/types.js +2 -0
- package/dist/convex/types.js.map +1 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +1 -0
- package/dist/react/styles.css +54 -0
- package/package.json +82 -0
|
@@ -0,0 +1,962 @@
|
|
|
1
|
+
declare const _default: import("convex/server").SchemaDefinition<{
|
|
2
|
+
counters: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3
|
+
tableName: string;
|
|
4
|
+
lastId: number;
|
|
5
|
+
}, {
|
|
6
|
+
tableName: import("convex/values").VString<string, "required">;
|
|
7
|
+
lastId: import("convex/values").VFloat64<number, "required">;
|
|
8
|
+
}, "required", "tableName" | "lastId">, {
|
|
9
|
+
by_tableName: ["tableName", "_creationTime"];
|
|
10
|
+
}, {}, {}>;
|
|
11
|
+
flows: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
12
|
+
flowId?: number | undefined;
|
|
13
|
+
deleted_at?: number | undefined;
|
|
14
|
+
definition: {
|
|
15
|
+
phases: {
|
|
16
|
+
required: boolean;
|
|
17
|
+
phaseTypeKey: string;
|
|
18
|
+
label: string;
|
|
19
|
+
repeatable: boolean;
|
|
20
|
+
requiredFields: string[];
|
|
21
|
+
appointmentRequired: boolean;
|
|
22
|
+
}[];
|
|
23
|
+
validations: {
|
|
24
|
+
fieldPaths?: string[] | undefined;
|
|
25
|
+
rule?: string | undefined;
|
|
26
|
+
type: "requiredFields" | "customRule";
|
|
27
|
+
message: string;
|
|
28
|
+
}[];
|
|
29
|
+
conditions: {
|
|
30
|
+
when: {
|
|
31
|
+
value?: any;
|
|
32
|
+
fieldPath: string;
|
|
33
|
+
op: "eq" | "neq" | "in" | "exists";
|
|
34
|
+
};
|
|
35
|
+
then: {
|
|
36
|
+
setPhaseRequired?: {
|
|
37
|
+
required: boolean;
|
|
38
|
+
phaseTypeKey: string;
|
|
39
|
+
} | undefined;
|
|
40
|
+
setFieldRequired?: {
|
|
41
|
+
required: boolean;
|
|
42
|
+
fieldPath: string;
|
|
43
|
+
} | undefined;
|
|
44
|
+
allowSkipToNext?: boolean | undefined;
|
|
45
|
+
};
|
|
46
|
+
}[];
|
|
47
|
+
};
|
|
48
|
+
flowKey: string;
|
|
49
|
+
version: number;
|
|
50
|
+
status: "ACTIVE" | "DRAFT" | "ARCHIVED";
|
|
51
|
+
createdAt: number;
|
|
52
|
+
}, {
|
|
53
|
+
flowId: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
54
|
+
deleted_at: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
55
|
+
flowKey: import("convex/values").VString<string, "required">;
|
|
56
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
57
|
+
status: import("convex/values").VUnion<"ACTIVE" | "DRAFT" | "ARCHIVED", [import("convex/values").VLiteral<"ACTIVE", "required">, import("convex/values").VLiteral<"DRAFT", "required">, import("convex/values").VLiteral<"ARCHIVED", "required">], "required", never>;
|
|
58
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
59
|
+
definition: import("convex/values").VObject<{
|
|
60
|
+
phases: {
|
|
61
|
+
required: boolean;
|
|
62
|
+
phaseTypeKey: string;
|
|
63
|
+
label: string;
|
|
64
|
+
repeatable: boolean;
|
|
65
|
+
requiredFields: string[];
|
|
66
|
+
appointmentRequired: boolean;
|
|
67
|
+
}[];
|
|
68
|
+
validations: {
|
|
69
|
+
fieldPaths?: string[] | undefined;
|
|
70
|
+
rule?: string | undefined;
|
|
71
|
+
type: "requiredFields" | "customRule";
|
|
72
|
+
message: string;
|
|
73
|
+
}[];
|
|
74
|
+
conditions: {
|
|
75
|
+
when: {
|
|
76
|
+
value?: any;
|
|
77
|
+
fieldPath: string;
|
|
78
|
+
op: "eq" | "neq" | "in" | "exists";
|
|
79
|
+
};
|
|
80
|
+
then: {
|
|
81
|
+
setPhaseRequired?: {
|
|
82
|
+
required: boolean;
|
|
83
|
+
phaseTypeKey: string;
|
|
84
|
+
} | undefined;
|
|
85
|
+
setFieldRequired?: {
|
|
86
|
+
required: boolean;
|
|
87
|
+
fieldPath: string;
|
|
88
|
+
} | undefined;
|
|
89
|
+
allowSkipToNext?: boolean | undefined;
|
|
90
|
+
};
|
|
91
|
+
}[];
|
|
92
|
+
}, {
|
|
93
|
+
phases: import("convex/values").VArray<{
|
|
94
|
+
required: boolean;
|
|
95
|
+
phaseTypeKey: string;
|
|
96
|
+
label: string;
|
|
97
|
+
repeatable: boolean;
|
|
98
|
+
requiredFields: string[];
|
|
99
|
+
appointmentRequired: boolean;
|
|
100
|
+
}[], import("convex/values").VObject<{
|
|
101
|
+
required: boolean;
|
|
102
|
+
phaseTypeKey: string;
|
|
103
|
+
label: string;
|
|
104
|
+
repeatable: boolean;
|
|
105
|
+
requiredFields: string[];
|
|
106
|
+
appointmentRequired: boolean;
|
|
107
|
+
}, {
|
|
108
|
+
phaseTypeKey: import("convex/values").VString<string, "required">;
|
|
109
|
+
label: import("convex/values").VString<string, "required">;
|
|
110
|
+
required: import("convex/values").VBoolean<boolean, "required">;
|
|
111
|
+
repeatable: import("convex/values").VBoolean<boolean, "required">;
|
|
112
|
+
requiredFields: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
113
|
+
appointmentRequired: import("convex/values").VBoolean<boolean, "required">;
|
|
114
|
+
}, "required", "required" | "phaseTypeKey" | "label" | "repeatable" | "requiredFields" | "appointmentRequired">, "required">;
|
|
115
|
+
validations: import("convex/values").VArray<{
|
|
116
|
+
fieldPaths?: string[] | undefined;
|
|
117
|
+
rule?: string | undefined;
|
|
118
|
+
type: "requiredFields" | "customRule";
|
|
119
|
+
message: string;
|
|
120
|
+
}[], import("convex/values").VObject<{
|
|
121
|
+
fieldPaths?: string[] | undefined;
|
|
122
|
+
rule?: string | undefined;
|
|
123
|
+
type: "requiredFields" | "customRule";
|
|
124
|
+
message: string;
|
|
125
|
+
}, {
|
|
126
|
+
type: import("convex/values").VUnion<"requiredFields" | "customRule", [import("convex/values").VLiteral<"requiredFields", "required">, import("convex/values").VLiteral<"customRule", "required">], "required", never>;
|
|
127
|
+
rule: import("convex/values").VString<string | undefined, "optional">;
|
|
128
|
+
fieldPaths: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
129
|
+
message: import("convex/values").VString<string, "required">;
|
|
130
|
+
}, "required", "type" | "fieldPaths" | "rule" | "message">, "required">;
|
|
131
|
+
conditions: import("convex/values").VArray<{
|
|
132
|
+
when: {
|
|
133
|
+
value?: any;
|
|
134
|
+
fieldPath: string;
|
|
135
|
+
op: "eq" | "neq" | "in" | "exists";
|
|
136
|
+
};
|
|
137
|
+
then: {
|
|
138
|
+
setPhaseRequired?: {
|
|
139
|
+
required: boolean;
|
|
140
|
+
phaseTypeKey: string;
|
|
141
|
+
} | undefined;
|
|
142
|
+
setFieldRequired?: {
|
|
143
|
+
required: boolean;
|
|
144
|
+
fieldPath: string;
|
|
145
|
+
} | undefined;
|
|
146
|
+
allowSkipToNext?: boolean | undefined;
|
|
147
|
+
};
|
|
148
|
+
}[], import("convex/values").VObject<{
|
|
149
|
+
when: {
|
|
150
|
+
value?: any;
|
|
151
|
+
fieldPath: string;
|
|
152
|
+
op: "eq" | "neq" | "in" | "exists";
|
|
153
|
+
};
|
|
154
|
+
then: {
|
|
155
|
+
setPhaseRequired?: {
|
|
156
|
+
required: boolean;
|
|
157
|
+
phaseTypeKey: string;
|
|
158
|
+
} | undefined;
|
|
159
|
+
setFieldRequired?: {
|
|
160
|
+
required: boolean;
|
|
161
|
+
fieldPath: string;
|
|
162
|
+
} | undefined;
|
|
163
|
+
allowSkipToNext?: boolean | undefined;
|
|
164
|
+
};
|
|
165
|
+
}, {
|
|
166
|
+
when: import("convex/values").VObject<{
|
|
167
|
+
value?: any;
|
|
168
|
+
fieldPath: string;
|
|
169
|
+
op: "eq" | "neq" | "in" | "exists";
|
|
170
|
+
}, {
|
|
171
|
+
fieldPath: import("convex/values").VString<string, "required">;
|
|
172
|
+
op: import("convex/values").VUnion<"eq" | "neq" | "in" | "exists", [import("convex/values").VLiteral<"eq", "required">, import("convex/values").VLiteral<"neq", "required">, import("convex/values").VLiteral<"in", "required">, import("convex/values").VLiteral<"exists", "required">], "required", never>;
|
|
173
|
+
value: import("convex/values").VAny<any, "optional", string>;
|
|
174
|
+
}, "required", "fieldPath" | "op" | "value" | `value.${string}`>;
|
|
175
|
+
then: import("convex/values").VObject<{
|
|
176
|
+
setPhaseRequired?: {
|
|
177
|
+
required: boolean;
|
|
178
|
+
phaseTypeKey: string;
|
|
179
|
+
} | undefined;
|
|
180
|
+
setFieldRequired?: {
|
|
181
|
+
required: boolean;
|
|
182
|
+
fieldPath: string;
|
|
183
|
+
} | undefined;
|
|
184
|
+
allowSkipToNext?: boolean | undefined;
|
|
185
|
+
}, {
|
|
186
|
+
setPhaseRequired: import("convex/values").VObject<{
|
|
187
|
+
required: boolean;
|
|
188
|
+
phaseTypeKey: string;
|
|
189
|
+
} | undefined, {
|
|
190
|
+
phaseTypeKey: import("convex/values").VString<string, "required">;
|
|
191
|
+
required: import("convex/values").VBoolean<boolean, "required">;
|
|
192
|
+
}, "optional", "required" | "phaseTypeKey">;
|
|
193
|
+
setFieldRequired: import("convex/values").VObject<{
|
|
194
|
+
required: boolean;
|
|
195
|
+
fieldPath: string;
|
|
196
|
+
} | undefined, {
|
|
197
|
+
fieldPath: import("convex/values").VString<string, "required">;
|
|
198
|
+
required: import("convex/values").VBoolean<boolean, "required">;
|
|
199
|
+
}, "optional", "required" | "fieldPath">;
|
|
200
|
+
allowSkipToNext: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
201
|
+
}, "required", "setPhaseRequired" | "setFieldRequired" | "allowSkipToNext" | "setPhaseRequired.required" | "setPhaseRequired.phaseTypeKey" | "setFieldRequired.required" | "setFieldRequired.fieldPath">;
|
|
202
|
+
}, "required", "when" | "then" | "when.fieldPath" | "when.op" | "when.value" | `when.value.${string}` | "then.setPhaseRequired" | "then.setFieldRequired" | "then.allowSkipToNext" | "then.setPhaseRequired.required" | "then.setPhaseRequired.phaseTypeKey" | "then.setFieldRequired.required" | "then.setFieldRequired.fieldPath">, "required">;
|
|
203
|
+
}, "required", "phases" | "validations" | "conditions">;
|
|
204
|
+
}, "required", "definition" | "flowId" | "deleted_at" | "flowKey" | "version" | "status" | "createdAt" | "definition.phases" | "definition.validations" | "definition.conditions">, {
|
|
205
|
+
by_flowId: ["flowId", "_creationTime"];
|
|
206
|
+
by_flowKey: ["flowKey", "_creationTime"];
|
|
207
|
+
by_flowKey_version: ["flowKey", "version", "_creationTime"];
|
|
208
|
+
by_flowKey_status: ["flowKey", "status", "_creationTime"];
|
|
209
|
+
}, {}, {}>;
|
|
210
|
+
prescriptions: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
211
|
+
deleted_at?: number | undefined;
|
|
212
|
+
prescriptionId?: number | undefined;
|
|
213
|
+
latestClinicalRevisionId?: import("convex/values").GenericId<"clinicalRevisions"> | undefined;
|
|
214
|
+
prescriptionType?: "ANALOG" | "DIGITAL" | undefined;
|
|
215
|
+
digitalAssets?: {
|
|
216
|
+
description?: string | undefined;
|
|
217
|
+
storageUrl?: string | undefined;
|
|
218
|
+
assetId: string;
|
|
219
|
+
fileName: string;
|
|
220
|
+
fileSize: number;
|
|
221
|
+
mimeType: string;
|
|
222
|
+
storageProvider: "CONVEX" | "S3";
|
|
223
|
+
storageId: string;
|
|
224
|
+
uploadedAt: number;
|
|
225
|
+
uploadedBy: string;
|
|
226
|
+
}[] | undefined;
|
|
227
|
+
shippedAt?: number | undefined;
|
|
228
|
+
shippedBy?: string | undefined;
|
|
229
|
+
trackingNumber?: string | undefined;
|
|
230
|
+
idempotencyKey?: string | undefined;
|
|
231
|
+
calendarData?: {
|
|
232
|
+
toothNumber?: string | undefined;
|
|
233
|
+
treatmentPlanName?: string | undefined;
|
|
234
|
+
nextAppointmentId?: string | undefined;
|
|
235
|
+
nextAppointmentDate?: number | undefined;
|
|
236
|
+
nextAppointmentPhaseId?: string | undefined;
|
|
237
|
+
nextAppointmentPhaseName?: string | undefined;
|
|
238
|
+
application: string;
|
|
239
|
+
patientFirstName: string;
|
|
240
|
+
patientLastName: string;
|
|
241
|
+
clinicName: string;
|
|
242
|
+
treatmentPlanId: string;
|
|
243
|
+
treatmentId: string;
|
|
244
|
+
treatmentName: string;
|
|
245
|
+
phaseId: string;
|
|
246
|
+
phaseName: string;
|
|
247
|
+
appointmentId: string;
|
|
248
|
+
appointmentDate: number;
|
|
249
|
+
operatorId: string;
|
|
250
|
+
operatorName: string;
|
|
251
|
+
} | undefined;
|
|
252
|
+
valuesByFieldId?: string | undefined;
|
|
253
|
+
rulesetVersionId?: import("convex/values").GenericId<"rulesetVersions"> | undefined;
|
|
254
|
+
pdcItemId: string;
|
|
255
|
+
listinoId: string;
|
|
256
|
+
doctorId: string;
|
|
257
|
+
updatedAt: number;
|
|
258
|
+
flowKey: string;
|
|
259
|
+
status: "DRAFT" | "PENDING_DOCTOR" | "SIGNED" | "SYNCED" | "ERROR" | "CANCELLED" | "SUPERSEDED";
|
|
260
|
+
createdAt: number;
|
|
261
|
+
coreRefs: {
|
|
262
|
+
corePrescriptionId?: string | undefined;
|
|
263
|
+
coreAppointmentIds?: string[] | undefined;
|
|
264
|
+
};
|
|
265
|
+
labRefs: {
|
|
266
|
+
labRequestId?: string | undefined;
|
|
267
|
+
lastLabStatus?: string | undefined;
|
|
268
|
+
};
|
|
269
|
+
clinicId: string;
|
|
270
|
+
patientId: string;
|
|
271
|
+
flowVersion: number;
|
|
272
|
+
createdByUserId: string;
|
|
273
|
+
}, {
|
|
274
|
+
prescriptionId: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
275
|
+
deleted_at: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
276
|
+
clinicId: import("convex/values").VString<string, "required">;
|
|
277
|
+
doctorId: import("convex/values").VString<string, "required">;
|
|
278
|
+
patientId: import("convex/values").VString<string, "required">;
|
|
279
|
+
pdcItemId: import("convex/values").VString<string, "required">;
|
|
280
|
+
listinoId: import("convex/values").VString<string, "required">;
|
|
281
|
+
flowKey: import("convex/values").VString<string, "required">;
|
|
282
|
+
flowVersion: import("convex/values").VFloat64<number, "required">;
|
|
283
|
+
status: import("convex/values").VUnion<"DRAFT" | "PENDING_DOCTOR" | "SIGNED" | "SYNCED" | "ERROR" | "CANCELLED" | "SUPERSEDED", [import("convex/values").VLiteral<"DRAFT", "required">, import("convex/values").VLiteral<"PENDING_DOCTOR", "required">, import("convex/values").VLiteral<"SIGNED", "required">, import("convex/values").VLiteral<"SYNCED", "required">, import("convex/values").VLiteral<"ERROR", "required">, import("convex/values").VLiteral<"CANCELLED", "required">, import("convex/values").VLiteral<"SUPERSEDED", "required">], "required", never>;
|
|
284
|
+
createdByUserId: import("convex/values").VString<string, "required">;
|
|
285
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
286
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
287
|
+
coreRefs: import("convex/values").VObject<{
|
|
288
|
+
corePrescriptionId?: string | undefined;
|
|
289
|
+
coreAppointmentIds?: string[] | undefined;
|
|
290
|
+
}, {
|
|
291
|
+
corePrescriptionId: import("convex/values").VString<string | undefined, "optional">;
|
|
292
|
+
coreAppointmentIds: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
293
|
+
}, "required", "corePrescriptionId" | "coreAppointmentIds">;
|
|
294
|
+
labRefs: import("convex/values").VObject<{
|
|
295
|
+
labRequestId?: string | undefined;
|
|
296
|
+
lastLabStatus?: string | undefined;
|
|
297
|
+
}, {
|
|
298
|
+
labRequestId: import("convex/values").VString<string | undefined, "optional">;
|
|
299
|
+
lastLabStatus: import("convex/values").VString<string | undefined, "optional">;
|
|
300
|
+
}, "required", "labRequestId" | "lastLabStatus">;
|
|
301
|
+
latestClinicalRevisionId: import("convex/values").VId<import("convex/values").GenericId<"clinicalRevisions"> | undefined, "optional">;
|
|
302
|
+
prescriptionType: import("convex/values").VUnion<"ANALOG" | "DIGITAL" | undefined, [import("convex/values").VLiteral<"ANALOG", "required">, import("convex/values").VLiteral<"DIGITAL", "required">], "optional", never>;
|
|
303
|
+
digitalAssets: import("convex/values").VArray<{
|
|
304
|
+
description?: string | undefined;
|
|
305
|
+
storageUrl?: string | undefined;
|
|
306
|
+
assetId: string;
|
|
307
|
+
fileName: string;
|
|
308
|
+
fileSize: number;
|
|
309
|
+
mimeType: string;
|
|
310
|
+
storageProvider: "CONVEX" | "S3";
|
|
311
|
+
storageId: string;
|
|
312
|
+
uploadedAt: number;
|
|
313
|
+
uploadedBy: string;
|
|
314
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
315
|
+
description?: string | undefined;
|
|
316
|
+
storageUrl?: string | undefined;
|
|
317
|
+
assetId: string;
|
|
318
|
+
fileName: string;
|
|
319
|
+
fileSize: number;
|
|
320
|
+
mimeType: string;
|
|
321
|
+
storageProvider: "CONVEX" | "S3";
|
|
322
|
+
storageId: string;
|
|
323
|
+
uploadedAt: number;
|
|
324
|
+
uploadedBy: string;
|
|
325
|
+
}, {
|
|
326
|
+
assetId: import("convex/values").VString<string, "required">;
|
|
327
|
+
fileName: import("convex/values").VString<string, "required">;
|
|
328
|
+
fileSize: import("convex/values").VFloat64<number, "required">;
|
|
329
|
+
mimeType: import("convex/values").VString<string, "required">;
|
|
330
|
+
description: import("convex/values").VString<string | undefined, "optional">;
|
|
331
|
+
storageProvider: import("convex/values").VUnion<"CONVEX" | "S3", [import("convex/values").VLiteral<"CONVEX", "required">, import("convex/values").VLiteral<"S3", "required">], "required", never>;
|
|
332
|
+
storageId: import("convex/values").VString<string, "required">;
|
|
333
|
+
storageUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
334
|
+
uploadedAt: import("convex/values").VFloat64<number, "required">;
|
|
335
|
+
uploadedBy: import("convex/values").VString<string, "required">;
|
|
336
|
+
}, "required", "assetId" | "fileName" | "fileSize" | "mimeType" | "description" | "storageProvider" | "storageId" | "storageUrl" | "uploadedAt" | "uploadedBy">, "optional">;
|
|
337
|
+
shippedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
338
|
+
shippedBy: import("convex/values").VString<string | undefined, "optional">;
|
|
339
|
+
trackingNumber: import("convex/values").VString<string | undefined, "optional">;
|
|
340
|
+
idempotencyKey: import("convex/values").VString<string | undefined, "optional">;
|
|
341
|
+
calendarData: import("convex/values").VObject<{
|
|
342
|
+
toothNumber?: string | undefined;
|
|
343
|
+
treatmentPlanName?: string | undefined;
|
|
344
|
+
nextAppointmentId?: string | undefined;
|
|
345
|
+
nextAppointmentDate?: number | undefined;
|
|
346
|
+
nextAppointmentPhaseId?: string | undefined;
|
|
347
|
+
nextAppointmentPhaseName?: string | undefined;
|
|
348
|
+
application: string;
|
|
349
|
+
patientFirstName: string;
|
|
350
|
+
patientLastName: string;
|
|
351
|
+
clinicName: string;
|
|
352
|
+
treatmentPlanId: string;
|
|
353
|
+
treatmentId: string;
|
|
354
|
+
treatmentName: string;
|
|
355
|
+
phaseId: string;
|
|
356
|
+
phaseName: string;
|
|
357
|
+
appointmentId: string;
|
|
358
|
+
appointmentDate: number;
|
|
359
|
+
operatorId: string;
|
|
360
|
+
operatorName: string;
|
|
361
|
+
} | undefined, {
|
|
362
|
+
patientFirstName: import("convex/values").VString<string, "required">;
|
|
363
|
+
patientLastName: import("convex/values").VString<string, "required">;
|
|
364
|
+
clinicName: import("convex/values").VString<string, "required">;
|
|
365
|
+
treatmentPlanId: import("convex/values").VString<string, "required">;
|
|
366
|
+
treatmentPlanName: import("convex/values").VString<string | undefined, "optional">;
|
|
367
|
+
treatmentId: import("convex/values").VString<string, "required">;
|
|
368
|
+
treatmentName: import("convex/values").VString<string, "required">;
|
|
369
|
+
phaseId: import("convex/values").VString<string, "required">;
|
|
370
|
+
phaseName: import("convex/values").VString<string, "required">;
|
|
371
|
+
application: import("convex/values").VString<string, "required">;
|
|
372
|
+
toothNumber: import("convex/values").VString<string | undefined, "optional">;
|
|
373
|
+
appointmentId: import("convex/values").VString<string, "required">;
|
|
374
|
+
appointmentDate: import("convex/values").VFloat64<number, "required">;
|
|
375
|
+
operatorId: import("convex/values").VString<string, "required">;
|
|
376
|
+
operatorName: import("convex/values").VString<string, "required">;
|
|
377
|
+
nextAppointmentId: import("convex/values").VString<string | undefined, "optional">;
|
|
378
|
+
nextAppointmentDate: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
379
|
+
nextAppointmentPhaseId: import("convex/values").VString<string | undefined, "optional">;
|
|
380
|
+
nextAppointmentPhaseName: import("convex/values").VString<string | undefined, "optional">;
|
|
381
|
+
}, "optional", "toothNumber" | "application" | "patientFirstName" | "patientLastName" | "clinicName" | "treatmentPlanId" | "treatmentPlanName" | "treatmentId" | "treatmentName" | "phaseId" | "phaseName" | "appointmentId" | "appointmentDate" | "operatorId" | "operatorName" | "nextAppointmentId" | "nextAppointmentDate" | "nextAppointmentPhaseId" | "nextAppointmentPhaseName">;
|
|
382
|
+
valuesByFieldId: import("convex/values").VString<string | undefined, "optional">;
|
|
383
|
+
rulesetVersionId: import("convex/values").VId<import("convex/values").GenericId<"rulesetVersions"> | undefined, "optional">;
|
|
384
|
+
}, "required", "pdcItemId" | "listinoId" | "doctorId" | "updatedAt" | "deleted_at" | "flowKey" | "status" | "createdAt" | "coreRefs" | "labRefs" | "prescriptionId" | "clinicId" | "patientId" | "flowVersion" | "createdByUserId" | "latestClinicalRevisionId" | "prescriptionType" | "digitalAssets" | "shippedAt" | "shippedBy" | "trackingNumber" | "idempotencyKey" | "calendarData" | "valuesByFieldId" | "rulesetVersionId" | "coreRefs.corePrescriptionId" | "coreRefs.coreAppointmentIds" | "labRefs.labRequestId" | "labRefs.lastLabStatus" | "calendarData.toothNumber" | "calendarData.application" | "calendarData.patientFirstName" | "calendarData.patientLastName" | "calendarData.clinicName" | "calendarData.treatmentPlanId" | "calendarData.treatmentPlanName" | "calendarData.treatmentId" | "calendarData.treatmentName" | "calendarData.phaseId" | "calendarData.phaseName" | "calendarData.appointmentId" | "calendarData.appointmentDate" | "calendarData.operatorId" | "calendarData.operatorName" | "calendarData.nextAppointmentId" | "calendarData.nextAppointmentDate" | "calendarData.nextAppointmentPhaseId" | "calendarData.nextAppointmentPhaseName">, {
|
|
385
|
+
by_prescriptionId: ["prescriptionId", "_creationTime"];
|
|
386
|
+
by_pdcItemId: ["pdcItemId", "_creationTime"];
|
|
387
|
+
by_clinicId_status: ["clinicId", "status", "_creationTime"];
|
|
388
|
+
by_patientId: ["patientId", "_creationTime"];
|
|
389
|
+
by_doctorId: ["doctorId", "_creationTime"];
|
|
390
|
+
by_status: ["status", "_creationTime"];
|
|
391
|
+
by_idempotencyKey: ["idempotencyKey", "_creationTime"];
|
|
392
|
+
}, {}, {}>;
|
|
393
|
+
clinicalRevisions: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
394
|
+
deleted_at?: number | undefined;
|
|
395
|
+
prescriptionId?: import("convex/values").GenericId<"prescriptions"> | undefined;
|
|
396
|
+
clinicalRevisionId?: number | undefined;
|
|
397
|
+
prescriptionRef?: import("convex/values").GenericId<"prescriptions"> | undefined;
|
|
398
|
+
clinicalHash: string;
|
|
399
|
+
createdAt: number;
|
|
400
|
+
clinicalData: {
|
|
401
|
+
application?: {
|
|
402
|
+
type: "TOOTH";
|
|
403
|
+
toothNumber: number;
|
|
404
|
+
} | {
|
|
405
|
+
type: "MULTI_TOOTH";
|
|
406
|
+
teeth: number[];
|
|
407
|
+
} | {
|
|
408
|
+
type: "BRIDGE";
|
|
409
|
+
teeth: {
|
|
410
|
+
toothNumber: number;
|
|
411
|
+
role: "abutment" | "pontic";
|
|
412
|
+
}[];
|
|
413
|
+
} | {
|
|
414
|
+
type: "QUADRANT";
|
|
415
|
+
quadrant: number;
|
|
416
|
+
} | {
|
|
417
|
+
type: "SEXTANT";
|
|
418
|
+
sextant: number;
|
|
419
|
+
} | {
|
|
420
|
+
type: "ARCH";
|
|
421
|
+
arch: "UPPER" | "LOWER";
|
|
422
|
+
} | {
|
|
423
|
+
type: "FULL_MOUTH";
|
|
424
|
+
} | undefined;
|
|
425
|
+
shade?: string | undefined;
|
|
426
|
+
notePreparazione?: string | undefined;
|
|
427
|
+
lineaMargine?: string | undefined;
|
|
428
|
+
patient: {
|
|
429
|
+
corePatientId: string;
|
|
430
|
+
};
|
|
431
|
+
clinic: {
|
|
432
|
+
coreClinicId: string;
|
|
433
|
+
};
|
|
434
|
+
doctor: {
|
|
435
|
+
coreDoctorId: string;
|
|
436
|
+
};
|
|
437
|
+
prostheticService: {
|
|
438
|
+
pdcItemId: string;
|
|
439
|
+
listinoId: string;
|
|
440
|
+
serviceCode: string;
|
|
441
|
+
serviceLabel: string;
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
revisionNumber: number;
|
|
445
|
+
signature: {
|
|
446
|
+
signedAt: number;
|
|
447
|
+
signedByDoctorId: string;
|
|
448
|
+
signatureType: "weak-digital" | "auto-lab";
|
|
449
|
+
signaturePayload: string;
|
|
450
|
+
clinicalHash: string;
|
|
451
|
+
} | null;
|
|
452
|
+
frozen: boolean;
|
|
453
|
+
}, {
|
|
454
|
+
clinicalRevisionId: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
455
|
+
deleted_at: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
456
|
+
prescriptionId: import("convex/values").VId<import("convex/values").GenericId<"prescriptions"> | undefined, "optional">;
|
|
457
|
+
prescriptionRef: import("convex/values").VId<import("convex/values").GenericId<"prescriptions"> | undefined, "optional">;
|
|
458
|
+
revisionNumber: import("convex/values").VFloat64<number, "required">;
|
|
459
|
+
clinicalData: import("convex/values").VObject<{
|
|
460
|
+
application?: {
|
|
461
|
+
type: "TOOTH";
|
|
462
|
+
toothNumber: number;
|
|
463
|
+
} | {
|
|
464
|
+
type: "MULTI_TOOTH";
|
|
465
|
+
teeth: number[];
|
|
466
|
+
} | {
|
|
467
|
+
type: "BRIDGE";
|
|
468
|
+
teeth: {
|
|
469
|
+
toothNumber: number;
|
|
470
|
+
role: "abutment" | "pontic";
|
|
471
|
+
}[];
|
|
472
|
+
} | {
|
|
473
|
+
type: "QUADRANT";
|
|
474
|
+
quadrant: number;
|
|
475
|
+
} | {
|
|
476
|
+
type: "SEXTANT";
|
|
477
|
+
sextant: number;
|
|
478
|
+
} | {
|
|
479
|
+
type: "ARCH";
|
|
480
|
+
arch: "UPPER" | "LOWER";
|
|
481
|
+
} | {
|
|
482
|
+
type: "FULL_MOUTH";
|
|
483
|
+
} | undefined;
|
|
484
|
+
shade?: string | undefined;
|
|
485
|
+
notePreparazione?: string | undefined;
|
|
486
|
+
lineaMargine?: string | undefined;
|
|
487
|
+
patient: {
|
|
488
|
+
corePatientId: string;
|
|
489
|
+
};
|
|
490
|
+
clinic: {
|
|
491
|
+
coreClinicId: string;
|
|
492
|
+
};
|
|
493
|
+
doctor: {
|
|
494
|
+
coreDoctorId: string;
|
|
495
|
+
};
|
|
496
|
+
prostheticService: {
|
|
497
|
+
pdcItemId: string;
|
|
498
|
+
listinoId: string;
|
|
499
|
+
serviceCode: string;
|
|
500
|
+
serviceLabel: string;
|
|
501
|
+
};
|
|
502
|
+
}, {
|
|
503
|
+
patient: import("convex/values").VObject<{
|
|
504
|
+
corePatientId: string;
|
|
505
|
+
}, {
|
|
506
|
+
corePatientId: import("convex/values").VString<string, "required">;
|
|
507
|
+
}, "required", "corePatientId">;
|
|
508
|
+
clinic: import("convex/values").VObject<{
|
|
509
|
+
coreClinicId: string;
|
|
510
|
+
}, {
|
|
511
|
+
coreClinicId: import("convex/values").VString<string, "required">;
|
|
512
|
+
}, "required", "coreClinicId">;
|
|
513
|
+
doctor: import("convex/values").VObject<{
|
|
514
|
+
coreDoctorId: string;
|
|
515
|
+
}, {
|
|
516
|
+
coreDoctorId: import("convex/values").VString<string, "required">;
|
|
517
|
+
}, "required", "coreDoctorId">;
|
|
518
|
+
prostheticService: import("convex/values").VObject<{
|
|
519
|
+
pdcItemId: string;
|
|
520
|
+
listinoId: string;
|
|
521
|
+
serviceCode: string;
|
|
522
|
+
serviceLabel: string;
|
|
523
|
+
}, {
|
|
524
|
+
pdcItemId: import("convex/values").VString<string, "required">;
|
|
525
|
+
listinoId: import("convex/values").VString<string, "required">;
|
|
526
|
+
serviceCode: import("convex/values").VString<string, "required">;
|
|
527
|
+
serviceLabel: import("convex/values").VString<string, "required">;
|
|
528
|
+
}, "required", "pdcItemId" | "listinoId" | "serviceCode" | "serviceLabel">;
|
|
529
|
+
application: import("convex/values").VUnion<{
|
|
530
|
+
type: "TOOTH";
|
|
531
|
+
toothNumber: number;
|
|
532
|
+
} | {
|
|
533
|
+
type: "MULTI_TOOTH";
|
|
534
|
+
teeth: number[];
|
|
535
|
+
} | {
|
|
536
|
+
type: "BRIDGE";
|
|
537
|
+
teeth: {
|
|
538
|
+
toothNumber: number;
|
|
539
|
+
role: "abutment" | "pontic";
|
|
540
|
+
}[];
|
|
541
|
+
} | {
|
|
542
|
+
type: "QUADRANT";
|
|
543
|
+
quadrant: number;
|
|
544
|
+
} | {
|
|
545
|
+
type: "SEXTANT";
|
|
546
|
+
sextant: number;
|
|
547
|
+
} | {
|
|
548
|
+
type: "ARCH";
|
|
549
|
+
arch: "UPPER" | "LOWER";
|
|
550
|
+
} | {
|
|
551
|
+
type: "FULL_MOUTH";
|
|
552
|
+
} | undefined, [import("convex/values").VObject<{
|
|
553
|
+
type: "TOOTH";
|
|
554
|
+
toothNumber: number;
|
|
555
|
+
}, {
|
|
556
|
+
type: import("convex/values").VLiteral<"TOOTH", "required">;
|
|
557
|
+
toothNumber: import("convex/values").VFloat64<number, "required">;
|
|
558
|
+
}, "required", "type" | "toothNumber">, import("convex/values").VObject<{
|
|
559
|
+
type: "MULTI_TOOTH";
|
|
560
|
+
teeth: number[];
|
|
561
|
+
}, {
|
|
562
|
+
type: import("convex/values").VLiteral<"MULTI_TOOTH", "required">;
|
|
563
|
+
teeth: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
564
|
+
}, "required", "type" | "teeth">, import("convex/values").VObject<{
|
|
565
|
+
type: "BRIDGE";
|
|
566
|
+
teeth: {
|
|
567
|
+
toothNumber: number;
|
|
568
|
+
role: "abutment" | "pontic";
|
|
569
|
+
}[];
|
|
570
|
+
}, {
|
|
571
|
+
type: import("convex/values").VLiteral<"BRIDGE", "required">;
|
|
572
|
+
teeth: import("convex/values").VArray<{
|
|
573
|
+
toothNumber: number;
|
|
574
|
+
role: "abutment" | "pontic";
|
|
575
|
+
}[], import("convex/values").VObject<{
|
|
576
|
+
toothNumber: number;
|
|
577
|
+
role: "abutment" | "pontic";
|
|
578
|
+
}, {
|
|
579
|
+
toothNumber: import("convex/values").VFloat64<number, "required">;
|
|
580
|
+
role: import("convex/values").VUnion<"abutment" | "pontic", [import("convex/values").VLiteral<"abutment", "required">, import("convex/values").VLiteral<"pontic", "required">], "required", never>;
|
|
581
|
+
}, "required", "toothNumber" | "role">, "required">;
|
|
582
|
+
}, "required", "type" | "teeth">, import("convex/values").VObject<{
|
|
583
|
+
type: "QUADRANT";
|
|
584
|
+
quadrant: number;
|
|
585
|
+
}, {
|
|
586
|
+
type: import("convex/values").VLiteral<"QUADRANT", "required">;
|
|
587
|
+
quadrant: import("convex/values").VFloat64<number, "required">;
|
|
588
|
+
}, "required", "type" | "quadrant">, import("convex/values").VObject<{
|
|
589
|
+
type: "SEXTANT";
|
|
590
|
+
sextant: number;
|
|
591
|
+
}, {
|
|
592
|
+
type: import("convex/values").VLiteral<"SEXTANT", "required">;
|
|
593
|
+
sextant: import("convex/values").VFloat64<number, "required">;
|
|
594
|
+
}, "required", "type" | "sextant">, import("convex/values").VObject<{
|
|
595
|
+
type: "ARCH";
|
|
596
|
+
arch: "UPPER" | "LOWER";
|
|
597
|
+
}, {
|
|
598
|
+
type: import("convex/values").VLiteral<"ARCH", "required">;
|
|
599
|
+
arch: import("convex/values").VUnion<"UPPER" | "LOWER", [import("convex/values").VLiteral<"UPPER", "required">, import("convex/values").VLiteral<"LOWER", "required">], "required", never>;
|
|
600
|
+
}, "required", "type" | "arch">, import("convex/values").VObject<{
|
|
601
|
+
type: "FULL_MOUTH";
|
|
602
|
+
}, {
|
|
603
|
+
type: import("convex/values").VLiteral<"FULL_MOUTH", "required">;
|
|
604
|
+
}, "required", "type">], "optional", "type" | "toothNumber" | "teeth" | "quadrant" | "sextant" | "arch">;
|
|
605
|
+
shade: import("convex/values").VString<string | undefined, "optional">;
|
|
606
|
+
notePreparazione: import("convex/values").VString<string | undefined, "optional">;
|
|
607
|
+
lineaMargine: import("convex/values").VString<string | undefined, "optional">;
|
|
608
|
+
}, "required", "patient" | "clinic" | "doctor" | "prostheticService" | "application" | "shade" | "notePreparazione" | "lineaMargine" | "patient.corePatientId" | "clinic.coreClinicId" | "doctor.coreDoctorId" | "prostheticService.pdcItemId" | "prostheticService.listinoId" | "prostheticService.serviceCode" | "prostheticService.serviceLabel" | "application.type" | "application.toothNumber" | "application.teeth" | "application.quadrant" | "application.sextant" | "application.arch">;
|
|
609
|
+
clinicalHash: import("convex/values").VString<string, "required">;
|
|
610
|
+
signature: import("convex/values").VUnion<{
|
|
611
|
+
signedAt: number;
|
|
612
|
+
signedByDoctorId: string;
|
|
613
|
+
signatureType: "weak-digital" | "auto-lab";
|
|
614
|
+
signaturePayload: string;
|
|
615
|
+
clinicalHash: string;
|
|
616
|
+
} | null, [import("convex/values").VObject<{
|
|
617
|
+
signedAt: number;
|
|
618
|
+
signedByDoctorId: string;
|
|
619
|
+
signatureType: "weak-digital" | "auto-lab";
|
|
620
|
+
signaturePayload: string;
|
|
621
|
+
clinicalHash: string;
|
|
622
|
+
}, {
|
|
623
|
+
signedAt: import("convex/values").VFloat64<number, "required">;
|
|
624
|
+
signedByDoctorId: import("convex/values").VString<string, "required">;
|
|
625
|
+
signatureType: import("convex/values").VUnion<"weak-digital" | "auto-lab", [import("convex/values").VLiteral<"weak-digital", "required">, import("convex/values").VLiteral<"auto-lab", "required">], "required", never>;
|
|
626
|
+
signaturePayload: import("convex/values").VString<string, "required">;
|
|
627
|
+
clinicalHash: import("convex/values").VString<string, "required">;
|
|
628
|
+
}, "required", "signedAt" | "signedByDoctorId" | "signatureType" | "signaturePayload" | "clinicalHash">, import("convex/values").VNull<null, "required">], "required", "signedAt" | "signedByDoctorId" | "signatureType" | "signaturePayload" | "clinicalHash">;
|
|
629
|
+
frozen: import("convex/values").VBoolean<boolean, "required">;
|
|
630
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
631
|
+
}, "required", "clinicalHash" | "deleted_at" | "createdAt" | "prescriptionId" | "clinicalData" | "clinicalRevisionId" | "prescriptionRef" | "revisionNumber" | "signature" | "frozen" | "clinicalData.patient" | "clinicalData.clinic" | "clinicalData.doctor" | "clinicalData.prostheticService" | "clinicalData.application" | "clinicalData.shade" | "clinicalData.notePreparazione" | "clinicalData.lineaMargine" | "clinicalData.patient.corePatientId" | "clinicalData.clinic.coreClinicId" | "clinicalData.doctor.coreDoctorId" | "clinicalData.prostheticService.pdcItemId" | "clinicalData.prostheticService.listinoId" | "clinicalData.prostheticService.serviceCode" | "clinicalData.prostheticService.serviceLabel" | "clinicalData.application.type" | "clinicalData.application.toothNumber" | "clinicalData.application.teeth" | "clinicalData.application.quadrant" | "clinicalData.application.sextant" | "clinicalData.application.arch" | "signature.signedAt" | "signature.signedByDoctorId" | "signature.signatureType" | "signature.signaturePayload" | "signature.clinicalHash">, {
|
|
632
|
+
by_clinicalRevisionId: ["clinicalRevisionId", "_creationTime"];
|
|
633
|
+
by_prescriptionId: ["prescriptionId", "_creationTime"];
|
|
634
|
+
by_prescriptionRef: ["prescriptionRef", "_creationTime"];
|
|
635
|
+
by_prescriptionRef_revisionNumber: ["prescriptionRef", "revisionNumber", "_creationTime"];
|
|
636
|
+
}, {}, {}>;
|
|
637
|
+
operationalData: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
638
|
+
deleted_at?: number | undefined;
|
|
639
|
+
prescriptionId?: import("convex/values").GenericId<"prescriptions"> | undefined;
|
|
640
|
+
prescriptionRef?: import("convex/values").GenericId<"prescriptions"> | undefined;
|
|
641
|
+
operationalDataId?: number | undefined;
|
|
642
|
+
noteInterne?: string | undefined;
|
|
643
|
+
allegati?: {
|
|
644
|
+
fileName: string;
|
|
645
|
+
uploadedAt: number;
|
|
646
|
+
uploadedBy: string;
|
|
647
|
+
fileId: string;
|
|
648
|
+
}[] | undefined;
|
|
649
|
+
uiState?: any;
|
|
650
|
+
}, {
|
|
651
|
+
operationalDataId: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
652
|
+
deleted_at: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
653
|
+
prescriptionId: import("convex/values").VId<import("convex/values").GenericId<"prescriptions"> | undefined, "optional">;
|
|
654
|
+
prescriptionRef: import("convex/values").VId<import("convex/values").GenericId<"prescriptions"> | undefined, "optional">;
|
|
655
|
+
noteInterne: import("convex/values").VString<string | undefined, "optional">;
|
|
656
|
+
allegati: import("convex/values").VArray<{
|
|
657
|
+
fileName: string;
|
|
658
|
+
uploadedAt: number;
|
|
659
|
+
uploadedBy: string;
|
|
660
|
+
fileId: string;
|
|
661
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
662
|
+
fileName: string;
|
|
663
|
+
uploadedAt: number;
|
|
664
|
+
uploadedBy: string;
|
|
665
|
+
fileId: string;
|
|
666
|
+
}, {
|
|
667
|
+
fileId: import("convex/values").VString<string, "required">;
|
|
668
|
+
fileName: import("convex/values").VString<string, "required">;
|
|
669
|
+
uploadedAt: import("convex/values").VFloat64<number, "required">;
|
|
670
|
+
uploadedBy: import("convex/values").VString<string, "required">;
|
|
671
|
+
}, "required", "fileName" | "uploadedAt" | "uploadedBy" | "fileId">, "optional">;
|
|
672
|
+
uiState: import("convex/values").VAny<any, "optional", string>;
|
|
673
|
+
}, "required", "deleted_at" | "prescriptionId" | "prescriptionRef" | "operationalDataId" | "noteInterne" | "allegati" | "uiState" | `uiState.${string}`>, {
|
|
674
|
+
by_operationalDataId: ["operationalDataId", "_creationTime"];
|
|
675
|
+
by_prescriptionId: ["prescriptionId", "_creationTime"];
|
|
676
|
+
by_prescriptionRef: ["prescriptionRef", "_creationTime"];
|
|
677
|
+
}, {}, {}>;
|
|
678
|
+
phaseInstances: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
679
|
+
deleted_at?: number | undefined;
|
|
680
|
+
prescriptionId?: import("convex/values").GenericId<"prescriptions"> | undefined;
|
|
681
|
+
prescriptionRef?: import("convex/values").GenericId<"prescriptions"> | undefined;
|
|
682
|
+
phaseInstanceId?: number | undefined;
|
|
683
|
+
appointment?: {
|
|
684
|
+
coreAppointmentId?: string | undefined;
|
|
685
|
+
startAt?: number | undefined;
|
|
686
|
+
endAt?: number | undefined;
|
|
687
|
+
doctorId?: string | undefined;
|
|
688
|
+
} | undefined;
|
|
689
|
+
feedback?: {
|
|
690
|
+
comment?: string | undefined;
|
|
691
|
+
outcome: "OK" | "KO" | null;
|
|
692
|
+
updatedBy: string;
|
|
693
|
+
updatedAt: number;
|
|
694
|
+
} | undefined;
|
|
695
|
+
phaseTypeKey: string;
|
|
696
|
+
updatedAt: number;
|
|
697
|
+
status: "NOT_STARTED" | "SCHEDULED" | "DONE_OK" | "DONE_KO" | "SKIPPED" | "REPEAT";
|
|
698
|
+
createdAt: number;
|
|
699
|
+
ordinal: number;
|
|
700
|
+
iteration: number;
|
|
701
|
+
}, {
|
|
702
|
+
phaseInstanceId: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
703
|
+
deleted_at: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
704
|
+
prescriptionId: import("convex/values").VId<import("convex/values").GenericId<"prescriptions"> | undefined, "optional">;
|
|
705
|
+
prescriptionRef: import("convex/values").VId<import("convex/values").GenericId<"prescriptions"> | undefined, "optional">;
|
|
706
|
+
phaseTypeKey: import("convex/values").VString<string, "required">;
|
|
707
|
+
ordinal: import("convex/values").VFloat64<number, "required">;
|
|
708
|
+
iteration: import("convex/values").VFloat64<number, "required">;
|
|
709
|
+
status: import("convex/values").VUnion<"NOT_STARTED" | "SCHEDULED" | "DONE_OK" | "DONE_KO" | "SKIPPED" | "REPEAT", [import("convex/values").VLiteral<"NOT_STARTED", "required">, import("convex/values").VLiteral<"SCHEDULED", "required">, import("convex/values").VLiteral<"DONE_OK", "required">, import("convex/values").VLiteral<"DONE_KO", "required">, import("convex/values").VLiteral<"SKIPPED", "required">, import("convex/values").VLiteral<"REPEAT", "required">], "required", never>;
|
|
710
|
+
appointment: import("convex/values").VObject<{
|
|
711
|
+
coreAppointmentId?: string | undefined;
|
|
712
|
+
startAt?: number | undefined;
|
|
713
|
+
endAt?: number | undefined;
|
|
714
|
+
doctorId?: string | undefined;
|
|
715
|
+
} | undefined, {
|
|
716
|
+
coreAppointmentId: import("convex/values").VString<string | undefined, "optional">;
|
|
717
|
+
startAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
718
|
+
endAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
719
|
+
doctorId: import("convex/values").VString<string | undefined, "optional">;
|
|
720
|
+
}, "optional", "coreAppointmentId" | "startAt" | "endAt" | "doctorId">;
|
|
721
|
+
feedback: import("convex/values").VObject<{
|
|
722
|
+
comment?: string | undefined;
|
|
723
|
+
outcome: "OK" | "KO" | null;
|
|
724
|
+
updatedBy: string;
|
|
725
|
+
updatedAt: number;
|
|
726
|
+
} | undefined, {
|
|
727
|
+
outcome: import("convex/values").VUnion<"OK" | "KO" | null, [import("convex/values").VLiteral<"OK", "required">, import("convex/values").VLiteral<"KO", "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
728
|
+
comment: import("convex/values").VString<string | undefined, "optional">;
|
|
729
|
+
updatedBy: import("convex/values").VString<string, "required">;
|
|
730
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
731
|
+
}, "optional", "outcome" | "comment" | "updatedBy" | "updatedAt">;
|
|
732
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
733
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
734
|
+
}, "required", "phaseTypeKey" | "updatedAt" | "deleted_at" | "status" | "createdAt" | "prescriptionId" | "prescriptionRef" | "phaseInstanceId" | "ordinal" | "iteration" | "appointment" | "feedback" | "appointment.coreAppointmentId" | "appointment.startAt" | "appointment.endAt" | "appointment.doctorId" | "feedback.outcome" | "feedback.comment" | "feedback.updatedBy" | "feedback.updatedAt">, {
|
|
735
|
+
by_phaseInstanceId: ["phaseInstanceId", "_creationTime"];
|
|
736
|
+
by_prescriptionId: ["prescriptionId", "_creationTime"];
|
|
737
|
+
by_prescriptionRef: ["prescriptionRef", "_creationTime"];
|
|
738
|
+
by_prescriptionRef_ordinal: ["prescriptionRef", "ordinal", "_creationTime"];
|
|
739
|
+
}, {}, {}>;
|
|
740
|
+
snapshots: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
741
|
+
deleted_at?: number | undefined;
|
|
742
|
+
snapshotId?: number | undefined;
|
|
743
|
+
entityType: "PATIENT" | "PDC_ITEM" | "APPOINTMENT" | "DOCTOR" | "CLINIC";
|
|
744
|
+
entityId: string;
|
|
745
|
+
data: any;
|
|
746
|
+
fetchedAt: number;
|
|
747
|
+
}, {
|
|
748
|
+
snapshotId: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
749
|
+
deleted_at: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
750
|
+
entityType: import("convex/values").VUnion<"PATIENT" | "PDC_ITEM" | "APPOINTMENT" | "DOCTOR" | "CLINIC", [import("convex/values").VLiteral<"PATIENT", "required">, import("convex/values").VLiteral<"PDC_ITEM", "required">, import("convex/values").VLiteral<"APPOINTMENT", "required">, import("convex/values").VLiteral<"DOCTOR", "required">, import("convex/values").VLiteral<"CLINIC", "required">], "required", never>;
|
|
751
|
+
entityId: import("convex/values").VString<string, "required">;
|
|
752
|
+
data: import("convex/values").VAny<any, "required", string>;
|
|
753
|
+
fetchedAt: import("convex/values").VFloat64<number, "required">;
|
|
754
|
+
}, "required", "deleted_at" | "snapshotId" | "entityType" | "entityId" | "data" | "fetchedAt" | `data.${string}`>, {
|
|
755
|
+
by_snapshotId: ["snapshotId", "_creationTime"];
|
|
756
|
+
by_entityType_entityId: ["entityType", "entityId", "_creationTime"];
|
|
757
|
+
}, {}, {}>;
|
|
758
|
+
auditEvents: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
759
|
+
deleted_at?: number | undefined;
|
|
760
|
+
prescriptionId?: import("convex/values").GenericId<"prescriptions"> | undefined;
|
|
761
|
+
prescriptionRef?: import("convex/values").GenericId<"prescriptions"> | undefined;
|
|
762
|
+
auditEventId?: number | undefined;
|
|
763
|
+
type: string;
|
|
764
|
+
at: number;
|
|
765
|
+
actorUserId: string;
|
|
766
|
+
actorRole: "DOCTOR" | "SECRETARY" | "SYSTEM";
|
|
767
|
+
payload: any;
|
|
768
|
+
}, {
|
|
769
|
+
auditEventId: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
770
|
+
deleted_at: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
771
|
+
prescriptionId: import("convex/values").VId<import("convex/values").GenericId<"prescriptions"> | undefined, "optional">;
|
|
772
|
+
prescriptionRef: import("convex/values").VId<import("convex/values").GenericId<"prescriptions"> | undefined, "optional">;
|
|
773
|
+
at: import("convex/values").VFloat64<number, "required">;
|
|
774
|
+
actorUserId: import("convex/values").VString<string, "required">;
|
|
775
|
+
actorRole: import("convex/values").VUnion<"DOCTOR" | "SECRETARY" | "SYSTEM", [import("convex/values").VLiteral<"SECRETARY", "required">, import("convex/values").VLiteral<"DOCTOR", "required">, import("convex/values").VLiteral<"SYSTEM", "required">], "required", never>;
|
|
776
|
+
type: import("convex/values").VString<string, "required">;
|
|
777
|
+
payload: import("convex/values").VAny<any, "required", string>;
|
|
778
|
+
}, "required", "type" | "at" | "deleted_at" | "prescriptionId" | "prescriptionRef" | "auditEventId" | "actorUserId" | "actorRole" | "payload" | `payload.${string}`>, {
|
|
779
|
+
by_auditEventId: ["auditEventId", "_creationTime"];
|
|
780
|
+
by_prescriptionId: ["prescriptionId", "_creationTime"];
|
|
781
|
+
by_prescriptionRef: ["prescriptionRef", "_creationTime"];
|
|
782
|
+
by_at: ["at", "_creationTime"];
|
|
783
|
+
by_actorUserId: ["actorUserId", "_creationTime"];
|
|
784
|
+
}, {}, {}>;
|
|
785
|
+
syncJobs: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
786
|
+
deleted_at?: number | undefined;
|
|
787
|
+
prescriptionId?: import("convex/values").GenericId<"prescriptions"> | undefined;
|
|
788
|
+
prescriptionRef?: import("convex/values").GenericId<"prescriptions"> | undefined;
|
|
789
|
+
syncJobId?: number | undefined;
|
|
790
|
+
lastError?: string | undefined;
|
|
791
|
+
updatedAt: number;
|
|
792
|
+
status: "OK" | "PENDING" | "RUNNING" | "FAILED";
|
|
793
|
+
createdAt: number;
|
|
794
|
+
idempotencyKey: string;
|
|
795
|
+
target: "PRIMOCORE" | "LAB";
|
|
796
|
+
requestPayload: any;
|
|
797
|
+
attempts: number;
|
|
798
|
+
nextRetryAt: number;
|
|
799
|
+
kind: "POST_CLINICAL" | "UPSERT_APPOINTMENT" | "LAB_REQUEST";
|
|
800
|
+
}, {
|
|
801
|
+
syncJobId: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
802
|
+
deleted_at: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
803
|
+
prescriptionId: import("convex/values").VId<import("convex/values").GenericId<"prescriptions"> | undefined, "optional">;
|
|
804
|
+
prescriptionRef: import("convex/values").VId<import("convex/values").GenericId<"prescriptions"> | undefined, "optional">;
|
|
805
|
+
target: import("convex/values").VUnion<"PRIMOCORE" | "LAB", [import("convex/values").VLiteral<"PRIMOCORE", "required">, import("convex/values").VLiteral<"LAB", "required">], "required", never>;
|
|
806
|
+
kind: import("convex/values").VUnion<"POST_CLINICAL" | "UPSERT_APPOINTMENT" | "LAB_REQUEST", [import("convex/values").VLiteral<"POST_CLINICAL", "required">, import("convex/values").VLiteral<"UPSERT_APPOINTMENT", "required">, import("convex/values").VLiteral<"LAB_REQUEST", "required">], "required", never>;
|
|
807
|
+
idempotencyKey: import("convex/values").VString<string, "required">;
|
|
808
|
+
requestPayload: import("convex/values").VAny<any, "required", string>;
|
|
809
|
+
status: import("convex/values").VUnion<"OK" | "PENDING" | "RUNNING" | "FAILED", [import("convex/values").VLiteral<"PENDING", "required">, import("convex/values").VLiteral<"RUNNING", "required">, import("convex/values").VLiteral<"OK", "required">, import("convex/values").VLiteral<"FAILED", "required">], "required", never>;
|
|
810
|
+
attempts: import("convex/values").VFloat64<number, "required">;
|
|
811
|
+
lastError: import("convex/values").VString<string | undefined, "optional">;
|
|
812
|
+
nextRetryAt: import("convex/values").VFloat64<number, "required">;
|
|
813
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
814
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
815
|
+
}, "required", "updatedAt" | "deleted_at" | "status" | "createdAt" | "prescriptionId" | "idempotencyKey" | "prescriptionRef" | "syncJobId" | "target" | "requestPayload" | "attempts" | "lastError" | "nextRetryAt" | "kind" | `requestPayload.${string}`>, {
|
|
816
|
+
by_syncJobId: ["syncJobId", "_creationTime"];
|
|
817
|
+
by_status_nextRetryAt: ["status", "nextRetryAt", "_creationTime"];
|
|
818
|
+
by_prescriptionId: ["prescriptionId", "_creationTime"];
|
|
819
|
+
by_prescriptionRef: ["prescriptionRef", "_creationTime"];
|
|
820
|
+
by_idempotencyKey: ["idempotencyKey", "_creationTime"];
|
|
821
|
+
}, {}, {}>;
|
|
822
|
+
users: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
823
|
+
coreDoctorId?: string | undefined;
|
|
824
|
+
deleted_at?: number | undefined;
|
|
825
|
+
userId?: number | undefined;
|
|
826
|
+
adminRole?: "user" | "admin" | "superadmin" | undefined;
|
|
827
|
+
role: "DOCTOR" | "SECRETARY";
|
|
828
|
+
clinicId: string;
|
|
829
|
+
email: string;
|
|
830
|
+
name: string;
|
|
831
|
+
active: boolean;
|
|
832
|
+
}, {
|
|
833
|
+
userId: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
834
|
+
deleted_at: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
835
|
+
email: import("convex/values").VString<string, "required">;
|
|
836
|
+
name: import("convex/values").VString<string, "required">;
|
|
837
|
+
role: import("convex/values").VUnion<"DOCTOR" | "SECRETARY", [import("convex/values").VLiteral<"SECRETARY", "required">, import("convex/values").VLiteral<"DOCTOR", "required">], "required", never>;
|
|
838
|
+
clinicId: import("convex/values").VString<string, "required">;
|
|
839
|
+
coreDoctorId: import("convex/values").VString<string | undefined, "optional">;
|
|
840
|
+
active: import("convex/values").VBoolean<boolean, "required">;
|
|
841
|
+
adminRole: import("convex/values").VUnion<"user" | "admin" | "superadmin" | undefined, [import("convex/values").VLiteral<"user", "required">, import("convex/values").VLiteral<"admin", "required">, import("convex/values").VLiteral<"superadmin", "required">], "optional", never>;
|
|
842
|
+
}, "required", "role" | "coreDoctorId" | "deleted_at" | "clinicId" | "userId" | "email" | "name" | "active" | "adminRole">, {
|
|
843
|
+
by_userId: ["userId", "_creationTime"];
|
|
844
|
+
by_email: ["email", "_creationTime"];
|
|
845
|
+
by_clinicId: ["clinicId", "_creationTime"];
|
|
846
|
+
}, {}, {}>;
|
|
847
|
+
rulesets: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
848
|
+
description?: string | undefined;
|
|
849
|
+
deleted_at?: number | undefined;
|
|
850
|
+
rulesetId?: number | undefined;
|
|
851
|
+
updatedAt: number;
|
|
852
|
+
createdAt: number;
|
|
853
|
+
name: string;
|
|
854
|
+
rulesJson: string;
|
|
855
|
+
createdBy: string;
|
|
856
|
+
}, {
|
|
857
|
+
rulesetId: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
858
|
+
deleted_at: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
859
|
+
name: import("convex/values").VString<string, "required">;
|
|
860
|
+
description: import("convex/values").VString<string | undefined, "optional">;
|
|
861
|
+
rulesJson: import("convex/values").VString<string, "required">;
|
|
862
|
+
createdBy: import("convex/values").VString<string, "required">;
|
|
863
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
864
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
865
|
+
}, "required", "updatedAt" | "description" | "deleted_at" | "createdAt" | "name" | "rulesetId" | "rulesJson" | "createdBy">, {
|
|
866
|
+
by_rulesetId: ["rulesetId", "_creationTime"];
|
|
867
|
+
by_updatedAt: ["updatedAt", "_creationTime"];
|
|
868
|
+
}, {}, {}>;
|
|
869
|
+
rulesetVersions: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
870
|
+
deleted_at?: number | undefined;
|
|
871
|
+
rulesetVersionId?: number | undefined;
|
|
872
|
+
descriptionSnapshot?: string | undefined;
|
|
873
|
+
rulesetId: import("convex/values").GenericId<"rulesets">;
|
|
874
|
+
versionNumber: number;
|
|
875
|
+
nameSnapshot: string;
|
|
876
|
+
rulesJsonSnapshot: string;
|
|
877
|
+
publishedBy: string;
|
|
878
|
+
publishedAt: number;
|
|
879
|
+
}, {
|
|
880
|
+
rulesetVersionId: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
881
|
+
deleted_at: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
882
|
+
rulesetId: import("convex/values").VId<import("convex/values").GenericId<"rulesets">, "required">;
|
|
883
|
+
versionNumber: import("convex/values").VFloat64<number, "required">;
|
|
884
|
+
nameSnapshot: import("convex/values").VString<string, "required">;
|
|
885
|
+
descriptionSnapshot: import("convex/values").VString<string | undefined, "optional">;
|
|
886
|
+
rulesJsonSnapshot: import("convex/values").VString<string, "required">;
|
|
887
|
+
publishedBy: import("convex/values").VString<string, "required">;
|
|
888
|
+
publishedAt: import("convex/values").VFloat64<number, "required">;
|
|
889
|
+
}, "required", "deleted_at" | "rulesetVersionId" | "rulesetId" | "versionNumber" | "nameSnapshot" | "descriptionSnapshot" | "rulesJsonSnapshot" | "publishedBy" | "publishedAt">, {
|
|
890
|
+
by_rulesetVersionId: ["rulesetVersionId", "_creationTime"];
|
|
891
|
+
by_rulesetId: ["rulesetId", "_creationTime"];
|
|
892
|
+
by_rulesetId_versionNumber: ["rulesetId", "versionNumber", "_creationTime"];
|
|
893
|
+
by_publishedAt: ["publishedAt", "_creationTime"];
|
|
894
|
+
}, {}, {}>;
|
|
895
|
+
activeRulesets: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
896
|
+
rulesetId: import("convex/values").GenericId<"rulesets">;
|
|
897
|
+
key: string;
|
|
898
|
+
versionId: import("convex/values").GenericId<"rulesetVersions">;
|
|
899
|
+
activatedBy: string;
|
|
900
|
+
activatedAt: number;
|
|
901
|
+
}, {
|
|
902
|
+
key: import("convex/values").VString<string, "required">;
|
|
903
|
+
rulesetId: import("convex/values").VId<import("convex/values").GenericId<"rulesets">, "required">;
|
|
904
|
+
versionId: import("convex/values").VId<import("convex/values").GenericId<"rulesetVersions">, "required">;
|
|
905
|
+
activatedBy: import("convex/values").VString<string, "required">;
|
|
906
|
+
activatedAt: import("convex/values").VFloat64<number, "required">;
|
|
907
|
+
}, "required", "rulesetId" | "key" | "versionId" | "activatedBy" | "activatedAt">, {
|
|
908
|
+
by_key: ["key", "_creationTime"];
|
|
909
|
+
}, {}, {}>;
|
|
910
|
+
builderAuditLogs: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
911
|
+
deleted_at?: number | undefined;
|
|
912
|
+
builderAuditLogId?: number | undefined;
|
|
913
|
+
metadataJson?: string | undefined;
|
|
914
|
+
createdAt: number;
|
|
915
|
+
actorId: string;
|
|
916
|
+
action: "create_ruleset" | "update_draft" | "publish_version" | "set_active_global";
|
|
917
|
+
targetType: "ruleset" | "rulesetVersion" | "activeRuleset";
|
|
918
|
+
targetId: string;
|
|
919
|
+
}, {
|
|
920
|
+
builderAuditLogId: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
921
|
+
deleted_at: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
922
|
+
actorId: import("convex/values").VString<string, "required">;
|
|
923
|
+
action: import("convex/values").VUnion<"create_ruleset" | "update_draft" | "publish_version" | "set_active_global", [import("convex/values").VLiteral<"create_ruleset", "required">, import("convex/values").VLiteral<"update_draft", "required">, import("convex/values").VLiteral<"publish_version", "required">, import("convex/values").VLiteral<"set_active_global", "required">], "required", never>;
|
|
924
|
+
targetType: import("convex/values").VUnion<"ruleset" | "rulesetVersion" | "activeRuleset", [import("convex/values").VLiteral<"ruleset", "required">, import("convex/values").VLiteral<"rulesetVersion", "required">, import("convex/values").VLiteral<"activeRuleset", "required">], "required", never>;
|
|
925
|
+
targetId: import("convex/values").VString<string, "required">;
|
|
926
|
+
metadataJson: import("convex/values").VString<string | undefined, "optional">;
|
|
927
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
928
|
+
}, "required", "deleted_at" | "createdAt" | "builderAuditLogId" | "actorId" | "action" | "targetType" | "targetId" | "metadataJson">, {
|
|
929
|
+
by_builderAuditLogId: ["builderAuditLogId", "_creationTime"];
|
|
930
|
+
by_createdAt: ["createdAt", "_creationTime"];
|
|
931
|
+
by_actorId: ["actorId", "_creationTime"];
|
|
932
|
+
}, {}, {}>;
|
|
933
|
+
prescriptionFieldCatalog: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
934
|
+
description?: string | undefined;
|
|
935
|
+
deleted_at?: number | undefined;
|
|
936
|
+
options?: string[] | undefined;
|
|
937
|
+
label: string;
|
|
938
|
+
type: "number" | "text" | "date" | "select" | "checkbox";
|
|
939
|
+
updatedAt: number;
|
|
940
|
+
status: "active" | "deprecated";
|
|
941
|
+
createdAt: number;
|
|
942
|
+
createdBy: string;
|
|
943
|
+
fieldId: string;
|
|
944
|
+
}, {
|
|
945
|
+
fieldId: import("convex/values").VString<string, "required">;
|
|
946
|
+
deleted_at: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
947
|
+
label: import("convex/values").VString<string, "required">;
|
|
948
|
+
description: import("convex/values").VString<string | undefined, "optional">;
|
|
949
|
+
type: import("convex/values").VUnion<"number" | "text" | "date" | "select" | "checkbox", [import("convex/values").VLiteral<"text", "required">, import("convex/values").VLiteral<"number", "required">, import("convex/values").VLiteral<"date", "required">, import("convex/values").VLiteral<"select", "required">, import("convex/values").VLiteral<"checkbox", "required">], "required", never>;
|
|
950
|
+
options: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
951
|
+
status: import("convex/values").VUnion<"active" | "deprecated", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"deprecated", "required">], "required", never>;
|
|
952
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
953
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
954
|
+
createdBy: import("convex/values").VString<string, "required">;
|
|
955
|
+
}, "required", "label" | "type" | "updatedAt" | "description" | "deleted_at" | "status" | "createdAt" | "createdBy" | "fieldId" | "options">, {
|
|
956
|
+
by_fieldId: ["fieldId", "_creationTime"];
|
|
957
|
+
by_status: ["status", "_creationTime"];
|
|
958
|
+
by_createdAt: ["createdAt", "_creationTime"];
|
|
959
|
+
}, {}, {}>;
|
|
960
|
+
}, true>;
|
|
961
|
+
export default _default;
|
|
962
|
+
//# sourceMappingURL=schema.d.ts.map
|