@rinse-dental/open-dental 3.4.2 → 4.0.2
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/README.md +388 -16
- package/dist/api/accountModules.d.ts +23 -3
- package/dist/api/accountModules.d.ts.map +1 -1
- package/dist/api/accountModules.js +17 -6
- package/dist/api/adjustments.d.ts +5 -2
- package/dist/api/adjustments.d.ts.map +1 -1
- package/dist/api/adjustments.js +11 -5
- package/dist/api/allergies.d.ts +5 -2
- package/dist/api/allergies.d.ts.map +1 -1
- package/dist/api/allergies.js +11 -5
- package/dist/api/allergydefs.d.ts +27 -0
- package/dist/api/allergydefs.d.ts.map +1 -0
- package/dist/api/allergydefs.js +40 -0
- package/dist/api/appointmentTypes.d.ts +12 -2
- package/dist/api/appointmentTypes.d.ts.map +1 -1
- package/dist/api/appointmentTypes.js +12 -2
- package/dist/api/appointments.d.ts +5 -2
- package/dist/api/appointments.d.ts.map +1 -1
- package/dist/api/appointments.js +19 -13
- package/dist/api/apptFieldDefs.d.ts +54 -0
- package/dist/api/apptFieldDefs.d.ts.map +1 -0
- package/dist/api/apptFieldDefs.js +79 -0
- package/dist/api/apptFields.d.ts +60 -0
- package/dist/api/apptFields.d.ts.map +1 -0
- package/dist/api/apptFields.js +102 -0
- package/dist/api/asapComms.d.ts +44 -0
- package/dist/api/asapComms.d.ts.map +1 -0
- package/dist/api/asapComms.js +64 -0
- package/dist/api/autoNoteControls.d.ts +48 -0
- package/dist/api/autoNoteControls.d.ts.map +1 -0
- package/dist/api/autoNoteControls.js +74 -0
- package/dist/api/autoNotes.d.ts +42 -0
- package/dist/api/autoNotes.d.ts.map +1 -0
- package/dist/api/autoNotes.js +70 -0
- package/dist/api/benefits.d.ts +14 -3
- package/dist/api/benefits.d.ts.map +1 -1
- package/dist/api/benefits.js +24 -5
- package/dist/api/carriers.d.ts +68 -0
- package/dist/api/carriers.d.ts.map +1 -0
- package/dist/api/carriers.js +107 -0
- package/dist/api/chartModules.d.ts +1 -1
- package/dist/api/chartModules.d.ts.map +1 -1
- package/dist/api/chartModules.js +4 -4
- package/dist/api/claimPayments.d.ts +93 -0
- package/dist/api/claimPayments.d.ts.map +1 -0
- package/dist/api/claimPayments.js +163 -0
- package/dist/api/claimProcs.d.ts +42 -2
- package/dist/api/claimProcs.d.ts.map +1 -1
- package/dist/api/claimProcs.js +65 -2
- package/dist/api/claimTrackings.d.ts +44 -0
- package/dist/api/claimTrackings.d.ts.map +1 -0
- package/dist/api/claimTrackings.js +70 -0
- package/dist/api/claims.d.ts +33 -0
- package/dist/api/claims.d.ts.map +1 -1
- package/dist/api/claims.js +60 -6
- package/dist/api/clinics.d.ts +47 -0
- package/dist/api/clinics.d.ts.map +1 -0
- package/dist/api/clinics.js +70 -0
- package/dist/api/clockEvents.d.ts +33 -0
- package/dist/api/clockEvents.d.ts.map +1 -0
- package/dist/api/clockEvents.js +42 -0
- package/dist/api/codeGroups.d.ts +64 -0
- package/dist/api/codeGroups.d.ts.map +1 -0
- package/dist/api/codeGroups.js +84 -0
- package/dist/api/commlogs.d.ts +14 -2
- package/dist/api/commlogs.d.ts.map +1 -1
- package/dist/api/commlogs.js +11 -4
- package/dist/api/computers.d.ts +25 -0
- package/dist/api/computers.d.ts.map +1 -0
- package/dist/api/computers.js +29 -0
- package/dist/api/covCats.d.ts +58 -0
- package/dist/api/covCats.d.ts.map +1 -0
- package/dist/api/covCats.js +78 -0
- package/dist/api/covSpans.d.ts +60 -0
- package/dist/api/covSpans.d.ts.map +1 -0
- package/dist/api/covSpans.js +91 -0
- package/dist/api/definitions.d.ts +19 -3
- package/dist/api/definitions.d.ts.map +1 -1
- package/dist/api/definitions.js +26 -2
- package/dist/api/discountPlanSubs.js +3 -3
- package/dist/api/discountPlans.d.ts +4 -1
- package/dist/api/discountPlans.d.ts.map +1 -1
- package/dist/api/discountPlans.js +9 -3
- package/dist/api/diseaseDefs.d.ts +35 -0
- package/dist/api/diseaseDefs.d.ts.map +1 -0
- package/dist/api/diseaseDefs.js +49 -0
- package/dist/api/diseases.d.ts +4 -1
- package/dist/api/diseases.d.ts.map +1 -1
- package/dist/api/diseases.js +6 -3
- package/dist/api/documents.d.ts +137 -0
- package/dist/api/documents.d.ts.map +1 -0
- package/dist/api/documents.js +235 -0
- package/dist/api/eTrans.d.ts +20 -0
- package/dist/api/eTrans.d.ts.map +1 -0
- package/dist/api/eTrans.js +36 -0
- package/dist/api/eTransMessageTexts.d.ts +15 -0
- package/dist/api/eTransMessageTexts.d.ts.map +1 -0
- package/dist/api/eTransMessageTexts.js +22 -0
- package/dist/api/eTranss.d.ts +22 -0
- package/dist/api/eTranss.d.ts.map +1 -0
- package/dist/api/eTranss.js +29 -0
- package/dist/api/ehrPatients.d.ts +29 -0
- package/dist/api/ehrPatients.d.ts.map +1 -0
- package/dist/api/ehrPatients.js +42 -0
- package/dist/api/employees.d.ts +66 -0
- package/dist/api/employees.d.ts.map +1 -0
- package/dist/api/employees.js +86 -0
- package/dist/api/employers.d.ts +53 -0
- package/dist/api/employers.d.ts.map +1 -0
- package/dist/api/employers.js +81 -0
- package/dist/api/eobAttaches.d.ts +56 -0
- package/dist/api/eobAttaches.d.ts.map +1 -0
- package/dist/api/eobAttaches.js +96 -0
- package/dist/api/events.d.ts +26 -0
- package/dist/api/events.d.ts.map +1 -0
- package/dist/api/events.js +26 -0
- package/dist/api/familyModules.d.ts +12 -2
- package/dist/api/familyModules.d.ts.map +1 -1
- package/dist/api/familyModules.js +9 -4
- package/dist/api/feeScheds.d.ts +8 -2
- package/dist/api/feeScheds.d.ts.map +1 -1
- package/dist/api/feeScheds.js +14 -2
- package/dist/api/fees.d.ts +41 -3
- package/dist/api/fees.d.ts.map +1 -1
- package/dist/api/fees.js +58 -2
- package/dist/api/histAppointments.d.ts +29 -0
- package/dist/api/histAppointments.d.ts.map +1 -0
- package/dist/api/histAppointments.js +33 -0
- package/dist/api/index.d.ts +89 -13
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +180 -28
- package/dist/api/insPlans.d.ts +11 -4
- package/dist/api/insPlans.d.ts.map +1 -1
- package/dist/api/insPlans.js +17 -7
- package/dist/api/insSubs.d.ts +13 -5
- package/dist/api/insSubs.d.ts.map +1 -1
- package/dist/api/insSubs.js +19 -8
- package/dist/api/insVerifies.d.ts +9 -6
- package/dist/api/insVerifies.d.ts.map +1 -1
- package/dist/api/insVerifies.js +15 -9
- package/dist/api/labCases.d.ts +22 -7
- package/dist/api/labCases.d.ts.map +1 -1
- package/dist/api/labCases.js +34 -11
- package/dist/api/labTurnarounds.d.ts +52 -0
- package/dist/api/labTurnarounds.d.ts.map +1 -0
- package/dist/api/labTurnarounds.js +78 -0
- package/dist/api/laboratories.d.ts +71 -0
- package/dist/api/laboratories.d.ts.map +1 -0
- package/dist/api/laboratories.js +91 -0
- package/dist/api/medicationPats.d.ts +5 -2
- package/dist/api/medicationPats.d.ts.map +1 -1
- package/dist/api/medicationPats.js +11 -5
- package/dist/api/medications.d.ts +37 -0
- package/dist/api/medications.d.ts.map +1 -0
- package/dist/api/medications.js +46 -0
- package/dist/api/operatories.d.ts +4 -3
- package/dist/api/operatories.d.ts.map +1 -1
- package/dist/api/operatories.js +8 -4
- package/dist/api/patFieldDefs.d.ts +57 -0
- package/dist/api/patFieldDefs.d.ts.map +1 -0
- package/dist/api/patFieldDefs.js +83 -0
- package/dist/api/patFields.d.ts +11 -6
- package/dist/api/patFields.d.ts.map +1 -1
- package/dist/api/patFields.js +23 -14
- package/dist/api/patPlans.d.ts +13 -6
- package/dist/api/patPlans.d.ts.map +1 -1
- package/dist/api/patPlans.js +18 -8
- package/dist/api/patientNotes.d.ts +48 -0
- package/dist/api/patientNotes.d.ts.map +1 -0
- package/dist/api/patientNotes.js +70 -0
- package/dist/api/patientRaces.d.ts +21 -0
- package/dist/api/patientRaces.d.ts.map +1 -0
- package/dist/api/patientRaces.js +28 -0
- package/dist/api/patients.d.ts +6 -3
- package/dist/api/patients.d.ts.map +1 -1
- package/dist/api/patients.js +15 -6
- package/dist/api/payPlanCharges.d.ts +4 -0
- package/dist/api/payPlanCharges.d.ts.map +1 -1
- package/dist/api/payPlanCharges.js +4 -0
- package/dist/api/payPlans.d.ts +10 -1
- package/dist/api/payPlans.d.ts.map +1 -1
- package/dist/api/payPlans.js +17 -18
- package/dist/api/paySplits.d.ts +12 -7
- package/dist/api/paySplits.d.ts.map +1 -1
- package/dist/api/paySplits.js +14 -6
- package/dist/api/payments.d.ts +18 -3
- package/dist/api/payments.d.ts.map +1 -1
- package/dist/api/payments.js +30 -4
- package/dist/api/perioExams.d.ts +67 -0
- package/dist/api/perioExams.d.ts.map +1 -0
- package/dist/api/perioExams.js +104 -0
- package/dist/api/perioMeasures.d.ts +74 -0
- package/dist/api/perioMeasures.d.ts.map +1 -0
- package/dist/api/perioMeasures.js +118 -0
- package/dist/api/pharmacies.d.ts +29 -0
- package/dist/api/pharmacies.d.ts.map +1 -0
- package/dist/api/pharmacies.js +38 -0
- package/dist/api/popups.d.ts +42 -0
- package/dist/api/popups.d.ts.map +1 -0
- package/dist/api/popups.js +71 -0
- package/dist/api/preferences.d.ts +31 -0
- package/dist/api/preferences.d.ts.map +1 -0
- package/dist/api/preferences.js +46 -0
- package/dist/api/procNotes.d.ts +5 -2
- package/dist/api/procNotes.d.ts.map +1 -1
- package/dist/api/procNotes.js +9 -3
- package/dist/api/procTPs.d.ts +6 -3
- package/dist/api/procTPs.d.ts.map +1 -1
- package/dist/api/procTPs.js +10 -4
- package/dist/api/procedureCodes.d.ts +9 -7
- package/dist/api/procedureCodes.d.ts.map +1 -1
- package/dist/api/procedureCodes.js +13 -8
- package/dist/api/procedureLog.d.ts +5 -2
- package/dist/api/procedureLog.d.ts.map +1 -1
- package/dist/api/procedureLog.js +15 -6
- package/dist/api/providers.d.ts +4 -1
- package/dist/api/providers.d.ts.map +1 -1
- package/dist/api/providers.js +10 -4
- package/dist/api/queries.d.ts +24 -1
- package/dist/api/queries.d.ts.map +1 -1
- package/dist/api/queries.js +35 -0
- package/dist/api/quickPasteCats.d.ts +24 -0
- package/dist/api/quickPasteCats.d.ts.map +1 -0
- package/dist/api/quickPasteCats.js +33 -0
- package/dist/api/quickPasteNotes.d.ts +27 -0
- package/dist/api/quickPasteNotes.d.ts.map +1 -0
- package/dist/api/quickPasteNotes.js +36 -0
- package/dist/api/recallTypes.d.ts +31 -0
- package/dist/api/recallTypes.d.ts.map +1 -0
- package/dist/api/recallTypes.js +40 -0
- package/dist/api/recalls.d.ts +20 -4
- package/dist/api/recalls.d.ts.map +1 -1
- package/dist/api/recalls.js +26 -14
- package/dist/api/refAttaches.d.ts +6 -3
- package/dist/api/refAttaches.d.ts.map +1 -1
- package/dist/api/refAttaches.js +11 -5
- package/dist/api/referrals.d.ts +4 -1
- package/dist/api/referrals.d.ts.map +1 -1
- package/dist/api/referrals.js +10 -4
- package/dist/api/reports.d.ts +34 -0
- package/dist/api/reports.d.ts.map +1 -0
- package/dist/api/reports.js +40 -0
- package/dist/api/rxPats.d.ts +27 -0
- package/dist/api/rxPats.d.ts.map +1 -0
- package/dist/api/rxPats.js +41 -0
- package/dist/api/scheduleOps.d.ts +20 -0
- package/dist/api/scheduleOps.d.ts.map +1 -0
- package/dist/api/scheduleOps.js +30 -0
- package/dist/api/schedules.d.ts +23 -2
- package/dist/api/schedules.d.ts.map +1 -1
- package/dist/api/schedules.js +31 -2
- package/dist/api/security.d.ts +25 -0
- package/dist/api/security.d.ts.map +1 -0
- package/dist/api/security.js +29 -0
- package/dist/api/securityLogs.d.ts +5 -2
- package/dist/api/securityLogs.d.ts.map +1 -1
- package/dist/api/securityLogs.js +8 -2
- package/dist/api/sheetDefs.d.ts +27 -0
- package/dist/api/sheetDefs.d.ts.map +1 -0
- package/dist/api/sheetDefs.js +36 -0
- package/dist/api/sheetFields.d.ts +38 -0
- package/dist/api/sheetFields.d.ts.map +1 -0
- package/dist/api/sheetFields.js +53 -0
- package/dist/api/sheets.d.ts +47 -0
- package/dist/api/sheets.d.ts.map +1 -0
- package/dist/api/sheets.js +64 -0
- package/dist/api/signalODs.d.ts +23 -0
- package/dist/api/signalODs.d.ts.map +1 -0
- package/dist/api/signalODs.js +30 -0
- package/dist/api/statements.d.ts +48 -0
- package/dist/api/statements.d.ts.map +1 -0
- package/dist/api/statements.js +72 -0
- package/dist/api/subscriptions.d.ts +67 -0
- package/dist/api/subscriptions.d.ts.map +1 -0
- package/dist/api/subscriptions.js +93 -0
- package/dist/api/substitutionLinks.d.ts +51 -0
- package/dist/api/substitutionLinks.d.ts.map +1 -0
- package/dist/api/substitutionLinks.js +74 -0
- package/dist/api/taskLists.d.ts +20 -0
- package/dist/api/taskLists.d.ts.map +1 -0
- package/dist/api/taskLists.js +24 -0
- package/dist/api/taskNotes.d.ts +50 -0
- package/dist/api/taskNotes.d.ts.map +1 -0
- package/dist/api/taskNotes.js +81 -0
- package/dist/api/tasks.d.ts +69 -0
- package/dist/api/tasks.d.ts.map +1 -0
- package/dist/api/tasks.js +89 -0
- package/dist/api/toothInitials.d.ts +39 -0
- package/dist/api/toothInitials.d.ts.map +1 -0
- package/dist/api/toothInitials.js +64 -0
- package/dist/api/treatplanattaches.d.ts +5 -2
- package/dist/api/treatplanattaches.d.ts.map +1 -1
- package/dist/api/treatplanattaches.js +10 -4
- package/dist/api/treatplans.d.ts +15 -1
- package/dist/api/treatplans.d.ts.map +1 -1
- package/dist/api/treatplans.js +26 -4
- package/dist/api/userGroupAttaches.d.ts +20 -0
- package/dist/api/userGroupAttaches.d.ts.map +1 -0
- package/dist/api/userGroupAttaches.js +30 -0
- package/dist/api/userGroups.d.ts +20 -0
- package/dist/api/userGroups.d.ts.map +1 -0
- package/dist/api/userGroups.js +29 -0
- package/dist/api/userODs.d.ts +49 -0
- package/dist/api/userODs.d.ts.map +1 -0
- package/dist/api/userODs.js +64 -0
- package/dist/openDental.d.ts +624 -115
- package/dist/openDental.d.ts.map +1 -1
- package/dist/openDental.js +800 -291
- package/dist/types/DiscountPlanTypes.d.ts +3 -0
- package/dist/types/DiscountPlanTypes.d.ts.map +1 -1
- package/dist/types/adjustmentTypes.d.ts +3 -0
- package/dist/types/adjustmentTypes.d.ts.map +1 -1
- package/dist/types/allergyDefTypes.d.ts +25 -0
- package/dist/types/allergyDefTypes.d.ts.map +1 -0
- package/dist/types/allergyTypes.d.ts +3 -0
- package/dist/types/allergyTypes.d.ts.map +1 -1
- package/dist/types/{appoinmentTypesType.d.ts → appointmentTypeTypes.d.ts} +1 -1
- package/dist/types/appointmentTypeTypes.d.ts.map +1 -0
- package/dist/types/appointmentTypeTypes.js +2 -0
- package/dist/types/appointmentTypes.d.ts +19 -0
- package/dist/types/appointmentTypes.d.ts.map +1 -1
- package/dist/types/apptFieldDefTypes.d.ts +25 -0
- package/dist/types/apptFieldDefTypes.d.ts.map +1 -0
- package/dist/types/apptFieldDefTypes.js +2 -0
- package/dist/types/apptFieldTypes.d.ts +34 -0
- package/dist/types/apptFieldTypes.d.ts.map +1 -0
- package/dist/types/apptFieldTypes.js +2 -0
- package/dist/types/asapCommTypes.d.ts +63 -0
- package/dist/types/asapCommTypes.d.ts.map +1 -0
- package/dist/types/asapCommTypes.js +2 -0
- package/dist/types/autoNoteControlTypes.d.ts +27 -0
- package/dist/types/autoNoteControlTypes.d.ts.map +1 -0
- package/dist/types/autoNoteControlTypes.js +2 -0
- package/dist/types/autoNoteTypes.d.ts +33 -0
- package/dist/types/autoNoteTypes.d.ts.map +1 -0
- package/dist/types/autoNoteTypes.js +2 -0
- package/dist/types/benefitTypes.d.ts +6 -0
- package/dist/types/benefitTypes.d.ts.map +1 -1
- package/dist/types/carrierTypes.d.ts +45 -0
- package/dist/types/carrierTypes.d.ts.map +1 -0
- package/dist/types/carrierTypes.js +2 -0
- package/dist/types/claimPaymentTypes.d.ts +72 -0
- package/dist/types/claimPaymentTypes.d.ts.map +1 -0
- package/dist/types/claimPaymentTypes.js +2 -0
- package/dist/types/claimProcTypes.d.ts +3 -0
- package/dist/types/claimProcTypes.d.ts.map +1 -1
- package/dist/types/claimTrackingTypes.d.ts +37 -0
- package/dist/types/claimTrackingTypes.d.ts.map +1 -0
- package/dist/types/claimTrackingTypes.js +2 -0
- package/dist/types/claimTypes.d.ts +3 -0
- package/dist/types/claimTypes.d.ts.map +1 -1
- package/dist/types/clinicTypes.d.ts +45 -0
- package/dist/types/clinicTypes.d.ts.map +1 -0
- package/dist/types/clinicTypes.js +2 -0
- package/dist/types/clockEventTypes.d.ts +52 -0
- package/dist/types/clockEventTypes.d.ts.map +1 -0
- package/dist/types/clockEventTypes.js +2 -0
- package/dist/types/codeGroupTypes.d.ts +67 -0
- package/dist/types/codeGroupTypes.d.ts.map +1 -0
- package/dist/types/codeGroupTypes.js +2 -0
- package/dist/types/computerTypes.d.ts +10 -0
- package/dist/types/computerTypes.d.ts.map +1 -0
- package/dist/types/computerTypes.js +2 -0
- package/dist/types/covCatTypes.d.ts +53 -0
- package/dist/types/covCatTypes.d.ts.map +1 -0
- package/dist/types/covCatTypes.js +2 -0
- package/dist/types/covSpanTypes.d.ts +52 -0
- package/dist/types/covSpanTypes.d.ts.map +1 -0
- package/dist/types/covSpanTypes.js +2 -0
- package/dist/types/definitionTypes.d.ts +12 -0
- package/dist/types/definitionTypes.d.ts.map +1 -1
- package/dist/types/discountPlanSubTypes.d.ts +5 -1
- package/dist/types/discountPlanSubTypes.d.ts.map +1 -1
- package/dist/types/diseaseDefTypes.d.ts +33 -0
- package/dist/types/diseaseDefTypes.d.ts.map +1 -0
- package/dist/types/diseaseDefTypes.js +2 -0
- package/dist/types/diseaseTypes.d.ts +3 -0
- package/dist/types/diseaseTypes.d.ts.map +1 -1
- package/dist/types/documentTypes.d.ts +191 -0
- package/dist/types/documentTypes.d.ts.map +1 -0
- package/dist/types/documentTypes.js +2 -0
- package/dist/types/eTransMessageTextTypes.d.ts +9 -0
- package/dist/types/eTransMessageTextTypes.d.ts.map +1 -0
- package/dist/types/eTransMessageTextTypes.js +2 -0
- package/dist/types/eTransTypes.d.ts +15 -0
- package/dist/types/eTransTypes.d.ts.map +1 -0
- package/dist/types/eTransTypes.js +2 -0
- package/dist/types/eTranssTypes.d.ts +46 -0
- package/dist/types/eTranssTypes.d.ts.map +1 -0
- package/dist/types/eTranssTypes.js +2 -0
- package/dist/types/ehrPatientTypes.d.ts +34 -0
- package/dist/types/ehrPatientTypes.d.ts.map +1 -0
- package/dist/types/ehrPatientTypes.js +2 -0
- package/dist/types/employeeTypes.d.ts +88 -0
- package/dist/types/employeeTypes.d.ts.map +1 -0
- package/dist/types/employeeTypes.js +2 -0
- package/dist/types/employerTypes.d.ts +38 -0
- package/dist/types/employerTypes.d.ts.map +1 -0
- package/dist/types/employerTypes.js +2 -0
- package/dist/types/eobAttachTypes.d.ts +62 -0
- package/dist/types/eobAttachTypes.d.ts.map +1 -0
- package/dist/types/eobAttachTypes.js +2 -0
- package/dist/types/eventTypes.d.ts +52 -0
- package/dist/types/eventTypes.d.ts.map +1 -0
- package/dist/types/eventTypes.js +2 -0
- package/dist/types/feeTypes.d.ts +3 -0
- package/dist/types/feeTypes.d.ts.map +1 -1
- package/dist/types/histAppointmentTypes.d.ts +77 -0
- package/dist/types/histAppointmentTypes.d.ts.map +1 -0
- package/dist/types/histAppointmentTypes.js +2 -0
- package/dist/types/insPlanTypes.d.ts +4 -1
- package/dist/types/insPlanTypes.d.ts.map +1 -1
- package/dist/types/insSubTypes.d.ts +4 -1
- package/dist/types/insSubTypes.d.ts.map +1 -1
- package/dist/types/insVerifiesTypes.d.ts +3 -0
- package/dist/types/insVerifiesTypes.d.ts.map +1 -1
- package/dist/types/labCaseTypes.d.ts +4 -0
- package/dist/types/labCaseTypes.d.ts.map +1 -1
- package/dist/types/labTurnaroundTypes.d.ts +55 -0
- package/dist/types/labTurnaroundTypes.d.ts.map +1 -0
- package/dist/types/labTurnaroundTypes.js +2 -0
- package/dist/types/laboratoryTypes.d.ts +80 -0
- package/dist/types/laboratoryTypes.d.ts.map +1 -0
- package/dist/types/laboratoryTypes.js +2 -0
- package/dist/types/medicationPatTypes.d.ts +3 -0
- package/dist/types/medicationPatTypes.d.ts.map +1 -1
- package/dist/types/medicationTypes.d.ts +28 -0
- package/dist/types/medicationTypes.d.ts.map +1 -0
- package/dist/types/medicationTypes.js +2 -0
- package/dist/types/operatoryTypes.d.ts +5 -2
- package/dist/types/operatoryTypes.d.ts.map +1 -1
- package/dist/types/patFieldDefTypes.d.ts +64 -0
- package/dist/types/patFieldDefTypes.d.ts.map +1 -0
- package/dist/types/patFieldDefTypes.js +2 -0
- package/dist/types/patFieldTypes.d.ts +4 -0
- package/dist/types/patFieldTypes.d.ts.map +1 -1
- package/dist/types/patPlanTypes.d.ts +3 -0
- package/dist/types/patPlanTypes.d.ts.map +1 -1
- package/dist/types/patientNoteTypes.d.ts +32 -0
- package/dist/types/patientNoteTypes.d.ts.map +1 -0
- package/dist/types/patientNoteTypes.js +2 -0
- package/dist/types/patientRaceTypes.d.ts +25 -0
- package/dist/types/patientRaceTypes.d.ts.map +1 -0
- package/dist/types/patientRaceTypes.js +2 -0
- package/dist/types/patientTypes.d.ts +7 -1
- package/dist/types/patientTypes.d.ts.map +1 -1
- package/dist/types/payPlanChargeTypes.d.ts +4 -0
- package/dist/types/payPlanChargeTypes.d.ts.map +1 -1
- package/dist/types/paySplitTypes.d.ts +3 -0
- package/dist/types/paySplitTypes.d.ts.map +1 -1
- package/dist/types/paymentTypes.d.ts +11 -0
- package/dist/types/paymentTypes.d.ts.map +1 -1
- package/dist/types/perioExamTypes.d.ts +54 -0
- package/dist/types/perioExamTypes.d.ts.map +1 -0
- package/dist/types/perioExamTypes.js +2 -0
- package/dist/types/perioMeasureTypes.d.ts +80 -0
- package/dist/types/perioMeasureTypes.d.ts.map +1 -0
- package/dist/types/perioMeasureTypes.js +2 -0
- package/dist/types/pharmacyTypes.d.ts +18 -0
- package/dist/types/pharmacyTypes.d.ts.map +1 -0
- package/dist/types/pharmacyTypes.js +2 -0
- package/dist/types/popupTypes.d.ts +55 -0
- package/dist/types/popupTypes.d.ts.map +1 -0
- package/dist/types/popupTypes.js +2 -0
- package/dist/types/preferenceTypes.d.ts +32 -0
- package/dist/types/preferenceTypes.d.ts.map +1 -0
- package/dist/types/preferenceTypes.js +2 -0
- package/dist/types/procNoteTypes.d.ts +3 -0
- package/dist/types/procNoteTypes.d.ts.map +1 -1
- package/dist/types/procTPTypes.d.ts +3 -0
- package/dist/types/procTPTypes.d.ts.map +1 -1
- package/dist/types/procedureCodeTypes.d.ts +3 -0
- package/dist/types/procedureCodeTypes.d.ts.map +1 -1
- package/dist/types/procedurelogTypes.d.ts +7 -0
- package/dist/types/procedurelogTypes.d.ts.map +1 -1
- package/dist/types/providerTypes.d.ts +3 -0
- package/dist/types/providerTypes.d.ts.map +1 -1
- package/dist/types/queryTypes.d.ts +10 -0
- package/dist/types/queryTypes.d.ts.map +1 -1
- package/dist/types/quickPasteCatTypes.d.ts +23 -0
- package/dist/types/quickPasteCatTypes.d.ts.map +1 -0
- package/dist/types/quickPasteCatTypes.js +2 -0
- package/dist/types/quickPasteNoteTypes.d.ts +26 -0
- package/dist/types/quickPasteNoteTypes.d.ts.map +1 -0
- package/dist/types/quickPasteNoteTypes.js +2 -0
- package/dist/types/recallTypeTypes.d.ts +13 -0
- package/dist/types/recallTypeTypes.d.ts.map +1 -0
- package/dist/types/recallTypeTypes.js +2 -0
- package/dist/types/recallTypes.d.ts +6 -3
- package/dist/types/recallTypes.d.ts.map +1 -1
- package/dist/types/refAttachTypes.d.ts +3 -0
- package/dist/types/refAttachTypes.d.ts.map +1 -1
- package/dist/types/referralTypes.d.ts +7 -4
- package/dist/types/referralTypes.d.ts.map +1 -1
- package/dist/types/reportTypes.d.ts +56 -0
- package/dist/types/reportTypes.d.ts.map +1 -0
- package/dist/types/reportTypes.js +2 -0
- package/dist/types/rxPatTypes.d.ts +43 -0
- package/dist/types/rxPatTypes.d.ts.map +1 -0
- package/dist/types/rxPatTypes.js +2 -0
- package/dist/types/scheduleOpTypes.d.ts +22 -0
- package/dist/types/scheduleOpTypes.d.ts.map +1 -0
- package/dist/types/scheduleOpTypes.js +2 -0
- package/dist/types/scheduleTypes.d.ts +17 -0
- package/dist/types/scheduleTypes.d.ts.map +1 -1
- package/dist/types/securityLogTypes.d.ts +3 -0
- package/dist/types/securityLogTypes.d.ts.map +1 -1
- package/dist/types/securityTypes.d.ts +13 -0
- package/dist/types/securityTypes.d.ts.map +1 -0
- package/dist/types/securityTypes.js +2 -0
- package/dist/types/sheetDefTypes.d.ts +22 -0
- package/dist/types/sheetDefTypes.d.ts.map +1 -0
- package/dist/types/sheetDefTypes.js +2 -0
- package/dist/types/sheetFieldTypes.d.ts +48 -0
- package/dist/types/sheetFieldTypes.d.ts.map +1 -0
- package/dist/types/sheetFieldTypes.js +2 -0
- package/dist/types/sheetTypes.d.ts +62 -0
- package/dist/types/sheetTypes.d.ts.map +1 -0
- package/dist/types/sheetTypes.js +2 -0
- package/dist/types/signalODTypes.d.ts +48 -0
- package/dist/types/signalODTypes.d.ts.map +1 -0
- package/dist/types/signalODTypes.js +2 -0
- package/dist/types/statementTypes.d.ts +60 -0
- package/dist/types/statementTypes.d.ts.map +1 -0
- package/dist/types/statementTypes.js +2 -0
- package/dist/types/subscriptionTypes.d.ts +99 -0
- package/dist/types/subscriptionTypes.d.ts.map +1 -0
- package/dist/types/subscriptionTypes.js +2 -0
- package/dist/types/substitutionLinkTypes.d.ts +46 -0
- package/dist/types/substitutionLinkTypes.d.ts.map +1 -0
- package/dist/types/substitutionLinkTypes.js +2 -0
- package/dist/types/taskListTypes.d.ts +67 -0
- package/dist/types/taskListTypes.d.ts.map +1 -0
- package/dist/types/taskListTypes.js +2 -0
- package/dist/types/taskNoteTypes.d.ts +42 -0
- package/dist/types/taskNoteTypes.d.ts.map +1 -0
- package/dist/types/taskNoteTypes.js +2 -0
- package/dist/types/taskTypes.d.ts +153 -0
- package/dist/types/taskTypes.d.ts.map +1 -0
- package/dist/types/taskTypes.js +2 -0
- package/dist/types/toothInitialTypes.d.ts +44 -0
- package/dist/types/toothInitialTypes.d.ts.map +1 -0
- package/dist/types/toothInitialTypes.js +2 -0
- package/dist/types/treatPlanAttachTypes.d.ts +3 -0
- package/dist/types/treatPlanAttachTypes.d.ts.map +1 -1
- package/dist/types/treatPlanTypes.d.ts +4 -0
- package/dist/types/treatPlanTypes.d.ts.map +1 -1
- package/dist/types/userGroupAttachTypes.d.ts +22 -0
- package/dist/types/userGroupAttachTypes.d.ts.map +1 -0
- package/dist/types/userGroupAttachTypes.js +2 -0
- package/dist/types/userGroupTypes.d.ts +21 -0
- package/dist/types/userGroupTypes.d.ts.map +1 -0
- package/dist/types/userGroupTypes.js +2 -0
- package/dist/types/userODTypes.d.ts +97 -0
- package/dist/types/userODTypes.d.ts.map +1 -0
- package/dist/types/userODTypes.js +2 -0
- package/dist/utils/errorHandler.d.ts +5 -0
- package/dist/utils/errorHandler.d.ts.map +1 -1
- package/dist/utils/errorHandler.js +11 -0
- package/dist/utils/httpClient.d.ts +24 -6
- package/dist/utils/httpClient.d.ts.map +1 -1
- package/dist/utils/httpClient.js +28 -24
- package/docs/Open Dental 2026-04-22/api-url-list.md +110 -0
- package/docs/Open Dental 2026-04-22/apiaccountmodules.md +116 -0
- package/docs/Open Dental 2026-04-22/apiadjustments.md +133 -0
- package/docs/Open Dental 2026-04-22/apiallergies.md +132 -0
- package/docs/Open Dental 2026-04-22/apiallergydefs.md +74 -0
- package/docs/Open Dental 2026-04-22/apiappointments.md +510 -0
- package/docs/Open Dental 2026-04-22/apiappointmenttypes.md +86 -0
- package/docs/Open Dental 2026-04-22/apiapptfielddefs.md +130 -0
- package/docs/Open Dental 2026-04-22/apiapptfields.md +147 -0
- package/docs/Open Dental 2026-04-22/apiasapcomms.md +141 -0
- package/docs/Open Dental 2026-04-22/apiautonotecontrols.md +111 -0
- package/docs/Open Dental 2026-04-22/apiautonotes.md +103 -0
- package/docs/Open Dental 2026-04-22/apibenefits.md +515 -0
- package/docs/Open Dental 2026-04-22/apicarriers.md +150 -0
- package/docs/Open Dental 2026-04-22/apichartmodules.md +135 -0
- package/docs/Open Dental 2026-04-22/apiclaimpayments.md +206 -0
- package/docs/Open Dental 2026-04-22/apiclaimprocs.md +256 -0
- package/docs/Open Dental 2026-04-22/apiclaims.md +339 -0
- package/docs/Open Dental 2026-04-22/apiclaimtrackings.md +110 -0
- package/docs/Open Dental 2026-04-22/apiclinics.md +95 -0
- package/docs/Open Dental 2026-04-22/apiclockevents.md +98 -0
- package/docs/Open Dental 2026-04-22/apicodegroups.md +140 -0
- package/docs/Open Dental 2026-04-22/apicommlogs.md +161 -0
- package/docs/Open Dental 2026-04-22/apicomputers.md +39 -0
- package/docs/Open Dental 2026-04-22/apicovcats.md +139 -0
- package/docs/Open Dental 2026-04-22/apicovspans.md +140 -0
- package/docs/Open Dental 2026-04-22/apidefinitions.md +90 -0
- package/docs/Open Dental 2026-04-22/apidiscountplans.md +154 -0
- package/docs/Open Dental 2026-04-22/apidiscountplansubs.md +125 -0
- package/docs/Open Dental 2026-04-22/apidiseasedefs.md +88 -0
- package/docs/Open Dental 2026-04-22/apidiseases.md +168 -0
- package/docs/Open Dental 2026-04-22/apidocuments.md +319 -0
- package/docs/Open Dental 2026-04-22/apiehrpatients.md +87 -0
- package/docs/Open Dental 2026-04-22/apiemployees.md +145 -0
- package/docs/Open Dental 2026-04-22/apiemployers.md +129 -0
- package/docs/Open Dental 2026-04-22/apieobattaches.md +132 -0
- package/docs/Open Dental 2026-04-22/apietrans.md +44 -0
- package/docs/Open Dental 2026-04-22/apietransmessagetexts.md +56 -0
- package/docs/Open Dental 2026-04-22/apietranss.md +79 -0
- package/docs/Open Dental 2026-04-22/apievents.md +96 -0
- package/docs/Open Dental 2026-04-22/apifamilymodules.md +108 -0
- package/docs/Open Dental 2026-04-22/apifees.md +146 -0
- package/docs/Open Dental 2026-04-22/apifeescheds.md +116 -0
- package/docs/Open Dental 2026-04-22/apihistappointments.md +121 -0
- package/docs/Open Dental 2026-04-22/apiimplementation.md +128 -0
- package/docs/Open Dental 2026-04-22/apiinsplans.md +236 -0
- package/docs/Open Dental 2026-04-22/apiinssubs.md +171 -0
- package/docs/Open Dental 2026-04-22/apiinsverifies.md +123 -0
- package/docs/Open Dental 2026-04-22/apilabcases.md +174 -0
- package/docs/Open Dental 2026-04-22/apilaboratories.md +147 -0
- package/docs/Open Dental 2026-04-22/apilabturnarounds.md +128 -0
- package/docs/Open Dental 2026-04-22/apimedicationpats.md +170 -0
- package/docs/Open Dental 2026-04-22/apimedications.md +74 -0
- package/docs/Open Dental 2026-04-22/apioperatories.md +78 -0
- package/docs/Open Dental 2026-04-22/apipatfielddefs.md +139 -0
- package/docs/Open Dental 2026-04-22/apipatfields.md +166 -0
- package/docs/Open Dental 2026-04-22/apipatientnotes.md +102 -0
- package/docs/Open Dental 2026-04-22/apipatientraces.md +51 -0
- package/docs/Open Dental 2026-04-22/apipatients.md +346 -0
- package/docs/Open Dental 2026-04-22/apipatplans.md +147 -0
- package/docs/Open Dental 2026-04-22/apipayments.md +236 -0
- package/docs/Open Dental 2026-04-22/apipayplancharges.md +59 -0
- package/docs/Open Dental 2026-04-22/apipayplans.md +256 -0
- package/docs/Open Dental 2026-04-22/apipaysplits.md +112 -0
- package/docs/Open Dental 2026-04-22/apiperioexams.md +155 -0
- package/docs/Open Dental 2026-04-22/apiperiomeasures.md +162 -0
- package/docs/Open Dental 2026-04-22/apipharmacies.md +78 -0
- package/docs/Open Dental 2026-04-22/apipopups.md +127 -0
- package/docs/Open Dental 2026-04-22/apipreferences.md +47 -0
- package/docs/Open Dental 2026-04-22/apiprocedurecodes.md +260 -0
- package/docs/Open Dental 2026-04-22/apiprocedurelogs.md +477 -0
- package/docs/Open Dental 2026-04-22/apiprocnotes.md +86 -0
- package/docs/Open Dental 2026-04-22/apiproctps.md +141 -0
- package/docs/Open Dental 2026-04-22/apiproviders.md +189 -0
- package/docs/Open Dental 2026-04-22/apiqueries.md +74 -0
- package/docs/Open Dental 2026-04-22/apiquickpastecats.md +130 -0
- package/docs/Open Dental 2026-04-22/apiquickpastenotes.md +75 -0
- package/docs/Open Dental 2026-04-22/apirecalls.md +239 -0
- package/docs/Open Dental 2026-04-22/apirecalltypes.md +65 -0
- package/docs/Open Dental 2026-04-22/apirefattaches.md +179 -0
- package/docs/Open Dental 2026-04-22/apireferrals.md +198 -0
- package/docs/Open Dental 2026-04-22/apireports.md +85 -0
- package/docs/Open Dental 2026-04-22/apirxpats.md +113 -0
- package/docs/Open Dental 2026-04-22/apischeduleops.md +58 -0
- package/docs/Open Dental 2026-04-22/apischedules.md +106 -0
- package/docs/Open Dental 2026-04-22/apisecurity.md +53 -0
- package/docs/Open Dental 2026-04-22/apisecuritylogs.md +59 -0
- package/docs/Open Dental 2026-04-22/apisheetdefs.md +118 -0
- package/docs/Open Dental 2026-04-22/apisheetfields.md +140 -0
- package/docs/Open Dental 2026-04-22/apisheets.md +156 -0
- package/docs/Open Dental 2026-04-22/apisignalods.md +118 -0
- package/docs/Open Dental 2026-04-22/apispecification.md +47 -0
- package/docs/Open Dental 2026-04-22/apistatements.md +160 -0
- package/docs/Open Dental 2026-04-22/apisubscriptions.md +133 -0
- package/docs/Open Dental 2026-04-22/apisubstitutionlinks.md +143 -0
- package/docs/Open Dental 2026-04-22/apitasklists.md +89 -0
- package/docs/Open Dental 2026-04-22/apitasknotes.md +130 -0
- package/docs/Open Dental 2026-04-22/apitasks.md +192 -0
- package/docs/Open Dental 2026-04-22/apitoothinitials.md +119 -0
- package/docs/Open Dental 2026-04-22/apitreatplanattaches.md +111 -0
- package/docs/Open Dental 2026-04-22/apitreatplans.md +201 -0
- package/docs/Open Dental 2026-04-22/apiusergroupattaches.md +57 -0
- package/docs/Open Dental 2026-04-22/apiusergroups.md +56 -0
- package/docs/Open Dental 2026-04-22/apiuserods.md +128 -0
- package/docs/Open Dental 2026-04-22/context/Open Dental _ Benefits Guide.md +294 -0
- package/docs/Open Dental 2026-04-22/context/OpenDental_DB_Documentation_v26-1.xml +20118 -0
- package/docs/Open Dental 2026-04-22/context/sitemap.xml +4617 -0
- package/package.json +8 -7
- package/release.sh +3 -5
- package/tsconfig.test.json +8 -0
- package/__tests__/example.test.ts +0 -6
- package/dist/types/appoinmentTypesType.d.ts.map +0 -1
- package/src/api/accountModules.ts +0 -61
- package/src/api/adjustments.ts +0 -126
- package/src/api/allergies.ts +0 -114
- package/src/api/appointmentTypes.ts +0 -21
- package/src/api/appointments.ts +0 -343
- package/src/api/benefits.ts +0 -155
- package/src/api/chartModules.ts +0 -53
- package/src/api/claimProcs.ts +0 -117
- package/src/api/claims.ts +0 -173
- package/src/api/commlogs.ts +0 -63
- package/src/api/definitions.ts +0 -35
- package/src/api/discountPlanSubs.ts +0 -106
- package/src/api/discountPlans.ts +0 -159
- package/src/api/diseases.ts +0 -130
- package/src/api/familyModules.ts +0 -29
- package/src/api/feeScheds.ts +0 -30
- package/src/api/fees.ts +0 -43
- package/src/api/index.ts +0 -25
- package/src/api/insPlans.ts +0 -158
- package/src/api/insSubs.ts +0 -155
- package/src/api/insVerifies.ts +0 -85
- package/src/api/labCases.ts +0 -183
- package/src/api/medicationPats.ts +0 -120
- package/src/api/operatories.ts +0 -46
- package/src/api/patFields.ts +0 -112
- package/src/api/patPlans.ts +0 -113
- package/src/api/patients.ts +0 -254
- package/src/api/payPlanCharges.ts +0 -49
- package/src/api/payPlans.ts +0 -274
- package/src/api/paySplits.ts +0 -56
- package/src/api/payments.ts +0 -86
- package/src/api/procNotes.ts +0 -67
- package/src/api/procTPs.ts +0 -112
- package/src/api/procedureCodes.ts +0 -45
- package/src/api/procedureLog.ts +0 -377
- package/src/api/providers.ts +0 -175
- package/src/api/queries.ts +0 -43
- package/src/api/recalls.ts +0 -148
- package/src/api/refAttaches.ts +0 -142
- package/src/api/referrals.ts +0 -222
- package/src/api/schedules.ts +0 -64
- package/src/api/securityLogs.ts +0 -32
- package/src/api/treatplanattaches.ts +0 -67
- package/src/api/treatplans.ts +0 -96
- package/src/index.ts +0 -2
- package/src/openDental.ts +0 -506
- package/src/transformerTypes/visitTypes.ts +0 -87
- package/src/transformers/index.ts +0 -4
- package/src/transformers/visit.ts +0 -83
- package/src/types/DiscountPlanTypes.ts +0 -70
- package/src/types/accountModuleTypes.ts +0 -46
- package/src/types/adjustmentTypes.ts +0 -63
- package/src/types/allergyTypes.ts +0 -48
- package/src/types/appoinmentTypesType.ts +0 -16
- package/src/types/appointmentTypes.ts +0 -256
- package/src/types/benefitTypes.ts +0 -70
- package/src/types/chartModuleTypes.ts +0 -65
- package/src/types/claimProcTypes.ts +0 -99
- package/src/types/claimTypes.ts +0 -227
- package/src/types/commlogTypes.ts +0 -28
- package/src/types/definitionTypes.ts +0 -24
- package/src/types/discountPlanSubTypes.ts +0 -45
- package/src/types/diseaseTypes.ts +0 -50
- package/src/types/familyModuleTypes.ts +0 -33
- package/src/types/feeSchedsTypes.ts +0 -38
- package/src/types/feeTypes.ts +0 -49
- package/src/types/insPlanTypes.ts +0 -72
- package/src/types/insSubTypes.ts +0 -65
- package/src/types/insVerifiesTypes.ts +0 -38
- package/src/types/labCaseTypes.ts +0 -71
- package/src/types/medicationPatTypes.ts +0 -50
- package/src/types/operatoryTypes.ts +0 -24
- package/src/types/patFieldTypes.ts +0 -24
- package/src/types/patPlanTypes.ts +0 -55
- package/src/types/patientTypes.ts +0 -236
- package/src/types/payPlanChargeTypes.ts +0 -77
- package/src/types/payPlanTypes.ts +0 -171
- package/src/types/paySplitTypes.ts +0 -44
- package/src/types/paymentTypes.ts +0 -69
- package/src/types/procNoteTypes.ts +0 -38
- package/src/types/procTPTypes.ts +0 -79
- package/src/types/procedureCodeTypes.ts +0 -48
- package/src/types/procedurelogTypes.ts +0 -184
- package/src/types/providerTypes.ts +0 -73
- package/src/types/queryTypes.ts +0 -17
- package/src/types/recallTypes.ts +0 -102
- package/src/types/refAttachTypes.ts +0 -63
- package/src/types/referralTypes.ts +0 -102
- package/src/types/scheduleTypes.ts +0 -32
- package/src/types/securityLogTypes.ts +0 -24
- package/src/types/treatPlanAttachTypes.ts +0 -39
- package/src/types/treatPlanTypes.ts +0 -75
- package/src/utils/errorHandler.ts +0 -0
- package/src/utils/httpClient.ts +0 -111
- package/tsconfig.json +0 -16
- /package/dist/types/{appoinmentTypesType.js → allergyDefTypes.js} +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import HttpClient from "../utils/httpClient";
|
|
2
|
+
import { SubstitutionLinkItem, GetSubstitutionLinksParams, CreateSubstitutionLinkParams, UpdateSubstitutionLinkParams } from "../types/substitutionLinkTypes";
|
|
3
|
+
export default class SubstitutionLinks {
|
|
4
|
+
private httpClient;
|
|
5
|
+
constructor(httpClient: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves all substitution links for a specific insurance plan.
|
|
8
|
+
* @param {GetSubstitutionLinksParams} params - Query parameters.
|
|
9
|
+
* @param {number} params.PlanNum - Required. FK to insplan.PlanNum.
|
|
10
|
+
* @param {number} [params.Offset] - Pagination offset. Use with Limit for paginating large result sets.
|
|
11
|
+
* @param {number} [params.Limit] - Maximum number of results to return per request. Defaults to 1000 (the hard limit).
|
|
12
|
+
* @param {string} [params.DateFormatString] - Optional date format override (e.g. "MM/dd/yyyy"). Default: "yyyy-MM-dd". Added in version 22.2.26.
|
|
13
|
+
* @param {string} [params.DateTimeFormatString] - Optional datetime format override (e.g. "MM/dd/yyyy HH:mm:ss"). Default: "yyyy-MM-dd HH:mm:ss". Added in version 22.2.14.
|
|
14
|
+
* @returns {Promise<SubstitutionLinkItem[]>} Array of SubstitutionLink objects.
|
|
15
|
+
* @throws {Error} If PlanNum is not provided.
|
|
16
|
+
* @see https://www.opendental.com/site/apisubstitutionlinks.html
|
|
17
|
+
*/
|
|
18
|
+
getSubstitutionLinks(params: GetSubstitutionLinksParams): Promise<SubstitutionLinkItem[]>;
|
|
19
|
+
/**
|
|
20
|
+
* Creates a new substitution link for an insurance plan.
|
|
21
|
+
* @param {CreateSubstitutionLinkParams} data - Body parameters.
|
|
22
|
+
* @param {number} data.PlanNum - Required. FK to insplan.PlanNum.
|
|
23
|
+
* @param {number} data.CodeNum - Required. FK to procedurecode.CodeNum.
|
|
24
|
+
* @param {string} data.SubstitutionCode - Required. FK to procedurecode.ProcCode (case-sensitive).
|
|
25
|
+
* @param {SubstitutionCondition} data.SubstOnlyIf - Required. Condition for substitution.
|
|
26
|
+
* @returns {Promise<SubstitutionLinkItem>} The created SubstitutionLink object.
|
|
27
|
+
* @throws {Error} If any required field is missing.
|
|
28
|
+
* @see https://www.opendental.com/site/apisubstitutionlinks.html
|
|
29
|
+
*/
|
|
30
|
+
createSubstitutionLink(data: CreateSubstitutionLinkParams): Promise<SubstitutionLinkItem>;
|
|
31
|
+
/**
|
|
32
|
+
* Updates an existing substitution link.
|
|
33
|
+
* @param {UpdateSubstitutionLinkParams} data - Update parameters.
|
|
34
|
+
* @param {number} data.SubstitutionLinkNum - Required. Primary key of the substitution link to update.
|
|
35
|
+
* @param {string} [data.SubstitutionCode] - Optional. Updated replacement code (case-sensitive).
|
|
36
|
+
* @param {SubstitutionCondition} [data.SubstOnlyIf] - Optional. Updated substitution condition.
|
|
37
|
+
* @returns {Promise<SubstitutionLinkItem>} The updated SubstitutionLink object.
|
|
38
|
+
* @throws {Error} If SubstitutionLinkNum is not provided.
|
|
39
|
+
* @see https://www.opendental.com/site/apisubstitutionlinks.html
|
|
40
|
+
*/
|
|
41
|
+
updateSubstitutionLink(data: UpdateSubstitutionLinkParams): Promise<SubstitutionLinkItem>;
|
|
42
|
+
/**
|
|
43
|
+
* Removes a substitution link.
|
|
44
|
+
* @param {number} SubstitutionLinkNum - Required. Primary key of the substitution link to delete.
|
|
45
|
+
* @returns {Promise<void>}
|
|
46
|
+
* @throws {Error} If SubstitutionLinkNum is not provided.
|
|
47
|
+
* @see https://www.opendental.com/site/apisubstitutionlinks.html
|
|
48
|
+
*/
|
|
49
|
+
deleteSubstitutionLink(SubstitutionLinkNum: number): Promise<void>;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=substitutionLinks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"substitutionLinks.d.ts","sourceRoot":"","sources":["../../src/api/substitutionLinks.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,gCAAgC,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;;;;;;;OAWG;IACU,oBAAoB,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAOtG;;;;;;;;;;OAUG;IACU,sBAAsB,CAAC,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAOtG;;;;;;;;;OASG;IACU,sBAAsB,CAAC,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAQtG;;;;;;OAMG;IACU,sBAAsB,CAAC,mBAAmB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAMhF"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class SubstitutionLinks {
|
|
4
|
+
httpClient;
|
|
5
|
+
constructor(httpClient) {
|
|
6
|
+
this.httpClient = httpClient;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves all substitution links for a specific insurance plan.
|
|
10
|
+
* @param {GetSubstitutionLinksParams} params - Query parameters.
|
|
11
|
+
* @param {number} params.PlanNum - Required. FK to insplan.PlanNum.
|
|
12
|
+
* @param {number} [params.Offset] - Pagination offset. Use with Limit for paginating large result sets.
|
|
13
|
+
* @param {number} [params.Limit] - Maximum number of results to return per request. Defaults to 1000 (the hard limit).
|
|
14
|
+
* @param {string} [params.DateFormatString] - Optional date format override (e.g. "MM/dd/yyyy"). Default: "yyyy-MM-dd". Added in version 22.2.26.
|
|
15
|
+
* @param {string} [params.DateTimeFormatString] - Optional datetime format override (e.g. "MM/dd/yyyy HH:mm:ss"). Default: "yyyy-MM-dd HH:mm:ss". Added in version 22.2.14.
|
|
16
|
+
* @returns {Promise<SubstitutionLinkItem[]>} Array of SubstitutionLink objects.
|
|
17
|
+
* @throws {Error} If PlanNum is not provided.
|
|
18
|
+
* @see https://www.opendental.com/site/apisubstitutionlinks.html
|
|
19
|
+
*/
|
|
20
|
+
async getSubstitutionLinks(params) {
|
|
21
|
+
if (!params.PlanNum) {
|
|
22
|
+
throw new Error("Invalid parameter: PlanNum is required.");
|
|
23
|
+
}
|
|
24
|
+
return this.httpClient.get("/substitutionlinks", params);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Creates a new substitution link for an insurance plan.
|
|
28
|
+
* @param {CreateSubstitutionLinkParams} data - Body parameters.
|
|
29
|
+
* @param {number} data.PlanNum - Required. FK to insplan.PlanNum.
|
|
30
|
+
* @param {number} data.CodeNum - Required. FK to procedurecode.CodeNum.
|
|
31
|
+
* @param {string} data.SubstitutionCode - Required. FK to procedurecode.ProcCode (case-sensitive).
|
|
32
|
+
* @param {SubstitutionCondition} data.SubstOnlyIf - Required. Condition for substitution.
|
|
33
|
+
* @returns {Promise<SubstitutionLinkItem>} The created SubstitutionLink object.
|
|
34
|
+
* @throws {Error} If any required field is missing.
|
|
35
|
+
* @see https://www.opendental.com/site/apisubstitutionlinks.html
|
|
36
|
+
*/
|
|
37
|
+
async createSubstitutionLink(data) {
|
|
38
|
+
if (!data.PlanNum || !data.CodeNum || !data.SubstitutionCode || !data.SubstOnlyIf) {
|
|
39
|
+
throw new Error("Invalid parameter: PlanNum, CodeNum, SubstitutionCode, and SubstOnlyIf are required.");
|
|
40
|
+
}
|
|
41
|
+
return this.httpClient.post("/substitutionlinks", data);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Updates an existing substitution link.
|
|
45
|
+
* @param {UpdateSubstitutionLinkParams} data - Update parameters.
|
|
46
|
+
* @param {number} data.SubstitutionLinkNum - Required. Primary key of the substitution link to update.
|
|
47
|
+
* @param {string} [data.SubstitutionCode] - Optional. Updated replacement code (case-sensitive).
|
|
48
|
+
* @param {SubstitutionCondition} [data.SubstOnlyIf] - Optional. Updated substitution condition.
|
|
49
|
+
* @returns {Promise<SubstitutionLinkItem>} The updated SubstitutionLink object.
|
|
50
|
+
* @throws {Error} If SubstitutionLinkNum is not provided.
|
|
51
|
+
* @see https://www.opendental.com/site/apisubstitutionlinks.html
|
|
52
|
+
*/
|
|
53
|
+
async updateSubstitutionLink(data) {
|
|
54
|
+
if (!data.SubstitutionLinkNum) {
|
|
55
|
+
throw new Error("Invalid parameter: SubstitutionLinkNum is required.");
|
|
56
|
+
}
|
|
57
|
+
const { SubstitutionLinkNum, ...body } = data;
|
|
58
|
+
return this.httpClient.put(`/substitutionlinks/${SubstitutionLinkNum}`, body);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Removes a substitution link.
|
|
62
|
+
* @param {number} SubstitutionLinkNum - Required. Primary key of the substitution link to delete.
|
|
63
|
+
* @returns {Promise<void>}
|
|
64
|
+
* @throws {Error} If SubstitutionLinkNum is not provided.
|
|
65
|
+
* @see https://www.opendental.com/site/apisubstitutionlinks.html
|
|
66
|
+
*/
|
|
67
|
+
async deleteSubstitutionLink(SubstitutionLinkNum) {
|
|
68
|
+
if (!SubstitutionLinkNum) {
|
|
69
|
+
throw new Error("Invalid parameter: SubstitutionLinkNum is required.");
|
|
70
|
+
}
|
|
71
|
+
return this.httpClient.delete(`/substitutionlinks/${SubstitutionLinkNum}`);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.default = SubstitutionLinks;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import HttpClient from "../utils/httpClient";
|
|
2
|
+
import { TaskListItem, GetTaskListsParams } from "../types/taskListTypes";
|
|
3
|
+
export default class TaskLists {
|
|
4
|
+
private httpClient;
|
|
5
|
+
constructor(httpClient: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves a list of task lists, optionally filtered by status.
|
|
8
|
+
* Supports pagination via Offset.
|
|
9
|
+
* @param {GetTaskListsParams} [params] - Optional query parameters.
|
|
10
|
+
* @param {"Active" | "Archived"} [params.TaskListStatus] - Optional. Filter by status. Default: "Active".
|
|
11
|
+
* @param {number} [params.Offset] - Pagination offset. Use with Limit for paginating large result sets.
|
|
12
|
+
* @param {number} [params.Limit] - Maximum number of results to return per request. Defaults to 1000 (the hard limit).
|
|
13
|
+
* @param {string} [params.DateFormatString] - Optional date format override (e.g. "MM/dd/yyyy"). Default: "yyyy-MM-dd". Added in version 22.2.26.
|
|
14
|
+
* @param {string} [params.DateTimeFormatString] - Optional datetime format override (e.g. "MM/dd/yyyy HH:mm:ss"). Default: "yyyy-MM-dd HH:mm:ss". Added in version 22.2.14.
|
|
15
|
+
* @returns {Promise<TaskListItem[]>} Array of TaskList objects.
|
|
16
|
+
* @see https://www.opendental.com/site/apitasklists.html
|
|
17
|
+
*/
|
|
18
|
+
getTaskLists(params?: GetTaskListsParams): Promise<TaskListItem[]>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=taskLists.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taskLists.d.ts","sourceRoot":"","sources":["../../src/api/taskLists.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE1E,MAAM,CAAC,OAAO,OAAO,SAAS;IAC5B,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;;;;;;;OAWG;IACU,YAAY,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;CAGhF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class TaskLists {
|
|
4
|
+
httpClient;
|
|
5
|
+
constructor(httpClient) {
|
|
6
|
+
this.httpClient = httpClient;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves a list of task lists, optionally filtered by status.
|
|
10
|
+
* Supports pagination via Offset.
|
|
11
|
+
* @param {GetTaskListsParams} [params] - Optional query parameters.
|
|
12
|
+
* @param {"Active" | "Archived"} [params.TaskListStatus] - Optional. Filter by status. Default: "Active".
|
|
13
|
+
* @param {number} [params.Offset] - Pagination offset. Use with Limit for paginating large result sets.
|
|
14
|
+
* @param {number} [params.Limit] - Maximum number of results to return per request. Defaults to 1000 (the hard limit).
|
|
15
|
+
* @param {string} [params.DateFormatString] - Optional date format override (e.g. "MM/dd/yyyy"). Default: "yyyy-MM-dd". Added in version 22.2.26.
|
|
16
|
+
* @param {string} [params.DateTimeFormatString] - Optional datetime format override (e.g. "MM/dd/yyyy HH:mm:ss"). Default: "yyyy-MM-dd HH:mm:ss". Added in version 22.2.14.
|
|
17
|
+
* @returns {Promise<TaskListItem[]>} Array of TaskList objects.
|
|
18
|
+
* @see https://www.opendental.com/site/apitasklists.html
|
|
19
|
+
*/
|
|
20
|
+
async getTaskLists(params) {
|
|
21
|
+
return this.httpClient.get("/tasklists", params);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = TaskLists;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import HttpClient from "../utils/httpClient";
|
|
2
|
+
import { TaskNoteItem, GetTaskNotesParams, CreateTaskNoteParams, UpdateTaskNoteParams } from "../types/taskNoteTypes";
|
|
3
|
+
export default class TaskNotes {
|
|
4
|
+
private httpClient;
|
|
5
|
+
constructor(httpClient: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves a single task note record by primary key.
|
|
8
|
+
* @param {number} TaskNoteNum - Required. Primary key of the task note.
|
|
9
|
+
* @param {number} [params.Offset] - Pagination offset. Use with Limit for paginating large result sets.
|
|
10
|
+
* @param {number} [params.Limit] - Maximum number of results to return per request. Defaults to 1000 (the hard limit).
|
|
11
|
+
* @param {string} [params.DateFormatString] - Optional date format override (e.g. "MM/dd/yyyy"). Default: "yyyy-MM-dd". Added in version 22.2.26.
|
|
12
|
+
* @param {string} [params.DateTimeFormatString] - Optional datetime format override (e.g. "MM/dd/yyyy HH:mm:ss"). Default: "yyyy-MM-dd HH:mm:ss". Added in version 22.2.14.
|
|
13
|
+
* @returns {Promise<TaskNoteItem>} - The task note record.
|
|
14
|
+
* @throws {Error} - If TaskNoteNum is not a valid number.
|
|
15
|
+
* @see https://www.opendental.com/site/apitasknotes.html
|
|
16
|
+
*/
|
|
17
|
+
getTaskNote(TaskNoteNum: number): Promise<TaskNoteItem>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves multiple task note records with optional filtering.
|
|
20
|
+
* @param {GetTaskNotesParams} [params] - Optional filtering parameters.
|
|
21
|
+
* @param {number} [params.TaskNum] - Optional. FK to task.TaskNum; filters to notes for a specific task.
|
|
22
|
+
* @param {number} [params.UserNum] - Optional. FK to userod.UserNum; filters to notes by a specific user.
|
|
23
|
+
* @returns {Promise<TaskNoteItem[]>} - Array of task note records.
|
|
24
|
+
* @see https://www.opendental.com/site/apitasknotes.html
|
|
25
|
+
*/
|
|
26
|
+
getTaskNotes({ TaskNum, UserNum, Limit, DateFormatString, DateTimeFormatString, }?: GetTaskNotesParams): Promise<TaskNoteItem[]>;
|
|
27
|
+
/**
|
|
28
|
+
* Creates a new task note.
|
|
29
|
+
* @param {CreateTaskNoteParams} data - Required body parameters.
|
|
30
|
+
* @param {number} data.TaskNum - Required. FK to task.TaskNum.
|
|
31
|
+
* @param {number} data.UserNum - Required. FK to userod.UserNum.
|
|
32
|
+
* @param {string} data.Note - Required. Note content; cannot be blank.
|
|
33
|
+
* @returns {Promise<TaskNoteItem>} - The created task note with system-generated TaskNoteNum and DateTimeNote.
|
|
34
|
+
* @throws {Error} - If TaskNum, UserNum, or Note is missing.
|
|
35
|
+
* @see https://www.opendental.com/site/apitasknotes.html
|
|
36
|
+
*/
|
|
37
|
+
createTaskNote(data: CreateTaskNoteParams): Promise<TaskNoteItem>;
|
|
38
|
+
/**
|
|
39
|
+
* Updates an existing task note.
|
|
40
|
+
* @param {UpdateTaskNoteParams} data - Update parameters.
|
|
41
|
+
* @param {number} data.TaskNoteNum - Required. Primary key of the task note to update.
|
|
42
|
+
* @param {string} [data.DateTimeNote] - Optional. Format "yyyy-MM-dd HH:mm:ss".
|
|
43
|
+
* @param {string} [data.Note] - Optional. Updated note content; cannot be blank if provided.
|
|
44
|
+
* @returns {Promise<TaskNoteItem>} - The updated task note record.
|
|
45
|
+
* @throws {Error} - If TaskNoteNum is missing, or Note is provided but blank.
|
|
46
|
+
* @see https://www.opendental.com/site/apitasknotes.html
|
|
47
|
+
*/
|
|
48
|
+
updateTaskNote(data: UpdateTaskNoteParams): Promise<TaskNoteItem>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=taskNotes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taskNotes.d.ts","sourceRoot":"","sources":["../../src/api/taskNotes.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,SAAS;IAC5B,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;;;;;;OAUG;IACU,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAQpE;;;;;;;OAOG;IACU,YAAY,CAAC,EAAE,OAAO,EAAE,OAAO,EAC1C,KAAK,EACL,gBAAgB,EAChB,oBAAoB,GACvB,GAAE,kBAAuB,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IASlD;;;;;;;;;OASG;IACU,cAAc,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;IAW9E;;;;;;;;;OASG;IACU,cAAc,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;CAW/E"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class TaskNotes {
|
|
4
|
+
httpClient;
|
|
5
|
+
constructor(httpClient) {
|
|
6
|
+
this.httpClient = httpClient;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves a single task note record by primary key.
|
|
10
|
+
* @param {number} TaskNoteNum - Required. Primary key of the task note.
|
|
11
|
+
* @param {number} [params.Offset] - Pagination offset. Use with Limit for paginating large result sets.
|
|
12
|
+
* @param {number} [params.Limit] - Maximum number of results to return per request. Defaults to 1000 (the hard limit).
|
|
13
|
+
* @param {string} [params.DateFormatString] - Optional date format override (e.g. "MM/dd/yyyy"). Default: "yyyy-MM-dd". Added in version 22.2.26.
|
|
14
|
+
* @param {string} [params.DateTimeFormatString] - Optional datetime format override (e.g. "MM/dd/yyyy HH:mm:ss"). Default: "yyyy-MM-dd HH:mm:ss". Added in version 22.2.14.
|
|
15
|
+
* @returns {Promise<TaskNoteItem>} - The task note record.
|
|
16
|
+
* @throws {Error} - If TaskNoteNum is not a valid number.
|
|
17
|
+
* @see https://www.opendental.com/site/apitasknotes.html
|
|
18
|
+
*/
|
|
19
|
+
async getTaskNote(TaskNoteNum) {
|
|
20
|
+
if (!TaskNoteNum || typeof TaskNoteNum !== "number") {
|
|
21
|
+
throw new Error("Invalid parameter: TaskNoteNum must be a valid number.");
|
|
22
|
+
}
|
|
23
|
+
return this.httpClient.get(`/tasknotes/${TaskNoteNum}`);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves multiple task note records with optional filtering.
|
|
27
|
+
* @param {GetTaskNotesParams} [params] - Optional filtering parameters.
|
|
28
|
+
* @param {number} [params.TaskNum] - Optional. FK to task.TaskNum; filters to notes for a specific task.
|
|
29
|
+
* @param {number} [params.UserNum] - Optional. FK to userod.UserNum; filters to notes by a specific user.
|
|
30
|
+
* @returns {Promise<TaskNoteItem[]>} - Array of task note records.
|
|
31
|
+
* @see https://www.opendental.com/site/apitasknotes.html
|
|
32
|
+
*/
|
|
33
|
+
async getTaskNotes({ TaskNum, UserNum, Limit, DateFormatString, DateTimeFormatString, } = {}) {
|
|
34
|
+
return this.httpClient.get("/tasknotes", {
|
|
35
|
+
TaskNum, UserNum,
|
|
36
|
+
Limit,
|
|
37
|
+
DateFormatString,
|
|
38
|
+
DateTimeFormatString,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Creates a new task note.
|
|
43
|
+
* @param {CreateTaskNoteParams} data - Required body parameters.
|
|
44
|
+
* @param {number} data.TaskNum - Required. FK to task.TaskNum.
|
|
45
|
+
* @param {number} data.UserNum - Required. FK to userod.UserNum.
|
|
46
|
+
* @param {string} data.Note - Required. Note content; cannot be blank.
|
|
47
|
+
* @returns {Promise<TaskNoteItem>} - The created task note with system-generated TaskNoteNum and DateTimeNote.
|
|
48
|
+
* @throws {Error} - If TaskNum, UserNum, or Note is missing.
|
|
49
|
+
* @see https://www.opendental.com/site/apitasknotes.html
|
|
50
|
+
*/
|
|
51
|
+
async createTaskNote(data) {
|
|
52
|
+
if (!data.TaskNum || !data.UserNum) {
|
|
53
|
+
throw new Error("Invalid parameter: TaskNum and UserNum are required.");
|
|
54
|
+
}
|
|
55
|
+
if (!data.Note || data.Note.trim() === "") {
|
|
56
|
+
throw new Error("Invalid parameter: Note is required and cannot be blank.");
|
|
57
|
+
}
|
|
58
|
+
return this.httpClient.post("/tasknotes", data);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Updates an existing task note.
|
|
62
|
+
* @param {UpdateTaskNoteParams} data - Update parameters.
|
|
63
|
+
* @param {number} data.TaskNoteNum - Required. Primary key of the task note to update.
|
|
64
|
+
* @param {string} [data.DateTimeNote] - Optional. Format "yyyy-MM-dd HH:mm:ss".
|
|
65
|
+
* @param {string} [data.Note] - Optional. Updated note content; cannot be blank if provided.
|
|
66
|
+
* @returns {Promise<TaskNoteItem>} - The updated task note record.
|
|
67
|
+
* @throws {Error} - If TaskNoteNum is missing, or Note is provided but blank.
|
|
68
|
+
* @see https://www.opendental.com/site/apitasknotes.html
|
|
69
|
+
*/
|
|
70
|
+
async updateTaskNote(data) {
|
|
71
|
+
if (!data.TaskNoteNum) {
|
|
72
|
+
throw new Error("Invalid parameter: TaskNoteNum is required.");
|
|
73
|
+
}
|
|
74
|
+
if (data.Note !== undefined && data.Note.trim() === "") {
|
|
75
|
+
throw new Error("Invalid parameter: Note cannot be blank if provided.");
|
|
76
|
+
}
|
|
77
|
+
const { TaskNoteNum, ...body } = data;
|
|
78
|
+
return this.httpClient.put(`/tasknotes/${TaskNoteNum}`, body);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.default = TaskNotes;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import HttpClient from "../utils/httpClient";
|
|
2
|
+
import { TaskItem, GetTasksParams, CreateTaskParams, UpdateTaskParams } from "../types/taskTypes";
|
|
3
|
+
export default class Tasks {
|
|
4
|
+
private httpClient;
|
|
5
|
+
constructor(httpClient: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves a single task by its primary key.
|
|
8
|
+
* @param {number} TaskNum - Required. Primary key of the task.
|
|
9
|
+
* @param {number} [params.Offset] - Pagination offset. Use with Limit for paginating large result sets.
|
|
10
|
+
* @param {number} [params.Limit] - Maximum number of results to return per request. Defaults to 1000 (the hard limit).
|
|
11
|
+
* @param {string} [params.DateFormatString] - Optional date format override (e.g. "MM/dd/yyyy"). Default: "yyyy-MM-dd". Added in version 22.2.26.
|
|
12
|
+
* @param {string} [params.DateTimeFormatString] - Optional datetime format override (e.g. "MM/dd/yyyy HH:mm:ss"). Default: "yyyy-MM-dd HH:mm:ss". Added in version 22.2.14.
|
|
13
|
+
* @returns {Promise<TaskItem>} The Task object.
|
|
14
|
+
* @throws {Error} If TaskNum is not provided.
|
|
15
|
+
* @see https://www.opendental.com/site/apitasks.html
|
|
16
|
+
*/
|
|
17
|
+
getTask(TaskNum: number): Promise<TaskItem>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves multiple tasks with optional filters.
|
|
20
|
+
* When DateTimeOriginal is not specified, defaults to tasks from the previous 14 days.
|
|
21
|
+
* @param {GetTasksParams} [params] - Optional query parameters.
|
|
22
|
+
* @param {number} [params.TaskListNum] - Optional. FK to tasklist.TaskListNum.
|
|
23
|
+
* @param {number} [params.KeyNum] - Optional. FK to patient.PatNum or appointment.AptNum.
|
|
24
|
+
* @param {"None" | "Patient" | "Appointment"} [params.ObjectType] - Optional. Filter by object type.
|
|
25
|
+
* @param {"New" | "Viewed" | "Done"} [params.TaskStatus] - Optional. Filter by task status.
|
|
26
|
+
* @param {string} [params.DateTimeOriginal] - Optional. Returns tasks created after this datetime.
|
|
27
|
+
* Format: "yyyy-MM-dd HH:mm:ss". Default: previous 14 days.
|
|
28
|
+
* @returns {Promise<TaskItem[]>} Array of Task objects.
|
|
29
|
+
* @see https://www.opendental.com/site/apitasks.html
|
|
30
|
+
*/
|
|
31
|
+
getTasks(params?: GetTasksParams): Promise<TaskItem[]>;
|
|
32
|
+
/**
|
|
33
|
+
* Creates a new task.
|
|
34
|
+
* @param {CreateTaskParams} data - Body parameters.
|
|
35
|
+
* @param {number} data.TaskListNum - Required. FK to tasklist.TaskListNum.
|
|
36
|
+
* @param {string} data.Descript - Required. Task description.
|
|
37
|
+
* @param {number} data.UserNum - Required. FK to userod.UserNum — creating user.
|
|
38
|
+
* @param {number} [data.KeyNum] - Optional. FK to patient.PatNum or appointment.AptNum.
|
|
39
|
+
* Required when ObjectType is not None.
|
|
40
|
+
* @param {"None" | "Patient" | "Appointment"} [data.ObjectType] - Optional. Defaults to "None".
|
|
41
|
+
* @param {string} [data.DateTimeEntry] - Optional. Format: "yyyy-MM-dd HH:mm:ss". Defaults to now.
|
|
42
|
+
* @param {number} [data.PriorityDefNum] - Optional. FK to definition.DefNum (Category=33).
|
|
43
|
+
* @param {string} [data.DescriptOverride] - Optional. Max 256 chars. Overrides task list grid display text.
|
|
44
|
+
* @param {number} [data.Category] - Optional. FK to definition.DefNum (Category=54). Requires TaskCategoryShow pref.
|
|
45
|
+
* @returns {Promise<TaskItem>} The created Task object.
|
|
46
|
+
* @throws {Error} If any required field is missing.
|
|
47
|
+
* @see https://www.opendental.com/site/apitasks.html
|
|
48
|
+
*/
|
|
49
|
+
createTask(data: CreateTaskParams): Promise<TaskItem>;
|
|
50
|
+
/**
|
|
51
|
+
* Updates an existing task.
|
|
52
|
+
* Note: updating Descript automatically resets a "Done" task status back to "Viewed".
|
|
53
|
+
* @param {UpdateTaskParams} data - Update parameters.
|
|
54
|
+
* @param {number} data.TaskNum - Required. Primary key of the task to update.
|
|
55
|
+
* @param {string} [data.Descript] - Optional. Overwrites existing description; resets "Done" to "Viewed".
|
|
56
|
+
* @param {"New" | "Viewed" | "Done"} [data.TaskStatus] - Optional. Updated status. Added v24.2.10.
|
|
57
|
+
* @param {number} [data.KeyNum] - Optional. FK to patient.PatNum or appointment.AptNum.
|
|
58
|
+
* @param {"None" | "Patient" | "Appointment"} [data.ObjectType] - Optional. Updated object type.
|
|
59
|
+
* @param {string} [data.DateTimeEntry] - Optional. Format: "yyyy-MM-dd HH:mm:ss".
|
|
60
|
+
* @param {number} [data.PriorityDefNum] - Optional. FK to definition.DefNum (Category=33).
|
|
61
|
+
* @param {string} [data.DescriptOverride] - Optional. Max 256 characters.
|
|
62
|
+
* @param {number} [data.Category] - Optional. FK to definition.DefNum (Category=54). Requires TaskCategoryShow pref.
|
|
63
|
+
* @returns {Promise<TaskItem>} The updated Task object.
|
|
64
|
+
* @throws {Error} If TaskNum is not provided.
|
|
65
|
+
* @see https://www.opendental.com/site/apitasks.html
|
|
66
|
+
*/
|
|
67
|
+
updateTask(data: UpdateTaskParams): Promise<TaskItem>;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=tasks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/api/tasks.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,OAAO,OAAO,KAAK;IACxB,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;;;;;;OAUG;IACU,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAOxD;;;;;;;;;;;;OAYG;IACU,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAInE;;;;;;;;;;;;;;;;OAgBG;IACU,UAAU,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAOlE;;;;;;;;;;;;;;;;OAgBG;IACU,UAAU,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC;CAOnE"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class Tasks {
|
|
4
|
+
httpClient;
|
|
5
|
+
constructor(httpClient) {
|
|
6
|
+
this.httpClient = httpClient;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves a single task by its primary key.
|
|
10
|
+
* @param {number} TaskNum - Required. Primary key of the task.
|
|
11
|
+
* @param {number} [params.Offset] - Pagination offset. Use with Limit for paginating large result sets.
|
|
12
|
+
* @param {number} [params.Limit] - Maximum number of results to return per request. Defaults to 1000 (the hard limit).
|
|
13
|
+
* @param {string} [params.DateFormatString] - Optional date format override (e.g. "MM/dd/yyyy"). Default: "yyyy-MM-dd". Added in version 22.2.26.
|
|
14
|
+
* @param {string} [params.DateTimeFormatString] - Optional datetime format override (e.g. "MM/dd/yyyy HH:mm:ss"). Default: "yyyy-MM-dd HH:mm:ss". Added in version 22.2.14.
|
|
15
|
+
* @returns {Promise<TaskItem>} The Task object.
|
|
16
|
+
* @throws {Error} If TaskNum is not provided.
|
|
17
|
+
* @see https://www.opendental.com/site/apitasks.html
|
|
18
|
+
*/
|
|
19
|
+
async getTask(TaskNum) {
|
|
20
|
+
if (!TaskNum) {
|
|
21
|
+
throw new Error("Invalid parameter: TaskNum is required.");
|
|
22
|
+
}
|
|
23
|
+
return this.httpClient.get(`/tasks/${TaskNum}`);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves multiple tasks with optional filters.
|
|
27
|
+
* When DateTimeOriginal is not specified, defaults to tasks from the previous 14 days.
|
|
28
|
+
* @param {GetTasksParams} [params] - Optional query parameters.
|
|
29
|
+
* @param {number} [params.TaskListNum] - Optional. FK to tasklist.TaskListNum.
|
|
30
|
+
* @param {number} [params.KeyNum] - Optional. FK to patient.PatNum or appointment.AptNum.
|
|
31
|
+
* @param {"None" | "Patient" | "Appointment"} [params.ObjectType] - Optional. Filter by object type.
|
|
32
|
+
* @param {"New" | "Viewed" | "Done"} [params.TaskStatus] - Optional. Filter by task status.
|
|
33
|
+
* @param {string} [params.DateTimeOriginal] - Optional. Returns tasks created after this datetime.
|
|
34
|
+
* Format: "yyyy-MM-dd HH:mm:ss". Default: previous 14 days.
|
|
35
|
+
* @returns {Promise<TaskItem[]>} Array of Task objects.
|
|
36
|
+
* @see https://www.opendental.com/site/apitasks.html
|
|
37
|
+
*/
|
|
38
|
+
async getTasks(params) {
|
|
39
|
+
return this.httpClient.get("/tasks", params);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Creates a new task.
|
|
43
|
+
* @param {CreateTaskParams} data - Body parameters.
|
|
44
|
+
* @param {number} data.TaskListNum - Required. FK to tasklist.TaskListNum.
|
|
45
|
+
* @param {string} data.Descript - Required. Task description.
|
|
46
|
+
* @param {number} data.UserNum - Required. FK to userod.UserNum — creating user.
|
|
47
|
+
* @param {number} [data.KeyNum] - Optional. FK to patient.PatNum or appointment.AptNum.
|
|
48
|
+
* Required when ObjectType is not None.
|
|
49
|
+
* @param {"None" | "Patient" | "Appointment"} [data.ObjectType] - Optional. Defaults to "None".
|
|
50
|
+
* @param {string} [data.DateTimeEntry] - Optional. Format: "yyyy-MM-dd HH:mm:ss". Defaults to now.
|
|
51
|
+
* @param {number} [data.PriorityDefNum] - Optional. FK to definition.DefNum (Category=33).
|
|
52
|
+
* @param {string} [data.DescriptOverride] - Optional. Max 256 chars. Overrides task list grid display text.
|
|
53
|
+
* @param {number} [data.Category] - Optional. FK to definition.DefNum (Category=54). Requires TaskCategoryShow pref.
|
|
54
|
+
* @returns {Promise<TaskItem>} The created Task object.
|
|
55
|
+
* @throws {Error} If any required field is missing.
|
|
56
|
+
* @see https://www.opendental.com/site/apitasks.html
|
|
57
|
+
*/
|
|
58
|
+
async createTask(data) {
|
|
59
|
+
if (!data.TaskListNum || !data.Descript || !data.UserNum) {
|
|
60
|
+
throw new Error("Invalid parameter: TaskListNum, Descript, and UserNum are required.");
|
|
61
|
+
}
|
|
62
|
+
return this.httpClient.post("/tasks", data);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Updates an existing task.
|
|
66
|
+
* Note: updating Descript automatically resets a "Done" task status back to "Viewed".
|
|
67
|
+
* @param {UpdateTaskParams} data - Update parameters.
|
|
68
|
+
* @param {number} data.TaskNum - Required. Primary key of the task to update.
|
|
69
|
+
* @param {string} [data.Descript] - Optional. Overwrites existing description; resets "Done" to "Viewed".
|
|
70
|
+
* @param {"New" | "Viewed" | "Done"} [data.TaskStatus] - Optional. Updated status. Added v24.2.10.
|
|
71
|
+
* @param {number} [data.KeyNum] - Optional. FK to patient.PatNum or appointment.AptNum.
|
|
72
|
+
* @param {"None" | "Patient" | "Appointment"} [data.ObjectType] - Optional. Updated object type.
|
|
73
|
+
* @param {string} [data.DateTimeEntry] - Optional. Format: "yyyy-MM-dd HH:mm:ss".
|
|
74
|
+
* @param {number} [data.PriorityDefNum] - Optional. FK to definition.DefNum (Category=33).
|
|
75
|
+
* @param {string} [data.DescriptOverride] - Optional. Max 256 characters.
|
|
76
|
+
* @param {number} [data.Category] - Optional. FK to definition.DefNum (Category=54). Requires TaskCategoryShow pref.
|
|
77
|
+
* @returns {Promise<TaskItem>} The updated Task object.
|
|
78
|
+
* @throws {Error} If TaskNum is not provided.
|
|
79
|
+
* @see https://www.opendental.com/site/apitasks.html
|
|
80
|
+
*/
|
|
81
|
+
async updateTask(data) {
|
|
82
|
+
if (!data.TaskNum) {
|
|
83
|
+
throw new Error("Invalid parameter: TaskNum is required.");
|
|
84
|
+
}
|
|
85
|
+
const { TaskNum, ...body } = data;
|
|
86
|
+
return this.httpClient.put(`/tasks/${TaskNum}`, body);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.default = Tasks;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import HttpClient from "../utils/httpClient";
|
|
2
|
+
import { ToothInitialItem, GetToothInitialsParams, CreateToothInitialParams } from "../types/toothInitialTypes";
|
|
3
|
+
export default class ToothInitials {
|
|
4
|
+
private httpClient;
|
|
5
|
+
constructor(httpClient: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves all tooth initial records, optionally filtered by patient.
|
|
8
|
+
* @param {GetToothInitialsParams} [params] - Optional filtering parameters.
|
|
9
|
+
* @param {number} [params.PatNum] - Optional. FK to patient.PatNum; filters results to a single patient.
|
|
10
|
+
* @param {number} [params.Offset] - Pagination offset. Use with Limit for paginating large result sets.
|
|
11
|
+
* @param {number} [params.Limit] - Maximum number of results to return per request. Defaults to 1000 (the hard limit).
|
|
12
|
+
* @param {string} [params.DateFormatString] - Optional date format override (e.g. "MM/dd/yyyy"). Default: "yyyy-MM-dd". Added in version 22.2.26.
|
|
13
|
+
* @param {string} [params.DateTimeFormatString] - Optional datetime format override (e.g. "MM/dd/yyyy HH:mm:ss"). Default: "yyyy-MM-dd HH:mm:ss". Added in version 22.2.14.
|
|
14
|
+
* @returns {Promise<ToothInitialItem[]>} - Array of tooth initial records.
|
|
15
|
+
* @see https://www.opendental.com/site/apitoothInitials.html
|
|
16
|
+
*/
|
|
17
|
+
getToothInitials({ PatNum, Limit, DateFormatString, DateTimeFormatString, }?: GetToothInitialsParams): Promise<ToothInitialItem[]>;
|
|
18
|
+
/**
|
|
19
|
+
* Creates a new tooth initial record for a patient.
|
|
20
|
+
* Only InitialType values "Missing", "Hidden", and "Primary" are supported via the API.
|
|
21
|
+
* @param {CreateToothInitialParams} data - Required body parameters.
|
|
22
|
+
* @param {number} data.PatNum - Required. FK to patient.PatNum.
|
|
23
|
+
* @param {string} data.ToothNum - Required. Single tooth number: 1–32 (permanent) or A–T (primary/deciduous).
|
|
24
|
+
* @param {"Missing" | "Hidden" | "Primary"} data.InitialType - Required. Type classification; API only supports "Missing", "Hidden", "Primary".
|
|
25
|
+
* @returns {Promise<ToothInitialItem>} - The created record with all fields populated.
|
|
26
|
+
* @throws {Error} - If PatNum, ToothNum, or InitialType is missing.
|
|
27
|
+
* @see https://www.opendental.com/site/apitoothInitials.html
|
|
28
|
+
*/
|
|
29
|
+
createToothInitial(data: CreateToothInitialParams): Promise<ToothInitialItem>;
|
|
30
|
+
/**
|
|
31
|
+
* Removes an existing tooth initial record.
|
|
32
|
+
* @param {number} ToothInitialNum - Required. Primary key of the record to delete.
|
|
33
|
+
* @returns {Promise<void>}
|
|
34
|
+
* @throws {Error} - If ToothInitialNum is not a valid number.
|
|
35
|
+
* @see https://www.opendental.com/site/apitoothInitials.html
|
|
36
|
+
*/
|
|
37
|
+
deleteToothInitial(ToothInitialNum: number): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=toothInitials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toothInitials.d.ts","sourceRoot":"","sources":["../../src/api/toothInitials.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;;;;;;OAUG;IACU,gBAAgB,CAAC,EAAE,MAAM,EACpC,KAAK,EACL,gBAAgB,EAChB,oBAAoB,GACvB,GAAE,sBAA2B,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAS1D;;;;;;;;;;OAUG;IACU,kBAAkB,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAc1F;;;;;;OAMG;IACU,kBAAkB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAOxE"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class ToothInitials {
|
|
4
|
+
httpClient;
|
|
5
|
+
constructor(httpClient) {
|
|
6
|
+
this.httpClient = httpClient;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves all tooth initial records, optionally filtered by patient.
|
|
10
|
+
* @param {GetToothInitialsParams} [params] - Optional filtering parameters.
|
|
11
|
+
* @param {number} [params.PatNum] - Optional. FK to patient.PatNum; filters results to a single patient.
|
|
12
|
+
* @param {number} [params.Offset] - Pagination offset. Use with Limit for paginating large result sets.
|
|
13
|
+
* @param {number} [params.Limit] - Maximum number of results to return per request. Defaults to 1000 (the hard limit).
|
|
14
|
+
* @param {string} [params.DateFormatString] - Optional date format override (e.g. "MM/dd/yyyy"). Default: "yyyy-MM-dd". Added in version 22.2.26.
|
|
15
|
+
* @param {string} [params.DateTimeFormatString] - Optional datetime format override (e.g. "MM/dd/yyyy HH:mm:ss"). Default: "yyyy-MM-dd HH:mm:ss". Added in version 22.2.14.
|
|
16
|
+
* @returns {Promise<ToothInitialItem[]>} - Array of tooth initial records.
|
|
17
|
+
* @see https://www.opendental.com/site/apitoothInitials.html
|
|
18
|
+
*/
|
|
19
|
+
async getToothInitials({ PatNum, Limit, DateFormatString, DateTimeFormatString, } = {}) {
|
|
20
|
+
return this.httpClient.get("/toothinitials", {
|
|
21
|
+
PatNum,
|
|
22
|
+
Limit,
|
|
23
|
+
DateFormatString,
|
|
24
|
+
DateTimeFormatString,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Creates a new tooth initial record for a patient.
|
|
29
|
+
* Only InitialType values "Missing", "Hidden", and "Primary" are supported via the API.
|
|
30
|
+
* @param {CreateToothInitialParams} data - Required body parameters.
|
|
31
|
+
* @param {number} data.PatNum - Required. FK to patient.PatNum.
|
|
32
|
+
* @param {string} data.ToothNum - Required. Single tooth number: 1–32 (permanent) or A–T (primary/deciduous).
|
|
33
|
+
* @param {"Missing" | "Hidden" | "Primary"} data.InitialType - Required. Type classification; API only supports "Missing", "Hidden", "Primary".
|
|
34
|
+
* @returns {Promise<ToothInitialItem>} - The created record with all fields populated.
|
|
35
|
+
* @throws {Error} - If PatNum, ToothNum, or InitialType is missing.
|
|
36
|
+
* @see https://www.opendental.com/site/apitoothInitials.html
|
|
37
|
+
*/
|
|
38
|
+
async createToothInitial(data) {
|
|
39
|
+
if (!data.PatNum) {
|
|
40
|
+
throw new Error("Invalid parameter: PatNum is required.");
|
|
41
|
+
}
|
|
42
|
+
if (!data.ToothNum) {
|
|
43
|
+
throw new Error("Invalid parameter: ToothNum is required.");
|
|
44
|
+
}
|
|
45
|
+
if (!data.InitialType) {
|
|
46
|
+
throw new Error("Invalid parameter: InitialType is required.");
|
|
47
|
+
}
|
|
48
|
+
return this.httpClient.post("/toothinitials", data);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Removes an existing tooth initial record.
|
|
52
|
+
* @param {number} ToothInitialNum - Required. Primary key of the record to delete.
|
|
53
|
+
* @returns {Promise<void>}
|
|
54
|
+
* @throws {Error} - If ToothInitialNum is not a valid number.
|
|
55
|
+
* @see https://www.opendental.com/site/apitoothInitials.html
|
|
56
|
+
*/
|
|
57
|
+
async deleteToothInitial(ToothInitialNum) {
|
|
58
|
+
if (!ToothInitialNum || typeof ToothInitialNum !== "number") {
|
|
59
|
+
throw new Error("Invalid parameter: ToothInitialNum must be a valid number.");
|
|
60
|
+
}
|
|
61
|
+
return this.httpClient.delete(`/toothinitials/${ToothInitialNum}`);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.default = ToothInitials;
|
|
@@ -7,10 +7,13 @@ export default class TreatPlanAttaches {
|
|
|
7
7
|
* Get a list of TreatPlanAttaches that meet a set of search criteria.
|
|
8
8
|
* @param {Object} params - The parameters for filtering and pagination.
|
|
9
9
|
* @param {string} params.TreatPlanNum - treatplan.TreatPlanNum
|
|
10
|
-
|
|
10
|
+
* @param {number} [params.Offset] - Pagination offset. Use with Limit for paginating large result sets.
|
|
11
|
+
* @param {number} [params.Limit] - Maximum number of results to return per request. Defaults to 1000 (the hard limit).
|
|
12
|
+
* @param {string} [params.DateFormatString] - Optional date format override (e.g. "MM/dd/yyyy"). Default: "yyyy-MM-dd". Added in version 22.2.26.
|
|
13
|
+
* @param {string} [params.DateTimeFormatString] - Optional datetime format override (e.g. "MM/dd/yyyy HH:mm:ss"). Default: "yyyy-MM-dd HH:mm:ss". Added in version 22.2.14.
|
|
11
14
|
* @returns {Promise<TreatPlanAttach[]>} - An array of TreatPlanAttach objects.
|
|
12
15
|
*/
|
|
13
|
-
getTreatPlanAttaches({ TreatPlanNum, Offset, }?: GetTreatPlanAttachesParams): Promise<TreatPlanAttach[]>;
|
|
16
|
+
getTreatPlanAttaches({ TreatPlanNum, Offset, Limit, DateFormatString, DateTimeFormatString, }?: GetTreatPlanAttachesParams): Promise<TreatPlanAttach[]>;
|
|
14
17
|
/**
|
|
15
18
|
* Create a new TreatPlanAttaches.
|
|
16
19
|
* @param {Object} data - Data for the new TreatPlanAttaches object.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treatplanattaches.d.ts","sourceRoot":"","sources":["../../src/api/treatplanattaches.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACH,eAAe,EACf,0BAA0B,EAC1B,6BAA6B,EAC7B,6BAA6B,EAChC,MAAM,+BAA+B,CAAC;AAEvC,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,OAAO,CAAC,UAAU,CAAa;gBAEjB,UAAU,EAAE,UAAU;IAIlC
|
|
1
|
+
{"version":3,"file":"treatplanattaches.d.ts","sourceRoot":"","sources":["../../src/api/treatplanattaches.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACH,eAAe,EACf,0BAA0B,EAC1B,6BAA6B,EAC7B,6BAA6B,EAChC,MAAM,+BAA+B,CAAC;AAEvC,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,OAAO,CAAC,UAAU,CAAa;gBAEjB,UAAU,EAAE,UAAU;IAIlC;;;;;;;;;OASG;IACU,oBAAoB,CAAC,EAC9B,YAAY,EACZ,MAAM,EACN,KAAK,EACL,gBAAgB,EAChB,oBAAoB,GAC3B,GAAE,0BAA+B,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAa1D;;;;;;;;MAQE;IACU,mBAAmB,CAAC,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,eAAe,CAAC;IAQ/F;;;;;;;OAOG;IACU,mBAAmB,CAAC,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,eAAe,CAAC;CAOlG"}
|