@primocaredentgroup/prescriptions-component 0.1.0 → 0.1.3

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.
Files changed (32) hide show
  1. package/dist/_internal/component/_generated/api.d.ts +36 -0
  2. package/dist/_internal/component/_generated/api.d.ts.map +1 -0
  3. package/dist/_internal/component/_generated/api.js +31 -0
  4. package/dist/_internal/component/_generated/api.js.map +1 -0
  5. package/dist/_internal/component/_generated/component.d.ts +220 -0
  6. package/dist/_internal/component/_generated/component.d.ts.map +1 -0
  7. package/dist/_internal/component/_generated/component.js +11 -0
  8. package/dist/_internal/component/_generated/component.js.map +1 -0
  9. package/dist/_internal/component/_generated/dataModel.d.ts +46 -0
  10. package/dist/_internal/component/_generated/dataModel.d.ts.map +1 -0
  11. package/dist/_internal/component/_generated/dataModel.js +11 -0
  12. package/dist/_internal/component/_generated/dataModel.js.map +1 -0
  13. package/dist/_internal/component/_generated/server.d.ts +121 -0
  14. package/dist/_internal/component/_generated/server.d.ts.map +1 -0
  15. package/dist/_internal/component/_generated/server.js +78 -0
  16. package/dist/_internal/component/_generated/server.js.map +1 -0
  17. package/dist/_internal/component/convex.config.d.ts +2 -6
  18. package/dist/_internal/component/convex.config.d.ts.map +1 -1
  19. package/dist/_internal/component/convex.config.js +3 -7
  20. package/dist/_internal/component/convex.config.js.map +1 -1
  21. package/dist/_internal/component/index.d.ts +3 -1
  22. package/dist/_internal/component/index.d.ts.map +1 -1
  23. package/dist/_internal/component/index.js +3 -1
  24. package/dist/_internal/component/index.js.map +1 -1
  25. package/dist/component/convex.config.d.ts +0 -1
  26. package/dist/component/convex.config.js +0 -1
  27. package/dist/convex/_generated/api.d.ts +129 -0
  28. package/dist/convex/_generated/api.js +23 -0
  29. package/dist/convex/_generated/dataModel.d.ts +60 -0
  30. package/dist/convex/_generated/server.d.ts +143 -0
  31. package/dist/convex/_generated/server.js +93 -0
  32. package/package.json +5 -1
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Generated `api` utility.
3
+ *
4
+ * THIS CODE IS AUTOMATICALLY GENERATED.
5
+ *
6
+ * To regenerate, run `npx convex dev`.
7
+ * @module
8
+ */
9
+ import type * as functions from "../functions.js";
10
+ import type * as index from "../index.js";
11
+ import type { ApiFromModules, FilterApi, FunctionReference } from "convex/server";
12
+ declare const fullApi: ApiFromModules<{
13
+ functions: typeof functions;
14
+ index: typeof index;
15
+ }>;
16
+ /**
17
+ * A utility for referencing Convex functions in your app's public API.
18
+ *
19
+ * Usage:
20
+ * ```js
21
+ * const myFunctionReference = api.myModule.myFunction;
22
+ * ```
23
+ */
24
+ export declare const api: FilterApi<typeof fullApi, FunctionReference<any, "public">>;
25
+ /**
26
+ * A utility for referencing Convex functions in your app's internal API.
27
+ *
28
+ * Usage:
29
+ * ```js
30
+ * const myFunctionReference = internal.myModule.myFunction;
31
+ * ```
32
+ */
33
+ export declare const internal: FilterApi<typeof fullApi, FunctionReference<any, "internal">>;
34
+ export declare const components: {};
35
+ export {};
36
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/component/_generated/api.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,SAAS,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,iBAAiB,EAClB,MAAM,eAAe,CAAC;AAGvB,QAAA,MAAM,OAAO,EAAE,cAAc,CAAC;IAC5B,SAAS,EAAE,OAAO,SAAS,CAAC;IAC5B,KAAK,EAAE,OAAO,KAAK,CAAC;CACrB,CAAiB,CAAC;AAEnB;;;;;;;GAOG;AACH,eAAO,MAAM,GAAG,EAAE,SAAS,CACzB,OAAO,OAAO,EACd,iBAAiB,CAAC,GAAG,EAAE,QAAQ,CAAC,CACjB,CAAC;AAElB;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,CAC9B,OAAO,OAAO,EACd,iBAAiB,CAAC,GAAG,EAAE,UAAU,CAAC,CACnB,CAAC;AAElB,eAAO,MAAM,UAAU,EAAqC,EAAE,CAAC"}
@@ -0,0 +1,31 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated `api` utility.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+ import { anyApi, componentsGeneric } from "convex/server";
11
+ const fullApi = anyApi;
12
+ /**
13
+ * A utility for referencing Convex functions in your app's public API.
14
+ *
15
+ * Usage:
16
+ * ```js
17
+ * const myFunctionReference = api.myModule.myFunction;
18
+ * ```
19
+ */
20
+ export const api = anyApi;
21
+ /**
22
+ * A utility for referencing Convex functions in your app's internal API.
23
+ *
24
+ * Usage:
25
+ * ```js
26
+ * const myFunctionReference = internal.myModule.myFunction;
27
+ * ```
28
+ */
29
+ export const internal = anyApi;
30
+ export const components = componentsGeneric();
31
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/component/_generated/api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG;AAUH,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAE1D,MAAM,OAAO,GAGR,MAAa,CAAC;AAEnB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,GAAG,GAGZ,MAAa,CAAC;AAElB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAGjB,MAAa,CAAC;AAElB,MAAM,CAAC,MAAM,UAAU,GAAG,iBAAiB,EAAmB,CAAC"}
@@ -0,0 +1,220 @@
1
+ /**
2
+ * Generated `ComponentApi` utility.
3
+ *
4
+ * THIS CODE IS AUTOMATICALLY GENERATED.
5
+ *
6
+ * To regenerate, run `npx convex dev`.
7
+ * @module
8
+ */
9
+ import type { FunctionReference } from "convex/server";
10
+ /**
11
+ * A utility for referencing a Convex component's exposed API.
12
+ *
13
+ * Useful when expecting a parameter like `components.myComponent`.
14
+ * Usage:
15
+ * ```ts
16
+ * async function myFunction(ctx: QueryCtx, component: ComponentApi) {
17
+ * return ctx.runQuery(component.someFile.someQuery, { ...args });
18
+ * }
19
+ * ```
20
+ */
21
+ export type ComponentApi<Name extends string | undefined = string | undefined> = {
22
+ functions: {
23
+ addAttachment: FunctionReference<"mutation", "internal", {
24
+ fileId: string;
25
+ fileName: string;
26
+ prescriptionId: string;
27
+ }, any, Name>;
28
+ cancelPrescription: FunctionReference<"mutation", "internal", {
29
+ prescriptionId: string;
30
+ reason: string;
31
+ }, any, Name>;
32
+ confirmStlUpload: FunctionReference<"mutation", "internal", {
33
+ description?: string;
34
+ fileName: string;
35
+ fileSize: number;
36
+ mimeType: string;
37
+ prescriptionId: string;
38
+ storageId: string;
39
+ }, any, Name>;
40
+ countByStatus: FunctionReference<"query", "internal", {
41
+ clinicId: string;
42
+ }, any, Name>;
43
+ createDraft: FunctionReference<"mutation", "internal", {
44
+ clinicId: string;
45
+ doctorId: string;
46
+ flowKey: string;
47
+ listinoId: string;
48
+ patientId: string;
49
+ pdcItemId: string;
50
+ }, any, Name>;
51
+ createFromCalendar: FunctionReference<"mutation", "internal", {
52
+ calendarData: {
53
+ application: string;
54
+ appointmentDate: number;
55
+ appointmentId: string;
56
+ clinicName: string;
57
+ nextAppointmentDate?: number;
58
+ nextAppointmentId?: string;
59
+ nextAppointmentPhaseId?: string;
60
+ nextAppointmentPhaseName?: string;
61
+ operatorId: string;
62
+ operatorName: string;
63
+ patientFirstName: string;
64
+ patientLastName: string;
65
+ phaseId: string;
66
+ phaseName: string;
67
+ toothNumber?: string;
68
+ treatmentId: string;
69
+ treatmentName: string;
70
+ treatmentPlanId: string;
71
+ treatmentPlanName?: string;
72
+ };
73
+ clinicId: string;
74
+ doctorId: string;
75
+ flowKey?: string;
76
+ idempotencyKey: string;
77
+ listinoId: string;
78
+ patientId: string;
79
+ pdcItemId: string;
80
+ }, any, Name>;
81
+ deleteStlFile: FunctionReference<"mutation", "internal", {
82
+ assetId: string;
83
+ prescriptionId: string;
84
+ }, any, Name>;
85
+ generateStlUploadUrl: FunctionReference<"mutation", "internal", {
86
+ prescriptionId: string;
87
+ }, any, Name>;
88
+ getActivePrescriptionForPdcItem: FunctionReference<"query", "internal", {
89
+ pdcItemId: string;
90
+ }, any, Name>;
91
+ getById: FunctionReference<"query", "internal", {
92
+ prescriptionId: string;
93
+ }, any, Name>;
94
+ getRevisionHistory: FunctionReference<"query", "internal", {
95
+ prescriptionId: string;
96
+ }, any, Name>;
97
+ list: FunctionReference<"query", "internal", {
98
+ clinicId?: string;
99
+ doctorId?: string;
100
+ limit?: number;
101
+ patientId?: string;
102
+ status?: string;
103
+ }, any, Name>;
104
+ listAll: FunctionReference<"query", "internal", {}, any, Name>;
105
+ markAsShipped: FunctionReference<"mutation", "internal", {
106
+ prescriptionId: string;
107
+ trackingNumber?: string;
108
+ }, any, Name>;
109
+ previewDynamicFields: FunctionReference<"query", "internal", {
110
+ phaseTypeKey?: string;
111
+ prescriptionId: string;
112
+ }, any, Name>;
113
+ removeAttachment: FunctionReference<"mutation", "internal", {
114
+ fileId: string;
115
+ prescriptionId: string;
116
+ }, any, Name>;
117
+ repeatPhase: FunctionReference<"mutation", "internal", {
118
+ phaseInstanceId: string;
119
+ reason: string;
120
+ }, any, Name>;
121
+ retryJob: FunctionReference<"mutation", "internal", {
122
+ jobId: string;
123
+ }, any, Name>;
124
+ reviseAfterSignature: FunctionReference<"mutation", "internal", {
125
+ prescriptionId: string;
126
+ reason: string;
127
+ }, any, Name>;
128
+ saveUiState: FunctionReference<"mutation", "internal", {
129
+ prescriptionId: string;
130
+ uiState: any;
131
+ }, any, Name>;
132
+ scheduleAppointment: FunctionReference<"mutation", "internal", {
133
+ doctorId: string;
134
+ endAt: number;
135
+ phaseInstanceId: string;
136
+ startAt: number;
137
+ }, any, Name>;
138
+ sendToLab: FunctionReference<"mutation", "internal", {
139
+ prescriptionId: string;
140
+ }, any, Name>;
141
+ setPrescriptionType: FunctionReference<"mutation", "internal", {
142
+ prescriptionId: string;
143
+ prescriptionType: "ANALOG" | "DIGITAL";
144
+ }, any, Name>;
145
+ signPrescription: FunctionReference<"mutation", "internal", {
146
+ prescriptionId: string;
147
+ signaturePayload: string;
148
+ }, any, Name>;
149
+ skipPhase: FunctionReference<"mutation", "internal", {
150
+ phaseInstanceId: string;
151
+ reason: string;
152
+ }, any, Name>;
153
+ submitToDoctor: FunctionReference<"mutation", "internal", {
154
+ prescriptionId: string;
155
+ }, any, Name>;
156
+ unmarkAsShipped: FunctionReference<"mutation", "internal", {
157
+ prescriptionId: string;
158
+ }, any, Name>;
159
+ updateClinicalDraft: FunctionReference<"mutation", "internal", {
160
+ clinicalDataPatch: {
161
+ application?: {
162
+ toothNumber: number;
163
+ type: "TOOTH";
164
+ } | {
165
+ teeth: Array<number>;
166
+ type: "MULTI_TOOTH";
167
+ } | {
168
+ teeth: Array<{
169
+ role: "abutment" | "pontic";
170
+ toothNumber: number;
171
+ }>;
172
+ type: "BRIDGE";
173
+ } | {
174
+ quadrant: number;
175
+ type: "QUADRANT";
176
+ } | {
177
+ sextant: number;
178
+ type: "SEXTANT";
179
+ } | {
180
+ arch: "UPPER" | "LOWER";
181
+ type: "ARCH";
182
+ } | {
183
+ type: "FULL_MOUTH";
184
+ } | null;
185
+ lineaMargine?: string | null;
186
+ notePreparazione?: string | null;
187
+ prostheticService?: {
188
+ serviceCode?: string;
189
+ serviceLabel?: string;
190
+ };
191
+ shade?: string | null;
192
+ };
193
+ prescriptionId: string;
194
+ }, any, Name>;
195
+ updateFeedback: FunctionReference<"mutation", "internal", {
196
+ comment?: string;
197
+ outcome: "OK" | "KO" | null;
198
+ phaseInstanceId: string;
199
+ }, any, Name>;
200
+ updateFieldValue: FunctionReference<"mutation", "internal", {
201
+ fieldId: string;
202
+ prescriptionId: string;
203
+ value: any;
204
+ }, any, Name>;
205
+ updateFieldValues: FunctionReference<"mutation", "internal", {
206
+ prescriptionId: string;
207
+ values: any;
208
+ }, any, Name>;
209
+ updateNotes: FunctionReference<"mutation", "internal", {
210
+ noteInterne: string;
211
+ prescriptionId: string;
212
+ }, any, Name>;
213
+ updateStlDescription: FunctionReference<"mutation", "internal", {
214
+ assetId: string;
215
+ description: string;
216
+ prescriptionId: string;
217
+ }, any, Name>;
218
+ };
219
+ };
220
+ //# sourceMappingURL=component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/component/_generated/component.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD;;;;;;;;;;GAUG;AACH,MAAM,MAAM,YAAY,CAAC,IAAI,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,IAC3E;IACE,SAAS,EAAE;QACT,aAAa,EAAE,iBAAiB,CAC9B,UAAU,EACV,UAAU,EACV;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAC;YAAC,cAAc,EAAE,MAAM,CAAA;SAAE,EAC5D,GAAG,EACH,IAAI,CACL,CAAC;QACF,kBAAkB,EAAE,iBAAiB,CACnC,UAAU,EACV,UAAU,EACV;YAAE,cAAc,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,EAC1C,GAAG,EACH,IAAI,CACL,CAAC;QACF,gBAAgB,EAAE,iBAAiB,CACjC,UAAU,EACV,UAAU,EACV;YACE,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,QAAQ,EAAE,MAAM,CAAC;YACjB,QAAQ,EAAE,MAAM,CAAC;YACjB,QAAQ,EAAE,MAAM,CAAC;YACjB,cAAc,EAAE,MAAM,CAAC;YACvB,SAAS,EAAE,MAAM,CAAC;SACnB,E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M,EAAE,GAAG,CAAA;SAAE,EACvC,GAAG,EACH,IAAI,CACL,CAAC;QACF,WAAW,EAAE,iBAAiB,CAC5B,UAAU,EACV,UAAU,EACV;YAAE,WAAW,EAAE,MAAM,CAAC;YAAC,cAAc,EAAE,MAAM,CAAA;SAAE,EAC/C,GAAG,EACH,IAAI,CACL,CAAC;QACF,oBAAoB,EAAE,iBAAiB,CACrC,UAAU,EACV,UAAU,EACV;YAAE,OAAO,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAC;YAAC,cAAc,EAAE,MAAM,CAAA;SAAE,EAChE,GAAG,EACH,IAAI,CACL,CAAC;KACH,CAAC;CACH,CAAC"}
@@ -0,0 +1,11 @@
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
+ export {};
11
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/component/_generated/component.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Generated data model types.
3
+ *
4
+ * THIS CODE IS AUTOMATICALLY GENERATED.
5
+ *
6
+ * To regenerate, run `npx convex dev`.
7
+ * @module
8
+ */
9
+ import type { DataModelFromSchemaDefinition, DocumentByName, TableNamesInDataModel, SystemTableNames } from "convex/server";
10
+ import type { GenericId } from "convex/values";
11
+ import schema from "../schema.js";
12
+ /**
13
+ * The names of all of your Convex tables.
14
+ */
15
+ export type TableNames = TableNamesInDataModel<DataModel>;
16
+ /**
17
+ * The type of a document stored in Convex.
18
+ *
19
+ * @typeParam TableName - A string literal type of the table name (like "users").
20
+ */
21
+ export type Doc<TableName extends TableNames> = DocumentByName<DataModel, TableName>;
22
+ /**
23
+ * An identifier for a document in Convex.
24
+ *
25
+ * Convex documents are uniquely identified by their `Id`, which is accessible
26
+ * on the `_id` field. To learn more, see [Document IDs](https://docs.convex.dev/using/document-ids).
27
+ *
28
+ * Documents can be loaded using `db.get(tableName, id)` in query and mutation functions.
29
+ *
30
+ * IDs are just strings at runtime, but this type can be used to distinguish them from other
31
+ * strings when type checking.
32
+ *
33
+ * @typeParam TableName - A string literal type of the table name (like "users").
34
+ */
35
+ export type Id<TableName extends TableNames | SystemTableNames> = GenericId<TableName>;
36
+ /**
37
+ * A type describing your Convex data model.
38
+ *
39
+ * This type includes information about what tables you have, the type of
40
+ * documents stored in those tables, and the indexes defined on them.
41
+ *
42
+ * This type is used to parameterize methods like `queryGeneric` and
43
+ * `mutationGeneric` to make them type-safe.
44
+ */
45
+ export type DataModel = DataModelFromSchemaDefinition<typeof schema>;
46
+ //# sourceMappingURL=dataModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataModel.d.ts","sourceRoot":"","sources":["../../../../src/component/_generated/dataModel.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,6BAA6B,EAC7B,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,qBAAqB,CAAC,SAAS,CAAC,CAAC;AAE1D;;;;GAIG;AACH,MAAM,MAAM,GAAG,CAAC,SAAS,SAAS,UAAU,IAAI,cAAc,CAC5D,SAAS,EACT,SAAS,CACV,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,EAAE,CAAC,SAAS,SAAS,UAAU,GAAG,gBAAgB,IAC5D,SAAS,CAAC,SAAS,CAAC,CAAC;AAEvB;;;;;;;;GAQG;AACH,MAAM,MAAM,SAAS,GAAG,6BAA6B,CAAC,OAAO,MAAM,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated data model types.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=dataModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataModel.js","sourceRoot":"","sources":["../../../../src/component/_generated/dataModel.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG"}
@@ -0,0 +1,121 @@
1
+ /**
2
+ * Generated utilities for implementing server-side Convex query and mutation functions.
3
+ *
4
+ * THIS CODE IS AUTOMATICALLY GENERATED.
5
+ *
6
+ * To regenerate, run `npx convex dev`.
7
+ * @module
8
+ */
9
+ import type { ActionBuilder, HttpActionBuilder, MutationBuilder, QueryBuilder, GenericActionCtx, GenericMutationCtx, GenericQueryCtx, GenericDatabaseReader, GenericDatabaseWriter } from "convex/server";
10
+ import type { DataModel } from "./dataModel.js";
11
+ /**
12
+ * Define a query in this Convex app's public API.
13
+ *
14
+ * This function will be allowed to read your Convex database and will be accessible from the client.
15
+ *
16
+ * @param func - The query function. It receives a {@link QueryCtx} as its first argument.
17
+ * @returns The wrapped query. Include this as an `export` to name it and make it accessible.
18
+ */
19
+ export declare const query: QueryBuilder<DataModel, "public">;
20
+ /**
21
+ * Define a query that is only accessible from other Convex functions (but not from the client).
22
+ *
23
+ * This function will be allowed to read from your Convex database. It will not be accessible from the client.
24
+ *
25
+ * @param func - The query function. It receives a {@link QueryCtx} as its first argument.
26
+ * @returns The wrapped query. Include this as an `export` to name it and make it accessible.
27
+ */
28
+ export declare const internalQuery: QueryBuilder<DataModel, "internal">;
29
+ /**
30
+ * Define a mutation in this Convex app's public API.
31
+ *
32
+ * This function will be allowed to modify your Convex database and will be accessible from the client.
33
+ *
34
+ * @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
35
+ * @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
36
+ */
37
+ export declare const mutation: MutationBuilder<DataModel, "public">;
38
+ /**
39
+ * Define a mutation that is only accessible from other Convex functions (but not from the client).
40
+ *
41
+ * This function will be allowed to modify your Convex database. It will not be accessible from the client.
42
+ *
43
+ * @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
44
+ * @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
45
+ */
46
+ export declare const internalMutation: MutationBuilder<DataModel, "internal">;
47
+ /**
48
+ * Define an action in this Convex app's public API.
49
+ *
50
+ * An action is a function which can execute any JavaScript code, including non-deterministic
51
+ * code and code with side-effects, like calling third-party services.
52
+ * They can be run in Convex's JavaScript environment or in Node.js using the "use node" directive.
53
+ * They can interact with the database indirectly by calling queries and mutations using the {@link ActionCtx}.
54
+ *
55
+ * @param func - The action. It receives an {@link ActionCtx} as its first argument.
56
+ * @returns The wrapped action. Include this as an `export` to name it and make it accessible.
57
+ */
58
+ export declare const action: ActionBuilder<DataModel, "public">;
59
+ /**
60
+ * Define an action that is only accessible from other Convex functions (but not from the client).
61
+ *
62
+ * @param func - The function. It receives an {@link ActionCtx} as its first argument.
63
+ * @returns The wrapped function. Include this as an `export` to name it and make it accessible.
64
+ */
65
+ export declare const internalAction: ActionBuilder<DataModel, "internal">;
66
+ /**
67
+ * Define an HTTP action.
68
+ *
69
+ * The wrapped function will be used to respond to HTTP requests received
70
+ * by a Convex deployment if the requests matches the path and method where
71
+ * this action is routed. Be sure to route your httpAction in `convex/http.js`.
72
+ *
73
+ * @param func - The function. It receives an {@link ActionCtx} as its first argument
74
+ * and a Fetch API `Request` object as its second.
75
+ * @returns The wrapped function. Import this function from `convex/http.js` and route it to hook it up.
76
+ */
77
+ export declare const httpAction: HttpActionBuilder;
78
+ /**
79
+ * A set of services for use within Convex query functions.
80
+ *
81
+ * The query context is passed as the first argument to any Convex query
82
+ * function run on the server.
83
+ *
84
+ * If you're using code generation, use the `QueryCtx` type in `convex/_generated/server.d.ts` instead.
85
+ */
86
+ export type QueryCtx = GenericQueryCtx<DataModel>;
87
+ /**
88
+ * A set of services for use within Convex mutation functions.
89
+ *
90
+ * The mutation context is passed as the first argument to any Convex mutation
91
+ * function run on the server.
92
+ *
93
+ * If you're using code generation, use the `MutationCtx` type in `convex/_generated/server.d.ts` instead.
94
+ */
95
+ export type MutationCtx = GenericMutationCtx<DataModel>;
96
+ /**
97
+ * A set of services for use within Convex action functions.
98
+ *
99
+ * The action context is passed as the first argument to any Convex action
100
+ * function run on the server.
101
+ */
102
+ export type ActionCtx = GenericActionCtx<DataModel>;
103
+ /**
104
+ * An interface to read from the database within Convex query functions.
105
+ *
106
+ * The two entry points are {@link DatabaseReader.get}, which fetches a single
107
+ * document by its {@link Id}, or {@link DatabaseReader.query}, which starts
108
+ * building a query.
109
+ */
110
+ export type DatabaseReader = GenericDatabaseReader<DataModel>;
111
+ /**
112
+ * An interface to read from and write to the database within Convex mutation
113
+ * functions.
114
+ *
115
+ * Convex guarantees that all writes within a single mutation are
116
+ * executed atomically, so you never have to worry about partial writes leaving
117
+ * your data in an inconsistent state. See [the Convex Guide](https://docs.convex.dev/understanding/convex-fundamentals/functions#atomicity-and-optimistic-concurrency-control)
118
+ * for the guarantees Convex provides your functions.
119
+ */
120
+ export type DatabaseWriter = GenericDatabaseWriter<DataModel>;
121
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/component/_generated/server.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,eAAe,CAAC;AAUvB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK,EAAE,YAAY,CAAC,SAAS,EAAE,QAAQ,CAAgB,CAAC;AAErE;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,SAAS,EAAE,UAAU,CACxC,CAAC;AAEvB;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,EAAE,eAAe,CAAC,SAAS,EAAE,QAAQ,CAAmB,CAAC;AAE9E;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,EAAE,eAAe,CAAC,SAAS,EAAE,UAAU,CAC3C,CAAC;AAE1B;;;;;;;;;;GAUG;AACH,eAAO,MAAM,MAAM,EAAE,aAAa,CAAC,SAAS,EAAE,QAAQ,CAAiB,CAAC;AAExE;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,SAAS,EAAE,UAAU,CACzC,CAAC;AAExB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,EAAE,iBAAqC,CAAC;AAE/D;;;;;;;GAOG;AACH,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC;AAElD;;;;;;;GAOG;AACH,MAAM,MAAM,WAAW,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC;AAExD;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG,qBAAqB,CAAC,SAAS,CAAC,CAAC;AAE9D;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GAAG,qBAAqB,CAAC,SAAS,CAAC,CAAC"}
@@ -0,0 +1,78 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated utilities for implementing server-side Convex query and mutation functions.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+ import { actionGeneric, httpActionGeneric, queryGeneric, mutationGeneric, internalActionGeneric, internalMutationGeneric, internalQueryGeneric, } from "convex/server";
11
+ /**
12
+ * Define a query in this Convex app's public API.
13
+ *
14
+ * This function will be allowed to read your Convex database and will be accessible from the client.
15
+ *
16
+ * @param func - The query function. It receives a {@link QueryCtx} as its first argument.
17
+ * @returns The wrapped query. Include this as an `export` to name it and make it accessible.
18
+ */
19
+ export const query = queryGeneric;
20
+ /**
21
+ * Define a query that is only accessible from other Convex functions (but not from the client).
22
+ *
23
+ * This function will be allowed to read from your Convex database. It will not be accessible from the client.
24
+ *
25
+ * @param func - The query function. It receives a {@link QueryCtx} as its first argument.
26
+ * @returns The wrapped query. Include this as an `export` to name it and make it accessible.
27
+ */
28
+ export const internalQuery = internalQueryGeneric;
29
+ /**
30
+ * Define a mutation in this Convex app's public API.
31
+ *
32
+ * This function will be allowed to modify your Convex database and will be accessible from the client.
33
+ *
34
+ * @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
35
+ * @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
36
+ */
37
+ export const mutation = mutationGeneric;
38
+ /**
39
+ * Define a mutation that is only accessible from other Convex functions (but not from the client).
40
+ *
41
+ * This function will be allowed to modify your Convex database. It will not be accessible from the client.
42
+ *
43
+ * @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
44
+ * @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
45
+ */
46
+ export const internalMutation = internalMutationGeneric;
47
+ /**
48
+ * Define an action in this Convex app's public API.
49
+ *
50
+ * An action is a function which can execute any JavaScript code, including non-deterministic
51
+ * code and code with side-effects, like calling third-party services.
52
+ * They can be run in Convex's JavaScript environment or in Node.js using the "use node" directive.
53
+ * They can interact with the database indirectly by calling queries and mutations using the {@link ActionCtx}.
54
+ *
55
+ * @param func - The action. It receives an {@link ActionCtx} as its first argument.
56
+ * @returns The wrapped action. Include this as an `export` to name it and make it accessible.
57
+ */
58
+ export const action = actionGeneric;
59
+ /**
60
+ * Define an action that is only accessible from other Convex functions (but not from the client).
61
+ *
62
+ * @param func - The function. It receives an {@link ActionCtx} as its first argument.
63
+ * @returns The wrapped function. Include this as an `export` to name it and make it accessible.
64
+ */
65
+ export const internalAction = internalActionGeneric;
66
+ /**
67
+ * Define an HTTP action.
68
+ *
69
+ * The wrapped function will be used to respond to HTTP requests received
70
+ * by a Convex deployment if the requests matches the path and method where
71
+ * this action is routed. Be sure to route your httpAction in `convex/http.js`.
72
+ *
73
+ * @param func - The function. It receives an {@link ActionCtx} as its first argument
74
+ * and a Fetch API `Request` object as its second.
75
+ * @returns The wrapped function. Import this function from `convex/http.js` and route it to hook it up.
76
+ */
77
+ export const httpAction = httpActionGeneric;
78
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.js","sourceRoot":"","sources":["../../../../src/component/_generated/server.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG;AAaH,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,eAAe,CAAC;AAGvB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,KAAK,GAAsC,YAAY,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,aAAa,GACxB,oBAAoB,CAAC;AAEvB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAyC,eAAe,CAAC;AAE9E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAC3B,uBAAuB,CAAC;AAE1B;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,MAAM,GAAuC,aAAa,CAAC;AAExE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GACzB,qBAAqB,CAAC;AAExB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,UAAU,GAAsB,iBAAiB,CAAC"}
@@ -1,7 +1,3 @@
1
- export declare const componentName = "prescriptions";
2
- export declare const componentConfig: {
3
- name: string;
4
- schemaPath: string;
5
- };
6
- export default componentConfig;
1
+ declare const component: import("convex/server").ComponentDefinition<any>;
2
+ export default component;
7
3
  //# sourceMappingURL=convex.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"convex.config.d.ts","sourceRoot":"","sources":["../../../src/component/convex.config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAE7C,eAAO,MAAM,eAAe;;;CAI3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"convex.config.d.ts","sourceRoot":"","sources":["../../../src/component/convex.config.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,SAAS,kDAAmC,CAAC;AAEnD,eAAe,SAAS,CAAC"}
