@rinse-dental/open-dental 2.5.0 → 2.5.1

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.
@@ -4,14 +4,10 @@ export default class AppointmentTypes {
4
4
  private httpClient;
5
5
  constructor(httpClient: HttpClient);
6
6
  /**
7
- * Fetch all AppointmentTypes with optional pagination.
8
- * @param {Object} params - Filtering and pagination parameters.
9
- * @param {number} [params.Offset] - Offset for pagination (e.g., skip first N results).
7
+ * Fetch all AppointmentTypes.
10
8
  * @returns {Promise<AppointmentType[]>} - A list of appointment types.
11
9
  * @throws {Error} - If the API returns an error.
12
10
  */
13
- getAppointmentTypes({ Offset }: {
14
- Offset?: number;
15
- }): Promise<AppointmentType[]>;
11
+ getAppointmentTypes(): Promise<AppointmentType[]>;
16
12
  }
17
13
  //# sourceMappingURL=appointmentTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appointmentTypes.d.ts","sourceRoot":"","sources":["../../src/api/appointmentTypes.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,eAAe,EAChB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,CAAC,OAAO,OAAO,gBAAgB;IACnC,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;;OAMG;IACU,mBAAmB,CAAC,EAAE,MAAU,EAAE,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;CAKlG"}
1
+ {"version":3,"file":"appointmentTypes.d.ts","sourceRoot":"","sources":["../../src/api/appointmentTypes.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,eAAe,EAChB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,CAAC,OAAO,OAAO,gBAAgB;IACnC,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;OAIG;IACU,mBAAmB,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;CAG/D"}
@@ -6,16 +6,12 @@ class AppointmentTypes {
6
6
  this.httpClient = httpClient;
7
7
  }
8
8
  /**
9
- * Fetch all AppointmentTypes with optional pagination.
10
- * @param {Object} params - Filtering and pagination parameters.
11
- * @param {number} [params.Offset] - Offset for pagination (e.g., skip first N results).
9
+ * Fetch all AppointmentTypes.
12
10
  * @returns {Promise<AppointmentType[]>} - A list of appointment types.
13
11
  * @throws {Error} - If the API returns an error.
14
12
  */
15
- async getAppointmentTypes({ Offset = 0 }) {
16
- return await this.httpClient.get("/appointmenttypes", {
17
- params: { Offset },
18
- });
13
+ async getAppointmentTypes() {
14
+ return await this.httpClient.get("/appointmenttypes");
19
15
  }
20
16
  }
21
17
  exports.default = AppointmentTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rinse-dental/open-dental",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
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",
@@ -11,15 +11,11 @@ export default class AppointmentTypes {
11
11
  }
12
12
 
13
13
  /**
14
- * Fetch all AppointmentTypes with optional pagination.
15
- * @param {Object} params - Filtering and pagination parameters.
16
- * @param {number} [params.Offset] - Offset for pagination (e.g., skip first N results).
14
+ * Fetch all AppointmentTypes.
17
15
  * @returns {Promise<AppointmentType[]>} - A list of appointment types.
18
16
  * @throws {Error} - If the API returns an error.
19
17
  */
20
- public async getAppointmentTypes({ Offset = 0 }: { Offset?: number }): Promise<AppointmentType[]> {
21
- return await this.httpClient.get<AppointmentType[]>("/appointmenttypes", {
22
- params: { Offset },
23
- });
18
+ public async getAppointmentTypes(): Promise<AppointmentType[]> {
19
+ return await this.httpClient.get<AppointmentType[]>("/appointmenttypes");
24
20
  }
25
21
  }