@aranova/tracking-next 1.2.0 → 1.2.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.
@@ -1,4 +1,4 @@
1
- import { C as CalendarTransportConfig, B as BookingCreateInput, a as Booking, b as BookingRescheduleInput, c as BookingCancelInput } from './transport-BlXQZs9Z.mjs';
1
+ import { C as CalendarTransportConfig, B as BookingCreateInput, a as Booking, b as BookingRescheduleInput, c as BookingCancelInput } from './transport-DvAEZ1xf.mjs';
2
2
  import 'zod/mini';
3
3
  import './request-Doq36Rt0.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CalendarTransportConfig, B as BookingCreateInput, a as Booking, b as BookingRescheduleInput, c as BookingCancelInput } from './transport-CAZYrZbB.js';
1
+ import { C as CalendarTransportConfig, B as BookingCreateInput, a as Booking, b as BookingRescheduleInput, c as BookingCancelInput } from './transport-ChCL6vPv.js';
2
2
  import 'zod/mini';
3
3
  import './request-Doq36Rt0.js';
4
4
 
@@ -1,5 +1,5 @@
1
- import { j as BookingMetadata, r as CalendarSummary, m as BusyResponse, C as CalendarTransportConfig, q as CalendarErrorCode, d as BusyInterval } from './transport-BlXQZs9Z.mjs';
2
- export { e as BOOKING_SOURCES, f as BOOKING_STATUSES, a as Booking, g as BookingAttendee, c as BookingCancelInput, B as BookingCreateInput, h as BookingCustomer, i as BookingLocation, k as BookingReminders, b as BookingRescheduleInput, l as BookingStatus, n as CALENDAR_ERROR_CODES, o as CALENDAR_METADATA_SCHEMA_VERSION, p as CALENDAR_SYNC_STATUSES, s as CalendarSyncStatus, G as GOOGLE_SYNC_STATES, t as GoogleSyncState, J as JsonScalar, M as MAX_ATTENDEES, u as MAX_BOOKING_MINUTES, v as MAX_REMINDER_MINUTES, w as MAX_REMINDER_OVERRIDES, x as bookingAttendeeSchema, y as bookingCancelSchema, z as bookingCreateSchema, A as bookingCustomerSchema, D as bookingLocationNullableSchema, E as bookingLocationSchema, F as bookingMetadataSchema, H as bookingReminderSchema, I as bookingRemindersSchema, K as bookingRescheduleSchema } from './transport-BlXQZs9Z.mjs';
1
+ import { j as BookingMetadata, r as CalendarSummary, m as BusyResponse, C as CalendarTransportConfig, q as CalendarErrorCode, d as BusyInterval } from './transport-DvAEZ1xf.mjs';
2
+ export { e as BOOKING_SOURCES, f as BOOKING_STATUSES, a as Booking, g as BookingAttendee, c as BookingCancelInput, B as BookingCreateInput, h as BookingCustomer, i as BookingLocation, k as BookingReminders, b as BookingRescheduleInput, l as BookingStatus, n as CALENDAR_ERROR_CODES, o as CALENDAR_METADATA_SCHEMA_VERSION, p as CALENDAR_SYNC_STATUSES, s as CalendarSyncStatus, G as GOOGLE_SYNC_STATES, t as GoogleSyncState, J as JsonScalar, M as MAX_ATTENDEES, u as MAX_BOOKING_MINUTES, v as MAX_REMINDER_MINUTES, w as MAX_REMINDER_OVERRIDES, x as bookingAttendeeSchema, y as bookingCancelSchema, z as bookingCreateSchema, A as bookingCustomerSchema, D as bookingLocationNullableSchema, E as bookingLocationSchema, F as bookingMetadataSchema, H as bookingReminderSchema, I as bookingRemindersSchema, K as bookingRescheduleSchema } from './transport-DvAEZ1xf.mjs';
3
3
  import { A as AranovaApiError } from './date-BHetnL7s.mjs';
4
4
  export { f as formatDateInTz } from './date-BHetnL7s.mjs';
5
5
  import 'zod/mini';
@@ -42,7 +42,10 @@ interface BusyQuery {
42
42
  timeZone?: string;
43
43
  }