@@ -1,8 +1,4 @@
1
- export const componentName = "prescriptions";
2
- export const componentConfig = {
3
- name: componentName,
4
- // This component owns prescriptions state in its internal DB schema.
5
- schemaPath: "./schema",
6
- };
7
- export default componentConfig;
1
+ import { defineComponent } from "convex/server";
2
+ const component = defineComponent("prescriptions");
3
+ export default component;
8
4
  //# sourceMappingURL=convex.config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"convex.config.js","sourceRoot":"","sources":["../../../src/component/convex.config.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC;AAE7C,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,aAAa;IACnB,qEAAqE;IACrE,UAAU,EAAE,UAAU;CACvB,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"convex.config.js","sourceRoot":"","sources":["../../../src/component/convex.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,SAAS,GAAG,eAAe,CAAC,eAAe,CAAC,CAAC;AAEnD,eAAe,SAAS,CAAC"}
@@ -1,4 +1,6 @@
1
- export { default as componentConfig, componentName } from "./convex.config";
1
+ import componentConfig from "./convex.config";
2
+ export { componentConfig };
3
+ export declare const componentName = "prescriptions";
2
4
  export { default as schema } from "./schema";
3
5
  export * as functions from "./functions";
4
6
  export declare const componentFunctions: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AAIzC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;CAarB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AAIzC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;CAarB,CAAC"}
