cheshirecat-typescript-client 1.7.2 → 1.7.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.
@@ -6,5 +6,12 @@ export declare class HealthCheckEndpoint extends AbstractEndpoint {
6
6
  *
7
7
  * @returns A message indicating that the server is running.
8
8
  */
9
- home(): Promise<any>;
9
+ liveness(): Promise<any>;
10
+ /**
11
+ * This endpoint is used to check the health of the CheshireCat server. It returns a simple message indicating that
12
+ * the server is running.
13
+ *
14
+ * @returns A message indicating that the server is running.
15
+ */
16
+ readiness(): Promise<any>;
10
17
  }
@@ -9,8 +9,18 @@ class HealthCheckEndpoint extends abstract_1.AbstractEndpoint {
9
9
  *
10
10
  * @returns A message indicating that the server is running.
11
11
  */
12
- async home() {
13
- const response = await this.client.getHttpClient().createHttpClient().get("/");
12
+ async liveness() {
13
+ const response = await this.client.getHttpClient().createHttpClient().get("/health/liveness");
14
+ return response.data;
15
+ }
16
+ /**
17
+ * This endpoint is used to check the health of the CheshireCat server. It returns a simple message indicating that
18
+ * the server is running.
19
+ *
20
+ * @returns A message indicating that the server is running.
21
+ */
22
+ async readiness() {
23
+ const response = await this.client.getHttpClient().createHttpClient().get("/health/readiness");
14
24
  return response.data;
15
25
  }
16
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"healthCheck.js","sourceRoot":"","sources":["../../src/endpoints/healthCheck.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAE5C,MAAa,mBAAoB,SAAQ,2BAAgB;IACrD;;;;;OAKG;IACH,KAAK,CAAC,IAAI;QACN,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC,gBAAgB,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC/E,OAAO,QAAQ,CAAC,IAAI,CAAC;IACzB,CAAC;CACJ;AAXD,kDAWC"}
1
+ {"version":3,"file":"healthCheck.js","sourceRoot":"","sources":["../../src/endpoints/healthCheck.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAE5C,MAAa,mBAAoB,SAAQ,2BAAgB;IACrD;;;;;OAKG;IACH,KAAK,CAAC,QAAQ;QACV,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC,gBAAgB,EAAE,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;QAC9F,OAAO,QAAQ,CAAC,IAAI,CAAC;IACzB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS;QACX,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC,gBAAgB,EAAE,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;QAC/F,OAAO,QAAQ,CAAC,IAAI,CAAC;IACzB,CAAC;CACJ;AAtBD,kDAsBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cheshirecat-typescript-client",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "engines": {
5
5
  "node": "22.x"
6
6
  },