44
44
  interface CalendarReadClient<TCalendarKey extends string = string> {
45
- /** Labels, timezones and status — everything a widget needs before booking. */
45
+ /**
46
+ * Labels, timezones and status — everything a widget needs before booking.
47
+ * Sandboxes are listed too (`is_sandbox`); a real calendar names its own in `sandbox_key`.
48
+ */
46
49
  listCalendars(): Promise<CalendarSummary[]>;
47
50
  /** Busy intervals only. Never the contents of the grantee's events. */
48
51
  busy(calendarKey: TCalendarKey, query: BusyQuery): Promise<BusyResponse>;
@@ -1,5 +1,5 @@
1
- import { j as BookingMetadata, r as CalendarSummary, m as BusyResponse, C as CalendarTransportConfig, q as CalendarErrorCode, d as BusyInterval } from './transport-CAZYrZbB.js';
2
- export { e as BOOKING_SOURCES, f as BOOKING_STATUSES, a as Booking, g as BookingAttendee, c as BookingCancelInput, B as BookingCreateInput, h as BookingCustomer, i as BookingLocation, k as BookingReminders, b as BookingRescheduleInput, l as BookingStatus, n as CALENDAR_ERROR_CODES, o as CALENDAR_METADATA_SCHEMA_VERSION, p as CALENDAR_SYNC_STATUSES, s as CalendarSyncStatus, G as GOOGLE_SYNC_STATES, t as GoogleSyncState, J as JsonScalar, M as MAX_ATTENDEES, u as MAX_BOOKING_MINUTES, v as MAX_REMINDER_MINUTES, w as MAX_REMINDER_OVERRIDES, x as bookingAttendeeSchema, y as bookingCancelSchema, z as bookingCreateSchema, A as bookingCustomerSchema, D as bookingLocationNullableSchema, E as bookingLocationSchema, F as bookingMetadataSchema, H as bookingReminderSchema, I as bookingRemindersSchema, K as bookingRescheduleSchema } from './transport-CAZYrZbB.js';
1
+ import { j as BookingMetadata, r as CalendarSummary, m as BusyResponse, C as CalendarTransportConfig, q as CalendarErrorCode, d as BusyInterval } from './transport-ChCL6vPv.js';
2
+ export { e as BOOKING_SOURCES, f as BOOKING_STATUSES, a as Booking, g as BookingAttendee, c as BookingCancelInput, B as BookingCreateInput, h as BookingCustomer, i as BookingLocation, k as BookingReminders, b as BookingRescheduleInput, l as BookingStatus, n as CALENDAR_ERROR_CODES, o as CALENDAR_METADATA_SCHEMA_VERSION, p as CALENDAR_SYNC_STATUSES, s as CalendarSyncStatus, G as GOOGLE_SYNC_STATES, t as GoogleSyncState, J as JsonScalar, M as MAX_ATTENDEES, u as MAX_BOOKING_MINUTES, v as MAX_REMINDER_MINUTES, w as MAX_REMINDER_OVERRIDES, x as bookingAttendeeSchema, y as bookingCancelSchema, z as bookingCreateSchema, A as bookingCustomerSchema, D as bookingLocationNullableSchema, E as bookingLocationSchema, F as bookingMetadataSchema, H as bookingReminderSchema, I as bookingRemindersSchema, K as bookingRescheduleSchema } from './transport-ChCL6vPv.js';
3
3
  import { A as AranovaApiError } from './date-BHetnL7s.js';
4
4
  export { f as formatDateInTz } from './date-BHetnL7s.js';
5
5
  import 'zod/mini';
@@ -42,7 +42,10 @@ interface BusyQuery {
42
42
  timeZone?: string;
43
43
  }
44
44
  interface CalendarReadClient<TCalendarKey extends string = string> {
45
- /** Labels, timezones and status — everything a widget needs before booking. */
45
+ /**
46
+ * Labels, timezones and status — everything a widget needs before booking.
47
+ * Sandboxes are listed too (`is_sandbox`); a real calendar names its own in `sandbox_key`.
48
+ */
46
49
  listCalendars(): Promise<CalendarSummary[]>;
47
50
  /** Busy intervals only. Never the contents of the grantee's events. */
48
51
  busy(calendarKey: TCalendarKey, query: BusyQuery): Promise<BusyResponse>;
package/dist/calendar.js CHANGED
@@ -473,7 +473,9 @@ var zCalendarSummary = z.strictObject({
473
473
  connected_at: z.nullable(z.iso.datetime({ offset: true })),
474
474
  google_account_email: z.nullable(z.string()),
475
475
  granted_scopes: z.nullable(z.array(z.string())),
476
+ is_sandbox: z.boolean(),
476
477
  label: z.string(),
478
+ sandbox_key: z.nullable(z.string()),
477
479
  status: z.enum([
478
480
  "pending_invite",
479
481
  "awaiting_calendar_selection",
@@ -516,6 +518,10 @@ var zErrorCode = z.enum([
516
518
  "manage_token_invalid",
517
519
  "google_error",
518
520
  "calendar_not_owned",
521
+ "calendar_is_sandbox",
522
+ "sandbox_exists",
523
+ "sandbox_key_too_long",
524
+ "sandbox_not_found",
519
525
  "validation_error",
520
526
  "unknown_service",
521
527
  "invalid_sale_properties",