@rinse-dental/open-dental 1.0.6 → 1.0.8

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.
@@ -7,10 +7,9 @@ export default class DiscountPlanSubs {
7
7
  * Fetch multiple discountplansubs with optional filtering and pagination.
8
8
  * @param {Object} params - The parameters for filtering and pagination.
9
9
  * @param {number} [params.PatNum] - Filter by patient.
10
- * @param {number} [params.Offset] - Pagination offset for results.
11
- * @returns {Promise<DiscountPlanSub[]>} - A list of discountplansubs.
10
+ * @returns {Promise<DiscountPlanSub>} - A list of discountplansubs.
12
11
  */
13
- getDiscountPlanSubs({ PatNum, Offset, }?: GetDiscountPlanSubsParams): Promise<DiscountPlanSub[]>;
12
+ getDiscountPlanSubs({ PatNum, }?: GetDiscountPlanSubsParams): Promise<DiscountPlanSub>;
14
13
  /**
15
14
  * Create a new discount plan sub.
16
15
  * @param {Object} data - The details of discount plan sub to create.
@@ -1 +1 @@
1
- {"version":3,"file":"discountPlanSubs.d.ts","sourceRoot":"","sources":["../../src/api/discountPlanSubs.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,eAAe,EACf,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,+BAA+B,CAAC;AAGvC,MAAM,CAAC,OAAO,OAAO,gBAAgB;IACnC,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;;OAMG;IACU,mBAAmB,CAAC,EAC/B,MAAM,EACN,MAAM,GACP,GAAE,yBAA8B,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAS9D;;;;;;;;;;OAUG;IACU,qBAAqB,CAAC,EACjC,eAAe,EACf,MAAM,EACN,aAAa,EACb,QAAQ,EACR,OAAO,GACR,EAAG,2BAA2B,GAAG,OAAO,CAAC,eAAe,CAAC;IAc1D;;;;;;;;;;OAUG;IACU,qBAAqB,CAAC,EACjC,cAAc,EACd,MAAM,EACN,aAAa,EACb,QAAQ,EACR,OAAO,GACR,EAAE,2BAA2B,GAAG,OAAO,CAAC,eAAe,CAAC;IAazD;;;;;OAKG;IACU,qBAAqB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAO1E"}
1
+ {"version":3,"file":"discountPlanSubs.d.ts","sourceRoot":"","sources":["../../src/api/discountPlanSubs.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,eAAe,EACf,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,+BAA+B,CAAC;AAGvC,MAAM,CAAC,OAAO,OAAO,gBAAgB;IACnC,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;OAKG;IACU,mBAAmB,CAAC,EAC/B,MAAM,GACP,GAAE,yBAA8B,GAAG,OAAO,CAAC,eAAe,CAAC;IAQ5D;;;;;;;;;;OAUG;IACU,qBAAqB,CAAC,EACjC,eAAe,EACf,MAAM,EACN,aAAa,EACb,QAAQ,EACR,OAAO,GACR,EAAG,2BAA2B,GAAG,OAAO,CAAC,eAAe,CAAC;IAc1D;;;;;;;;;;OAUG;IACU,qBAAqB,CAAC,EACjC,cAAc,EACd,MAAM,EACN,aAAa,EACb,QAAQ,EACR,OAAO,GACR,EAAE,2BAA2B,GAAG,OAAO,CAAC,eAAe,CAAC;IAazD;;;;;OAKG;IACU,qBAAqB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAO1E"}
@@ -9,13 +9,11 @@ class DiscountPlanSubs {
9
9
  * Fetch multiple discountplansubs with optional filtering and pagination.
10
10
  * @param {Object} params - The parameters for filtering and pagination.
11
11
  * @param {number} [params.PatNum] - Filter by patient.
12
- * @param {number} [params.Offset] - Pagination offset for results.
13
- * @returns {Promise<DiscountPlanSub[]>} - A list of discountplansubs.
12
+ * @returns {Promise<DiscountPlanSub>} - A list of discountplansubs.
14
13
  */
15
- async getDiscountPlanSubs({ PatNum, Offset, } = {}) {
14
+ async getDiscountPlanSubs({ PatNum, } = {}) {
16
15
  const params = {
17
16
  PatNum,
18
- Offset,
19
17
  };
20
18
  return this.httpClient.get("/discountplansubs", params);
21
19
  }
@@ -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) {
@@ -16,7 +16,6 @@ export interface DiscountPlanSub {
16
16
  */
17
17
  export interface GetDiscountPlanSubsParams {
18
18
  PatNum?: number;
19
- Offset?: number;
20
19
  }
21
20
  /**
22
21
  * Parameters for creating a discount plan sub.
@@ -1 +1 @@
1
- {"version":3,"file":"discountPlanSubTypes.d.ts","sourceRoot":"","sources":["../../src/types/discountPlanSubTypes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
1
+ {"version":3,"file":"discountPlanSubTypes.d.ts","sourceRoot":"","sources":["../../src/types/discountPlanSubTypes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
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.8",
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",
@@ -18,19 +18,16 @@ export default class DiscountPlanSubs {
18
18
  * Fetch multiple discountplansubs with optional filtering and pagination.
19
19
  * @param {Object} params - The parameters for filtering and pagination.
20
20
  * @param {number} [params.PatNum] - Filter by patient.
21
- * @param {number} [params.Offset] - Pagination offset for results.
22
- * @returns {Promise<DiscountPlanSub[]>} - A list of discountplansubs.
21
+ * @returns {Promise<DiscountPlanSub>} - A list of discountplansubs.
23
22
  */
24
23
  public async getDiscountPlanSubs({
25
24
  PatNum,
26
- Offset,
27
- }: GetDiscountPlanSubsParams = {}): Promise<DiscountPlanSub[]> {
25
+ }: GetDiscountPlanSubsParams = {}): Promise<DiscountPlanSub> {
28
26
  const params = {
29
27
  PatNum,
30
- Offset,
31
28
  };
32
29
 
33
- return this.httpClient.get<DiscountPlanSub[]>("/discountplansubs", params);
30
+ return this.httpClient.get<DiscountPlanSub>("/discountplansubs", params);
34
31
  }
35
32
 
36
33
  /**
@@ -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
  }
@@ -17,7 +17,6 @@ export interface DiscountPlanSub {
17
17
  */
18
18
  export interface GetDiscountPlanSubsParams {
19
19
  PatNum?: number; // FK to patient.PatNum.
20
- Offset?: number; // Pagination offset for results
21
20
  }
22
21
 
23
22
  /**