@rinse-dental/open-dental 2.4.13 → 2.4.15

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.
@@ -6,9 +6,9 @@ export default class SecurityLogs {
6
6
  /**
7
7
  * Fetch multiple SecurityLogs with optional filtering and pagination.
8
8
  * @param {Object} params - The parameters for filtering and pagination.
9
- * @param {number} [params.PermType] - Optional. Filter by permission type (see Audit Trail Permissions doc).
9
+ * @param {string} [params.PermType] - Optional. Filter by permission type (see Audit Trail Permissions doc).
10
10
  * @param {number} [params.Offset] - Optional. Pagination offset for results.
11
- * @returns {Promise<Fee[]>} - A list of securitylogs.
11
+ * @returns {Promise<SecurityLog[]>} - A list of securitylogs.
12
12
  */
13
13
  getSecurityLogs({ PermType, Offset, }?: GetSecurityLogsParams): Promise<SecurityLog[]>;
14
14
  }
@@ -8,9 +8,9 @@ class SecurityLogs {
8
8
  /**
9
9
  * Fetch multiple SecurityLogs with optional filtering and pagination.
10
10
  * @param {Object} params - The parameters for filtering and pagination.
11
- * @param {number} [params.PermType] - Optional. Filter by permission type (see Audit Trail Permissions doc).
11
+ * @param {string} [params.PermType] - Optional. Filter by permission type (see Audit Trail Permissions doc).
12
12
  * @param {number} [params.Offset] - Optional. Pagination offset for results.
13
- * @returns {Promise<Fee[]>} - A list of securitylogs.
13
+ * @returns {Promise<SecurityLog[]>} - A list of securitylogs.
14
14
  */
15
15
  async getSecurityLogs({ PermType, Offset, } = {}) {
16
16
  const params = {
@@ -1 +1 @@
1
- {"version":3,"file":"httpClient.d.ts","sourceRoot":"","sources":["../../src/utils/httpClient.ts"],"names":[],"mappings":"AAEA,cAAM,UAAU;IACd,OAAO,CAAC,MAAM,CAAgB;gBAElB,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAU9C;;;;;OAKG;IACU,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7D;;;;;OAKG;IACU,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI3D;;;;;OAKG;IACU,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI1D;;;;OAIG;IACU,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI/C;;;;;OAKG;YACW,aAAa;IAS3B;;;;OAIG;IACH,OAAO,CAAC,WAAW;CA8BpB;AAED,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"httpClient.d.ts","sourceRoot":"","sources":["../../src/utils/httpClient.ts"],"names":[],"mappings":"AAEA,cAAM,UAAU;IACd,OAAO,CAAC,MAAM,CAAgB;gBAElB,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAU9C;;;;;OAKG;IACU,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI7D;;;;;OAKG;IACU,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI3D;;;;;OAKG;IACU,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI1D;;;;OAIG;IACU,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI/C;;;;;OAKG;YACW,aAAa;IAS3B;;;;OAIG;IACH,OAAO,CAAC,WAAW;CAkCpB;AAED,eAAe,UAAU,CAAC"}
@@ -75,11 +75,14 @@ class HttpClient {
75
75
  if (error.response) {
76
76
  // The server responded with a status code outside 2xx
77
77
  const { status, data } = error.response;
78
- console.error("API Response Error:", {
79
- status,
80
- data,
81
- headers: error.response.headers,
82
- });
78
+ // Only log if not 404
79
+ if (status !== 404) {
80
+ console.error("API Response Error:", {
81
+ status,
82
+ data,
83
+ headers: error.response.headers,
84
+ });
85
+ }
83
86
  throw error.response;
84
87
  /*throw new Error(
85
88
  `API Error (Status ${status}): ${data?.message || JSON.stringify(data)}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rinse-dental/open-dental",
3
- "version": "2.4.13",
3
+ "version": "2.4.15",
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",
@@ -14,9 +14,9 @@ export default class SecurityLogs {
14
14
  /**
15
15
  * Fetch multiple SecurityLogs with optional filtering and pagination.
16
16
  * @param {Object} params - The parameters for filtering and pagination.
17
- * @param {number} [params.PermType] - Optional. Filter by permission type (see Audit Trail Permissions doc).
17
+ * @param {string} [params.PermType] - Optional. Filter by permission type (see Audit Trail Permissions doc).
18
18
  * @param {number} [params.Offset] - Optional. Pagination offset for results.
19
- * @returns {Promise<Fee[]>} - A list of securitylogs.
19
+ * @returns {Promise<SecurityLog[]>} - A list of securitylogs.
20
20
  */
21
21
  public async getSecurityLogs({
22
22
  PermType,
@@ -77,11 +77,15 @@ class HttpClient {
77
77
  if (error.response) {
78
78
  // The server responded with a status code outside 2xx
79
79
  const { status, data } = error.response;
80
- console.error("API Response Error:", {
81
- status,
82
- data,
83
- headers: error.response.headers,
84
- });
80
+
81
+ // Only log if not 404
82
+ if (status !== 404) {
83
+ console.error("API Response Error:", {
84
+ status,
85
+ data,
86
+ headers: error.response.headers,
87
+ });
88
+ }
85
89
 
86
90
  throw error.response;
87
91
  /*throw new Error(