@rinse-dental/open-dental 0.1.4 → 0.1.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"schedules.d.ts","sourceRoot":"","sources":["../../src/api/schedules.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACH,QAAQ,EACR,kBAAkB,EACrB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,SAAS;IAC5B,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;OAKG;IACU,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAQhE;;;;;;;;;;;;;OAaG;IACY,YAAY,CAAC,EACxB,IAAI,EACJ,SAAS,EACT,OAAO,EACP,SAAS,EACT,cAAc,EACd,OAAO,EACP,WAAW,EACX,MAAM,GAEP,GAAE,kBAAuB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;CAanD"}
1
+ {"version":3,"file":"schedules.d.ts","sourceRoot":"","sources":["../../src/api/schedules.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACH,QAAQ,EACR,kBAAkB,EACrB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,SAAS;IAC5B,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;OAKG;IACU,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAQhE;;;;;;;;;;;;;OAaG;IACU,YAAY,CAAC,EACxB,IAAI,EACJ,SAAS,EACT,OAAO,EACP,SAAS,EACT,cAAc,EACd,OAAO,EACP,WAAW,EACX,MAAM,GAEP,GAAE,kBAAuB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;CAYjD"}
@@ -46,8 +46,8 @@ declare class OpenDental {
46
46
  */
47
47
  static TreatmentPlans(): TreatmentPlans;
48
48
  /**
49
- * Create a new instance of the Schedules API.
50
- */
49
+ * Create a new instance of the Schedules API.
50
+ */
51
51
  static Schedules(): Schedules;
52
52
  }
53
53
  export { OpenDental };
@@ -1 +1 @@
1
- {"version":3,"file":"openDental.d.ts","sourceRoot":"","sources":["../src/openDental.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAC/C,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAGxC,cAAM,UAAU;IACd,OAAO,CAAC,MAAM,CAAC,UAAU,CAAa;IAEtC;;OAEG;WACW,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAWlE;;OAEG;WACa,YAAY;IAQ5B;;OAEG;WACa,QAAQ;IAOxB;;OAEG;WACW,YAAY;IAO1B;;SAEK;WACS,SAAS;IAOvB;;OAEG;WACW,QAAQ;IAOtB;;OAEG;WACW,aAAa;IAO3B;;OAEG;WACW,OAAO;IAOrB;;OAEG;WACW,cAAc;IAO1B;;KAEC;WACa,SAAS;CAQ1B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"openDental.d.ts","sourceRoot":"","sources":["../src/openDental.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAC/C,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAGxC,cAAM,UAAU;IACd,OAAO,CAAC,MAAM,CAAC,UAAU,CAAa;IAEtC;;OAEG;WACW,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAWlE;;OAEG;WACa,YAAY;IAQ5B;;OAEG;WACa,QAAQ;IAOxB;;OAEG;WACW,YAAY;IAO1B;;SAEK;WACS,SAAS;IAOvB;;OAEG;WACW,QAAQ;IAOtB;;OAEG;WACW,aAAa;IAO3B;;OAEG;WACW,OAAO;IAOrB;;OAEG;WACW,cAAc;IAO5B;;OAEG;WACa,SAAS;CAQ1B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -100,8 +100,8 @@ class OpenDental {
100
100
  return new treatplans_1.default(this.httpClient);
101
101
  }
102
102
  /**
103
- * Create a new instance of the Schedules API.
104
- */
103
+ * Create a new instance of the Schedules API.
104
+ */
105
105
  static Schedules() {
106
106
  if (!this.httpClient) {
107
107
  throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
@@ -15,6 +15,10 @@ export interface Schedule {
15
15
  operatories?: string;
16
16
  EmployeeNum?: string;
17
17
  }
18
+ /**
19
+ * Parameters for fetching multiple patients.
20
+ * @see https://www.opendental.com/site/apischedules.html
21
+ */
18
22
  export interface GetSchedulesParams {
19
23
  date?: string;
20
24
  dateStart?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"scheduleTypes.d.ts","sourceRoot":"","sources":["../../src/types/scheduleTypes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACrB,WAAW,CAAC,E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B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAEH;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,cAAc,CAAC;IAC/E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rinse-dental/open-dental",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
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",
@@ -20,10 +20,10 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/jest": "^29.5.14",
23
- "@types/node": "^22.9.3",
23
+ "@types/node": "^22.13.1",
24
24
  "jest": "^29.7.0",
25
- "prettier": "^3.3.3",
26
- "typescript": "^5.7.2"
25
+ "prettier": "^3.5.0",
26
+ "typescript": "^5.7.3"
27
27
  },
28
28
  "scripts": {
29
29
  "build": "tsc",
@@ -39,18 +39,17 @@ export default class Schedules {
39
39
  * @returns {Promise<Schedule[]>} - A list of summarized patient data.
40
40
  * @throws {Error} - If the API returns an error.
41
41
  */
42
- public async getSchedules({
43
- date,
44
- dateStart,
45
- dateEnd,
46
- SchedType,
47
- BlockoutDefNum,
48
- ProvNum,
49
- EmployeeNum,
50
- Offset,
51
-
52
- }: GetSchedulesParams = {}): Promise<Schedule[]> {
53
-
42
+ public async getSchedules({
43
+ date,
44
+ dateStart,
45
+ dateEnd,
46
+ SchedType,
47
+ BlockoutDefNum,
48
+ ProvNum,
49
+ EmployeeNum,
50
+ Offset,
51
+
52
+ }: GetSchedulesParams = {}): Promise<Schedule[]> {
54
53
  return await this.httpClient.get<Schedule[]>("/schedules", {
55
54
  date,
56
55
  dateStart,
package/src/openDental.ts CHANGED
@@ -108,7 +108,7 @@ class OpenDental {
108
108
  return new TreatmentPlans(this.httpClient);
109
109
  }
110
110
 
111
- /**
111
+ /**
112
112
  * Create a new instance of the Schedules API.
113
113
  */
114
114
  public static Schedules() {
@@ -16,7 +16,11 @@ export interface Schedule {
16
16
  EmployeeNum?: string; //"YYYY-MM-DD"
17
17
  }
18
18
 
19
- export interface GetSchedulesParams {
19
+ /**
20
+ * Parameters for fetching multiple patients.
21
+ * @see https://www.opendental.com/site/apischedules.html
22
+ */
23
+ export interface GetSchedulesParams {
20
24
  date?: string; //"YYYY-MM-DD", For a single day. Today's date by default.
21
25
  dateStart?: string; //"YYYY-MM-DD" For a date range, inclusive of both dates.
22
26
  dateEnd?: string; //"YYYY-MM-DD" For a date range, inclusive of both dates.