@savvycal/appointments-core 1.1.0 → 1.1.1

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
@@ -2175,7 +2175,7 @@ interface components {
2175
2175
  * "unix_ts": 1771947000,
2176
2176
  * "utc": "2026-02-23T15:30:00Z"
2177
2177
  * },
2178
- * "errors": [],
2178
+ * "errors": null,
2179
2179
  * "hold_duration": "PT10M",
2180
2180
  * "hold_enabled": true,
2181
2181
  * "hold_until": "2026-02-22T10:10:00Z",
@@ -2468,7 +2468,7 @@ interface components {
2468
2468
  * "unix_ts": 1771947000,
2469
2469
  * "utc": "2026-02-23T15:30:00Z"
2470
2470
  * },
2471
- * "errors": [],
2471
+ * "errors": null,
2472
2472
  * "hold_duration": "PT10M",
2473
2473
  * "hold_enabled": true,
2474
2474
  * "hold_until": "2026-02-22T10:10:00Z",
@@ -2977,7 +2977,7 @@ interface components {
2977
2977
  * "unix_ts": 1771947000,
2978
2978
  * "utc": "2026-02-23T15:30:00Z"
2979
2979
  * },
2980
- * "errors": [],
2980
+ * "errors": null,
2981
2981
  * "hold_duration": "PT10M",
2982
2982
  * "hold_enabled": true,
2983
2983
  * "hold_until": "2026-02-22T10:10:00Z",
@@ -3396,7 +3396,7 @@ interface components {
3396
3396
  * "unix_ts": 1771947000,
3397
3397
  * "utc": "2026-02-23T15:30:00Z"
3398
3398
  * },
3399
- * "errors": [],
3399
+ * "errors": null,
3400
3400
  * "hold_duration": "PT10M",
3401
3401
  * "hold_enabled": true,
3402
3402
  * "hold_until": "2026-02-22T10:10:00Z",
@@ -3732,7 +3732,7 @@ interface components {
3732
3732
  * "unix_ts": 1771947000,
3733
3733
  * "utc": "2026-02-23T15:30:00Z"
3734
3734
  * },
3735
- * "errors": [],
3735
+ * "errors": null,
3736
3736
  * "hold_duration": "PT10M",
3737
3737
  * "hold_enabled": true,
3738
3738
  * "hold_until": "2026-02-22T10:10:00Z",
@@ -7150,7 +7150,7 @@ interface components {
7150
7150
  * "unix_ts": 1771947000,
7151
7151
  * "utc": "2026-02-23T15:30:00Z"
7152
7152
  * },
7153
- * "errors": [],
7153
+ * "errors": null,
7154
7154
  * "hold_until": "2026-02-22T10:10:00Z",
7155
7155
  * "id": "bi_abc123def456abc123def456",
7156
7156
  * "locked_fields": [],
@@ -7166,12 +7166,12 @@ interface components {
7166
7166
  * }
7167
7167
  */
