@rinse-dental/open-dental 0.1.6 → 0.1.7

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,14 @@ export default class Operatories {
4
4
  private httpClient;
5
5
  constructor(httpClient: HttpClient);
6
6
  /**
7
- * Fetch a single patfield by its ID.
7
+ * Fetch a single operatory by its ID.
8
8
  * @param {number} OperatoryNum - The ID of the patfield.
9
9
  * @returns {Promise<Operatory>} - The patient data.
10
10
  * @throws {Error} - If `PatNum` is not valid or the API returns an error.
11
11
  */
12
- getPatField(OperatoryNum: number): Promise<Operatory>;
12
+ getOperatory(OperatoryNum: number): Promise<Operatory>;
13
13
  /**
14
- * Fetch multiple patients with optional filtering and pagination.
14
+ * Fetch multiple operatories with optional filtering and pagination.
15
15
  * @param {Object} params - Filtering and pagination parameters.
16
16
  * @param {string} [params.ClinicNum] - Filter by clinicnum
17
17
  * @param {string} [params.Offset] - Filter by clinicnum
@@ -1 +1 @@
1
- {"version":3,"file":"operatories.d.ts","sourceRoot":"","sources":["../../src/api/operatories.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACH,SAAS,EACT,oBAAoB,EACvB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,WAAW;IAC9B,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;OAKG;IACU,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAQlE;;;;;;;OAOG;IACY,cAAc,CAAC,EAC1B,SAAS,EACT,MAAM,GACP,GAAE,oBAAyB,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;CAOtD"}
1
+ {"version":3,"file":"operatories.d.ts","sourceRoot":"","sources":["../../src/api/operatories.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACH,SAAS,EACT,oBAAoB,EACvB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,WAAW;IAC9B,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;OAKG;IACU,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAQnE;;;;;;;OAOG;IACY,cAAc,CAAC,EAC1B,SAAS,EACT,MAAM,GACP,GAAE,oBAAyB,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;CAOtD"}
@@ -6,19 +6,19 @@ class Operatories {
6
6
  this.httpClient = httpClient;
7
7
  }
8
8
  /**
9
- * Fetch a single patfield by its ID.
9
+ * Fetch a single operatory by its ID.
10
10
  * @param {number} OperatoryNum - The ID of the patfield.
11
11
  * @returns {Promise<Operatory>} - The patient data.
12
12
  * @throws {Error} - If `PatNum` is not valid or the API returns an error.
13
13
  */
14
- async getPatField(OperatoryNum) {
14
+ async getOperatory(OperatoryNum) {
15
15
  if (!OperatoryNum || typeof OperatoryNum !== "number") {
16
16
  throw new Error("Invalid parameter: PatNum must be a valid number.");
17
17
  }
18
18
  return await this.httpClient.get(`/operatories/${OperatoryNum}`);
19
19
  }
20
20
  /**
21
- * Fetch multiple patients with optional filtering and pagination.
21
+ * Fetch multiple operatories with optional filtering and pagination.
22
22
  * @param {Object} params - Filtering and pagination parameters.
23
23
  * @param {string} [params.ClinicNum] - Filter by clinicnum
24
24
  * @param {string} [params.Offset] - Filter by clinicnum
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rinse-dental/open-dental",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
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",
@@ -12,12 +12,12 @@ export default class Operatories {
12
12
  }
13
13
 
14
14
  /**
15
- * Fetch a single patfield by its ID.
15
+ * Fetch a single operatory by its ID.
16
16
  * @param {number} OperatoryNum - The ID of the patfield.
17
17
  * @returns {Promise<Operatory>} - The patient data.
18
18
  * @throws {Error} - If `PatNum` is not valid or the API returns an error.
19
19
  */
20
- public async getPatField(OperatoryNum: number): Promise<Operatory> {
20
+ public async getOperatory(OperatoryNum: number): Promise<Operatory> {
21
21
  if (!OperatoryNum || typeof OperatoryNum !== "number") {
22
22
  throw new Error("Invalid parameter: PatNum must be a valid number.");
23
23
  }
@@ -26,7 +26,7 @@ export default class Operatories {
26
26
  }
27
27
 
28
28
  /**
29
- * Fetch multiple patients with optional filtering and pagination.
29
+ * Fetch multiple operatories with optional filtering and pagination.
30
30
  * @param {Object} params - Filtering and pagination parameters.
31
31
  * @param {string} [params.ClinicNum] - Filter by clinicnum
32
32
  * @param {string} [params.Offset] - Filter by clinicnum