@rinse-dental/open-dental 1.7.1 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -71,7 +71,7 @@ class Appointments {
71
71
  * @returns {Promise<AppointmentSlot[]>} - A list of available slots.
72
72
  */
73
73
  async getSlots(params) {
74
- return this.httpClient.get("/appointments/slots", params);
74
+ return this.httpClient.get("/appointments/Slots", params);
75
75
  }
76
76
  /**
77
77
  * Fetch WebSched appointment slots.
@@ -89,7 +89,7 @@ class Appointments {
89
89
  if (!params.ClinicNum) {
90
90
  throw new Error("ClinicNum is required when Clinics are enabled.");
91
91
  }
92
- return this.httpClient.get("/appointments/slotswebsched", params);
92
+ return this.httpClient.get("/appointments/SlotsWebSched", params);
93
93
  }
94
94
  /**
95
95
  * Fetch WebSched appointments.
@@ -102,7 +102,7 @@ class Appointments {
102
102
  * @returns {Promise<Appointment[]>} - A list of WebSched appointments.
103
103
  */
104
104
  async getWebSchedAppointments(params) {
105
- return this.httpClient.get("/appointments/websched", params);
105
+ return this.httpClient.get("/appointments/WebSched", params);
106
106
  }
107
107
  /**
108
108
  * Create a new appointment.
@@ -155,7 +155,7 @@ class Appointments {
155
155
  if (!data.PatNum || (!data.AppointmentTypeNum && (!data.procNums || data.procNums.length === 0))) {
156
156
  throw new Error("PatNum and either AppointmentTypeNum or procNums are required.");
157
157
  }
158
- return this.httpClient.post("/appointments/planned", data);
158
+ return this.httpClient.post("/appointments/Planned", data);
159
159
  }
160
160
  /**
161
161
  * Schedule a planned appointment.
@@ -173,7 +173,7 @@ class Appointments {
173
173
  if (!data.AptNum || !data.AptDateTime || !data.ProvNum || !data.Op) {
174
174
  throw new Error("AptNum, AptDateTime, ProvNum, and Op are required.");
175
175
  }
176
- return this.httpClient.post("/appointments/scheduleplanned", data);
176
+ return this.httpClient.post("/appointments/SchedulePlanned", data);
177
177
  }
178
178
  /**
179
179
  * Schedule a WebSched appointment.
@@ -196,7 +196,7 @@ class Appointments {
196
196
  !data.defNumApptType) {
197
197
  throw new Error("PatNum, DateTimeStart, DateTimeEnd, ProvNum, OpNum, and defNumApptType are required.");
198
198
  }
199
- return this.httpClient.post("/appointments/websched", data);
199
+ return this.httpClient.post("/appointments/WebSched", data);
200
200
  }
201
201
  /**
202
202
  * Update an existing appointment.
@@ -241,7 +241,7 @@ class Appointments {
241
241
  if (!data.AptNum || !data.sendToUnscheduledList) {
242
242
  throw new Error("AptNum and sendToUnscheduledList are required.");
243
243
  }
244
- return this.httpClient.put(`/appointments/${data.AptNum}/break`, data);
244
+ return this.httpClient.put(`/appointments/${data.AptNum}/Break`, data);
245
245
  }
246
246
  /**
247
247
  * Update the note for an existing appointment.
@@ -254,7 +254,7 @@ class Appointments {
254
254
  if (!AptNum || !Note) {
255
255
  throw new Error("AptNum and Note are required.");
256
256
  }
257
- return this.httpClient.put(`/appointments/${AptNum}/note`, { Note });
257
+ return this.httpClient.put(`/appointments/${AptNum}/Note`, { Note });
258
258
  }
259
259
  /**
260
260
  * Confirm an existing appointment.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rinse-dental/open-dental",
3
- "version": "1.7.1",
3
+ "version": "1.8.0",
4
4
  "description": "A TypeScript library for easily accessing Open Dental APIs.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/release.sh CHANGED
@@ -40,7 +40,7 @@ git push origin "$NEW_TAG"
40
40
  gh release create "$NEW_TAG" --title "Release $NEW_TAG" --notes "$COMMIT_MSG"
41
41
 
42
42
 
43
- #example ./release.sh "added adjustments to index" patch
43
+ #example ./release.sh "updated axios error return" patch
44
44
  #example ./release.sh "Added procedure codes" minor
45
45
  #example ./release.sh "Some commit message" major
46
- #npm token: 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
46
+ #npm token: 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
@@ -103,7 +103,7 @@ public async getAppointments({
103
103
  * @returns {Promise<AppointmentSlot[]>} - A list of available slots.
104
104
  */
105
105
  public async getSlots(params?: GetSlotsParams): Promise<AppointmentSlot[]> {
106
- return this.httpClient.get<AppointmentSlot[]>("/appointments/slots", params);
106
+ return this.httpClient.get<AppointmentSlot[]>("/appointments/Slots", params);
107
107
  }
108
108
 
109
109
  /**
@@ -122,7 +122,7 @@ public async getAppointments({
122
122
  if (!params.ClinicNum) {
123
123
  throw new Error("ClinicNum is required when Clinics are enabled.");
124
124
  }
125
- return this.httpClient.get<AppointmentSlot[]>("/appointments/slotswebsched", params);
125
+ return this.httpClient.get<AppointmentSlot[]>("/appointments/SlotsWebSched", params);
126
126
  }
127
127
 
128
128
  /**
@@ -138,7 +138,7 @@ public async getAppointments({
138
138
  public async getWebSchedAppointments(
139
139
  params?: GetWebSchedAppointmentsParams
140
140
  ): Promise<Appointment[]> {
141
- return this.httpClient.get<Appointment[]>("/appointments/websched", params);
141
+ return this.httpClient.get<Appointment[]>("/appointments/WebSched", params);
142
142
  }
143
143
 
144
144
  /**
@@ -196,7 +196,7 @@ public async getAppointments({
196
196
  throw new Error("PatNum and either AppointmentTypeNum or procNums are required.");
197
197
  }
198
198
 
199
- return this.httpClient.post<Appointment>("/appointments/planned", data);
199
+ return this.httpClient.post<Appointment>("/appointments/Planned", data);
200
200
  }
201
201
 
202
202
 
@@ -219,7 +219,7 @@ public async getAppointments({
219
219
  throw new Error("AptNum, AptDateTime, ProvNum, and Op are required.");
220
220
  }
221
221
 
222
- return this.httpClient.post<Appointment>("/appointments/scheduleplanned", data);
222
+ return this.httpClient.post<Appointment>("/appointments/SchedulePlanned", data);
223
223
  }
224
224
 
225
225
  /**
@@ -250,7 +250,7 @@ public async getAppointments({
250
250
  );
251
251
  }
252
252
 
253
- return this.httpClient.post<Appointment>("/appointments/websched", data);
253
+ return this.httpClient.post<Appointment>("/appointments/WebSched", data);
254
254
  }
255
255
 
256
256
  /**
@@ -299,7 +299,7 @@ public async getAppointments({
299
299
  throw new Error("AptNum and sendToUnscheduledList are required.");
300
300
  }
301
301
 
302
- return this.httpClient.put<void>(`/appointments/${data.AptNum}/break`, data);
302
+ return this.httpClient.put<void>(`/appointments/${data.AptNum}/Break`, data);
303
303
  }
304
304
 
305
305
  /**
@@ -314,7 +314,7 @@ public async getAppointments({
314
314
  throw new Error("AptNum and Note are required.");
315
315
  }
316
316
 
317
- return this.httpClient.put<void>(`/appointments/${AptNum}/note`, { Note });
317
+ return this.httpClient.put<void>(`/appointments/${AptNum}/Note`, { Note });
318
318
  }
319
319
 
320
320
  /**