@@ -1,4 +1,6 @@
1
- export { default as componentConfig, componentName } from "./convex.config";
1
+ import componentConfig from "./convex.config";
2
+ export { componentConfig };
3
+ export const componentName = "prescriptions";
2
4
  export { default as schema } from "./schema";
3
5
  export * as functions from "./functions";
4
6
  // Public function names exposed by the component client wrapper.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/component/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AAEzC,iEAAiE;AACjE,oEAAoE;AACpE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,OAAO,EAAE;QACP,iBAAiB,EAAE,4BAA4B;QAC/C,mBAAmB,EAAE,+BAA+B;QACpD,oBAAoB,EAAE,4CAA4C;KACnE;IACD,SAAS,EAAE;QACT,WAAW,EAAE,qCAAqC;QAClD,mBAAmB,EAAE,6CAA6C;QAClE,iBAAiB,EAAE,wCAAwC;QAC3D,SAAS,EAAE,mCAAmC;QAC9C,gBAAgB,EAAE,0CAA0C;KAC7D;CACO,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/component/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AAEzC,iEAAiE;AACjE,oEAAoE;AACpE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,OAAO,EAAE;QACP,iBAAiB,EAAE,4BAA4B;QAC/C,mBAAmB,EAAE,+BAA+B;QACpD,oBAAoB,EAAE,4CAA4C;KACnE;IACD,SAAS,EAAE;QACT,WAAW,EAAE,qCAAqC;QAClD,mBAAmB,EAAE,6CAA6C;QAClE,iBAAiB,EAAE,wCAAwC;QAC3D,SAAS,EAAE,mCAAmC;QAC9C,gBAAgB,EAAE,0CAA0C;KAC7D;CACO,CAAC"}
