@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.
- package/dist/api/discountPlanSubs.d.ts +2 -3
- package/dist/api/discountPlanSubs.d.ts.map +1 -1
- package/dist/api/discountPlanSubs.js +2 -4
- package/dist/api/familyModules.d.ts +2 -2
- package/dist/api/familyModules.d.ts.map +1 -1
- package/dist/api/familyModules.js +1 -1
- package/dist/types/discountPlanSubTypes.d.ts +0 -1
- package/dist/types/discountPlanSubTypes.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/discountPlanSubs.ts +3 -6
- package/src/api/familyModules.ts +4 -3
- package/src/types/discountPlanSubTypes.ts +0 -1
|
@@ -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
|
-
* @
|
|
11
|
-
* @returns {Promise<DiscountPlanSub[]>} - A list of discountplansubs.
|
|
10
|
+
* @returns {Promise<DiscountPlanSub>} - A list of discountplansubs.
|
|
12
11
|
*/
|
|
13
|
-
getDiscountPlanSubs({ PatNum,
|
|
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
|
|
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
|
-
* @
|
|
13
|
-
* @returns {Promise<DiscountPlanSub[]>} - A list of discountplansubs.
|
|
12
|
+
* @returns {Promise<DiscountPlanSub>} - A list of discountplansubs.
|
|
14
13
|
*/
|
|
15
|
-
async getDiscountPlanSubs({ PatNum,
|
|
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;
|
|
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) {
|
|
@@ -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;
|
|
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
|
@@ -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
|
-
* @
|
|
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
|
-
|
|
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
|
|
30
|
+
return this.httpClient.get<DiscountPlanSub>("/discountplansubs", params);
|
|
34
31
|
}
|
|
35
32
|
|
|
36
33
|
/**
|
package/src/api/familyModules.ts
CHANGED
|
@@ -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
|
-
|
|
26
|
+
|
|
27
|
+
return this.httpClient.get<Insurance[]>(`/familymodules/${PatNum}/Insurance`);
|
|
27
28
|
}
|
|
28
29
|
}
|