@rinse-dental/open-dental 1.0.4 → 1.0.5

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.
@@ -14,6 +14,7 @@ import Definitions from "./api/definitions";
14
14
  import DiscountPlanSubs from "./api/discountPlanSubs";
15
15
  import FamilyModules from "./api/familyModules";
16
16
  import InsSubs from "./api/insSubs";
17
+ import PatPlans from "./api/patPlans";
17
18
  declare class OpenDental {
18
19
  private static httpClient;
19
20
  /**
@@ -84,6 +85,10 @@ declare class OpenDental {
84
85
  * Create a new instance of the InsSub API.
85
86
  */
86
87
  static InsSubs(): InsSubs;
88
+ /**
89
+ * Create a new instance of the PatPlan API.
90
+ */
91
+ static PatPlans(): PatPlans;
87
92
  }
88
93
  export { OpenDental };
89
94
  //# sourceMappingURL=openDental.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"openDental.d.ts","sourceRoot":"","sources":["../src/openDental.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAC/C,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AACtD,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,OAAO,MAAM,eAAe,CAAC;AA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Aa,MAAM,qBAAqB,CAAC;AAChD,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAEtC,cAAM,UAAU;IACd,OAAO,CAAC,MAAM,CAAC,UAAU,CAAa;IAEtC;;OAEG;WACW,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAWlE;;OAEG;WACa,YAAY;IAQ5B;;OAEG;WACa,QAAQ;IAOxB;;OAEG;WACW,YAAY;IAO1B;;SAEK;WACS,SAAS;IAOvB;;OAEG;WACW,QAAQ;IAOtB;;OAEG;WACW,aAAa;IAO3B;;OAEG;WACW,OAAO;IAOrB;;OAEG;WACW,cAAc;IAO5B;;OAEG;WACa,SAAS;IAOzB;;OAEG;WACa,SAAS;IAOzB;;OAEG;WACa,WAAW;IAO3B;;OAEG;WACa,QAAQ;IAOxB;;OAEG;WACW,WAAW;IAOzB;;OAEG;WACW,gBAAgB;IAO9B;;OAEG;WACW,aAAa;IAO3B;;OAEG;WACW,OAAO;IAOrB;;OAEG;WACW,QAAQ;CAMvB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -21,6 +21,7 @@ const definitions_1 = __importDefault(require("./api/definitions"));
21
21
  const discountPlanSubs_1 = __importDefault(require("./api/discountPlanSubs"));
22
22
  const familyModules_1 = __importDefault(require("./api/familyModules"));
23
23
  const insSubs_1 = __importDefault(require("./api/insSubs"));
24
+ const patPlans_1 = __importDefault(require("./api/patPlans"));
24
25
  class OpenDental {
25
26
  static httpClient;
26
27
  /**
@@ -178,5 +179,14 @@ class OpenDental {
178
179
  }
179
180
  return new insSubs_1.default(this.httpClient);
180
181
  }
182
+ /**
183
+ * Create a new instance of the PatPlan API.
184
+ */
185
+ static PatPlans() {
186
+ if (!this.httpClient) {
187
+ throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
188
+ }
189
+ return new patPlans_1.default(this.httpClient);
190
+ }
181
191
  }
182
192
  exports.OpenDental = OpenDental;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rinse-dental/open-dental",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
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",
package/release.sh ADDED
@@ -0,0 +1,40 @@
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ # Usage: ./release.sh "commit message" [patch|minor|major]
5
+ if [ -z "$1" ]; then
6
+ echo "Usage: ./release.sh 'commit message' [patch|minor|major]"
7
+ exit 1
8
+ fi
9
+
10
+ COMMIT_MSG="$1"
11
+ BUMP_TYPE="${2:-patch}" # default to patch if not provided
12
+
13
+ # Validate bump type
14
+ if [[ "$BUMP_TYPE" != "patch" && "$BUMP_TYPE" != "minor" && "$BUMP_TYPE" != "major" ]]; then
15
+ echo "Invalid bump type. Must be patch, minor, or major."
16
+ exit 1
17
+ fi
18
+
19
+ # Run build
20
+ npm run build
21
+
22
+ # Stage and commit changes
23
+ git add .
24
+ git commit -m "$COMMIT_MSG"
25
+
26
+ # Bump version (this creates a git tag)
27
+ npm version "$BUMP_TYPE"
28
+
29
+ # Pack the release
30
+ npm pack
31
+
32
+ # Get the new tag
33
+ NEW_TAG=$(git describe --tags --abbrev=0)
34
+
35
+ # Push changes and tags
36
+ git push origin main
37
+ git push origin "$NEW_TAG"
38
+
39
+ # Create a GitHub release (requires gh CLI)
40
+ gh release create "$NEW_TAG" --title "Release $NEW_TAG" --notes "$COMMIT_MSG"
package/src/openDental.ts CHANGED
@@ -15,6 +15,7 @@ import Definitions from "./api/definitions";
15
15
  import DiscountPlanSubs from "./api/discountPlanSubs";
16
16
  import FamilyModules from "./api/familyModules";
17
17
  import InsSubs from "./api/insSubs";
18
+ import PatPlans from "./api/patPlans";
18
19
 
19
20
  class OpenDental {
20
21
  private static httpClient: HttpClient;
@@ -193,6 +194,16 @@ class OpenDental {
193
194
  }
194
195
  return new InsSubs(this.httpClient);
195
196
  }
197
+
198
+ /**
199
+ * Create a new instance of the PatPlan API.
200
+ */
201
+ public static PatPlans() {
202
+ if (!this.httpClient) {
203
+ throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
204
+ }
205
+ return new PatPlans(this.httpClient);
206
+ }
196
207
  }
197
208
 
198
209
  export { OpenDental };