@savvycal/appointments-core 0.9.0 → 0.10.0

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/index.d.cts CHANGED
@@ -2609,6 +2609,8 @@ interface components {
2609
2609
  */
2610
2610
  GenericErrorResponse: {
2611
2611
  errors: {
2612
+ /** @description Machine-readable error code (e.g. slot_unavailable, no_available_provider) */
2613
+ code?: string | null;
2612
2614
  /** @description Error message */
2613
2615
  detail: string;
2614
2616
  /** @description HTTP status code */
@@ -12929,13 +12931,21 @@ interface components {
12929
12931
  BlockResponse: {
12930
12932
  data: components["schemas"]["Block"];
12931
12933
  };
12932
- /** JsonErrorResponse */
12934
+ /**
12935
+ * JsonErrorResponse
12936
+ * @description Response schema for validation errors
12937
+ */
12933
12938
  JsonErrorResponse: {
12934
12939
  errors: {
12935
- /** @example null value where string expected */
12940
+ /**
12941
+ * @description Machine-readable error code (e.g. slot_unavailable, no_available_provider, time_range_conflict)
12942
+ * @example slot_unavailable
12943
+ */
12944
+ code?: string | null;
12945
+ /** @example is not available */
12936
12946
  detail: string;
12937
12947
  source: {
12938
- /** @example /data/attributes/petName */
12948
+ /** @example /start_at */
12939
12949
  pointer: string;
12940
12950
  };
12941
12951
  /** @example Invalid value */
package/dist/index.d.ts CHANGED
@@ -2609,6 +2609,8 @@ interface components {
2609
2609
  */
2610
2610
  GenericErrorResponse: {
2611
2611
  errors: {
2612
+ /** @description Machine-readable error code (e.g. slot_unavailable, no_available_provider) */
2613
+ code?: string | null;
2612
2614
  /** @description Error message */
2613
2615
  detail: string;
2614
2616
  /** @description HTTP status code */
@@ -12929,13 +12931,21 @@ interface components {
12929
12931
  BlockResponse: {
12930
12932
  data: components["schemas"]["Block"];
12931
12933
  };
12932
- /** JsonErrorResponse */
12934
+ /**
12935
+ * JsonErrorResponse
12936
+ * @description Response schema for validation errors
12937
+ */
12933
12938
  JsonErrorResponse: {
12934
12939
  errors: {
12935
- /** @example null value where string expected */
12940
+ /**
12941
+ * @description Machine-readable error code (e.g. slot_unavailable, no_available_provider, time_range_conflict)
12942
+ * @example slot_unavailable
12943
+ */
12944
+ code?: string | null;
12945
+ /** @example is not available */
12936
12946
  detail: string;
12937
12947
  source: {
12938
- /** @example /data/attributes/petName */
12948
+ /** @example /start_at */
12939
12949
  pointer: string;
12940
12950
  };
12941
12951
  /** @example Invalid value */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@savvycal/appointments-core",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "description": "JavaScript/TypeScript client library for the SavvyCal Appointments API",
6
6
  "main": "./dist/index.cjs",