@wix/auto_sdk_calendar_schedules 1.0.60 → 1.0.62

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.
@@ -797,10 +797,12 @@ declare enum Namespace {
797
797
  /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
798
798
  STANDALONE_EVENTS = "STANDALONE_EVENTS",
799
799
  /** MIMIR - Siteless account for MIMIR Ai Job runner. */
800
- MIMIR = "MIMIR"
800
+ MIMIR = "MIMIR",
801
+ /** Wix Twins platform. */
802
+ TWINS = "TWINS"
801
803
  }
802
804
  /** @enumType */
803
- type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR';
805
+ type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR' | 'TWINS';
804
806
  /** Site transferred to another user. */
805
807
  interface SiteTransferred {
806
808
  /**
@@ -1412,11 +1414,13 @@ declare enum WebhookIdentityType {
1412
1414
  }
1413
1415
  /** @enumType */
1414
1416
  type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1417
+ /** @docsIgnore */
1415
1418
  type UpdateScheduleApplicationErrors = {
1416
1419
  code?: 'UPDATE_CANCELLED_SCHEDULE_NOT_ALLOWED';
1417
1420
  description?: string;
1418
1421
  data?: Record<string, any>;
1419
1422
  };
1423
+ /** @docsIgnore */
1420
1424
  type CancelScheduleApplicationErrors = {
1421
1425
  code?: 'SCHEDULE_ALREADY_CANCELLED';
1422
1426
  description?: string;
@@ -1574,7 +1578,6 @@ interface ScheduleUpdatedEnvelope {
1574
1578
  * @slug updated
1575
1579
  */
1576
1580
  declare function onScheduleUpdated(handler: (event: ScheduleUpdatedEnvelope) => void | Promise<void>): void;
1577
- type ScheduleNonNullablePaths = `status` | `defaultLocation.type` | `defaultConferencingDetails.type` | `permissions` | `permissions.${number}.identity.wixUserId` | `permissions.${number}.role`;
1578
1581
  /**
1579
1582
  * Retrieves a schedule.
1580
1583
  * @param scheduleId - ID of the schedule to retrieve.
@@ -1583,11 +1586,10 @@ type ScheduleNonNullablePaths = `status` | `defaultLocation.type` | `defaultConf
1583
1586
  * @permissionId CALENDAR.SCHEDULE_READ
1584
1587
  * @permissionId CALENDAR.SCHEDULE_READ_PI
1585
1588
  * @applicableIdentity APP
1586
- * @applicableIdentity VISITOR
1587
1589
  * @returns Retrieved schedule.
1588
1590
  * @fqn wix.calendar.schedules.v3.SchedulesService.GetSchedule
1589
1591
  */
1590
- declare function getSchedule(scheduleId: string, options?: GetScheduleOptions): Promise<NonNullablePaths<Schedule, ScheduleNonNullablePaths>>;
1592
+ declare function getSchedule(scheduleId: string, options?: GetScheduleOptions): Promise<NonNullablePaths<Schedule, `status` | `defaultLocation.type` | `defaultConferencingDetails.type` | `permissions` | `permissions.${number}.identity.wixUserId` | `permissions.${number}.role`, 5>>;
1591
1593
  interface GetScheduleOptions {
1592
1594
  /**
1593
1595
  * Information about which fields containing personal data to return. Refer to the
@@ -1625,7 +1627,6 @@ interface GetScheduleOptions {
1625
1627
  * @permissionId CALENDAR.SCHEDULE_READ
1626
1628
  * @permissionId CALENDAR.SCHEDULE_READ_PI
1627
1629
  * @applicableIdentity APP
1628
- * @applicableIdentity VISITOR
1629
1630
  * @fqn wix.calendar.schedules.v3.SchedulesService.QuerySchedules
1630
1631
  */
1631
1632
  declare function querySchedules(options?: QuerySchedulesOptions): SchedulesQueryBuilder;
@@ -1692,7 +1693,7 @@ interface SchedulesQueryBuilder {
1692
1693
  * @returns Created schedule.
1693
1694
  * @fqn wix.calendar.schedules.v3.SchedulesService.CreateSchedule
1694
1695
  */
1695
- declare function createSchedule(schedule: NonNullablePaths<Schedule, `defaultConferencingDetails.guestUrl` | `defaultConferencingDetails.hostUrl` | `defaultConferencingDetails.type` | `defaultLocation.type` | `permissions.${number}.identity` | `permissions.${number}.role`>, options?: CreateScheduleOptions): Promise<NonNullablePaths<Schedule, ScheduleNonNullablePaths>>;
1696
+ declare function createSchedule(schedule: NonNullablePaths<Schedule, `defaultConferencingDetails.guestUrl` | `defaultConferencingDetails.hostUrl` | `defaultConferencingDetails.type` | `defaultLocation.type` | `permissions.${number}.identity` | `permissions.${number}.role`, 4>, options?: CreateScheduleOptions): Promise<NonNullablePaths<Schedule, `status` | `defaultLocation.type` | `defaultConferencingDetails.type` | `permissions` | `permissions.${number}.identity.wixUserId` | `permissions.${number}.role`, 5>>;
1696
1697
  interface CreateScheduleOptions {
1697
1698
  /**
1698
1699
  * Idempotency key guaranteeing that you don't create the same schedule more
@@ -1722,7 +1723,7 @@ interface CreateScheduleOptions {
1722
1723
  * @returns Updated schedule.
1723
1724
  * @fqn wix.calendar.schedules.v3.SchedulesService.UpdateSchedule
1724
1725
  */
1725
- declare function updateSchedule(_id: string, schedule: NonNullablePaths<UpdateSchedule, `permissions.${number}.identity` | `permissions.${number}.role` | `revision`>, options?: UpdateScheduleOptions): Promise<NonNullablePaths<Schedule, ScheduleNonNullablePaths> & {
1726
+ declare function updateSchedule(_id: string, schedule: NonNullablePaths<UpdateSchedule, `permissions.${number}.identity` | `permissions.${number}.role` | `revision`, 4>, options?: UpdateScheduleOptions): Promise<NonNullablePaths<Schedule, `status` | `defaultLocation.type` | `defaultConferencingDetails.type` | `permissions` | `permissions.${number}.identity.wixUserId` | `permissions.${number}.role`, 5> & {
1726
1727
  __applicationErrorsType?: UpdateScheduleApplicationErrors;
1727
1728
  }>;
1728
1729
  interface UpdateSchedule {
@@ -1872,9 +1873,7 @@ interface UpdateScheduleOptions {
1872
1873
  * @applicableIdentity APP
1873
1874
  * @fqn wix.calendar.schedules.v3.SchedulesService.CancelSchedule
1874
1875
  */
1875
- declare function cancelSchedule(scheduleId: string, options?: CancelScheduleOptions): Promise<NonNullablePaths<CancelScheduleResponse, {
1876
- [P in ScheduleNonNullablePaths]: `schedule.${P}`;
1877
- }[ScheduleNonNullablePaths]> & {
1876
+ declare function cancelSchedule(scheduleId: string, options?: CancelScheduleOptions): Promise<NonNullablePaths<CancelScheduleResponse, `schedule.status` | `schedule.defaultLocation.type` | `schedule.defaultConferencingDetails.type` | `schedule.permissions` | `schedule.permissions.${number}.identity.wixUserId` | `schedule.permissions.${number}.role`, 6> & {
1878
1877
  __applicationErrorsType?: CancelScheduleApplicationErrors;
1879
1878
  }>;
1880
1879
  interface CancelScheduleOptions {
@@ -343,6 +343,7 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
343
343
  Namespace2["STANDALONE_FORMS"] = "STANDALONE_FORMS";
344
344
  Namespace2["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
345
345
  Namespace2["MIMIR"] = "MIMIR";
346
+ Namespace2["TWINS"] = "TWINS";
346
347
  return Namespace2;
347
348
  })(Namespace || {});
348
349
  var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {