@rinse-dental/open-dental 1.0.6 → 1.0.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.
@@ -9,9 +9,9 @@ export default class FamilyModules {
9
9
  * Use another API method or a query to get additional details in each table.
10
10
  * This area of the Family Module UI also shows discount plans, which are obtained through DiscountPlanSubs GET.
11
11
  * @param {number} PatNum - FK to patient.PatNum
12
- * @returns {Promise<Insurance>} - The appointment object.
12
+ * @returns {Promise<Insurance[]>} - The appointment object.
13
13
  * @throws {Error} - If `AptNum` is not provided.
14
14
  */
15
- getInsurance(PatNum: number): Promise<Insurance>;
15
+ getInsurance(PatNum: number): Promise<Insurance[]>;
16
16
  }
17
17
  //# sourceMappingURL=familyModules.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"familyModules.d.ts","sourceRoot":"","sources":["../../src/api/familyModules.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,SAAS,EACV,MAAM,4BAA4B,CAAC;AAEpC,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;;;;OAQG;IACU,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;CAM9D"}
1
+ {"version":3,"file":"familyModules.d.ts","sourceRoot":"","sources":["../../src/api/familyModules.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,SAAS,EACV,MAAM,4BAA4B,CAAC;AAEpC,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;;;;OAQG;IACU,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;CAOhE"}
@@ -11,7 +11,7 @@ class FamilyModules {
11
11
  * Use another API method or a query to get additional details in each table.
12
12
  * This area of the Family Module UI also shows discount plans, which are obtained through DiscountPlanSubs GET.
13
13
  * @param {number} PatNum - FK to patient.PatNum
14
- * @returns {Promise<Insurance>} - The appointment object.
14
+ * @returns {Promise<Insurance[]>} - The appointment object.
15
15
  * @throws {Error} - If `AptNum` is not provided.
16
16
  */
17
17
  async getInsurance(PatNum) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rinse-dental/open-dental",
3
- "version": "1.0.6",
3
+ "version": "1.0.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",
@@ -16,13 +16,14 @@ export default class FamilyModules {
16
16
  * Use another API method or a query to get additional details in each table.
17
17
  * This area of the Family Module UI also shows discount plans, which are obtained through DiscountPlanSubs GET.
18
18
  * @param {number} PatNum - FK to patient.PatNum
19
- * @returns {Promise<Insurance>} - The appointment object.
19
+ * @returns {Promise<Insurance[]>} - The appointment object.
20
20
  * @throws {Error} - If `AptNum` is not provided.
21
21
  */
22
- public async getInsurance(PatNum: number): Promise<Insurance> {
22
+ public async getInsurance(PatNum: number): Promise<Insurance[]> {
23
23
  if (!PatNum) {
24
24
  throw new Error("PatNum is required.");
25
25
  }
26
- return this.httpClient.get<Insurance>(`/familymodules/${PatNum}/Insurance`);
26
+
27
+ return this.httpClient.get<Insurance[]>(`/familymodules/${PatNum}/Insurance`);
27
28
  }
28
29
  }