@rinse-dental/open-dental 1.0.2 → 1.0.3
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.
|
@@ -22,7 +22,7 @@ export default class DiscountPlanSubs {
|
|
|
22
22
|
* @returns {Promise<DiscountPlanSub>} - The created discount plan sub.
|
|
23
23
|
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
24
24
|
*/
|
|
25
|
-
createDiscountPlanSub(
|
|
25
|
+
createDiscountPlanSub({ DiscountPlanNum, PatNum, DateEffective, DateTerm, SubNote, }: CreateDiscountPlanSubParams): Promise<DiscountPlanSub>;
|
|
26
26
|
/**
|
|
27
27
|
* Update a discount plan sub.
|
|
28
28
|
* @param {Object} data - The details of the discount sub to update.
|
|
@@ -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;
|
|
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,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,eAAe,CAAC;IAQ/F;;;;;OAKG;IACU,qBAAqB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAO1E"}
|
|
@@ -30,11 +30,17 @@ class DiscountPlanSubs {
|
|
|
30
30
|
* @returns {Promise<DiscountPlanSub>} - The created discount plan sub.
|
|
31
31
|
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
32
32
|
*/
|
|
33
|
-
async createDiscountPlanSub(
|
|
34
|
-
if (!
|
|
33
|
+
async createDiscountPlanSub({ DiscountPlanNum, PatNum, DateEffective, DateTerm, SubNote, }) {
|
|
34
|
+
if (!DiscountPlanNum || !PatNum) {
|
|
35
35
|
throw new Error("Invalid data: DiscountPlanNum and PatNum are required.");
|
|
36
36
|
}
|
|
37
|
-
return this.httpClient.post("/discountplansubs",
|
|
37
|
+
return this.httpClient.post("/discountplansubs", {
|
|
38
|
+
DiscountPlanNum,
|
|
39
|
+
PatNum,
|
|
40
|
+
DateEffective,
|
|
41
|
+
DateTerm,
|
|
42
|
+
SubNote,
|
|
43
|
+
});
|
|
38
44
|
}
|
|
39
45
|
/**
|
|
40
46
|
* Update a discount plan sub.
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
CreateDiscountPlanSubParams,
|
|
6
6
|
UpdateDiscountPlanSubParams,
|
|
7
7
|
} from "../types/discountPlanSubTypes";
|
|
8
|
+
import { createProcedureLogParams } from "../types/procedurelogTypes";
|
|
8
9
|
|
|
9
10
|
export default class DiscountPlanSubs {
|
|
10
11
|
private httpClient: HttpClient;
|
|
@@ -43,12 +44,24 @@ export default class DiscountPlanSubs {
|
|
|
43
44
|
* @returns {Promise<DiscountPlanSub>} - The created discount plan sub.
|
|
44
45
|
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
45
46
|
*/
|
|
46
|
-
public async createDiscountPlanSub(
|
|
47
|
-
|
|
47
|
+
public async createDiscountPlanSub({
|
|
48
|
+
DiscountPlanNum,
|
|
49
|
+
PatNum,
|
|
50
|
+
DateEffective,
|
|
51
|
+
DateTerm,
|
|
52
|
+
SubNote,
|
|
53
|
+
} : CreateDiscountPlanSubParams): Promise<DiscountPlanSub> {
|
|
54
|
+
if (!DiscountPlanNum || !PatNum) {
|
|
48
55
|
throw new Error("Invalid data: DiscountPlanNum and PatNum are required.");
|
|
49
56
|
}
|
|
50
57
|
|
|
51
|
-
return this.httpClient.post<DiscountPlanSub>("/discountplansubs",
|
|
58
|
+
return this.httpClient.post<DiscountPlanSub>("/discountplansubs", {
|
|
59
|
+
DiscountPlanNum,
|
|
60
|
+
PatNum,
|
|
61
|
+
DateEffective,
|
|
62
|
+
DateTerm,
|
|
63
|
+
SubNote,
|
|
64
|
+
});
|
|
52
65
|
}
|
|
53
66
|
|
|
54
67
|
/**
|