7168
7168
  PublicBookingIntent: {
7169
- /** @description The linked appointment (set when completed) */
7169
+ /** @description The created appointment. Present when status is completed. */
7170
7170
  appointment?: components["schemas"]["PublicAppointment"] | null;
7171
7171
  /** @description The end time of the selected slot */
7172
7172
  end_at?: components["schemas"]["ZonedDateTime"] | null;
7173
- /** @description Validation errors for submitted data in JSON:API format. Empty when no errors exist. */
7174
- errors?: components["schemas"]["JsonError"][];
7173
+ /** @description Validation errors for data provided so far. Fields not yet submitted are not flagged. Null when not computed. */
7174
+ errors?: components["schemas"]["JsonError"][] | null;
7175
7175
  /**
7176
7176
  * Format: date-time
7177
7177
  * @description When the hold expires (UTC)
@@ -7179,10 +7179,10 @@ interface components {
7179
7179
  hold_until?: string | null;
7180
7180
  /** @description The booking intent ID */
7181
7181
  id: string;
7182
- /** @description Fields that are locked and cannot be updated via the public API. Possible values: service_id, provider_id, start_at, end_at, time_zone, client_data. */
7182
+ /** @description Fields that are locked and cannot be updated via the public API. Possible values: service_id, provider_id, start_at, end_at, time_zone, client_data, submissions. */
7183
7183
  locked_fields?: string[];
7184
7184
  /**
7185
- * @description String representing the object's type.
7185
+ * @description The object type
7186
7186
  * @enum {string}
7187
7187
  */
7188
7188
  object: "public_booking_intent";
@@ -7687,7 +7687,7 @@ interface components {
7687
7687
  * "unix_ts": 1771947000,
7688
7688
  * "utc": "2026-02-23T15:30:00Z"
7689
7689
  * },
7690
- * "errors": [],
7690
+ * "errors": null,
7691
7691
  * "hold_until": "2026-02-22T10:10:00Z",
7692
7692
  * "id": "bi_abc123def456abc123def456",
7693
7693
  * "locked_fields": [],
@@ -8316,7 +8316,7 @@ interface components {
8316
8316
  * "unix_ts": 1771947000,
8317
8317
  * "utc": "2026-02-23T15:30:00Z"
8318
8318
  * },
8319
- * "errors": [],
8319
+ * "errors": null,
8320
8320
  * "hold_duration": "PT10M",
8321
8321
  * "hold_enabled": true,
8322
8322
  * "hold_until": "2026-02-22T10:10:00Z",
@@ -9744,7 +9744,7 @@ interface components {
9744
9744
  * "unix_ts": 1771947000,
9745
9745
  * "utc": "2026-02-23T15:30:00Z"
9746
9746
  * },
9747
- * "errors": [],
9747
+ * "errors": null,
9748
9748
  * "hold_duration": "PT10M",
9749
9749
  * "hold_enabled": true,
9750
9750
  * "hold_until": "2026-02-22T10:10:00Z",
@@ -9872,11 +9872,11 @@ interface components {
9872
9872
  * @description When the intent was abandoned
9873
9873
  */
9874
9874
  abandoned_at?: string | null;
9875
- /** @description The linked appointment (set when completed) */
9875
+ /** @description The created appointment. Present when status is completed. */
9876
9876
  appointment?: components["schemas"]["Appointment"] | null;
9877
9877
  /** @description The linked client */
9878
9878
  client?: components["schemas"]["Client"] | null;
9879
- /** @description Progressive client data collected during the booking flow. Sensitive fields (first_name, last_name, email, phone) are redacted unless include_sensitive is true. */
9879
+ /** @description Client data accumulated during the booking flow. Sensitive fields (first_name, last_name, email, phone) are redacted unless include_sensitive is true. */
9880
9880
  client_data?: {
9881
9881
  email?: string | null;
9882
9882
  first_name?: string | null;
@@ -9898,8 +9898,8 @@ interface components {
9898
9898
  created_at: string;
9899
9899
  /** @description The end time of the selected slot */
9900
9900
  end_at?: components["schemas"]["ZonedDateTime"] | null;
9901
- /** @description Validation errors for submitted data in JSON:API format. Empty when no errors exist. Only present on single-resource endpoints (not index). */
9902
- errors?: components["schemas"]["JsonError"][];
9901
+ /** @description Validation errors for data provided so far. Fields not yet submitted are not flagged. Null when not computed. */
9902
+ errors?: components["schemas"]["JsonError"][] | null;
9903
9903
  /** @description The hold duration as an ISO 8601 duration string (e.g., PT10M) */
9904
9904
  hold_duration?: string | null;
9905
9905
  /** @description Whether slot holding is enabled */
package/dist/index.d.ts CHANGED
@@ -2175,7 +2175,7 @@ interface components {
2175
2175
  * "unix_ts": 1771947000,
2176
2176
  * "utc": "2026-02-23T15:30:00Z"
2177
2177
  * },
2178
- * "errors": [],
2178
+ * "errors": null,
2179
2179
  * "hold_duration": "PT10M",
2180
2180
  * "hold_enabled": true,
2181
2181
  * "hold_until": "2026-02-22T10:10:00Z",
@@ -2468,7 +2468,7 @@ interface components {
2468
2468
  * "unix_ts": 1771947000,
2469
2469
  * "utc": "2026-02-23T15:30:00Z"
2470
2470
  * },
2471
- * "errors": [],
2471
+ * "errors": null,
2472
2472
  * "hold_duration": "PT10M",
2473
2473
  * "hold_enabled": true,
2474
2474
  * "hold_until": "2026-02-22T10:10:00Z",
@@ -2977,7 +2977,7 @@ interface components {
2977
2977
  * "unix_ts": 1771947000,
2978
2978
  * "utc": "2026-02-23T15:30:00Z"
2979
2979
  * },
2980
- * "errors": [],
2980
+ * "errors": null,
2981
2981
  * "hold_duration": "PT10M",
2982
2982
  * "hold_enabled": true,
2983
2983
  * "hold_until": "2026-02-22T10:10:00Z",
@@ -3396,7 +3396,7 @@ interface components {
3396
3396
  * "unix_ts": 1771947000,
3397
3397
  * "utc": "2026-02-23T15:30:00Z"
3398
3398
  * },
3399
- * "errors": [],
3399
+ * "errors": null,
3400
3400
  * "hold_duration": "PT10M",
3401
3401
  * "hold_enabled": true,
3402
3402
  * "hold_until": "2026-02-22T10:10:00Z",
@@ -3732,7 +3732,7 @@ interface components {
3732
3732
  * "unix_ts": 1771947000,
3733
3733
  * "utc": "2026-02-23T15:30:00Z"
3734
3734
  * },
3735
- * "errors": [],
3735
+ * "errors": null,
3736
3736
  * "hold_duration": "PT10M",
3737
3737
  * "hold_enabled": true,
3738
3738
  * "hold_until": "2026-02-22T10:10:00Z",
@@ -7150,7 +7150,7 @@ interface components {
7150
7150
  * "unix_ts": 1771947000,
7151
7151
  * "utc": "2026-02-23T15:30:00Z"
7152
7152
  * },
7153
- * "errors": [],
7153
+ * "errors": null,
7154
7154
  * "hold_until": "2026-02-22T10:10:00Z",
7155
7155
  * "id": "bi_abc123def456abc123def456",
7156
7156
  * "locked_fields": [],
@@ -7166,12 +7166,12 @@ interface components {
7166
7166
  * }
7167
7167
  */
7168
7168
  PublicBookingIntent: {
7169
- /** @description The linked appointment (set when completed) */
7169
+ /** @description The created appointment. Present when status is completed. */
7170
7170
  appointment?: components["schemas"]["PublicAppointment"] | null;
7171
7171
  /** @description The end time of the selected slot */
7172
7172
  end_at?: components["schemas"]["ZonedDateTime"] | null;
7173
- /** @description Validation errors for submitted data in JSON:API format. Empty when no errors exist. */
7174
- errors?: components["schemas"]["JsonError"][];
7173
+ /** @description Validation errors for data provided so far. Fields not yet submitted are not flagged. Null when not computed. */
7174
+ errors?: components["schemas"]["JsonError"][] | null;
7175
7175
  /**
7176
7176
  * Format: date-time
7177
7177
  * @description When the hold expires (UTC)
@@ -7179,10 +7179,10 @@ interface components {
7179
7179
  hold_until?: string | null;
7180
7180
  /** @description The booking intent ID */
7181
7181
  id: string;
7182
- /** @description Fields that are locked and cannot be updated via the public API. Possible values: service_id, provider_id, start_at, end_at, time_zone, client_data. */
7182
+ /** @description Fields that are locked and cannot be updated via the public API. Possible values: service_id, provider_id, start_at, end_at, time_zone, client_data, submissions. */
7183
7183
  locked_fields?: string[];
7184
7184
  /**
7185
- * @description String representing the object's type.
7185
+ * @description The object type
7186
7186
  * @enum {string}
7187
7187
  */
7188
7188
  object: "public_booking_intent";
@@ -7687,7 +7687,7 @@ interface components {
7687
7687
  * "unix_ts": 1771947000,
7688
7688
  * "utc": "2026-02-23T15:30:00Z"
7689
7689
  * },
7690
- * "errors": [],
7690
+ * "errors": null,
7691
7691
  * "hold_until": "2026-02-22T10:10:00Z",
7692
7692
  * "id": "bi_abc123def456abc123def456",
7693
7693
  * "locked_fields": [],
@@ -8316,7 +8316,7 @@ interface components {
8316
8316
  * "unix_ts": 1771947000,
8317
8317
  * "utc": "2026-02-23T15:30:00Z"
8318
8318
  * },
8319
- * "errors": [],
8319
+ * "errors": null,
8320
8320
  * "hold_duration": "PT10M",
8321
8321
  * "hold_enabled": true,
8322
8322
  * "hold_until": "2026-02-22T10:10:00Z",
@@ -9744,7 +9744,7 @@ interface components {
9744
9744
  * "unix_ts": 1771947000,
9745
9745
  * "utc": "2026-02-23T15:30:00Z"
9746
9746
  * },
9747
- * "errors": [],
9747
+ * "errors": null,
9748
9748
  * "hold_duration": "PT10M",
9749
9749
  * "hold_enabled": true,
9750
9750
  * "hold_until": "2026-02-22T10:10:00Z",
@@ -9872,11 +9872,11 @@ interface components {
9872
9872
  * @description When the intent was abandoned
9873
9873
  */
9874
9874
  abandoned_at?: string | null;
9875
- /** @description The linked appointment (set when completed) */
9875
+ /** @description The created appointment. Present when status is completed. */
9876
9876
  appointment?: components["schemas"]["Appointment"] | null;
9877
9877
  /** @description The linked client */
9878
9878
  client?: components["schemas"]["Client"] | null;
9879
- /** @description Progressive client data collected during the booking flow. Sensitive fields (first_name, last_name, email, phone) are redacted unless include_sensitive is true. */
9879
+ /** @description Client data accumulated during the booking flow. Sensitive fields (first_name, last_name, email, phone) are redacted unless include_sensitive is true. */
9880
9880
  client_data?: {
9881
9881
  email?: string | null;
9882
9882
  first_name?: string | null;
@@ -9898,8 +9898,8 @@ interface components {
9898
9898
  created_at: string;
9899
9899
  /** @description The end time of the selected slot */
9900
9900
  end_at?: components["schemas"]["ZonedDateTime"] | null;
9901
- /** @description Validation errors for submitted data in JSON:API format. Empty when no errors exist. Only present on single-resource endpoints (not index). */
9902
- errors?: components["schemas"]["JsonError"][];
9901
+ /** @description Validation errors for data provided so far. Fields not yet submitted are not flagged. Null when not computed. */
9902
+ errors?: components["schemas"]["JsonError"][] | null;
9903
9903
  /** @description The hold duration as an ISO 8601 duration string (e.g., PT10M) */
9904
9904
  hold_duration?: string | null;
9905
9905
  /** @description Whether slot holding is enabled */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@savvycal/appointments-core",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "description": "JavaScript/TypeScript client library for the SavvyCal Appointments API",
6
6
  "main": "./dist/index.cjs",