@@ -1,2 +1 @@
1
- export * from "../_internal/component/convex.config.js";
2
1
  export { default } from "../_internal/component/convex.config.js";
@@ -1,2 +1 @@
1
- export * from "../_internal/component/convex.config.js";
2
1
  export { default } from "../_internal/component/convex.config.js";
@@ -0,0 +1,129 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated `api` utility.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+
11
+ import type * as actions_executeSync from "../actions/executeSync.js";
12
+ import type * as actions_sync from "../actions/sync.js";
13
+ import type * as adapters_lab from "../adapters/lab.js";
14
+ import type * as adapters_primoCore from "../adapters/primoCore.js";
15
+ import type * as backoffice_fields from "../backoffice/fields.js";
16
+ import type * as backoffice_prescriptions from "../backoffice/prescriptions.js";
17
+ import type * as builder_audit from "../builder/audit.js";
18
+ import type * as builder_rulesets from "../builder/rulesets.js";
19
+ import type * as builder_users from "../builder/users.js";
20
+ import type * as crons from "../crons.js";
21
+ import type * as http from "../http.js";
22
+ import type * as lib_auth from "../lib/auth.js";
23
+ import type * as lib_dental from "../lib/dental.js";
24
+ import type * as lib_dynamicRules from "../lib/dynamicRules.js";
25
+ import type * as lib_httpAuth from "../lib/httpAuth.js";
26
+ import type * as lib_rbac from "../lib/rbac.js";
27
+ import type * as lib_storage from "../lib/storage.js";
28
+ import type * as lib_utils from "../lib/utils.js";
29
+ import type * as lib_validation from "../lib/validation.js";
30
+ import type * as lib_withNumericId from "../lib/withNumericId.js";
31
+ import type * as migrations_backfillNumericIds from "../migrations/backfillNumericIds.js";
32
+ import type * as migrations_seedFieldCatalog from "../migrations/seedFieldCatalog.js";
33
+ import type * as migrations_updateUserAdminRoles from "../migrations/updateUserAdminRoles.js";
34
+ import type * as mutations_digitalAssets from "../mutations/digitalAssets.js";
35
+ import type * as mutations_operational from "../mutations/operational.js";
36
+ import type * as mutations_phases from "../mutations/phases.js";
37
+ import type * as mutations_prescriptions from "../mutations/prescriptions.js";
38
+ import type * as mutations_syncJobs from "../mutations/syncJobs.js";
39
+ import type * as prescriptions_fields from "../prescriptions/fields.js";
40
+ import type * as queries_audit from "../queries/audit.js";
41
+ import type * as queries_builderRuntime from "../queries/builderRuntime.js";
42
+ import type * as queries_digitalAssets from "../queries/digitalAssets.js";
43
+ import type * as queries_dynamicFields from "../queries/dynamicFields.js";
44
+ import type * as queries_flows from "../queries/flows.js";
45
+ import type * as queries_internal from "../queries/internal.js";
46
+ import type * as queries_prescriptions from "../queries/prescriptions.js";
47
+ import type * as queries_snapshots from "../queries/snapshots.js";
48
+ import type * as queries_syncJobs from "../queries/syncJobs.js";
49
+ import type * as queries_users from "../queries/users.js";
50
+ import type * as seed from "../seed.js";
51
+ import type * as types from "../types.js";
52
+
53
+ import type {
54
+ ApiFromModules,
55
+ FilterApi,
56
+ FunctionReference,
57
+ } from "convex/server";
58
+
59
+ declare const fullApi: ApiFromModules<{
60
+ "actions/executeSync": typeof actions_executeSync;
61
+ "actions/sync": typeof actions_sync;
62
+ "adapters/lab": typeof adapters_lab;
63
+ "adapters/primoCore": typeof adapters_primoCore;
64
+ "backoffice/fields": typeof backoffice_fields;
65
+ "backoffice/prescriptions": typeof backoffice_prescriptions;
66
+ "builder/audit": typeof builder_audit;
67
+ "builder/rulesets": typeof builder_rulesets;
68
+ "builder/users": typeof builder_users;
69
+ crons: typeof crons;
70
+ http: typeof http;
71
+ "lib/auth": typeof lib_auth;
72
+ "lib/dental": typeof lib_dental;
73
+ "lib/dynamicRules": typeof lib_dynamicRules;
74
+ "lib/httpAuth": typeof lib_httpAuth;
75
+ "lib/rbac": typeof lib_rbac;
76
+ "lib/storage": typeof lib_storage;
77
+ "lib/utils": typeof lib_utils;
78
+ "lib/validation": typeof lib_validation;
79
+ "lib/withNumericId": typeof lib_withNumericId;
80
+ "migrations/backfillNumericIds": typeof migrations_backfillNumericIds;
81
+ "migrations/seedFieldCatalog": typeof migrations_seedFieldCatalog;
82
+ "migrations/updateUserAdminRoles": typeof migrations_updateUserAdminRoles;
83
+ "mutations/digitalAssets": typeof mutations_digitalAssets;
84
+ "mutations/operational": typeof mutations_operational;
85
+ "mutations/phases": typeof mutations_phases;
86
+ "mutations/prescriptions": typeof mutations_prescriptions;
87
+ "mutations/syncJobs": typeof mutations_syncJobs;
88
+ "prescriptions/fields": typeof prescriptions_fields;
89
+ "queries/audit": typeof queries_audit;
90
+ "queries/builderRuntime": typeof queries_builderRuntime;
91
+ "queries/digitalAssets": typeof queries_digitalAssets;
92
+ "queries/dynamicFields": typeof queries_dynamicFields;
93
+ "queries/flows": typeof queries_flows;
94
+ "queries/internal": typeof queries_internal;
95
+ "queries/prescriptions": typeof queries_prescriptions;
96
+ "queries/snapshots": typeof queries_snapshots;
97
+ "queries/syncJobs": typeof queries_syncJobs;
98
+ "queries/users": typeof queries_users;
99
+ seed: typeof seed;
100
+ types: typeof types;
101
+ }>;
102
+
103
+ /**
104
+ * A utility for referencing Convex functions in your app's public API.
105
+ *
106
+ * Usage:
107
+ * ```js
108
+ * const myFunctionReference = api.myModule.myFunction;
109
+ * ```
110
+ */
111
+ export declare const api: FilterApi<
112
+ typeof fullApi,
113
+ FunctionReference<any, "public">
114
+ >;
115
+
116
+ /**
117
+ * A utility for referencing Convex functions in your app's internal API.
118
+ *
119
+ * Usage:
120
+ * ```js
121
+ * const myFunctionReference = internal.myModule.myFunction;
122
+ * ```
123
+ */
124
+ export declare const internal: FilterApi<
125
+ typeof fullApi,
126
+ FunctionReference<any, "internal">
127
+ >;
128
+
129
+ export declare const components: {};
@@ -0,0 +1,23 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated `api` utility.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+
11
+ import { anyApi, componentsGeneric } from "convex/server";
12
+
13
+ /**
14
+ * A utility for referencing Convex functions in your app's API.
15
+ *
16
+ * Usage:
17
+ * ```js
18
+ * const myFunctionReference = api.myModule.myFunction;
19
+ * ```
20
+ */
21
+ export const api = anyApi;
22
+ export const internal = anyApi;
23
+ export const components = componentsGeneric();
@@ -0,0 +1,60 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated data model types.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+
11
+ import type {
12
+ DataModelFromSchemaDefinition,
13
+ DocumentByName,
14
+ TableNamesInDataModel,
15
+ SystemTableNames,
16
+ } from "convex/server";
17
+ import type { GenericId } from "convex/values";
18
+ import schema from "../schema.js";
19
+
20
+ /**
21
+ * The names of all of your Convex tables.
22
+ */
23
+ export type TableNames = TableNamesInDataModel<DataModel>;
24
+
25
+ /**
26
+ * The type of a document stored in Convex.
27
+ *
28
+ * @typeParam TableName - A string literal type of the table name (like "users").
29
+ */
30
+ export type Doc<TableName extends TableNames> = DocumentByName<
31
+ DataModel,
32
+ TableName
33
+ >;
34
+
35
+ /**
36
+ * An identifier for a document in Convex.
37
+ *
38
+ * Convex documents are uniquely identified by their `Id`, which is accessible
39
+ * on the `_id` field. To learn more, see [Document IDs](https://docs.convex.dev/using/document-ids).
40
+ *
41
+ * Documents can be loaded using `db.get(tableName, id)` in query and mutation functions.
42
+ *
43
+ * IDs are just strings at runtime, but this type can be used to distinguish them from other
44
+ * strings when type checking.
45
+ *
46
+ * @typeParam TableName - A string literal type of the table name (like "users").
47
+ */
48
+ export type Id<TableName extends TableNames | SystemTableNames> =
49
+ GenericId<TableName>;
50
+
51
+ /**
52
+ * A type describing your Convex data model.
53
+ *
54
+ * This type includes information about what tables you have, the type of
55
+ * documents stored in those tables, and the indexes defined on them.
56
+ *
57
+ * This type is used to parameterize methods like `queryGeneric` and
58
+ * `mutationGeneric` to make them type-safe.
59
+ */
60
+ export type DataModel = DataModelFromSchemaDefinition<typeof schema>;
@@ -0,0 +1,143 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated utilities for implementing server-side Convex query and mutation functions.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+
11
+ import {
12
+ ActionBuilder,
13
+ HttpActionBuilder,
14
+ MutationBuilder,
15
+ QueryBuilder,
16
+ GenericActionCtx,
17
+ GenericMutationCtx,
18
+ GenericQueryCtx,
19
+ GenericDatabaseReader,
20
+ GenericDatabaseWriter,
21
+ } from "convex/server";
22
+ import type { DataModel } from "./dataModel.js";
23
+
24
+ /**
25
+ * Define a query in this Convex app's public API.
26
+ *
27
+ * This function will be allowed to read your Convex database and will be accessible from the client.
28
+ *
29
+ * @param func - The query function. It receives a {@link QueryCtx} as its first argument.
30
+ * @returns The wrapped query. Include this as an `export` to name it and make it accessible.
31
+ */
32
+ export declare const query: QueryBuilder<DataModel, "public">;
33
+
34
+ /**
35
+ * Define a query that is only accessible from other Convex functions (but not from the client).
36
+ *
37
+ * This function will be allowed to read from your Convex database. It will not be accessible from the client.
38
+ *
39
+ * @param func - The query function. It receives a {@link QueryCtx} as its first argument.
40
+ * @returns The wrapped query. Include this as an `export` to name it and make it accessible.
41
+ */
42
+ export declare const internalQuery: QueryBuilder<DataModel, "internal">;
43
+
44
+ /**
45
+ * Define a mutation in this Convex app's public API.
46
+ *
47
+ * This function will be allowed to modify your Convex database and will be accessible from the client.
48
+ *
49
+ * @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
50
+ * @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
51
+ */
52
+ export declare const mutation: MutationBuilder<DataModel, "public">;
53
+
54
+ /**
55
+ * Define a mutation that is only accessible from other Convex functions (but not from the client).
56
+ *
57
+ * This function will be allowed to modify your Convex database. It will not be accessible from the client.
58
+ *
59
+ * @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
60
+ * @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
61
+ */
62
+ export declare const internalMutation: MutationBuilder<DataModel, "internal">;
63
+
64
+ /**
65
+ * Define an action in this Convex app's public API.
66
+ *
67
+ * An action is a function which can execute any JavaScript code, including non-deterministic
68
+ * code and code with side-effects, like calling third-party services.
69
+ * They can be run in Convex's JavaScript environment or in Node.js using the "use node" directive.
70
+ * They can interact with the database indirectly by calling queries and mutations using the {@link ActionCtx}.
71
+ *
72
+ * @param func - The action. It receives an {@link ActionCtx} as its first argument.
73
+ * @returns The wrapped action. Include this as an `export` to name it and make it accessible.
74
+ */
75
+ export declare const action: ActionBuilder<DataModel, "public">;
76
+
77
+ /**
78
+ * Define an action that is only accessible from other Convex functions (but not from the client).
79
+ *
80
+ * @param func - The function. It receives an {@link ActionCtx} as its first argument.
81
+ * @returns The wrapped function. Include this as an `export` to name it and make it accessible.
82
+ */
83
+ export declare const internalAction: ActionBuilder<DataModel, "internal">;
84
+
85
+ /**
86
+ * Define an HTTP action.
87
+ *
88
+ * The wrapped function will be used to respond to HTTP requests received
89
+ * by a Convex deployment if the requests matches the path and method where
90
+ * this action is routed. Be sure to route your httpAction in `convex/http.js`.
91
+ *
92
+ * @param func - The function. It receives an {@link ActionCtx} as its first argument
93
+ * and a Fetch API `Request` object as its second.
94
+ * @returns The wrapped function. Import this function from `convex/http.js` and route it to hook it up.
95
+ */
96
+ export declare const httpAction: HttpActionBuilder;
97
+
98
+ /**
99
+ * A set of services for use within Convex query functions.
100
+ *
101
+ * The query context is passed as the first argument to any Convex query
102
+ * function run on the server.
103
+ *
104
+ * This differs from the {@link MutationCtx} because all of the services are
105
+ * read-only.
106
+ */
107
+ export type QueryCtx = GenericQueryCtx<DataModel>;
108
+
109
+ /**
110
+ * A set of services for use within Convex mutation functions.
111
+ *
112
+ * The mutation context is passed as the first argument to any Convex mutation
113
+ * function run on the server.
114
+ */
115
+ export type MutationCtx = GenericMutationCtx<DataModel>;
116
+
117
+ /**
118
+ * A set of services for use within Convex action functions.
119
+ *
120
+ * The action context is passed as the first argument to any Convex action
121
+ * function run on the server.
122
+ */
123
+ export type ActionCtx = GenericActionCtx<DataModel>;
124
+
125
+ /**
126
+ * An interface to read from the database within Convex query functions.
127
+ *
128
+ * The two entry points are {@link DatabaseReader.get}, which fetches a single
129
+ * document by its {@link Id}, or {@link DatabaseReader.query}, which starts
130
+ * building a query.
131
+ */
132
+ export type DatabaseReader = GenericDatabaseReader<DataModel>;
133
+
134
+ /**
135
+ * An interface to read from and write to the database within Convex mutation
136
+ * functions.
137
+ *
138
+ * Convex guarantees that all writes within a single mutation are
139
+ * executed atomically, so you never have to worry about partial writes leaving
140
+ * your data in an inconsistent state. See [the Convex Guide](https://docs.convex.dev/understanding/convex-fundamentals/functions#atomicity-and-optimistic-concurrency-control)
141
+ * for the guarantees Convex provides your functions.
142
+ */
143
+ export type DatabaseWriter = GenericDatabaseWriter<DataModel>;
@@ -0,0 +1,93 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated utilities for implementing server-side Convex query and mutation functions.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+
11
+ import {
12
+ actionGeneric,
13
+ httpActionGeneric,
14
+ queryGeneric,
15
+ mutationGeneric,
16
+ internalActionGeneric,
17
+ internalMutationGeneric,
18
+ internalQueryGeneric,
19
+ } from "convex/server";
20
+
21
+ /**
22
+ * Define a query in this Convex app's public API.
23
+ *
24
+ * This function will be allowed to read your Convex database and will be accessible from the client.
25
+ *
26
+ * @param func - The query function. It receives a {@link QueryCtx} as its first argument.
27
+ * @returns The wrapped query. Include this as an `export` to name it and make it accessible.
28
+ */
29
+ export const query = queryGeneric;
30
+
31
+ /**
32
+ * Define a query that is only accessible from other Convex functions (but not from the client).
33
+ *
34
+ * This function will be allowed to read from your Convex database. It will not be accessible from the client.
35
+ *
36
+ * @param func - The query function. It receives a {@link QueryCtx} as its first argument.
37
+ * @returns The wrapped query. Include this as an `export` to name it and make it accessible.
38
+ */
39
+ export const internalQuery = internalQueryGeneric;
40
+
41
+ /**
42
+ * Define a mutation in this Convex app's public API.
43
+ *
44
+ * This function will be allowed to modify your Convex database and will be accessible from the client.
45
+ *
46
+ * @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
47
+ * @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
48
+ */
49
+ export const mutation = mutationGeneric;
50
+
51
+ /**
52
+ * Define a mutation that is only accessible from other Convex functions (but not from the client).
53
+ *
54
+ * This function will be allowed to modify your Convex database. It will not be accessible from the client.
55
+ *
56
+ * @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
57
+ * @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
58
+ */
59
+ export const internalMutation = internalMutationGeneric;
60
+
61
+ /**
62
+ * Define an action in this Convex app's public API.
63
+ *
64
+ * An action is a function which can execute any JavaScript code, including non-deterministic
65
+ * code and code with side-effects, like calling third-party services.
66
+ * They can be run in Convex's JavaScript environment or in Node.js using the "use node" directive.
67
+ * They can interact with the database indirectly by calling queries and mutations using the {@link ActionCtx}.
68
+ *
69
+ * @param func - The action. It receives an {@link ActionCtx} as its first argument.
70
+ * @returns The wrapped action. Include this as an `export` to name it and make it accessible.
71
+ */
72
+ export const action = actionGeneric;
73
+
74
+ /**
75
+ * Define an action that is only accessible from other Convex functions (but not from the client).
76
+ *
77
+ * @param func - The function. It receives an {@link ActionCtx} as its first argument.
78
+ * @returns The wrapped function. Include this as an `export` to name it and make it accessible.
79
+ */
80
+ export const internalAction = internalActionGeneric;
81
+
82
+ /**
83
+ * Define an HTTP action.
84
+ *
85
+ * The wrapped function will be used to respond to HTTP requests received
86
+ * by a Convex deployment if the requests matches the path and method where
87
+ * this action is routed. Be sure to route your httpAction in `convex/http.js`.
88
+ *
89
+ * @param func - The function. It receives an {@link ActionCtx} as its first argument
90
+ * and a Fetch API `Request` object as its second.
91
+ * @returns The wrapped function. Import this function from `convex/http.js` and route it to hook it up.
92
+ */
93
+ export const httpAction = httpActionGeneric;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@primocaredentgroup/prescriptions-component",
3
3
  "private": false,
4
- "version": "0.1.0",
4
+ "version": "0.1.3",
5
5
  "description": "Convex component + React widget for prescriptions workflow integration.",
6
6
  "type": "module",
7
7
  "repository": {
@@ -27,6 +27,10 @@
27
27
  "types": "./dist/component/convex.config.d.ts",
28
28
  "import": "./dist/component/convex.config.js"
29
29
  },
30
+ "./convex.config.js": {
31
+ "types": "./dist/component/convex.config.d.ts",
32
+ "import": "./dist/component/convex.config.js"
33
+ },
30
34
  "./styles.css": "./dist/react/styles.css"
31
35
  },
32
36
  "files": [