@wix/auto_sdk_calendar_schedules 1.0.107 → 1.0.108

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 +1 @@
1
- {"version":3,"sources":["../../index.ts","../../src/calendar-v3-schedule-schedules.public.ts","../../src/calendar-v3-schedule-schedules.universal.ts","../../src/calendar-v3-schedule-schedules.http.ts","../../src/calendar-v3-schedule-schedules.context.ts"],"sourcesContent":["export * from './src/calendar-v3-schedule-schedules.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n CancelScheduleApplicationErrors,\n CancelScheduleOptions,\n CancelScheduleResponse,\n CreateScheduleOptions,\n GetScheduleOptions,\n QuerySchedulesOptions,\n QuerySchedulesResponse,\n Schedule,\n ScheduleCancelledEnvelope,\n ScheduleClonedEnvelope,\n ScheduleCreatedEnvelope,\n ScheduleQuery,\n ScheduleUpdatedEnvelope,\n SchedulesQueryBuilder,\n UpdateSchedule,\n UpdateScheduleApplicationErrors,\n UpdateScheduleOptions,\n cancelSchedule as universalCancelSchedule,\n createSchedule as universalCreateSchedule,\n getSchedule as universalGetSchedule,\n querySchedules as universalQuerySchedules,\n typedQuerySchedules as universalTypedQuerySchedules,\n updateSchedule as universalUpdateSchedule,\n} from './calendar-v3-schedule-schedules.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/calendar' };\n\nexport function getSchedule(httpClient: HttpClient): GetScheduleSignature {\n return (scheduleId: string, options?: GetScheduleOptions) =>\n universalGetSchedule(\n scheduleId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetScheduleSignature {\n /**\n * Retrieves a schedule.\n * @param - ID of the schedule to retrieve.\n * @returns Retrieved schedule.\n */\n (scheduleId: string, options?: GetScheduleOptions): Promise<\n NonNullablePaths<\n Schedule,\n | `status`\n | `defaultLocation.type`\n | `defaultConferencingDetails.type`\n | `permissions`\n | `permissions.${number}.identity.wixUserId`\n | `permissions.${number}.role`,\n 5\n >\n >;\n}\n\nexport function querySchedules(\n httpClient: HttpClient\n): QuerySchedulesSignature {\n return (options?: QuerySchedulesOptions) =>\n universalQuerySchedules(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QuerySchedulesSignature {\n /**\n * Creates a query to retrieve a list of schedules.\n *\n * The `querySchedules()` function builds a query to retrieve a list of tip settings and returns a `SchedulesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-builder/find) function.\n *\n * You can refine the query by chaining `SchedulesQueryBuilder` functions onto the query. `SchedulesQueryBuilder` functions enable you to sort, filter, and control the results that `querySchedules()` returns.\n *\n * `querySchedules()` runs with the following `SchedulesQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `id` in ascending order.\n *\n * The functions that are chained to `querySchedules()` are applied in the order they are called. For example, if you apply `ascending(\"status\")` and then `ascending(\"externalId\")`, the results are sorted first by the `\"status\"`, and then, if there are multiple results with the same `\"status\"`, the items are sorted by `\"externalId\"`.\n *\n * The following `SchedulesQueryBuilder` functions are supported for the `querySchedules()` function. For a full description of the tip settings object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-result/items) property in `SchedulesQueryResult`.\n */\n (options?: QuerySchedulesOptions): SchedulesQueryBuilder;\n}\n\nexport function typedQuerySchedules(\n httpClient: HttpClient\n): TypedQuerySchedulesSignature {\n return (query: ScheduleQuery, options?: QuerySchedulesOptions) =>\n universalTypedQuerySchedules(\n query,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQuerySchedulesSignature {\n /** */\n (query: ScheduleQuery, options?: QuerySchedulesOptions): Promise<\n NonNullablePaths<\n QuerySchedulesResponse,\n | `schedules`\n | `schedules.${number}.status`\n | `schedules.${number}.defaultLocation.type`\n | `schedules.${number}.defaultConferencingDetails.type`,\n 5\n >\n >;\n}\n\nexport function createSchedule(\n httpClient: HttpClient\n): CreateScheduleSignature {\n return (\n schedule: NonNullablePaths<\n Schedule,\n | `defaultConferencingDetails.guestUrl`\n | `defaultConferencingDetails.hostUrl`\n | `defaultConferencingDetails.type`\n | `defaultLocation.type`\n | `permissions.${number}.identity`\n | `permissions.${number}.role`,\n 4\n >,\n options?: CreateScheduleOptions\n ) =>\n universalCreateSchedule(\n schedule,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateScheduleSignature {\n /**\n * Creates a schedule.\n *\n *\n * If you want the schedule's events to appear in the\n * [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),\n * you must set `appId` to the ID of the Wix Bookings app by providing\n * `{\"appId\": \"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"}`.\n * @param - Schedule to create.\n * @returns Created schedule.\n */\n (\n schedule: NonNullablePaths<\n Schedule,\n | `defaultConferencingDetails.guestUrl`\n | `defaultConferencingDetails.hostUrl`\n | `defaultConferencingDetails.type`\n | `defaultLocation.type`\n | `permissions.${number}.identity`\n | `permissions.${number}.role`,\n 4\n >,\n options?: CreateScheduleOptions\n ): Promise<\n NonNullablePaths<\n Schedule,\n | `status`\n | `defaultLocation.type`\n | `defaultConferencingDetails.type`\n | `permissions`\n | `permissions.${number}.identity.wixUserId`\n | `permissions.${number}.role`,\n 5\n >\n >;\n}\n\nexport function updateSchedule(\n httpClient: HttpClient\n): UpdateScheduleSignature {\n return (\n _id: string,\n schedule: NonNullablePaths<\n UpdateSchedule,\n | `permissions.${number}.identity`\n | `permissions.${number}.role`\n | `revision`,\n 4\n >,\n options?: UpdateScheduleOptions\n ) =>\n universalUpdateSchedule(\n _id,\n schedule,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateScheduleSignature {\n /**\n * Updates a schedule.\n *\n *\n * Each time the schedule is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the schedule.\n * This ensures you're working with the latest schedule\n * and prevents unintended overwrites.\n * @param - Schedule ID.\n * @returns Updated schedule.\n */\n (\n _id: string,\n schedule: NonNullablePaths<\n UpdateSchedule,\n | `permissions.${number}.identity`\n | `permissions.${number}.role`\n | `revision`,\n 4\n >,\n options?: UpdateScheduleOptions\n ): Promise<\n NonNullablePaths<\n Schedule,\n | `status`\n | `defaultLocation.type`\n | `defaultConferencingDetails.type`\n | `permissions`\n | `permissions.${number}.identity.wixUserId`\n | `permissions.${number}.role`,\n 5\n > & {\n __applicationErrorsType?: UpdateScheduleApplicationErrors;\n }\n >;\n}\n\nexport function cancelSchedule(\n httpClient: HttpClient\n): CancelScheduleSignature {\n return (scheduleId: string, options?: CancelScheduleOptions) =>\n universalCancelSchedule(\n scheduleId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CancelScheduleSignature {\n /**\n * Sets a schedule's `status` to `CANCELLED`.\n *\n *\n * Also cancels future events belonging to the schedule.\n *\n * Once a schedule is marked as `CANCELLED`, you can't reactivate it, update it,\n * or assign new events.\n * @param - ID of the schedule to cancel.\n */\n (scheduleId: string, options?: CancelScheduleOptions): Promise<\n NonNullablePaths<\n CancelScheduleResponse,\n | `schedule.status`\n | `schedule.defaultLocation.type`\n | `schedule.defaultConferencingDetails.type`\n | `schedule.permissions`\n | `schedule.permissions.${number}.identity.wixUserId`\n | `schedule.permissions.${number}.role`,\n 6\n > & {\n __applicationErrorsType?: CancelScheduleApplicationErrors;\n }\n >;\n}\n\nexport const onScheduleCancelled = EventDefinition(\n 'wix.calendar.v3.schedule_cancelled',\n true,\n (event: ScheduleCancelledEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'data.schedule.createdDate' },\n { path: 'data.schedule.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<ScheduleCancelledEnvelope>();\nexport const onScheduleCloned = EventDefinition(\n 'wix.calendar.v3.schedule_cloned',\n true,\n (event: ScheduleClonedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'data.schedule.createdDate' },\n { path: 'data.schedule.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<ScheduleClonedEnvelope>();\nexport const onScheduleCreated = EventDefinition(\n 'wix.calendar.v3.schedule_created',\n true,\n (event: ScheduleCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<ScheduleCreatedEnvelope>();\nexport const onScheduleUpdated = EventDefinition(\n 'wix.calendar.v3.schedule_updated',\n true,\n (event: ScheduleUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<ScheduleUpdatedEnvelope>();\n\nexport {\n AccountDetails,\n ActionEvent,\n Address,\n AddressHint,\n Asset,\n BaseEventMetadata,\n BusinessSchedule,\n CancelScheduleOptions,\n CancelScheduleRequest,\n CancelScheduleResponse,\n Categories,\n ChangeContext,\n ChangeContextPayloadOneOf,\n CloneScheduleRequest,\n CloneScheduleResponse,\n CommonIdentificationData,\n CommonIdentificationDataIdOneOf,\n ConferencingDetails,\n ConsentPolicy,\n CreateScheduleOptions,\n CreateScheduleRequest,\n CreateScheduleResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DayOfWeek,\n DeleteContext,\n DeleteStatus,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExtendedFields,\n GeoCoordinates,\n GetScheduleOptions,\n GetScheduleRequest,\n GetScheduleResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n IdentityType,\n Locale,\n Location,\n LocationType,\n MessageEnvelope,\n MetaSiteSpecialEvent,\n MetaSiteSpecialEventPayloadOneOf,\n Multilingual,\n Namespace,\n NamespaceChanged,\n OdeditorAssigned,\n OdeditorUnassigned,\n ParticipantNotification,\n Permission,\n PicassoAssigned,\n PicassoUnassigned,\n PlacementType,\n Properties,\n PropertiesChange,\n QuerySchedulesOptions,\n QuerySchedulesRequest,\n QuerySchedulesResponse,\n RequestedFields,\n ResolutionMethod,\n RestoreInfo,\n Role,\n Schedule,\n ScheduleCancelled,\n ScheduleCancelledEnvelope,\n ScheduleCloned,\n ScheduleClonedEnvelope,\n ScheduleCreatedEnvelope,\n ScheduleQuerySpec,\n ScheduleUpdatedEnvelope,\n ScheduleUpdatedWithMetadata,\n SchedulesQueryBuilder,\n SchedulesQueryResult,\n ServiceProvisioned,\n ServiceRemoved,\n SiteCloned,\n SiteCreated,\n SiteCreatedContext,\n SiteDeleted,\n SiteHardDeleted,\n SiteMarkedAsTemplate,\n SiteMarkedAsWixSite,\n SitePropertiesEvent,\n SitePropertiesNotification,\n SitePublished,\n SitePurgedExternally,\n SiteRenamed,\n SiteTransferred,\n SiteUndeleted,\n SiteUnpublished,\n SiteUrlChanged,\n SpecialHourPeriod,\n State,\n Status,\n StudioAssigned,\n StudioTwoAssigned,\n StudioTwoUnassigned,\n StudioUnassigned,\n SupportedLanguage,\n TimePeriod,\n Translation,\n Trigger,\n Type,\n UpdateSchedule,\n UpdateScheduleOptions,\n UpdateScheduleRequest,\n UpdateScheduleResponse,\n V4SiteCreated,\n WebhookIdentityType,\n WixelAssigned,\n WixelUnassigned,\n} from './calendar-v3-schedule-schedules.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixCalendarV3Schedule from './calendar-v3-schedule-schedules.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/**\n * A collection of [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * associated with a specific entity, such as a\n * [Bookings service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object),\n * or [Bookings resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\n * Schedules can also serve as templates for the events they manage, setting\n * default values like a default location.\n */\nexport interface Schedule {\n /**\n * Schedule ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * External ID. You can't update the external ID.\n *\n * If the schedule belongs to a Bookings staff member, identical to the ID of\n * the [resource](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction).\n * If the schedule belongs to a Bookings service, identical to the ID of\n * the [service](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/setup).\n * @format GUID\n * @immutable\n */\n externalId?: string | null;\n /**\n * Schedule name.\n *\n * Min: 1 character\n * Max: 200 characters\n * @minLength 1\n * @maxLength 200\n */\n name?: string | null;\n /**\n * Schedule status.\n *\n * Supported values:\n * - `ACTIVE`: You can add events to the schedule or update its fields.\n * - `CANCELLED`: You can't add events to the schedule or update its fields.\n *\n * Default: `ACTIVE`\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Time zone the schedule is associated with in\n * [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\n * For example, `America/New_York`.\n *\n * Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties).\n *\n * Min: 1 character\n * Max: 150 characters\n * @minLength 1\n * @maxLength 150\n */\n timeZone?: string | null;\n /**\n * Whether the schedule's `timeZone` is automatically synced from\n * `timeZone` of the business [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties).\n *\n * Default: `true`\n */\n businessTimeZoneEnabled?: boolean | null;\n /**\n * Default `title` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * that are added to the schedule.\n *\n * Min: 1 character\n * Max: 200 characters\n * @minLength 1\n * @maxLength 200\n */\n defaultTitle?: string | null;\n /**\n * Default `location` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * that are added to the schedule.\n */\n defaultLocation?: Location;\n /**\n * Default `totalCapacity` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * that are added to the schedule.\n *\n * Min: `0`\n */\n defaultCapacity?: number | null;\n /**\n * Default `conferencingDetails` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * that are added to the schedule.\n * Returned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#retrieve-personal-information).\n */\n defaultConferencingDetails?: ConferencingDetails;\n /**\n * ID of the app that's associated with the schedule. You can't update `appId`.\n * If you want to create a schedule and ensure its associated events appear\n * in the [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),\n * you must provide the Wix Bookings app ID\n * `13d21c63-b5ec-5912-8397-c3a5ddb27a97`.\n * @format GUID\n * @immutable\n */\n appId?: string | null;\n /**\n * List of permissions associated with the schedule. Refer to the\n * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#roles)\n * for more information.\n *\n * Max: 1 permission\n * @maxSize 1\n */\n permissions?: Permission[];\n /** Extensions enabling applications or users to save custom data related to the schedule. */\n extendedFields?: ExtendedFields;\n /**\n * Revision number, which increments by 1 each time the schedule is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the schedule.\n * Ignored when creating a schedule.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date the schedule was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date the schedule was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _updatedDate?: Date | null;\n}\n\nexport enum Status {\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n /** You can add events to the schedule or update its fields. */\n ACTIVE = 'ACTIVE',\n /** You can't add events to the schedule or update its fields. */\n CANCELLED = 'CANCELLED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN_STATUS'\n | 'ACTIVE'\n | 'CANCELLED';\n\nexport interface Location {\n /**\n * [Location](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction)\n * ID. Available only for `BUSINESS` locations.\n * @format GUID\n */\n _id?: string | null;\n /**\n * Location type.\n *\n * Supported values:\n * + `BUSINESS`: The event is held at a business location.\n * + `CUSTOMER`: The event is held at the customer's location, such as their home or office.\n * + `CUSTOM`: The event is held at an address or venue not tied to the business or customer.\n */\n type?: LocationTypeWithLiterals;\n /**\n * Location name. For `BUSINESS` locations, it's identical to the\n * [location](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction)\n * `name`.\n *\n * Min: 1 character\n * Max: 150 characters\n * @minLength 1\n * @maxLength 150\n */\n name?: string | null;\n /**\n * Location address. For `BUSINESS` locations, it's identical to the\n * [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\n * `formattedAddress`.\n * @minLength 1\n * @maxLength 300\n */\n address?: string | null;\n}\n\nexport enum LocationType {\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n /** The event is held at a business location. */\n BUSINESS = 'BUSINESS',\n /** The event is held at the customer's location, such as their home or office. */\n CUSTOMER = 'CUSTOMER',\n /** The event is held at an address or venue not tied to the business or customer. */\n CUSTOM = 'CUSTOM',\n}\n\n/** @enumType */\nexport type LocationTypeWithLiterals =\n | LocationType\n | 'UNKNOWN_TYPE'\n | 'BUSINESS'\n | 'CUSTOMER'\n | 'CUSTOM';\n\nexport interface ConferencingDetails {\n /** Conference type. For example, `Zoom`. */\n type?: TypeWithLiterals;\n /**\n * URL used by the host to start the conference.\n *\n * Min: 1 character\n * Max: 2000 characters\n * @minLength 1\n * @maxLength 2000\n */\n hostUrl?: string | null;\n /**\n * URL used by a guest to join the conference.\n *\n * Min: 1 character\n * Max: 2000 characters\n * @minLength 1\n * @maxLength 2000\n */\n guestUrl?: string | null;\n /**\n * Conference password.\n *\n * Min: 1 character\n * Max: 100 characters\n * @minLength 1\n * @maxLength 100\n */\n password?: string | null;\n /**\n * Conference ID in an external system.\n *\n * Min: 1 character\n * Max: 150 characters\n * @minLength 1\n * @maxLength 150\n */\n externalId?: string | null;\n}\n\nexport enum Type {\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n ZOOM = 'ZOOM',\n CUSTOM = 'CUSTOM',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'ZOOM' | 'CUSTOM';\n\nexport interface Permission {\n /**\n * [Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\n * granted the permission.\n */\n identity?: CommonIdentificationData;\n /**\n * Permission role.\n *\n * Supported values:\n * + `WRITER`: Full read and write access.\n * + `COMMENTER`: Full read access, write access limited to `event.notes`.\n */\n role?: RoleWithLiterals;\n}\n\nexport interface CommonIdentificationData\n extends CommonIdentificationDataIdOneOf {\n /**\n * ID of a Wix user. For example, the site owner or a\n * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).\n * @format GUID\n */\n wixUserId?: string;\n}\n\n/** @oneof */\nexport interface CommonIdentificationDataIdOneOf {\n /**\n * ID of a Wix user. For example, the site owner or a\n * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).\n * @format GUID\n */\n wixUserId?: string;\n}\n\nexport enum IdentityType {\n UNKNOWN = 'UNKNOWN',\n WIX_USER = 'WIX_USER',\n}\n\n/** @enumType */\nexport type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'WIX_USER';\n\nexport enum Role {\n UNKNOWN_ROLE = 'UNKNOWN_ROLE',\n /** Full read and write access. */\n WRITER = 'WRITER',\n /** Full read access, write access limited to `event.notes`. */\n COMMENTER = 'COMMENTER',\n}\n\n/** @enumType */\nexport type RoleWithLiterals = Role | 'UNKNOWN_ROLE' | 'WRITER' | 'COMMENTER';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface GetScheduleRequest {\n /**\n * ID of the schedule to retrieve.\n * @format GUID\n */\n scheduleId: string | null;\n /**\n * Information about which fields containing personal data to return. Refer to the\n * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions)\n * for more information.\n *\n * Supported values:\n * + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.\n * + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.\n *\n * Max: 1 field\n * Default: No personal data is returned.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport enum RequestedFields {\n UNKNOWN_REQUESTED_FIELDS = 'UNKNOWN_REQUESTED_FIELDS',\n /** Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope. */\n PI_FIELDS = 'PI_FIELDS',\n /** Returns only fields containing your own personal data. */\n OWN_PI_FIELDS = 'OWN_PI_FIELDS',\n}\n\n/** @enumType */\nexport type RequestedFieldsWithLiterals =\n | RequestedFields\n | 'UNKNOWN_REQUESTED_FIELDS'\n | 'PI_FIELDS'\n | 'OWN_PI_FIELDS';\n\nexport interface GetScheduleResponse {\n /** Retrieved schedule. */\n schedule?: Schedule;\n}\n\nexport interface QuerySchedulesRequest {\n /** Query containing filters and paging. */\n query?: CursorQuery;\n /**\n * Information about which fields containing personal data to return. Refer to the\n * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions)\n * for more information.\n *\n * Supported values:\n * + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.\n * + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.\n *\n * Max: 1 field\n * Default: No personal data is returned.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/** TODO Diverge */\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)\n * for more information.\n *\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.\n *\n * For a detailed list of supported filters, see Supported Filters.\n */\n filter?: Record<string, any> | null;\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */\n cursorPaging?: CursorPaging;\n}\n\n/** TODO Diverge */\nexport interface CursorPaging {\n /**\n * Number of schedules to return.\n *\n * Min: `1`\n * Max: `100`\n * Default: `50`\n * @min 1\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n */\n cursor?: string | null;\n}\n\nexport interface QuerySchedulesResponse {\n /** Retrieved schedules matching the provided query. */\n schedules?: Schedule[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\n/** TODO Diverge */\nexport interface CursorPagingMetadata {\n /** Number of schedules returned in the current page of the response. */\n count?: number | null;\n /** Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\nexport interface CreateScheduleRequest {\n /** Schedule to create. */\n schedule: Schedule;\n /**\n * Idempotency key guaranteeing that you don't create the same schedule more\n * than once.\n * @format GUID\n */\n idempotencyKey?: string | null;\n}\n\nexport interface CreateScheduleResponse {\n /** Created schedule. */\n schedule?: Schedule;\n}\n\nexport interface UpdateScheduleRequest {\n /** Schedule to update. */\n schedule: Schedule;\n /**\n * Information about whether participants of the schedule's updated events are\n * notified and the message they receive.\n */\n participantNotification?: ParticipantNotification;\n}\n\nexport interface ParticipantNotification {\n /**\n * Whether to notify the participants about changes made to the schedule or event.\n *\n * Default: `false`\n */\n notifyParticipants?: boolean | null;\n /**\n * Message to send.\n *\n * Min: 1 character\n * Max: 5000 characters\n * @minLength 1\n * @maxLength 5000\n */\n message?: string | null;\n /**\n * Information about the delivery channels used to send the notification.\n * For example, `{\"channels\": \"SMS\" }`, `{\"channels\": \"EMAIL\" }`, or `{\"channels\": \"EMAIL, SMS\" }`.\n *\n * Max: 10 keys\n * Max key length: 64 characters\n * Max value length: 1000 characters\n */\n metadata?: Record<string, string>;\n}\n\nexport interface UpdateScheduleResponse {\n /** Updated schedule. */\n schedule?: Schedule;\n}\n\n/** `PRIVATE` until we'll have standard events metadata from Infra. */\nexport interface ScheduleUpdatedWithMetadata {\n /** The updated schedule. */\n schedule?: Schedule;\n /** Whether to notify participants regarding the changes. */\n participantNotification?: ParticipantNotification;\n}\n\nexport interface CloneScheduleRequest {\n /**\n * ID of the schedule to clone.\n * @format GUID\n */\n scheduleId?: string | null;\n /** Fields to override in the cloned schedule. */\n schedule?: Schedule;\n}\n\nexport interface CloneScheduleResponse {\n /** Cloned schedule. */\n schedule?: Schedule;\n}\n\nexport interface ScheduleCloned {\n /** New cloned schedule. */\n schedule?: Schedule;\n /** The clone trigger. */\n trigger?: TriggerWithLiterals;\n /**\n * The original Meta Site ID if different.\n * @format GUID\n */\n originalMetaSiteId?: string | null;\n /**\n * The original schedule ID if different.\n * @format GUID\n */\n originalScheduleId?: string | null;\n}\n\nexport enum Trigger {\n /** Schedule cloned using the `CloneSchedule` API. */\n SCHEDULE_CLONED = 'SCHEDULE_CLONED',\n /** Site duplicated from the same account. */\n SITE_DUPLICATED_FROM_SAME_ACCOUNT = 'SITE_DUPLICATED_FROM_SAME_ACCOUNT',\n /** Site duplicated from a different account. */\n SITE_DUPLICATED_FROM_DIFFERENT_ACCOUNT = 'SITE_DUPLICATED_FROM_DIFFERENT_ACCOUNT',\n /** Site created from template. */\n SITE_CREATED_FROM_TEMPLATE = 'SITE_CREATED_FROM_TEMPLATE',\n /** Other. */\n OTHER = 'OTHER',\n}\n\n/** @enumType */\nexport type TriggerWithLiterals =\n | Trigger\n | 'SCHEDULE_CLONED'\n | 'SITE_DUPLICATED_FROM_SAME_ACCOUNT'\n | 'SITE_DUPLICATED_FROM_DIFFERENT_ACCOUNT'\n | 'SITE_CREATED_FROM_TEMPLATE'\n | 'OTHER';\n\nexport interface CancelScheduleRequest {\n /**\n * ID of the schedule to cancel.\n * @format GUID\n */\n scheduleId: string | null;\n /**\n * Whether to preserve future events with participants.\n * Default: `false`.\n */\n preserveFutureEventsWithParticipants?: boolean | null;\n /**\n * Information about whether participants of the schedule's updated events are\n * notified and the message they receive.\n */\n participantNotification?: ParticipantNotification;\n}\n\nexport interface CancelScheduleResponse {\n /** Canceled schedule. */\n schedule?: Schedule;\n}\n\nexport interface ScheduleCancelled {\n /** Canceled schedule. */\n schedule?: Schedule;\n /** Whether future events with participants were preserved. */\n preserveFutureEventsWithParticipants?: boolean | null;\n}\n\nexport interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n /**\n * A meta site id.\n * @format GUID\n */\n metaSiteId?: string;\n /** A meta site version. Monotonically increasing. */\n version?: string;\n /** A timestamp of the event. */\n timestamp?: string;\n /**\n * TODO(meta-site): Change validation once validations are disabled for consumers\n * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659\n * @maxSize 4000\n */\n assets?: Asset[];\n}\n\n/** @oneof */\nexport interface MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n}\n\nexport interface Asset {\n /**\n * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * An instance id. For legacy reasons may be UUID or a string.\n * @maxLength 200\n */\n instanceId?: string;\n /** An application state. */\n state?: StateWithLiterals;\n}\n\nexport enum State {\n UNKNOWN = 'UNKNOWN',\n ENABLED = 'ENABLED',\n DISABLED = 'DISABLED',\n PENDING = 'PENDING',\n DEMO = 'DEMO',\n}\n\n/** @enumType */\nexport type StateWithLiterals =\n | State\n | 'UNKNOWN'\n | 'ENABLED'\n | 'DISABLED'\n | 'PENDING'\n | 'DEMO';\n\nexport interface SiteCreated {\n /**\n * A template identifier (empty if not created from a template).\n * @maxLength 36\n */\n originTemplateId?: string;\n /**\n * An account id of the owner.\n * @format GUID\n */\n ownerId?: string;\n /** A context in which meta site was created. */\n context?: SiteCreatedContextWithLiterals;\n /**\n * A meta site id from which this site was created.\n *\n * In case of a creation from a template it's a template id.\n * In case of a site duplication (\"Save As\" in dashboard or duplicate in UM) it's an id of a source site.\n * @format GUID\n */\n originMetaSiteId?: string | null;\n /**\n * A meta site name (URL slug).\n * @maxLength 20\n */\n siteName?: string;\n /** A namespace. */\n namespace?: NamespaceWithLiterals;\n}\n\nexport enum SiteCreatedContext {\n /** A valid option, we don't expose all reasons why site might be created. */\n OTHER = 'OTHER',\n /** A meta site was created from template. */\n FROM_TEMPLATE = 'FROM_TEMPLATE',\n /** A meta site was created by copying of the transfferred meta site. */\n DUPLICATE_BY_SITE_TRANSFER = 'DUPLICATE_BY_SITE_TRANSFER',\n /** A copy of existing meta site. */\n DUPLICATE = 'DUPLICATE',\n /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */\n OLD_SITE_TRANSFER = 'OLD_SITE_TRANSFER',\n /** deprecated A meta site was created for Flash editor. */\n FLASH = 'FLASH',\n}\n\n/** @enumType */\nexport type SiteCreatedContextWithLiterals =\n | SiteCreatedContext\n | 'OTHER'\n | 'FROM_TEMPLATE'\n | 'DUPLICATE_BY_SITE_TRANSFER'\n | 'DUPLICATE'\n | 'OLD_SITE_TRANSFER'\n | 'FLASH';\n\nexport enum Namespace {\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */\n WIX = 'WIX',\n /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ALBUMS = 'ALBUMS',\n /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n HOTELS = 'HOTELS',\n /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n CLUBS = 'CLUBS',\n /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_SITE = 'DEV_SITE',\n /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n LOGOS = 'LOGOS',\n /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /**\n * A draft created by HTML editor on open. Upon \"first save\" it will be moved to be of WIX domain.\n *\n * Meta site with this namespace will *not* be shown in a user's site list by default.\n */\n HTML_DRAFT = 'HTML_DRAFT',\n /**\n * the user-journey for Fitness users who want to start from managing their business instead of designing their website.\n * Will be accessible from Site List and will not have a website app.\n * Once the user attaches a site, the site will become a regular wixsite.\n */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Belongs to \"strategic products\" company. Supports new product in the creator's economy space. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** It is to be used in the Business First efforts. */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Bookings business flow with no site. */\n ANYWHERE = 'ANYWHERE',\n /** Namespace for Headless Backoffice with no editor */\n HEADLESS = 'HEADLESS',\n /**\n * Namespace for master site that will exist in parent account that will be referenced by subaccounts\n * The site will be used for account level CSM feature for enterprise\n */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Rise.ai Siteless account management for Gift Cards and Store Credit. */\n RISE = 'RISE',\n /**\n * As part of the branded app new funnel, users now can create a meta site that will be branded app first.\n * There's a blank site behind the scene but it's blank).\n * The Mobile company will be the owner of this namespace.\n */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia.com Siteless account management for Ai Scheduling Assistant. */\n NOWNIA = 'NOWNIA',\n /**\n * UGC Templates are templates that are created by users for personal use and to sale to other users.\n * The Partners company owns this namespace.\n */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux Headless Sites */\n CODUX = 'CODUX',\n /** Bobb - AI Design Creator. */\n MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n /**\n * Shared Blog Site is a unique single site across Enterprise account,\n * This site will hold all Blog posts related to the Marketing product.\n */\n SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_FORMS = 'STANDALONE_FORMS',\n /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n /** MIMIR - Siteless account for MIMIR Ai Job runner. */\n MIMIR = 'MIMIR',\n /** Wix Twins platform. */\n TWINS = 'TWINS',\n /** Wix Nano. */\n NANO = 'NANO',\n /** Base44 headless sites. */\n BASE44 = 'BASE44',\n}\n\n/** @enumType */\nexport type NamespaceWithLiterals =\n | Namespace\n | 'UNKNOWN_NAMESPACE'\n | 'WIX'\n | 'SHOUT_OUT'\n | 'ALBUMS'\n | 'WIX_STORES_TEST_DRIVE'\n | 'HOTELS'\n | 'CLUBS'\n | 'ONBOARDING_DRAFT'\n | 'DEV_SITE'\n | 'LOGOS'\n | 'VIDEO_MAKER'\n | 'PARTNER_DASHBOARD'\n | 'DEV_CENTER_COMPANY'\n | 'HTML_DRAFT'\n | 'SITELESS_BUSINESS'\n | 'CREATOR_ECONOMY'\n | 'DASHBOARD_FIRST'\n | 'ANYWHERE'\n | 'HEADLESS'\n | 'ACCOUNT_MASTER_CMS'\n | 'RISE'\n | 'BRANDED_FIRST'\n | 'NOWNIA'\n | 'UGC_TEMPLATE'\n | 'CODUX'\n | 'MEDIA_DESIGN_CREATOR'\n | 'SHARED_BLOG_ENTERPRISE'\n | 'STANDALONE_FORMS'\n | 'STANDALONE_EVENTS'\n | 'MIMIR'\n | 'TWINS'\n | 'NANO'\n | 'BASE44';\n\n/** Site transferred to another user. */\nexport interface SiteTransferred {\n /**\n * A previous owner id (user that transfers meta site).\n * @format GUID\n */\n oldOwnerId?: string;\n /**\n * A new owner id (user that accepts meta site).\n * @format GUID\n */\n newOwnerId?: string;\n}\n\n/** Soft deletion of the meta site. Could be restored. */\nexport interface SiteDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface DeleteContext {\n /** When the meta site was deleted. */\n dateDeleted?: Date | null;\n /** A status. */\n deleteStatus?: DeleteStatusWithLiterals;\n /**\n * A reason (flow).\n * @maxLength 255\n */\n deleteOrigin?: string;\n /**\n * A service that deleted it.\n * @maxLength 255\n */\n initiatorId?: string | null;\n}\n\nexport enum DeleteStatus {\n UNKNOWN = 'UNKNOWN',\n TRASH = 'TRASH',\n DELETED = 'DELETED',\n PENDING_PURGE = 'PENDING_PURGE',\n PURGED_EXTERNALLY = 'PURGED_EXTERNALLY',\n}\n\n/** @enumType */\nexport type DeleteStatusWithLiterals =\n | DeleteStatus\n | 'UNKNOWN'\n | 'TRASH'\n | 'DELETED'\n | 'PENDING_PURGE'\n | 'PURGED_EXTERNALLY';\n\n/** Restoration of the meta site. */\nexport interface SiteUndeleted {}\n\n/** First publish of a meta site. Or subsequent publish after unpublish. */\nexport interface SitePublished {}\n\nexport interface SiteUnpublished {\n /**\n * A list of URLs previously associated with the meta site.\n * @maxLength 4000\n * @maxSize 10000\n */\n urls?: string[];\n}\n\nexport interface SiteMarkedAsTemplate {}\n\nexport interface SiteMarkedAsWixSite {}\n\n/**\n * Represents a service provisioned a site.\n *\n * Note on `origin_instance_id`:\n * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.\n * This is because of the following scenario:\n *\n * Imagine you have a template where a third-party application (TPA) includes some stub data,\n * such as a product catalog. When you create a site from this template, you inherit this\n * default product catalog. However, if the template's product catalog is modified,\n * your site will retain the catalog as it was at the time of site creation. This ensures that\n * your site remains consistent with what you initially received and does not include any\n * changes made to the original template afterward.\n * To ensure this, the TPA on the template gets a new instance_id.\n */\nexport interface ServiceProvisioned {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * An instance id from which this instance is originated.\n * @maxLength 36\n */\n originInstanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n /**\n * The origin meta site id\n * @format GUID\n */\n originMetaSiteId?: string | null;\n}\n\nexport interface ServiceRemoved {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n}\n\n/** Rename of the site. Meaning, free public url has been changed as well. */\nexport interface SiteRenamed {\n /**\n * A new meta site name (URL slug).\n * @maxLength 20\n */\n newSiteName?: string;\n /**\n * A previous meta site name (URL slug).\n * @maxLength 255\n */\n oldSiteName?: string;\n}\n\n/**\n * Hard deletion of the meta site.\n *\n * Could not be restored. Therefore it's desirable to cleanup data.\n */\nexport interface SiteHardDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface NamespaceChanged {\n /** A previous namespace. */\n oldNamespace?: NamespaceWithLiterals;\n /** A new namespace. */\n newNamespace?: NamespaceWithLiterals;\n}\n\n/** Assigned Studio editor */\nexport interface StudioAssigned {}\n\n/** Unassigned Studio editor */\nexport interface StudioUnassigned {}\n\n/**\n * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.\n *\n * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up\n * with sites and its urls, you need to listen to another topic/event. Read about it:\n *\n * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service\n */\nexport interface SiteUrlChanged {}\n\n/**\n * Used at the end of the deletion flow for both draft sites and when a user deletes a site.\n * Consumed by other teams to remove relevant data.\n */\nexport interface SitePurgedExternally {\n /**\n * @maxLength 2048\n * @maxSize 100\n * @deprecated\n * @targetRemovalDate 2025-04-15\n */\n appDefId?: string[];\n}\n\n/** Assigned Odeditor */\nexport interface OdeditorAssigned {}\n\n/** Unassigned Odeditor */\nexport interface OdeditorUnassigned {}\n\n/** Assigned Picasso editor */\nexport interface PicassoAssigned {}\n\n/** Unassigned Picasso */\nexport interface PicassoUnassigned {}\n\n/** Assigned Wixel */\nexport interface WixelAssigned {}\n\n/** Unassigned Wixel */\nexport interface WixelUnassigned {}\n\n/** Assigned StudioTwo */\nexport interface StudioTwoAssigned {}\n\n/** Unassigned StudioTwo */\nexport interface StudioTwoUnassigned {}\n\nexport interface Empty {}\n\n/** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */\nexport interface SitePropertiesNotification {\n /** The site ID for which this update notification applies. */\n metasiteId?: string;\n /** The actual update event. */\n event?: SitePropertiesEvent;\n /**\n * A convenience set of mappings from the MetaSite ID to its constituent services.\n * @maxSize 500\n */\n translations?: Translation[];\n /** Context of the notification */\n changeContext?: ChangeContext;\n}\n\n/** The actual update event for a particular notification. */\nexport interface SitePropertiesEvent {\n /** Version of the site's properties represented by this update. */\n version?: number;\n /** Set of properties that were updated - corresponds to the fields in \"properties\". */\n fields?: string[];\n /** Updated properties. */\n properties?: Properties;\n}\n\nexport interface Properties {\n /** Site categories. */\n categories?: Categories;\n /** Site locale. */\n locale?: Locale;\n /**\n * Site language.\n *\n * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n */\n language?: string | null;\n /**\n * Site currency format used to bill customers.\n *\n * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n */\n paymentCurrency?: string | null;\n /** Timezone in `America/New_York` format. */\n timeZone?: string | null;\n /** Email address. */\n email?: string | null;\n /** Phone number. */\n phone?: string | null;\n /** Fax number. */\n fax?: string | null;\n /** Address. */\n address?: Address;\n /** Site display name. */\n siteDisplayName?: string | null;\n /** Business name. */\n businessName?: string | null;\n /** Path to the site's logo in Wix Media (without Wix Media base URL). */\n logo?: string | null;\n /** Site description. */\n description?: string | null;\n /**\n * Business schedule. Regular and exceptional time periods when the business is open or the service is available.\n *\n * __Note:__ Not supported by Wix Bookings.\n */\n businessSchedule?: BusinessSchedule;\n /** Supported languages of a site and the primary language. */\n multilingual?: Multilingual;\n /** Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). */\n consentPolicy?: ConsentPolicy;\n /**\n * Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`.\n *\n * Site business type.\n */\n businessConfig?: string | null;\n /** External site URL that uses Wix as its headless business solution. */\n externalSiteUrl?: string | null;\n /** Track clicks analytics. */\n trackClicksAnalytics?: boolean;\n}\n\nexport interface Categories {\n /** Primary site category. */\n primary?: string;\n /**\n * Secondary site category.\n * @maxSize 50\n */\n secondary?: string[];\n /** Business Term Id */\n businessTermId?: string | null;\n}\n\nexport interface Locale {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */\n country?: string;\n}\n\nexport interface Address {\n /** Street name. */\n street?: string;\n /** City name. */\n city?: string;\n /** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */\n country?: string;\n /** State. */\n state?: string;\n /**\n * Zip or postal code.\n * @maxLength 20\n */\n zip?: string;\n /** Extra information to be displayed in the address. */\n hint?: AddressHint;\n /** Whether this address represents a physical location. */\n isPhysical?: boolean;\n /** Google-formatted version of this address. */\n googleFormattedAddress?: string;\n /** Street number. */\n streetNumber?: string;\n /** Apartment number. */\n apartmentNumber?: string;\n /** Geographic coordinates of location. */\n coordinates?: GeoCoordinates;\n}\n\n/**\n * Extra information on displayed addresses.\n * This is used for display purposes. Used to add additional data about the address, such as \"In the passage\".\n * Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.\n */\nexport interface AddressHint {\n /** Extra text displayed next to, or instead of, the actual address. */\n text?: string;\n /** Where the extra text should be displayed. */\n placement?: PlacementTypeWithLiterals;\n}\n\n/** Where the extra text should be displayed: before, after or instead of the actual address. */\nexport enum PlacementType {\n BEFORE = 'BEFORE',\n AFTER = 'AFTER',\n REPLACE = 'REPLACE',\n}\n\n/** @enumType */\nexport type PlacementTypeWithLiterals =\n | PlacementType\n | 'BEFORE'\n | 'AFTER'\n | 'REPLACE';\n\n/** Geocoordinates for a particular address. */\nexport interface GeoCoordinates {\n /** Latitude of the location. Must be between -90 and 90. */\n latitude?: number;\n /** Longitude of the location. Must be between -180 and 180. */\n longitude?: number;\n}\n\n/** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */\nexport interface BusinessSchedule {\n /**\n * Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.\n * @maxSize 100\n */\n periods?: TimePeriod[];\n /**\n * Exceptions to the business's regular hours. The business can be open or closed during the exception.\n * @maxSize 100\n */\n specialHourPeriod?: SpecialHourPeriod[];\n}\n\n/** Weekly recurring time periods when the business is regularly open or the service is available. */\nexport interface TimePeriod {\n /** Day of the week the period starts on. */\n openDay?: DayOfWeekWithLiterals;\n /**\n * Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n */\n openTime?: string;\n /** Day of the week the period ends on. */\n closeDay?: DayOfWeekWithLiterals;\n /**\n * Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n *\n * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.\n */\n closeTime?: string;\n}\n\n/** Enumerates the days of the week. */\nexport enum DayOfWeek {\n MONDAY = 'MONDAY',\n TUESDAY = 'TUESDAY',\n WEDNESDAY = 'WEDNESDAY',\n THURSDAY = 'THURSDAY',\n FRIDAY = 'FRIDAY',\n SATURDAY = 'SATURDAY',\n SUNDAY = 'SUNDAY',\n}\n\n/** @enumType */\nexport type DayOfWeekWithLiterals =\n | DayOfWeek\n | 'MONDAY'\n | 'TUESDAY'\n | 'WEDNESDAY'\n | 'THURSDAY'\n | 'FRIDAY'\n | 'SATURDAY'\n | 'SUNDAY';\n\n/** Exception to the business's regular hours. The business can be open or closed during the exception. */\nexport interface SpecialHourPeriod {\n /** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n startDate?: string;\n /** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n endDate?: string;\n /**\n * Whether the business is closed (or the service is not available) during the exception.\n *\n * Default: `true`.\n */\n isClosed?: boolean;\n /** Additional info about the exception. For example, \"We close earlier on New Year's Eve.\" */\n comment?: string;\n}\n\nexport interface Multilingual {\n /**\n * Supported languages list.\n * @maxSize 200\n */\n supportedLanguages?: SupportedLanguage[];\n /** Whether to redirect to user language. */\n autoRedirect?: boolean;\n}\n\nexport interface SupportedLanguage {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Locale. */\n locale?: Locale;\n /** Whether the supported language is the primary language for the site. */\n isPrimary?: boolean;\n /** Language icon. */\n countryCode?: string;\n /** How the language will be resolved. For internal use. */\n resolutionMethod?: ResolutionMethodWithLiterals;\n /** Whether the supported language is the primary language for site visitors. */\n isVisitorPrimary?: boolean | null;\n}\n\nexport enum ResolutionMethod {\n QUERY_PARAM = 'QUERY_PARAM',\n SUBDOMAIN = 'SUBDOMAIN',\n SUBDIRECTORY = 'SUBDIRECTORY',\n}\n\n/** @enumType */\nexport type ResolutionMethodWithLiterals =\n | ResolutionMethod\n | 'QUERY_PARAM'\n | 'SUBDOMAIN'\n | 'SUBDIRECTORY';\n\nexport interface ConsentPolicy {\n /** Whether the site uses cookies that are essential to site operation. Always `true`. */\n essential?: boolean | null;\n /** Whether the site uses cookies that affect site performance and other functional measurements. */\n functional?: boolean | null;\n /** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */\n analytics?: boolean | null;\n /** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */\n advertising?: boolean | null;\n /** CCPA compliance flag. */\n dataToThirdParty?: boolean | null;\n}\n\n/** A single mapping from the MetaSite ID to a particular service. */\nexport interface Translation {\n /** The service type. */\n serviceType?: string;\n /** The application definition ID; this only applies to services of type ThirdPartyApps. */\n appDefId?: string;\n /** The instance ID of the service. */\n instanceId?: string;\n}\n\nexport interface ChangeContext extends ChangeContextPayloadOneOf {\n /** Properties were updated. */\n propertiesChange?: PropertiesChange;\n /** Default properties were created on site creation. */\n siteCreated?: V4SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\n/** @oneof */\nexport interface ChangeContextPayloadOneOf {\n /** Properties were updated. */\n propertiesChange?: PropertiesChange;\n /** Default properties were created on site creation. */\n siteCreated?: V4SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\nexport interface PropertiesChange {}\n\nexport interface V4SiteCreated {\n /** Origin template site id. */\n originTemplateId?: string | null;\n}\n\nexport interface SiteCloned {\n /** Origin site id. */\n originMetaSiteId?: string;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountDetails {\n /**\n * ID of the account.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the site, if applicable.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type UpdateScheduleApplicationErrors = {\n code?: 'UPDATE_CANCELLED_SCHEDULE_NOT_ALLOWED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type CancelScheduleApplicationErrors = {\n code?: 'SCHEDULE_ALREADY_CANCELLED';\n description?: string;\n data?: Record<string, any>;\n};\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface ScheduleCancelledEnvelope {\n data: ScheduleCancelled;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a schedule is canceled.\n * @permissionScope Read Calendar - Including PI\n * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI\n * @permissionScope Manage Calendars\n * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Read Bookings - Including Participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE\n * @permissionScope Read Bookings - all read permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionScope Read bookings calendar - including participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS\n * @permissionId CALENDAR.SCHEDULE_READ_PI\n * @webhook\n * @eventType wix.calendar.v3.schedule_cancelled\n * @serviceIdentifier wix.calendar.schedules.v3.SchedulesService\n * @slug cancelled\n */\nexport declare function onScheduleCancelled(\n handler: (event: ScheduleCancelledEnvelope) => void | Promise<void>\n): void;\n\nexport interface ScheduleClonedEnvelope {\n data: ScheduleCloned;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a schedule is cloned.\n * @permissionScope Read Calendar - Including PI\n * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI\n * @permissionScope Manage Calendars\n * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Read Bookings - Including Participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE\n * @permissionScope Read Bookings - all read permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionScope Read bookings calendar - including participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS\n * @permissionId CALENDAR.SCHEDULE_READ_PI\n * @webhook\n * @eventType wix.calendar.v3.schedule_cloned\n * @serviceIdentifier wix.calendar.schedules.v3.SchedulesService\n * @slug cloned\n */\nexport declare function onScheduleCloned(\n handler: (event: ScheduleClonedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ScheduleCreatedEnvelope {\n entity: Schedule;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a schedule is created.\n * @permissionScope Read Calendar - Including PI\n * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI\n * @permissionScope Manage Calendars\n * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Read Bookings - Including Participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE\n * @permissionScope Read Bookings - all read permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionScope Read bookings calendar - including participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS\n * @permissionId CALENDAR.SCHEDULE_READ_PI\n * @webhook\n * @eventType wix.calendar.v3.schedule_created\n * @serviceIdentifier wix.calendar.schedules.v3.SchedulesService\n * @slug created\n */\nexport declare function onScheduleCreated(\n handler: (event: ScheduleCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ScheduleUpdatedEnvelope {\n entity: Schedule;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a schedule is updated.\n * @permissionScope Read Calendar - Including PI\n * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI\n * @permissionScope Manage Calendars\n * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Read Bookings - Including Participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE\n * @permissionScope Read Bookings - all read permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionScope Read bookings calendar - including participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS\n * @permissionId CALENDAR.SCHEDULE_READ_PI\n * @webhook\n * @eventType wix.calendar.v3.schedule_updated\n * @serviceIdentifier wix.calendar.schedules.v3.SchedulesService\n * @slug updated\n */\nexport declare function onScheduleUpdated(\n handler: (event: ScheduleUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Retrieves a schedule.\n * @param scheduleId - ID of the schedule to retrieve.\n * @public\n * @requiredField scheduleId\n * @permissionId CALENDAR.SCHEDULE_READ\n * @permissionId CALENDAR.SCHEDULE_READ_PI\n * @applicableIdentity APP\n * @returns Retrieved schedule.\n * @fqn wix.calendar.schedules.v3.SchedulesService.GetSchedule\n */\nexport async function getSchedule(\n scheduleId: string,\n options?: GetScheduleOptions\n): Promise<\n NonNullablePaths<\n Schedule,\n | `status`\n | `defaultLocation.type`\n | `defaultConferencingDetails.type`\n | `permissions`\n | `permissions.${number}.identity.wixUserId`\n | `permissions.${number}.role`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n scheduleId: scheduleId,\n fields: options?.fields,\n });\n\n const reqOpts = ambassadorWixCalendarV3Schedule.getSchedule(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.schedule!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { scheduleId: '$[0]', fields: '$[1].fields' },\n singleArgumentUnchanged: false,\n },\n ['scheduleId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetScheduleOptions {\n /**\n * Information about which fields containing personal data to return. Refer to the\n * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions)\n * for more information.\n *\n * Supported values:\n * + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.\n * + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.\n *\n * Max: 1 field\n * Default: No personal data is returned.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Creates a query to retrieve a list of schedules.\n *\n * The `querySchedules()` function builds a query to retrieve a list of tip settings and returns a `SchedulesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-builder/find) function.\n *\n * You can refine the query by chaining `SchedulesQueryBuilder` functions onto the query. `SchedulesQueryBuilder` functions enable you to sort, filter, and control the results that `querySchedules()` returns.\n *\n * `querySchedules()` runs with the following `SchedulesQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `id` in ascending order.\n *\n * The functions that are chained to `querySchedules()` are applied in the order they are called. For example, if you apply `ascending(\"status\")` and then `ascending(\"externalId\")`, the results are sorted first by the `\"status\"`, and then, if there are multiple results with the same `\"status\"`, the items are sorted by `\"externalId\"`.\n *\n * The following `SchedulesQueryBuilder` functions are supported for the `querySchedules()` function. For a full description of the tip settings object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-result/items) property in `SchedulesQueryResult`.\n * @public\n * @permissionId CALENDAR.SCHEDULE_READ\n * @permissionId CALENDAR.SCHEDULE_READ_PI\n * @applicableIdentity APP\n * @fqn wix.calendar.schedules.v3.SchedulesService.QuerySchedules\n */\nexport function querySchedules(\n options?: QuerySchedulesOptions\n): SchedulesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Schedule,\n 'CURSOR',\n QuerySchedulesRequest,\n QuerySchedulesResponse\n >({\n func: async (payload: QuerySchedulesRequest) => {\n const reqOpts = ambassadorWixCalendarV3Schedule.querySchedules({\n ...payload,\n ...(options ?? {}),\n });\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QuerySchedulesRequest['query']) => {\n const args = [query, options] as [\n QuerySchedulesRequest['query'],\n QuerySchedulesOptions\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QuerySchedulesResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.schedules,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\nexport interface QuerySchedulesOptions {\n /**\n * Information about which fields containing personal data to return. Refer to the\n * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions)\n * for more information.\n *\n * Supported values:\n * + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.\n * + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.\n *\n * Max: 1 field\n * Default: No personal data is returned.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[] | undefined;\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface SchedulesQueryResult extends QueryCursorResult {\n items: Schedule[];\n query: SchedulesQueryBuilder;\n next: () => Promise<SchedulesQueryResult>;\n prev: () => Promise<SchedulesQueryResult>;\n}\n\nexport interface SchedulesQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n eq: (\n propertyName: '_id' | 'externalId' | 'status' | 'appId',\n value: any\n ) => SchedulesQueryBuilder;\n in: (\n propertyName: '_id' | 'externalId' | 'status' | 'appId',\n value: any\n ) => SchedulesQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */\n limit: (limit: number) => SchedulesQueryBuilder;\n /** @param cursor - A pointer to specific record */\n skipTo: (cursor: string) => SchedulesQueryBuilder;\n find: () => Promise<SchedulesQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.calendar.schedules.v3.SchedulesService.QuerySchedules\n * @requiredField query\n */\nexport async function typedQuerySchedules(\n query: ScheduleQuery,\n options?: QuerySchedulesOptions\n): Promise<\n NonNullablePaths<\n QuerySchedulesResponse,\n | `schedules`\n | `schedules.${number}.status`\n | `schedules.${number}.defaultLocation.type`\n | `schedules.${number}.defaultConferencingDetails.type`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n ...options,\n });\n\n const reqOpts = ambassadorWixCalendarV3Schedule.querySchedules(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ScheduleQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['_id', 'appId', 'externalId', 'status'];\n operators: ['$eq', '$in'];\n sort: 'NONE';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n Schedule,\n ScheduleQuerySpec\n>;\nexport type ScheduleQuery = {\n /** \n Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. \n */\n cursorPaging?: {\n /** \n Number of schedules to return.\n\n Min: `1`\n Max: `100`\n Default: `50` \n @min: 1,\n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n You can get the relevant cursor token\n from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)\n for more information.\n\n Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.\n\n For a detailed list of supported filters, see Supported Filters. \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n};\n\n/**\n * Creates a schedule.\n *\n *\n * If you want the schedule's events to appear in the\n * [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),\n * you must set `appId` to the ID of the Wix Bookings app by providing\n * `{\"appId\": \"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"}`.\n * @param schedule - Schedule to create.\n * @public\n * @requiredField schedule\n * @requiredField schedule.defaultConferencingDetails.guestUrl\n * @requiredField schedule.defaultConferencingDetails.hostUrl\n * @requiredField schedule.defaultConferencingDetails.type\n * @requiredField schedule.defaultLocation.type\n * @requiredField schedule.permissions.identity\n * @requiredField schedule.permissions.role\n * @permissionId CALENDAR.SCHEDULE_CREATE\n * @applicableIdentity APP\n * @returns Created schedule.\n * @fqn wix.calendar.schedules.v3.SchedulesService.CreateSchedule\n */\nexport async function createSchedule(\n schedule: NonNullablePaths<\n Schedule,\n | `defaultConferencingDetails.guestUrl`\n | `defaultConferencingDetails.hostUrl`\n | `defaultConferencingDetails.type`\n | `defaultLocation.type`\n | `permissions.${number}.identity`\n | `permissions.${number}.role`,\n 4\n >,\n options?: CreateScheduleOptions\n): Promise<\n NonNullablePaths<\n Schedule,\n | `status`\n | `defaultLocation.type`\n | `defaultConferencingDetails.type`\n | `permissions`\n | `permissions.${number}.identity.wixUserId`\n | `permissions.${number}.role`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n schedule: schedule,\n idempotencyKey: options?.idempotencyKey,\n });\n\n const reqOpts = ambassadorWixCalendarV3Schedule.createSchedule(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.schedule!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n schedule: '$[0]',\n idempotencyKey: '$[1].idempotencyKey',\n },\n singleArgumentUnchanged: false,\n },\n ['schedule', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateScheduleOptions {\n /**\n * Idempotency key guaranteeing that you don't create the same schedule more\n * than once.\n * @format GUID\n */\n idempotencyKey?: string | null;\n}\n\n/**\n * Updates a schedule.\n *\n *\n * Each time the schedule is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the schedule.\n * This ensures you're working with the latest schedule\n * and prevents unintended overwrites.\n * @param _id - Schedule ID.\n * @public\n * @requiredField _id\n * @requiredField schedule\n * @requiredField schedule.permissions.identity\n * @requiredField schedule.permissions.role\n * @requiredField schedule.revision\n * @permissionId CALENDAR.SCHEDULE_UPDATE\n * @applicableIdentity APP\n * @returns Updated schedule.\n * @fqn wix.calendar.schedules.v3.SchedulesService.UpdateSchedule\n */\nexport async function updateSchedule(\n _id: string,\n schedule: NonNullablePaths<\n UpdateSchedule,\n | `permissions.${number}.identity`\n | `permissions.${number}.role`\n | `revision`,\n 4\n >,\n options?: UpdateScheduleOptions\n): Promise<\n NonNullablePaths<\n Schedule,\n | `status`\n | `defaultLocation.type`\n | `defaultConferencingDetails.type`\n | `permissions`\n | `permissions.${number}.identity.wixUserId`\n | `permissions.${number}.role`,\n 5\n > & {\n __applicationErrorsType?: UpdateScheduleApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n schedule: { ...schedule, id: _id },\n participantNotification: options?.participantNotification,\n });\n\n const reqOpts = ambassadorWixCalendarV3Schedule.updateSchedule(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.schedule!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { schedule: '$[1]' },\n explicitPathsToArguments: {\n 'schedule.id': '$[0]',\n participantNotification: '$[2].participantNotification',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'schedule', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateSchedule {\n /**\n * Schedule ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * External ID. You can't update the external ID.\n *\n * If the schedule belongs to a Bookings staff member, identical to the ID of\n * the [resource](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction).\n * If the schedule belongs to a Bookings service, identical to the ID of\n * the [service](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/setup).\n * @format GUID\n * @immutable\n */\n externalId?: string | null;\n /**\n * Schedule name.\n *\n * Min: 1 character\n * Max: 200 characters\n * @minLength 1\n * @maxLength 200\n */\n name?: string | null;\n /**\n * Schedule status.\n *\n * Supported values:\n * - `ACTIVE`: You can add events to the schedule or update its fields.\n * - `CANCELLED`: You can't add events to the schedule or update its fields.\n *\n * Default: `ACTIVE`\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Time zone the schedule is associated with in\n * [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\n * For example, `America/New_York`.\n *\n * Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties).\n *\n * Min: 1 character\n * Max: 150 characters\n * @minLength 1\n * @maxLength 150\n */\n timeZone?: string | null;\n /**\n * Whether the schedule's `timeZone` is automatically synced from\n * `timeZone` of the business [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties).\n *\n * Default: `true`\n */\n businessTimeZoneEnabled?: boolean | null;\n /**\n * Default `title` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * that are added to the schedule.\n *\n * Min: 1 character\n * Max: 200 characters\n * @minLength 1\n * @maxLength 200\n */\n defaultTitle?: string | null;\n /**\n * Default `location` for [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * that are added to the schedule.\n */\n defaultLocation?: Location;\n /**\n * Default `totalCapacity` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * that are added to the schedule.\n *\n * Min: `0`\n */\n defaultCapacity?: number | null;\n /**\n * Default `conferencingDetails` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * that are added to the schedule.\n * Returned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#retrieve-personal-information).\n */\n defaultConferencingDetails?: ConferencingDetails;\n /**\n * ID of the app that's associated with the schedule. You can't update `appId`.\n * If you want to create a schedule and ensure its associated events appear\n * in the [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),\n * you must provide the Wix Bookings app ID\n * `13d21c63-b5ec-5912-8397-c3a5ddb27a97`.\n * @format GUID\n * @immutable\n */\n appId?: string | null;\n /**\n * List of permissions associated with the schedule. Refer to the\n * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#roles)\n * for more information.\n *\n * Max: 1 permission\n * @maxSize 1\n */\n permissions?: Permission[];\n /** Extensions enabling applications or users to save custom data related to the schedule. */\n extendedFields?: ExtendedFields;\n /**\n * Revision number, which increments by 1 each time the schedule is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the schedule.\n * Ignored when creating a schedule.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date the schedule was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date the schedule was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _updatedDate?: Date | null;\n}\n\nexport interface UpdateScheduleOptions {\n /**\n * Information about whether participants of the schedule's updated events are\n * notified and the message they receive.\n */\n participantNotification?: ParticipantNotification;\n}\n\n/**\n * Sets a schedule's `status` to `CANCELLED`.\n *\n *\n * Also cancels future events belonging to the schedule.\n *\n * Once a schedule is marked as `CANCELLED`, you can't reactivate it, update it,\n * or assign new events.\n * @param scheduleId - ID of the schedule to cancel.\n * @public\n * @requiredField scheduleId\n * @permissionId CALENDAR.SCHEDULE_CANCEL\n * @applicableIdentity APP\n * @fqn wix.calendar.schedules.v3.SchedulesService.CancelSchedule\n */\nexport async function cancelSchedule(\n scheduleId: string,\n options?: CancelScheduleOptions\n): Promise<\n NonNullablePaths<\n CancelScheduleResponse,\n | `schedule.status`\n | `schedule.defaultLocation.type`\n | `schedule.defaultConferencingDetails.type`\n | `schedule.permissions`\n | `schedule.permissions.${number}.identity.wixUserId`\n | `schedule.permissions.${number}.role`,\n 6\n > & {\n __applicationErrorsType?: CancelScheduleApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n scheduleId: scheduleId,\n preserveFutureEventsWithParticipants:\n options?.preserveFutureEventsWithParticipants,\n participantNotification: options?.participantNotification,\n });\n\n const reqOpts = ambassadorWixCalendarV3Schedule.cancelSchedule(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n scheduleId: '$[0]',\n preserveFutureEventsWithParticipants:\n '$[1].preserveFutureEventsWithParticipants',\n participantNotification: '$[1].participantNotification',\n },\n singleArgumentUnchanged: false,\n },\n ['scheduleId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CancelScheduleOptions {\n /**\n * Whether to preserve future events with participants.\n * Default: `false`.\n */\n preserveFutureEventsWithParticipants?: boolean | null;\n /**\n * Information about whether participants of the schedule's updated events are\n * notified and the message they receive.\n */\n participantNotification?: ParticipantNotification;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixCalendarSchedulesV3SchedulesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/schedules-3',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/calendar/v3/schedules',\n destPath: '/v3/schedules',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/calendar/v3/schedules',\n destPath: '/v3/schedules',\n },\n ],\n _: [\n {\n srcPath: '/_api/calendar/v3/schedules',\n destPath: '/v3/schedules',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/calendar/v3/schedules',\n destPath: '/v3/schedules',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_calendar_schedules';\n\n/** Retrieves a schedule. */\nexport function getSchedule(payload: object): RequestOptionsFactory<any> {\n function __getSchedule({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'GET' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.GetSchedule',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules/{scheduleId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getSchedule;\n}\n\n/**\n * Creates a query to retrieve a list of schedules.\n *\n * The `querySchedules()` function builds a query to retrieve a list of tip settings and returns a `SchedulesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-builder/find) function.\n *\n * You can refine the query by chaining `SchedulesQueryBuilder` functions onto the query. `SchedulesQueryBuilder` functions enable you to sort, filter, and control the results that `querySchedules()` returns.\n *\n * `querySchedules()` runs with the following `SchedulesQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `id` in ascending order.\n *\n * The functions that are chained to `querySchedules()` are applied in the order they are called. For example, if you apply `ascending(\"status\")` and then `ascending(\"externalId\")`, the results are sorted first by the `\"status\"`, and then, if there are multiple results with the same `\"status\"`, the items are sorted by `\"externalId\"`.\n *\n * The following `SchedulesQueryBuilder` functions are supported for the `querySchedules()` function. For a full description of the tip settings object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-result/items) property in `SchedulesQueryResult`.\n */\nexport function querySchedules(payload: object): RequestOptionsFactory<any> {\n function __querySchedules({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'POST' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.QuerySchedules',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedules.createdDate' },\n { path: 'schedules.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __querySchedules;\n}\n\n/**\n * Creates a schedule.\n *\n *\n * If you want the schedule's events to appear in the\n * [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),\n * you must set `appId` to the ID of the Wix Bookings app by providing\n * `{\"appId\": \"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"}`.\n */\nexport function createSchedule(payload: object): RequestOptionsFactory<any> {\n function __createSchedule({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'POST' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.CreateSchedule',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createSchedule;\n}\n\n/**\n * Updates a schedule.\n *\n *\n * Each time the schedule is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the schedule.\n * This ensures you're working with the latest schedule\n * and prevents unintended overwrites.\n */\nexport function updateSchedule(payload: object): RequestOptionsFactory<any> {\n function __updateSchedule({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldmask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'PATCH' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.UpdateSchedule',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules/{schedule.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateSchedule;\n}\n\n/**\n * Sets a schedule's `status` to `CANCELLED`.\n *\n *\n * Also cancels future events belonging to the schedule.\n *\n * Once a schedule is marked as `CANCELLED`, you can't reactivate it, update it,\n * or assign new events.\n */\nexport function cancelSchedule(payload: object): RequestOptionsFactory<any> {\n function __cancelSchedule({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'POST' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.CancelSchedule',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules/{scheduleId}/cancel',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __cancelSchedule;\n}\n","import {\n getSchedule as publicGetSchedule,\n querySchedules as publicQuerySchedules,\n typedQuerySchedules as publicTypedQuerySchedules,\n createSchedule as publicCreateSchedule,\n updateSchedule as publicUpdateSchedule,\n cancelSchedule as publicCancelSchedule,\n} from './calendar-v3-schedule-schedules.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n QuerySchedulesOptions,\n ScheduleQuery,\n SchedulesQueryBuilder,\n typedQuerySchedules as universalTypedQuerySchedules,\n} from './calendar-v3-schedule-schedules.universal.js';\nimport { onScheduleCancelled as publicOnScheduleCancelled } from './calendar-v3-schedule-schedules.public.js';\nimport { onScheduleCloned as publicOnScheduleCloned } from './calendar-v3-schedule-schedules.public.js';\nimport { onScheduleCreated as publicOnScheduleCreated } from './calendar-v3-schedule-schedules.public.js';\nimport { onScheduleUpdated as publicOnScheduleUpdated } from './calendar-v3-schedule-schedules.public.js';\n\nfunction customQuerySchedules(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: (options?: QuerySchedulesOptions) =>\n publicQuerySchedules(httpClient)(options),\n typedQueryFunction: (\n query: ScheduleQuery,\n options?: QuerySchedulesOptions\n ) => publicTypedQuerySchedules(httpClient)(query, options),\n hasOptionsParameter: true,\n });\n\n function overloadedQuery(\n query: ScheduleQuery,\n options?: QuerySchedulesOptions\n ): ReturnType<typeof universalTypedQuerySchedules>;\n function overloadedQuery(\n options?: QuerySchedulesOptions\n ): SchedulesQueryBuilder;\n function overloadedQuery(\n queryOrOptions?: ScheduleQuery | QuerySchedulesOptions,\n options?: QuerySchedulesOptions\n ): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\nexport const getSchedule: MaybeContext<\n BuildRESTFunction<typeof publicGetSchedule> & typeof publicGetSchedule\n> = /*#__PURE__*/ createRESTModule(publicGetSchedule);\nexport const createSchedule: MaybeContext<\n BuildRESTFunction<typeof publicCreateSchedule> & typeof publicCreateSchedule\n> = /*#__PURE__*/ createRESTModule(publicCreateSchedule);\nexport const updateSchedule: MaybeContext<\n BuildRESTFunction<typeof publicUpdateSchedule> & typeof publicUpdateSchedule\n> = /*#__PURE__*/ createRESTModule(publicUpdateSchedule);\nexport const cancelSchedule: MaybeContext<\n BuildRESTFunction<typeof publicCancelSchedule> & typeof publicCancelSchedule\n> = /*#__PURE__*/ createRESTModule(publicCancelSchedule);\nexport const querySchedules: MaybeContext<\n BuildRESTFunction<typeof customQuerySchedules> & typeof customQuerySchedules\n> = /*#__PURE__*/ createRESTModule(customQuerySchedules);\n/**\n * Triggered when a schedule is canceled.\n */\nexport const onScheduleCancelled: BuildEventDefinition<\n typeof publicOnScheduleCancelled\n> &\n typeof publicOnScheduleCancelled = createEventModule(\n publicOnScheduleCancelled\n);\n/**\n * Triggered when a schedule is cloned.\n */\nexport const onScheduleCloned: BuildEventDefinition<\n typeof publicOnScheduleCloned\n> &\n typeof publicOnScheduleCloned = createEventModule(publicOnScheduleCloned);\n/**\n * Triggered when a schedule is created.\n */\nexport const onScheduleCreated: BuildEventDefinition<\n typeof publicOnScheduleCreated\n> &\n typeof publicOnScheduleCreated = createEventModule(publicOnScheduleCreated);\n/**\n * Triggered when a schedule is updated.\n */\nexport const onScheduleUpdated: BuildEventDefinition<\n typeof publicOnScheduleUpdated\n> &\n typeof publicOnScheduleUpdated = createEventModule(publicOnScheduleUpdated);\n\nexport {\n Status,\n LocationType,\n Type,\n IdentityType,\n Role,\n RequestedFields,\n Trigger,\n State,\n SiteCreatedContext,\n Namespace,\n DeleteStatus,\n PlacementType,\n DayOfWeek,\n ResolutionMethod,\n WebhookIdentityType,\n} from './calendar-v3-schedule-schedules.universal.js';\nexport {\n Schedule,\n Location,\n ConferencingDetails,\n Permission,\n CommonIdentificationData,\n CommonIdentificationDataIdOneOf,\n ExtendedFields,\n GetScheduleRequest,\n GetScheduleResponse,\n QuerySchedulesRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n CursorPaging,\n QuerySchedulesResponse,\n CursorPagingMetadata,\n Cursors,\n CreateScheduleRequest,\n CreateScheduleResponse,\n UpdateScheduleRequest,\n ParticipantNotification,\n UpdateScheduleResponse,\n ScheduleUpdatedWithMetadata,\n CloneScheduleRequest,\n CloneScheduleResponse,\n ScheduleCloned,\n CancelScheduleRequest,\n CancelScheduleResponse,\n ScheduleCancelled,\n MetaSiteSpecialEvent,\n MetaSiteSpecialEventPayloadOneOf,\n Asset,\n SiteCreated,\n SiteTransferred,\n SiteDeleted,\n DeleteContext,\n SiteUndeleted,\n SitePublished,\n SiteUnpublished,\n SiteMarkedAsTemplate,\n SiteMarkedAsWixSite,\n ServiceProvisioned,\n ServiceRemoved,\n SiteRenamed,\n SiteHardDeleted,\n NamespaceChanged,\n StudioAssigned,\n StudioUnassigned,\n SiteUrlChanged,\n SitePurgedExternally,\n OdeditorAssigned,\n OdeditorUnassigned,\n PicassoAssigned,\n PicassoUnassigned,\n WixelAssigned,\n WixelUnassigned,\n StudioTwoAssigned,\n StudioTwoUnassigned,\n Empty,\n SitePropertiesNotification,\n SitePropertiesEvent,\n Properties,\n Categories,\n Locale,\n Address,\n AddressHint,\n GeoCoordinates,\n BusinessSchedule,\n TimePeriod,\n SpecialHourPeriod,\n Multilingual,\n SupportedLanguage,\n ConsentPolicy,\n Translation,\n ChangeContext,\n ChangeContextPayloadOneOf,\n PropertiesChange,\n V4SiteCreated,\n SiteCloned,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountDetails,\n BaseEventMetadata,\n EventMetadata,\n ScheduleCancelledEnvelope,\n ScheduleClonedEnvelope,\n ScheduleCreatedEnvelope,\n ScheduleUpdatedEnvelope,\n GetScheduleOptions,\n QuerySchedulesOptions,\n SchedulesQueryResult,\n SchedulesQueryBuilder,\n ScheduleQuerySpec,\n CreateScheduleOptions,\n UpdateSchedule,\n UpdateScheduleOptions,\n CancelScheduleOptions,\n} from './calendar-v3-schedule-schedules.universal.js';\nexport {\n StatusWithLiterals,\n LocationTypeWithLiterals,\n TypeWithLiterals,\n IdentityTypeWithLiterals,\n RoleWithLiterals,\n RequestedFieldsWithLiterals,\n TriggerWithLiterals,\n StateWithLiterals,\n SiteCreatedContextWithLiterals,\n NamespaceWithLiterals,\n DeleteStatusWithLiterals,\n PlacementTypeWithLiterals,\n DayOfWeekWithLiterals,\n ResolutionMethodWithLiterals,\n WebhookIdentityTypeWithLiterals,\n UpdateScheduleApplicationErrors,\n CancelScheduleApplicationErrors,\n CommonQueryWithEntityContext,\n ScheduleQuery,\n} from './calendar-v3-schedule-schedules.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAAA;AAAA,EAAA,sBAAAC;AAAA,EAAA,mBAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,sBAAAC;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,uBAA8D;;;ACH9D,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,iDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAm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eAAoB;AAChD,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAML,kBAEK,2DAAiB,oBAAoB;AAIhD,IAAMM,2BAGwB;AAAA,EACnC;AACF;AAIO,IAAMC,wBAGqB,mDAAkB,gBAAsB;AAInE,IAAMC,yBAGsB,mDAAkB,iBAAuB;AAIrE,IAAMC,yBAGsB,mDAAkB,iBAAuB;","names":["cancelSchedule","createSchedule","getSchedule","onScheduleCancelled","onScheduleCloned","onScheduleCreated","onScheduleUpdated","querySchedules","updateSchedule","import_rename_all_nested_keys","import_timestamp","import_transform_paths","import_timestamp","import_rest_modules","payload","import_transform_paths","Status","LocationType","Type","IdentityType","Role","RequestedFields","Trigger","State","SiteCreatedContext","Namespace","DeleteStatus","PlacementType","DayOfWeek","ResolutionMethod","WebhookIdentityType","getSchedule","sdkTransformError","querySchedules","createSchedule","updateSchedule","cancelSchedule","getSchedule","querySchedules","typedQuerySchedules","createSchedule","updateSchedule","cancelSchedule","import_rest_modules","querySchedules","typedQuerySchedules","getSchedule","createSchedule","updateSchedule","cancelSchedule","onScheduleCancelled","onScheduleCloned","onScheduleCreated","onScheduleUpdated"]}
1
+ {"version":3,"sources":["../../index.ts","../../src/calendar-v3-schedule-schedules.public.ts","../../src/calendar-v3-schedule-schedules.universal.ts","../../src/calendar-v3-schedule-schedules.http.ts","../../src/calendar-v3-schedule-schedules.context.ts"],"sourcesContent":["export * from './src/calendar-v3-schedule-schedules.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n CancelScheduleApplicationErrors,\n CancelScheduleOptions,\n CancelScheduleResponse,\n CreateScheduleOptions,\n GetScheduleOptions,\n QuerySchedulesOptions,\n QuerySchedulesResponse,\n Schedule,\n ScheduleCancelledEnvelope,\n ScheduleClonedEnvelope,\n ScheduleCreatedEnvelope,\n ScheduleQuery,\n ScheduleUpdatedEnvelope,\n SchedulesQueryBuilder,\n UpdateSchedule,\n UpdateScheduleApplicationErrors,\n UpdateScheduleOptions,\n cancelSchedule as universalCancelSchedule,\n createSchedule as universalCreateSchedule,\n getSchedule as universalGetSchedule,\n querySchedules as universalQuerySchedules,\n typedQuerySchedules as universalTypedQuerySchedules,\n updateSchedule as universalUpdateSchedule,\n} from './calendar-v3-schedule-schedules.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/calendar' };\n\nexport function getSchedule(httpClient: HttpClient): GetScheduleSignature {\n return (scheduleId: string, options?: GetScheduleOptions) =>\n universalGetSchedule(\n scheduleId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetScheduleSignature {\n /**\n * Retrieves a schedule.\n * @param - ID of the schedule to retrieve.\n * @returns Retrieved schedule.\n */\n (scheduleId: string, options?: GetScheduleOptions): Promise<\n NonNullablePaths<\n Schedule,\n | `status`\n | `defaultLocation.type`\n | `defaultConferencingDetails.type`\n | `permissions`\n | `permissions.${number}.identity.wixUserId`\n | `permissions.${number}.role`,\n 5\n >\n >;\n}\n\nexport function querySchedules(\n httpClient: HttpClient\n): QuerySchedulesSignature {\n return (options?: QuerySchedulesOptions) =>\n universalQuerySchedules(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QuerySchedulesSignature {\n /**\n * Creates a query to retrieve a list of schedules.\n *\n * The `querySchedules()` function builds a query to retrieve a list of tip settings and returns a `SchedulesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-builder/find) function.\n *\n * You can refine the query by chaining `SchedulesQueryBuilder` functions onto the query. `SchedulesQueryBuilder` functions enable you to sort, filter, and control the results that `querySchedules()` returns.\n *\n * `querySchedules()` runs with the following `SchedulesQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `id` in ascending order.\n *\n * The functions that are chained to `querySchedules()` are applied in the order they are called. For example, if you apply `ascending(\"status\")` and then `ascending(\"externalId\")`, the results are sorted first by the `\"status\"`, and then, if there are multiple results with the same `\"status\"`, the items are sorted by `\"externalId\"`.\n *\n * The following `SchedulesQueryBuilder` functions are supported for the `querySchedules()` function. For a full description of the tip settings object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-result/items) property in `SchedulesQueryResult`.\n */\n (options?: QuerySchedulesOptions): SchedulesQueryBuilder;\n}\n\nexport function typedQuerySchedules(\n httpClient: HttpClient\n): TypedQuerySchedulesSignature {\n return (query: ScheduleQuery, options?: QuerySchedulesOptions) =>\n universalTypedQuerySchedules(\n query,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQuerySchedulesSignature {\n /** */\n (query: ScheduleQuery, options?: QuerySchedulesOptions): Promise<\n NonNullablePaths<\n QuerySchedulesResponse,\n | `schedules`\n | `schedules.${number}.status`\n | `schedules.${number}.defaultLocation.type`\n | `schedules.${number}.defaultConferencingDetails.type`,\n 5\n >\n >;\n}\n\nexport function createSchedule(\n httpClient: HttpClient\n): CreateScheduleSignature {\n return (\n schedule: NonNullablePaths<\n Schedule,\n | `defaultConferencingDetails.guestUrl`\n | `defaultConferencingDetails.hostUrl`\n | `defaultConferencingDetails.type`\n | `defaultLocation.type`\n | `permissions.${number}.identity`\n | `permissions.${number}.role`,\n 4\n >,\n options?: CreateScheduleOptions\n ) =>\n universalCreateSchedule(\n schedule,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateScheduleSignature {\n /**\n * Creates a schedule.\n *\n *\n * If you want the schedule's events to appear in the\n * [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),\n * you must set `appId` to the ID of the Wix Bookings app by providing\n * `{\"appId\": \"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"}`.\n * @param - Schedule to create.\n * @returns Created schedule.\n */\n (\n schedule: NonNullablePaths<\n Schedule,\n | `defaultConferencingDetails.guestUrl`\n | `defaultConferencingDetails.hostUrl`\n | `defaultConferencingDetails.type`\n | `defaultLocation.type`\n | `permissions.${number}.identity`\n | `permissions.${number}.role`,\n 4\n >,\n options?: CreateScheduleOptions\n ): Promise<\n NonNullablePaths<\n Schedule,\n | `status`\n | `defaultLocation.type`\n | `defaultConferencingDetails.type`\n | `permissions`\n | `permissions.${number}.identity.wixUserId`\n | `permissions.${number}.role`,\n 5\n >\n >;\n}\n\nexport function updateSchedule(\n httpClient: HttpClient\n): UpdateScheduleSignature {\n return (\n _id: string,\n schedule: NonNullablePaths<\n UpdateSchedule,\n | `permissions.${number}.identity`\n | `permissions.${number}.role`\n | `revision`,\n 4\n >,\n options?: UpdateScheduleOptions\n ) =>\n universalUpdateSchedule(\n _id,\n schedule,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateScheduleSignature {\n /**\n * Updates a schedule.\n *\n *\n * Each time the schedule is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the schedule.\n * This ensures you're working with the latest schedule\n * and prevents unintended overwrites.\n * @param - Schedule ID.\n * @returns Updated schedule.\n */\n (\n _id: string,\n schedule: NonNullablePaths<\n UpdateSchedule,\n | `permissions.${number}.identity`\n | `permissions.${number}.role`\n | `revision`,\n 4\n >,\n options?: UpdateScheduleOptions\n ): Promise<\n NonNullablePaths<\n Schedule,\n | `status`\n | `defaultLocation.type`\n | `defaultConferencingDetails.type`\n | `permissions`\n | `permissions.${number}.identity.wixUserId`\n | `permissions.${number}.role`,\n 5\n > & {\n __applicationErrorsType?: UpdateScheduleApplicationErrors;\n }\n >;\n}\n\nexport function cancelSchedule(\n httpClient: HttpClient\n): CancelScheduleSignature {\n return (scheduleId: string, options?: CancelScheduleOptions) =>\n universalCancelSchedule(\n scheduleId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CancelScheduleSignature {\n /**\n * Sets a schedule's `status` to `CANCELLED`.\n *\n *\n * Also cancels future events belonging to the schedule.\n *\n * Once a schedule is marked as `CANCELLED`, you can't reactivate it, update it,\n * or assign new events.\n * @param - ID of the schedule to cancel.\n */\n (scheduleId: string, options?: CancelScheduleOptions): Promise<\n NonNullablePaths<\n CancelScheduleResponse,\n | `schedule.status`\n | `schedule.defaultLocation.type`\n | `schedule.defaultConferencingDetails.type`\n | `schedule.permissions`\n | `schedule.permissions.${number}.identity.wixUserId`\n | `schedule.permissions.${number}.role`,\n 6\n > & {\n __applicationErrorsType?: CancelScheduleApplicationErrors;\n }\n >;\n}\n\nexport const onScheduleCancelled = EventDefinition(\n 'wix.calendar.v3.schedule_cancelled',\n true,\n (event: ScheduleCancelledEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'data.schedule.createdDate' },\n { path: 'data.schedule.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<ScheduleCancelledEnvelope>();\nexport const onScheduleCloned = EventDefinition(\n 'wix.calendar.v3.schedule_cloned',\n true,\n (event: ScheduleClonedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'data.schedule.createdDate' },\n { path: 'data.schedule.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<ScheduleClonedEnvelope>();\nexport const onScheduleCreated = EventDefinition(\n 'wix.calendar.v3.schedule_created',\n true,\n (event: ScheduleCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<ScheduleCreatedEnvelope>();\nexport const onScheduleUpdated = EventDefinition(\n 'wix.calendar.v3.schedule_updated',\n true,\n (event: ScheduleUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<ScheduleUpdatedEnvelope>();\n\nexport {\n AccountDetails,\n ActionEvent,\n Address,\n AddressHint,\n Asset,\n BaseEventMetadata,\n BusinessSchedule,\n CancelScheduleOptions,\n CancelScheduleRequest,\n CancelScheduleResponse,\n Categories,\n ChangeContext,\n ChangeContextPayloadOneOf,\n CloneScheduleRequest,\n CloneScheduleResponse,\n CommonIdentificationData,\n CommonIdentificationDataIdOneOf,\n ConferencingDetails,\n ConsentPolicy,\n CreateScheduleOptions,\n CreateScheduleRequest,\n CreateScheduleResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DayOfWeek,\n DeleteContext,\n DeleteStatus,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExtendedFields,\n GeoCoordinates,\n GetScheduleOptions,\n GetScheduleRequest,\n GetScheduleResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n IdentityType,\n Locale,\n Location,\n LocationType,\n MessageEnvelope,\n MetaSiteSpecialEvent,\n MetaSiteSpecialEventPayloadOneOf,\n Multilingual,\n Namespace,\n NamespaceChanged,\n OdeditorAssigned,\n OdeditorUnassigned,\n ParticipantNotification,\n Permission,\n PicassoAssigned,\n PicassoUnassigned,\n PlacementType,\n Properties,\n PropertiesChange,\n QuerySchedulesOptions,\n QuerySchedulesRequest,\n QuerySchedulesResponse,\n RequestedFields,\n ResolutionMethod,\n RestoreInfo,\n Role,\n Schedule,\n ScheduleCancelled,\n ScheduleCancelledEnvelope,\n ScheduleCloned,\n ScheduleClonedEnvelope,\n ScheduleCreatedEnvelope,\n ScheduleQuerySpec,\n ScheduleUpdatedEnvelope,\n ScheduleUpdatedWithMetadata,\n SchedulesQueryBuilder,\n SchedulesQueryResult,\n ServiceProvisioned,\n ServiceRemoved,\n SiteCloned,\n SiteCreated,\n SiteCreatedContext,\n SiteDeleted,\n SiteHardDeleted,\n SiteMarkedAsTemplate,\n SiteMarkedAsWixSite,\n SitePropertiesEvent,\n SitePropertiesNotification,\n SitePublished,\n SitePurgedExternally,\n SiteRenamed,\n SiteTransferred,\n SiteUndeleted,\n SiteUnpublished,\n SiteUrlChanged,\n SpecialHourPeriod,\n State,\n Status,\n StudioAssigned,\n StudioTwoAssigned,\n StudioTwoUnassigned,\n StudioUnassigned,\n SupportedLanguage,\n TimePeriod,\n Translation,\n Trigger,\n Type,\n UpdateSchedule,\n UpdateScheduleOptions,\n UpdateScheduleRequest,\n UpdateScheduleResponse,\n V4SiteCreated,\n WebhookIdentityType,\n WixelAssigned,\n WixelUnassigned,\n} from './calendar-v3-schedule-schedules.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixCalendarV3Schedule from './calendar-v3-schedule-schedules.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/**\n * A collection of [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * associated with a specific entity, such as a\n * [Bookings service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object),\n * or [Bookings resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).\n * Schedules can also serve as templates for the events they manage, setting\n * default values like a default location.\n */\nexport interface Schedule {\n /**\n * Schedule ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * External ID. You can't update the external ID.\n *\n * If the schedule belongs to a Bookings staff member, identical to the ID of\n * the [resource](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction).\n * If the schedule belongs to a Bookings service, identical to the ID of\n * the [service](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/setup).\n * @format GUID\n * @immutable\n */\n externalId?: string | null;\n /**\n * Schedule name.\n *\n * Min: 1 character\n * Max: 200 characters\n * @minLength 1\n * @maxLength 200\n */\n name?: string | null;\n /**\n * Schedule status.\n *\n * Supported values:\n * - `ACTIVE`: You can add events to the schedule or update its fields.\n * - `CANCELLED`: You can't add events to the schedule or update its fields.\n *\n * Default: `ACTIVE`\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Time zone the schedule is associated with in\n * [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\n * For example, `America/New_York`.\n *\n * Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties).\n *\n * Min: 1 character\n * Max: 150 characters\n * @minLength 1\n * @maxLength 150\n */\n timeZone?: string | null;\n /**\n * Whether the schedule's `timeZone` is automatically synced from\n * `timeZone` of the business [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties).\n *\n * Default: `true`\n */\n businessTimeZoneEnabled?: boolean | null;\n /**\n * Default `title` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * that are added to the schedule.\n *\n * Min: 1 character\n * Max: 200 characters\n * @minLength 1\n * @maxLength 200\n */\n defaultTitle?: string | null;\n /**\n * Default `location` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * that are added to the schedule.\n */\n defaultLocation?: Location;\n /**\n * Default `totalCapacity` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * that are added to the schedule.\n *\n * Min: `0`\n */\n defaultCapacity?: number | null;\n /**\n * Default `conferencingDetails` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * that are added to the schedule.\n * Returned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#retrieve-personal-information).\n */\n defaultConferencingDetails?: ConferencingDetails;\n /**\n * ID of the app that's associated with the schedule. You can't update `appId`.\n * If you want to create a schedule and ensure its associated events appear\n * in the [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),\n * you must provide the Wix Bookings app ID\n * `13d21c63-b5ec-5912-8397-c3a5ddb27a97`.\n * @format GUID\n * @immutable\n */\n appId?: string | null;\n /**\n * List of permissions associated with the schedule. Refer to the\n * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#roles)\n * for more information.\n *\n * Max: 1 permission\n * @maxSize 1\n */\n permissions?: Permission[];\n /** Extensions enabling applications or users to save custom data related to the schedule. */\n extendedFields?: ExtendedFields;\n /**\n * Revision number, which increments by 1 each time the schedule is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the schedule.\n * Ignored when creating a schedule.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date the schedule was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date the schedule was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _updatedDate?: Date | null;\n}\n\nexport enum Status {\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n /** You can add events to the schedule or update its fields. */\n ACTIVE = 'ACTIVE',\n /** You can't add events to the schedule or update its fields. */\n CANCELLED = 'CANCELLED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN_STATUS'\n | 'ACTIVE'\n | 'CANCELLED';\n\nexport interface Location {\n /**\n * [Location](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction)\n * ID. Available only for `BUSINESS` locations.\n * @format GUID\n */\n _id?: string | null;\n /**\n * Location type.\n *\n * Supported values:\n * + `BUSINESS`: The event is held at a business location.\n * + `CUSTOMER`: The event is held at the customer's location, such as their home or office.\n * + `CUSTOM`: The event is held at an address or venue not tied to the business or customer.\n */\n type?: LocationTypeWithLiterals;\n /**\n * Location name. For `BUSINESS` locations, it's identical to the\n * [location](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction)\n * `name`.\n *\n * Min: 1 character\n * Max: 150 characters\n * @minLength 1\n * @maxLength 150\n */\n name?: string | null;\n /**\n * Location address. For `BUSINESS` locations, it's identical to the\n * [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s\n * `formattedAddress`.\n * @minLength 1\n * @maxLength 300\n */\n address?: string | null;\n}\n\nexport enum LocationType {\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n /** The event is held at a business location. */\n BUSINESS = 'BUSINESS',\n /** The event is held at the customer's location, such as their home or office. */\n CUSTOMER = 'CUSTOMER',\n /** The event is held at an address or venue not tied to the business or customer. */\n CUSTOM = 'CUSTOM',\n}\n\n/** @enumType */\nexport type LocationTypeWithLiterals =\n | LocationType\n | 'UNKNOWN_TYPE'\n | 'BUSINESS'\n | 'CUSTOMER'\n | 'CUSTOM';\n\nexport interface ConferencingDetails {\n /** Conference type. For example, `Zoom`. */\n type?: TypeWithLiterals;\n /**\n * URL used by the host to start the conference.\n *\n * Min: 1 character\n * Max: 2000 characters\n * @minLength 1\n * @maxLength 2000\n */\n hostUrl?: string | null;\n /**\n * URL used by a guest to join the conference.\n *\n * Min: 1 character\n * Max: 2000 characters\n * @minLength 1\n * @maxLength 2000\n */\n guestUrl?: string | null;\n /**\n * Conference password.\n *\n * Min: 1 character\n * Max: 100 characters\n * @minLength 1\n * @maxLength 100\n */\n password?: string | null;\n /**\n * Conference ID in an external system.\n *\n * Min: 1 character\n * Max: 150 characters\n * @minLength 1\n * @maxLength 150\n */\n externalId?: string | null;\n}\n\nexport enum Type {\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n ZOOM = 'ZOOM',\n CUSTOM = 'CUSTOM',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'ZOOM' | 'CUSTOM';\n\nexport interface Permission {\n /**\n * [Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)\n * granted the permission.\n */\n identity?: CommonIdentificationData;\n /**\n * Permission role.\n *\n * Supported values:\n * + `WRITER`: Full read and write access.\n * + `COMMENTER`: Full read access, write access limited to `event.notes`.\n */\n role?: RoleWithLiterals;\n}\n\nexport interface CommonIdentificationData\n extends CommonIdentificationDataIdOneOf {\n /**\n * ID of a Wix user. For example, the site owner or a\n * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).\n * @format GUID\n */\n wixUserId?: string;\n}\n\n/** @oneof */\nexport interface CommonIdentificationDataIdOneOf {\n /**\n * ID of a Wix user. For example, the site owner or a\n * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).\n * @format GUID\n */\n wixUserId?: string;\n}\n\nexport enum IdentityType {\n UNKNOWN = 'UNKNOWN',\n WIX_USER = 'WIX_USER',\n}\n\n/** @enumType */\nexport type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'WIX_USER';\n\nexport enum Role {\n UNKNOWN_ROLE = 'UNKNOWN_ROLE',\n /** Full read and write access. */\n WRITER = 'WRITER',\n /** Full read access, write access limited to `event.notes`. */\n COMMENTER = 'COMMENTER',\n}\n\n/** @enumType */\nexport type RoleWithLiterals = Role | 'UNKNOWN_ROLE' | 'WRITER' | 'COMMENTER';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface GetScheduleRequest {\n /**\n * ID of the schedule to retrieve.\n * @format GUID\n */\n scheduleId: string | null;\n /**\n * Information about which fields containing personal data to return. Refer to the\n * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions)\n * for more information.\n *\n * Supported values:\n * + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.\n * + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.\n *\n * Max: 1 field\n * Default: No personal data is returned.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport enum RequestedFields {\n UNKNOWN_REQUESTED_FIELDS = 'UNKNOWN_REQUESTED_FIELDS',\n /** Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope. */\n PI_FIELDS = 'PI_FIELDS',\n /** Returns only fields containing your own personal data. */\n OWN_PI_FIELDS = 'OWN_PI_FIELDS',\n}\n\n/** @enumType */\nexport type RequestedFieldsWithLiterals =\n | RequestedFields\n | 'UNKNOWN_REQUESTED_FIELDS'\n | 'PI_FIELDS'\n | 'OWN_PI_FIELDS';\n\nexport interface GetScheduleResponse {\n /** Retrieved schedule. */\n schedule?: Schedule;\n}\n\nexport interface QuerySchedulesRequest {\n /** Query containing filters and paging. */\n query?: CursorQuery;\n /**\n * Information about which fields containing personal data to return. Refer to the\n * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions)\n * for more information.\n *\n * Supported values:\n * + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.\n * + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.\n *\n * Max: 1 field\n * Default: No personal data is returned.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/** TODO Diverge */\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)\n * for more information.\n *\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.\n *\n * For a detailed list of supported filters, see Supported Filters.\n */\n filter?: Record<string, any> | null;\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */\n cursorPaging?: CursorPaging;\n}\n\n/** TODO Diverge */\nexport interface CursorPaging {\n /**\n * Number of schedules to return.\n *\n * Min: `1`\n * Max: `100`\n * Default: `50`\n * @min 1\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n */\n cursor?: string | null;\n}\n\nexport interface QuerySchedulesResponse {\n /** Retrieved schedules matching the provided query. */\n schedules?: Schedule[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\n/** TODO Diverge */\nexport interface CursorPagingMetadata {\n /** Number of schedules returned in the current page of the response. */\n count?: number | null;\n /** Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\nexport interface CreateScheduleRequest {\n /** Schedule to create. */\n schedule: Schedule;\n /**\n * Idempotency key guaranteeing that you don't create the same schedule more\n * than once.\n * @format GUID\n */\n idempotencyKey?: string | null;\n}\n\nexport interface CreateScheduleResponse {\n /** Created schedule. */\n schedule?: Schedule;\n}\n\nexport interface UpdateScheduleRequest {\n /** Schedule to update. */\n schedule: Schedule;\n /**\n * Information about whether participants of the schedule's updated events are\n * notified and the message they receive.\n */\n participantNotification?: ParticipantNotification;\n}\n\nexport interface ParticipantNotification {\n /**\n * Whether to notify the participants about changes made to the schedule or event.\n *\n * Default: `false`\n */\n notifyParticipants?: boolean | null;\n /**\n * Message to send.\n *\n * Min: 1 character\n * Max: 5000 characters\n * @minLength 1\n * @maxLength 5000\n */\n message?: string | null;\n /**\n * Information about the delivery channels used to send the notification.\n * For example, `{\"channels\": \"SMS\" }`, `{\"channels\": \"EMAIL\" }`, or `{\"channels\": \"EMAIL, SMS\" }`.\n *\n * Max: 10 keys\n * Max key length: 64 characters\n * Max value length: 1000 characters\n */\n metadata?: Record<string, string>;\n}\n\nexport interface UpdateScheduleResponse {\n /** Updated schedule. */\n schedule?: Schedule;\n}\n\n/** `PRIVATE` until we'll have standard events metadata from Infra. */\nexport interface ScheduleUpdatedWithMetadata {\n /** The updated schedule. */\n schedule?: Schedule;\n /** Whether to notify participants regarding the changes. */\n participantNotification?: ParticipantNotification;\n}\n\nexport interface CloneScheduleRequest {\n /**\n * ID of the schedule to clone.\n * @format GUID\n */\n scheduleId?: string | null;\n /** Fields to override in the cloned schedule. */\n schedule?: Schedule;\n}\n\nexport interface CloneScheduleResponse {\n /** Cloned schedule. */\n schedule?: Schedule;\n}\n\nexport interface ScheduleCloned {\n /** New cloned schedule. */\n schedule?: Schedule;\n /** The clone trigger. */\n trigger?: TriggerWithLiterals;\n /**\n * The original Meta Site ID if different.\n * @format GUID\n */\n originalMetaSiteId?: string | null;\n /**\n * The original schedule ID if different.\n * @format GUID\n */\n originalScheduleId?: string | null;\n}\n\nexport enum Trigger {\n /** Schedule cloned using the `CloneSchedule` API. */\n SCHEDULE_CLONED = 'SCHEDULE_CLONED',\n /** Site duplicated from the same account. */\n SITE_DUPLICATED_FROM_SAME_ACCOUNT = 'SITE_DUPLICATED_FROM_SAME_ACCOUNT',\n /** Site duplicated from a different account. */\n SITE_DUPLICATED_FROM_DIFFERENT_ACCOUNT = 'SITE_DUPLICATED_FROM_DIFFERENT_ACCOUNT',\n /** Site created from template. */\n SITE_CREATED_FROM_TEMPLATE = 'SITE_CREATED_FROM_TEMPLATE',\n /** Other. */\n OTHER = 'OTHER',\n}\n\n/** @enumType */\nexport type TriggerWithLiterals =\n | Trigger\n | 'SCHEDULE_CLONED'\n | 'SITE_DUPLICATED_FROM_SAME_ACCOUNT'\n | 'SITE_DUPLICATED_FROM_DIFFERENT_ACCOUNT'\n | 'SITE_CREATED_FROM_TEMPLATE'\n | 'OTHER';\n\nexport interface CancelScheduleRequest {\n /**\n * ID of the schedule to cancel.\n * @format GUID\n */\n scheduleId: string | null;\n /**\n * Whether to preserve future events with participants.\n * Default: `false`.\n */\n preserveFutureEventsWithParticipants?: boolean | null;\n /**\n * Information about whether participants of the schedule's updated events are\n * notified and the message they receive.\n */\n participantNotification?: ParticipantNotification;\n}\n\nexport interface CancelScheduleResponse {\n /** Canceled schedule. */\n schedule?: Schedule;\n}\n\nexport interface ScheduleCancelled {\n /** Canceled schedule. */\n schedule?: Schedule;\n /** Whether future events with participants were preserved. */\n preserveFutureEventsWithParticipants?: boolean | null;\n}\n\nexport interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n /**\n * A meta site id.\n * @format GUID\n */\n metaSiteId?: string;\n /** A meta site version. Monotonically increasing. */\n version?: string;\n /** A timestamp of the event. */\n timestamp?: string;\n /**\n * TODO(meta-site): Change validation once validations are disabled for consumers\n * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659\n * @maxSize 4000\n */\n assets?: Asset[];\n}\n\n/** @oneof */\nexport interface MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n}\n\nexport interface Asset {\n /**\n * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * An instance id. For legacy reasons may be UUID or a string.\n * @maxLength 200\n */\n instanceId?: string;\n /** An application state. */\n state?: StateWithLiterals;\n}\n\nexport enum State {\n UNKNOWN = 'UNKNOWN',\n ENABLED = 'ENABLED',\n DISABLED = 'DISABLED',\n PENDING = 'PENDING',\n DEMO = 'DEMO',\n}\n\n/** @enumType */\nexport type StateWithLiterals =\n | State\n | 'UNKNOWN'\n | 'ENABLED'\n | 'DISABLED'\n | 'PENDING'\n | 'DEMO';\n\nexport interface SiteCreated {\n /**\n * A template identifier (empty if not created from a template).\n * @maxLength 36\n */\n originTemplateId?: string;\n /**\n * An account id of the owner.\n * @format GUID\n */\n ownerId?: string;\n /** A context in which meta site was created. */\n context?: SiteCreatedContextWithLiterals;\n /**\n * A meta site id from which this site was created.\n *\n * In case of a creation from a template it's a template id.\n * In case of a site duplication (\"Save As\" in dashboard or duplicate in UM) it's an id of a source site.\n * @format GUID\n */\n originMetaSiteId?: string | null;\n /**\n * A meta site name (URL slug).\n * @maxLength 20\n */\n siteName?: string;\n /** A namespace. */\n namespace?: NamespaceWithLiterals;\n}\n\nexport enum SiteCreatedContext {\n /** A valid option, we don't expose all reasons why site might be created. */\n OTHER = 'OTHER',\n /** A meta site was created from template. */\n FROM_TEMPLATE = 'FROM_TEMPLATE',\n /** A meta site was created by copying of the transfferred meta site. */\n DUPLICATE_BY_SITE_TRANSFER = 'DUPLICATE_BY_SITE_TRANSFER',\n /** A copy of existing meta site. */\n DUPLICATE = 'DUPLICATE',\n /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */\n OLD_SITE_TRANSFER = 'OLD_SITE_TRANSFER',\n /** deprecated A meta site was created for Flash editor. */\n FLASH = 'FLASH',\n}\n\n/** @enumType */\nexport type SiteCreatedContextWithLiterals =\n | SiteCreatedContext\n | 'OTHER'\n | 'FROM_TEMPLATE'\n | 'DUPLICATE_BY_SITE_TRANSFER'\n | 'DUPLICATE'\n | 'OLD_SITE_TRANSFER'\n | 'FLASH';\n\nexport enum Namespace {\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */\n WIX = 'WIX',\n /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ALBUMS = 'ALBUMS',\n /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n HOTELS = 'HOTELS',\n /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n CLUBS = 'CLUBS',\n /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_SITE = 'DEV_SITE',\n /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n LOGOS = 'LOGOS',\n /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /**\n * A draft created by HTML editor on open. Upon \"first save\" it will be moved to be of WIX domain.\n *\n * Meta site with this namespace will *not* be shown in a user's site list by default.\n */\n HTML_DRAFT = 'HTML_DRAFT',\n /**\n * the user-journey for Fitness users who want to start from managing their business instead of designing their website.\n * Will be accessible from Site List and will not have a website app.\n * Once the user attaches a site, the site will become a regular wixsite.\n */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Belongs to \"strategic products\" company. Supports new product in the creator's economy space. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** It is to be used in the Business First efforts. */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Bookings business flow with no site. */\n ANYWHERE = 'ANYWHERE',\n /** Namespace for Headless Backoffice with no editor */\n HEADLESS = 'HEADLESS',\n /**\n * Namespace for master site that will exist in parent account that will be referenced by subaccounts\n * The site will be used for account level CSM feature for enterprise\n */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Rise.ai Siteless account management for Gift Cards and Store Credit. */\n RISE = 'RISE',\n /**\n * As part of the branded app new funnel, users now can create a meta site that will be branded app first.\n * There's a blank site behind the scene but it's blank).\n * The Mobile company will be the owner of this namespace.\n */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia.com Siteless account management for Ai Scheduling Assistant. */\n NOWNIA = 'NOWNIA',\n /**\n * UGC Templates are templates that are created by users for personal use and to sale to other users.\n * The Partners company owns this namespace.\n */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux Headless Sites */\n CODUX = 'CODUX',\n /** Bobb - AI Design Creator. */\n MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n /**\n * Shared Blog Site is a unique single site across Enterprise account,\n * This site will hold all Blog posts related to the Marketing product.\n */\n SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_FORMS = 'STANDALONE_FORMS',\n /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n /** MIMIR - Siteless account for MIMIR Ai Job runner. */\n MIMIR = 'MIMIR',\n /** Wix Twins platform. */\n TWINS = 'TWINS',\n /** Wix Nano. */\n NANO = 'NANO',\n /** Base44 headless sites. */\n BASE44 = 'BASE44',\n}\n\n/** @enumType */\nexport type NamespaceWithLiterals =\n | Namespace\n | 'UNKNOWN_NAMESPACE'\n | 'WIX'\n | 'SHOUT_OUT'\n | 'ALBUMS'\n | 'WIX_STORES_TEST_DRIVE'\n | 'HOTELS'\n | 'CLUBS'\n | 'ONBOARDING_DRAFT'\n | 'DEV_SITE'\n | 'LOGOS'\n | 'VIDEO_MAKER'\n | 'PARTNER_DASHBOARD'\n | 'DEV_CENTER_COMPANY'\n | 'HTML_DRAFT'\n | 'SITELESS_BUSINESS'\n | 'CREATOR_ECONOMY'\n | 'DASHBOARD_FIRST'\n | 'ANYWHERE'\n | 'HEADLESS'\n | 'ACCOUNT_MASTER_CMS'\n | 'RISE'\n | 'BRANDED_FIRST'\n | 'NOWNIA'\n | 'UGC_TEMPLATE'\n | 'CODUX'\n | 'MEDIA_DESIGN_CREATOR'\n | 'SHARED_BLOG_ENTERPRISE'\n | 'STANDALONE_FORMS'\n | 'STANDALONE_EVENTS'\n | 'MIMIR'\n | 'TWINS'\n | 'NANO'\n | 'BASE44';\n\n/** Site transferred to another user. */\nexport interface SiteTransferred {\n /**\n * A previous owner id (user that transfers meta site).\n * @format GUID\n */\n oldOwnerId?: string;\n /**\n * A new owner id (user that accepts meta site).\n * @format GUID\n */\n newOwnerId?: string;\n}\n\n/** Soft deletion of the meta site. Could be restored. */\nexport interface SiteDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface DeleteContext {\n /** When the meta site was deleted. */\n dateDeleted?: Date | null;\n /** A status. */\n deleteStatus?: DeleteStatusWithLiterals;\n /**\n * A reason (flow).\n * @maxLength 255\n */\n deleteOrigin?: string;\n /**\n * A service that deleted it.\n * @maxLength 255\n */\n initiatorId?: string | null;\n}\n\nexport enum DeleteStatus {\n UNKNOWN = 'UNKNOWN',\n TRASH = 'TRASH',\n DELETED = 'DELETED',\n PENDING_PURGE = 'PENDING_PURGE',\n PURGED_EXTERNALLY = 'PURGED_EXTERNALLY',\n}\n\n/** @enumType */\nexport type DeleteStatusWithLiterals =\n | DeleteStatus\n | 'UNKNOWN'\n | 'TRASH'\n | 'DELETED'\n | 'PENDING_PURGE'\n | 'PURGED_EXTERNALLY';\n\n/** Restoration of the meta site. */\nexport interface SiteUndeleted {}\n\n/** First publish of a meta site. Or subsequent publish after unpublish. */\nexport interface SitePublished {}\n\nexport interface SiteUnpublished {\n /**\n * A list of URLs previously associated with the meta site.\n * @maxLength 4000\n * @maxSize 10000\n */\n urls?: string[];\n}\n\nexport interface SiteMarkedAsTemplate {}\n\nexport interface SiteMarkedAsWixSite {}\n\n/**\n * Represents a service provisioned a site.\n *\n * Note on `origin_instance_id`:\n * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.\n * This is because of the following scenario:\n *\n * Imagine you have a template where a third-party application (TPA) includes some stub data,\n * such as a product catalog. When you create a site from this template, you inherit this\n * default product catalog. However, if the template's product catalog is modified,\n * your site will retain the catalog as it was at the time of site creation. This ensures that\n * your site remains consistent with what you initially received and does not include any\n * changes made to the original template afterward.\n * To ensure this, the TPA on the template gets a new instance_id.\n */\nexport interface ServiceProvisioned {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * An instance id from which this instance is originated.\n * @maxLength 36\n */\n originInstanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n /**\n * The origin meta site id\n * @format GUID\n */\n originMetaSiteId?: string | null;\n}\n\nexport interface ServiceRemoved {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n}\n\n/** Rename of the site. Meaning, free public url has been changed as well. */\nexport interface SiteRenamed {\n /**\n * A new meta site name (URL slug).\n * @maxLength 20\n */\n newSiteName?: string;\n /**\n * A previous meta site name (URL slug).\n * @maxLength 255\n */\n oldSiteName?: string;\n}\n\n/**\n * Hard deletion of the meta site.\n *\n * Could not be restored. Therefore it's desirable to cleanup data.\n */\nexport interface SiteHardDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface NamespaceChanged {\n /** A previous namespace. */\n oldNamespace?: NamespaceWithLiterals;\n /** A new namespace. */\n newNamespace?: NamespaceWithLiterals;\n}\n\n/** Assigned Studio editor */\nexport interface StudioAssigned {}\n\n/** Unassigned Studio editor */\nexport interface StudioUnassigned {}\n\n/**\n * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.\n *\n * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up\n * with sites and its urls, you need to listen to another topic/event. Read about it:\n *\n * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service\n */\nexport interface SiteUrlChanged {}\n\n/**\n * Used at the end of the deletion flow for both draft sites and when a user deletes a site.\n * Consumed by other teams to remove relevant data.\n */\nexport interface SitePurgedExternally {\n /**\n * @maxLength 2048\n * @maxSize 100\n * @deprecated\n * @targetRemovalDate 2025-04-15\n */\n appDefId?: string[];\n}\n\n/** Assigned Odeditor */\nexport interface OdeditorAssigned {}\n\n/** Unassigned Odeditor */\nexport interface OdeditorUnassigned {}\n\n/** Assigned Picasso editor */\nexport interface PicassoAssigned {}\n\n/** Unassigned Picasso */\nexport interface PicassoUnassigned {}\n\n/** Assigned Wixel */\nexport interface WixelAssigned {}\n\n/** Unassigned Wixel */\nexport interface WixelUnassigned {}\n\n/** Assigned StudioTwo */\nexport interface StudioTwoAssigned {}\n\n/** Unassigned StudioTwo */\nexport interface StudioTwoUnassigned {}\n\nexport interface Empty {}\n\n/** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */\nexport interface SitePropertiesNotification {\n /** The site ID for which this update notification applies. */\n metasiteId?: string;\n /** The actual update event. */\n event?: SitePropertiesEvent;\n /**\n * A convenience set of mappings from the MetaSite ID to its constituent services.\n * @maxSize 500\n */\n translations?: Translation[];\n /** Context of the notification */\n changeContext?: ChangeContext;\n}\n\n/** The actual update event for a particular notification. */\nexport interface SitePropertiesEvent {\n /** Version of the site's properties represented by this update. */\n version?: number;\n /** Set of properties that were updated - corresponds to the fields in \"properties\". */\n fields?: string[];\n /** Updated properties. */\n properties?: Properties;\n}\n\nexport interface Properties {\n /** Site categories. */\n categories?: Categories;\n /** Site locale. */\n locale?: Locale;\n /**\n * Site language.\n *\n * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n */\n language?: string | null;\n /**\n * Site currency format used to bill customers.\n *\n * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n */\n paymentCurrency?: string | null;\n /** Timezone in `America/New_York` format. */\n timeZone?: string | null;\n /** Email address. */\n email?: string | null;\n /** Phone number. */\n phone?: string | null;\n /** Fax number. */\n fax?: string | null;\n /** Address. */\n address?: Address;\n /** Site display name. */\n siteDisplayName?: string | null;\n /** Business name. */\n businessName?: string | null;\n /** Path to the site's logo in Wix Media (without Wix Media base URL). */\n logo?: string | null;\n /** Site description. */\n description?: string | null;\n /**\n * Business schedule. Regular and exceptional time periods when the business is open or the service is available.\n *\n * __Note:__ Not supported by Wix Bookings.\n */\n businessSchedule?: BusinessSchedule;\n /** Supported languages of a site and the primary language. */\n multilingual?: Multilingual;\n /** Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). */\n consentPolicy?: ConsentPolicy;\n /**\n * Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`.\n *\n * Site business type.\n */\n businessConfig?: string | null;\n /** External site URL that uses Wix as its headless business solution. */\n externalSiteUrl?: string | null;\n /** Track clicks analytics. */\n trackClicksAnalytics?: boolean;\n}\n\nexport interface Categories {\n /** Primary site category. */\n primary?: string;\n /**\n * Secondary site category.\n * @maxSize 50\n */\n secondary?: string[];\n /** Business Term Id */\n businessTermId?: string | null;\n}\n\nexport interface Locale {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */\n country?: string;\n}\n\nexport interface Address {\n /** Street name. */\n street?: string;\n /** City name. */\n city?: string;\n /** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */\n country?: string;\n /** State. */\n state?: string;\n /**\n * Zip or postal code.\n * @maxLength 20\n */\n zip?: string;\n /** Extra information to be displayed in the address. */\n hint?: AddressHint;\n /** Whether this address represents a physical location. */\n isPhysical?: boolean;\n /** Google-formatted version of this address. */\n googleFormattedAddress?: string;\n /** Street number. */\n streetNumber?: string;\n /** Apartment number. */\n apartmentNumber?: string;\n /** Geographic coordinates of location. */\n coordinates?: GeoCoordinates;\n}\n\n/**\n * Extra information on displayed addresses.\n * This is used for display purposes. Used to add additional data about the address, such as \"In the passage\".\n * Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.\n */\nexport interface AddressHint {\n /** Extra text displayed next to, or instead of, the actual address. */\n text?: string;\n /** Where the extra text should be displayed. */\n placement?: PlacementTypeWithLiterals;\n}\n\n/** Where the extra text should be displayed: before, after or instead of the actual address. */\nexport enum PlacementType {\n BEFORE = 'BEFORE',\n AFTER = 'AFTER',\n REPLACE = 'REPLACE',\n}\n\n/** @enumType */\nexport type PlacementTypeWithLiterals =\n | PlacementType\n | 'BEFORE'\n | 'AFTER'\n | 'REPLACE';\n\n/** Geocoordinates for a particular address. */\nexport interface GeoCoordinates {\n /** Latitude of the location. Must be between -90 and 90. */\n latitude?: number;\n /** Longitude of the location. Must be between -180 and 180. */\n longitude?: number;\n}\n\n/** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */\nexport interface BusinessSchedule {\n /**\n * Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.\n * @maxSize 100\n */\n periods?: TimePeriod[];\n /**\n * Exceptions to the business's regular hours. The business can be open or closed during the exception.\n * @maxSize 100\n */\n specialHourPeriod?: SpecialHourPeriod[];\n}\n\n/** Weekly recurring time periods when the business is regularly open or the service is available. */\nexport interface TimePeriod {\n /** Day of the week the period starts on. */\n openDay?: DayOfWeekWithLiterals;\n /**\n * Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n */\n openTime?: string;\n /** Day of the week the period ends on. */\n closeDay?: DayOfWeekWithLiterals;\n /**\n * Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n *\n * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.\n */\n closeTime?: string;\n}\n\n/** Enumerates the days of the week. */\nexport enum DayOfWeek {\n MONDAY = 'MONDAY',\n TUESDAY = 'TUESDAY',\n WEDNESDAY = 'WEDNESDAY',\n THURSDAY = 'THURSDAY',\n FRIDAY = 'FRIDAY',\n SATURDAY = 'SATURDAY',\n SUNDAY = 'SUNDAY',\n}\n\n/** @enumType */\nexport type DayOfWeekWithLiterals =\n | DayOfWeek\n | 'MONDAY'\n | 'TUESDAY'\n | 'WEDNESDAY'\n | 'THURSDAY'\n | 'FRIDAY'\n | 'SATURDAY'\n | 'SUNDAY';\n\n/** Exception to the business's regular hours. The business can be open or closed during the exception. */\nexport interface SpecialHourPeriod {\n /** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n startDate?: string;\n /** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n endDate?: string;\n /**\n * Whether the business is closed (or the service is not available) during the exception.\n *\n * Default: `true`.\n */\n isClosed?: boolean;\n /** Additional info about the exception. For example, \"We close earlier on New Year's Eve.\" */\n comment?: string;\n}\n\nexport interface Multilingual {\n /**\n * Supported languages list.\n * @maxSize 200\n */\n supportedLanguages?: SupportedLanguage[];\n /** Whether to redirect to user language. */\n autoRedirect?: boolean;\n}\n\nexport interface SupportedLanguage {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Locale. */\n locale?: Locale;\n /** Whether the supported language is the primary language for the site. */\n isPrimary?: boolean;\n /** Language icon. */\n countryCode?: string;\n /** How the language will be resolved. For internal use. */\n resolutionMethod?: ResolutionMethodWithLiterals;\n /** Whether the supported language is the primary language for site visitors. */\n isVisitorPrimary?: boolean | null;\n}\n\nexport enum ResolutionMethod {\n QUERY_PARAM = 'QUERY_PARAM',\n SUBDOMAIN = 'SUBDOMAIN',\n SUBDIRECTORY = 'SUBDIRECTORY',\n}\n\n/** @enumType */\nexport type ResolutionMethodWithLiterals =\n | ResolutionMethod\n | 'QUERY_PARAM'\n | 'SUBDOMAIN'\n | 'SUBDIRECTORY';\n\nexport interface ConsentPolicy {\n /** Whether the site uses cookies that are essential to site operation. Always `true`. */\n essential?: boolean | null;\n /** Whether the site uses cookies that affect site performance and other functional measurements. */\n functional?: boolean | null;\n /** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */\n analytics?: boolean | null;\n /** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */\n advertising?: boolean | null;\n /** CCPA compliance flag. */\n dataToThirdParty?: boolean | null;\n}\n\n/** A single mapping from the MetaSite ID to a particular service. */\nexport interface Translation {\n /** The service type. */\n serviceType?: string;\n /** The application definition ID; this only applies to services of type ThirdPartyApps. */\n appDefId?: string;\n /** The instance ID of the service. */\n instanceId?: string;\n}\n\nexport interface ChangeContext extends ChangeContextPayloadOneOf {\n /** Properties were updated. */\n propertiesChange?: PropertiesChange;\n /** Default properties were created on site creation. */\n siteCreated?: V4SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\n/** @oneof */\nexport interface ChangeContextPayloadOneOf {\n /** Properties were updated. */\n propertiesChange?: PropertiesChange;\n /** Default properties were created on site creation. */\n siteCreated?: V4SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\nexport interface PropertiesChange {}\n\nexport interface V4SiteCreated {\n /** Origin template site id. */\n originTemplateId?: string | null;\n}\n\nexport interface SiteCloned {\n /** Origin site id. */\n originMetaSiteId?: string;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountDetails {\n /**\n * ID of the account.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the site, if applicable.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type UpdateScheduleApplicationErrors = {\n code?: 'UPDATE_CANCELLED_SCHEDULE_NOT_ALLOWED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type CancelScheduleApplicationErrors = {\n code?: 'SCHEDULE_ALREADY_CANCELLED';\n description?: string;\n data?: Record<string, any>;\n};\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface ScheduleCancelledEnvelope {\n data: ScheduleCancelled;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a schedule is canceled.\n * @permissionScope Read Calendar - Including PI\n * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI\n * @permissionScope Manage Calendars\n * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Read Bookings - Including Participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionScope Read bookings calendar - including participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS\n * @permissionId CALENDAR.SCHEDULE_READ_PI\n * @webhook\n * @eventType wix.calendar.v3.schedule_cancelled\n * @serviceIdentifier wix.calendar.schedules.v3.SchedulesService\n * @slug cancelled\n */\nexport declare function onScheduleCancelled(\n handler: (event: ScheduleCancelledEnvelope) => void | Promise<void>\n): void;\n\nexport interface ScheduleClonedEnvelope {\n data: ScheduleCloned;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a schedule is cloned.\n * @permissionScope Read Calendar - Including PI\n * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI\n * @permissionScope Manage Calendars\n * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Read Bookings - Including Participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionScope Read bookings calendar - including participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS\n * @permissionId CALENDAR.SCHEDULE_READ_PI\n * @webhook\n * @eventType wix.calendar.v3.schedule_cloned\n * @serviceIdentifier wix.calendar.schedules.v3.SchedulesService\n * @slug cloned\n */\nexport declare function onScheduleCloned(\n handler: (event: ScheduleClonedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ScheduleCreatedEnvelope {\n entity: Schedule;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a schedule is created.\n * @permissionScope Read Calendar - Including PI\n * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI\n * @permissionScope Manage Calendars\n * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Read Bookings - Including Participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionScope Read bookings calendar - including participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS\n * @permissionId CALENDAR.SCHEDULE_READ_PI\n * @webhook\n * @eventType wix.calendar.v3.schedule_created\n * @serviceIdentifier wix.calendar.schedules.v3.SchedulesService\n * @slug created\n */\nexport declare function onScheduleCreated(\n handler: (event: ScheduleCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ScheduleUpdatedEnvelope {\n entity: Schedule;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a schedule is updated.\n * @permissionScope Read Calendar - Including PI\n * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI\n * @permissionScope Manage Calendars\n * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE\n * @permissionScope Manage Bookings\n * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS\n * @permissionScope Read Bookings - Including Participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE\n * @permissionScope Manage Bookings - all permissions\n * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS\n * @permissionScope Read bookings calendar - including participants\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS\n * @permissionId CALENDAR.SCHEDULE_READ_PI\n * @webhook\n * @eventType wix.calendar.v3.schedule_updated\n * @serviceIdentifier wix.calendar.schedules.v3.SchedulesService\n * @slug updated\n */\nexport declare function onScheduleUpdated(\n handler: (event: ScheduleUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Retrieves a schedule.\n * @param scheduleId - ID of the schedule to retrieve.\n * @public\n * @requiredField scheduleId\n * @permissionId CALENDAR.SCHEDULE_READ\n * @permissionId CALENDAR.SCHEDULE_READ_PI\n * @applicableIdentity APP\n * @returns Retrieved schedule.\n * @fqn wix.calendar.schedules.v3.SchedulesService.GetSchedule\n */\nexport async function getSchedule(\n scheduleId: string,\n options?: GetScheduleOptions\n): Promise<\n NonNullablePaths<\n Schedule,\n | `status`\n | `defaultLocation.type`\n | `defaultConferencingDetails.type`\n | `permissions`\n | `permissions.${number}.identity.wixUserId`\n | `permissions.${number}.role`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n scheduleId: scheduleId,\n fields: options?.fields,\n });\n\n const reqOpts = ambassadorWixCalendarV3Schedule.getSchedule(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.schedule!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { scheduleId: '$[0]', fields: '$[1].fields' },\n singleArgumentUnchanged: false,\n },\n ['scheduleId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetScheduleOptions {\n /**\n * Information about which fields containing personal data to return. Refer to the\n * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions)\n * for more information.\n *\n * Supported values:\n * + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.\n * + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.\n *\n * Max: 1 field\n * Default: No personal data is returned.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Creates a query to retrieve a list of schedules.\n *\n * The `querySchedules()` function builds a query to retrieve a list of tip settings and returns a `SchedulesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-builder/find) function.\n *\n * You can refine the query by chaining `SchedulesQueryBuilder` functions onto the query. `SchedulesQueryBuilder` functions enable you to sort, filter, and control the results that `querySchedules()` returns.\n *\n * `querySchedules()` runs with the following `SchedulesQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `id` in ascending order.\n *\n * The functions that are chained to `querySchedules()` are applied in the order they are called. For example, if you apply `ascending(\"status\")` and then `ascending(\"externalId\")`, the results are sorted first by the `\"status\"`, and then, if there are multiple results with the same `\"status\"`, the items are sorted by `\"externalId\"`.\n *\n * The following `SchedulesQueryBuilder` functions are supported for the `querySchedules()` function. For a full description of the tip settings object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-result/items) property in `SchedulesQueryResult`.\n * @public\n * @permissionId CALENDAR.SCHEDULE_READ\n * @permissionId CALENDAR.SCHEDULE_READ_PI\n * @applicableIdentity APP\n * @fqn wix.calendar.schedules.v3.SchedulesService.QuerySchedules\n */\nexport function querySchedules(\n options?: QuerySchedulesOptions\n): SchedulesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Schedule,\n 'CURSOR',\n QuerySchedulesRequest,\n QuerySchedulesResponse\n >({\n func: async (payload: QuerySchedulesRequest) => {\n const reqOpts = ambassadorWixCalendarV3Schedule.querySchedules({\n ...payload,\n ...(options ?? {}),\n });\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QuerySchedulesRequest['query']) => {\n const args = [query, options] as [\n QuerySchedulesRequest['query'],\n QuerySchedulesOptions\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QuerySchedulesResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.schedules,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\nexport interface QuerySchedulesOptions {\n /**\n * Information about which fields containing personal data to return. Refer to the\n * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions)\n * for more information.\n *\n * Supported values:\n * + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.\n * + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.\n *\n * Max: 1 field\n * Default: No personal data is returned.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[] | undefined;\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface SchedulesQueryResult extends QueryCursorResult {\n items: Schedule[];\n query: SchedulesQueryBuilder;\n next: () => Promise<SchedulesQueryResult>;\n prev: () => Promise<SchedulesQueryResult>;\n}\n\nexport interface SchedulesQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n eq: (\n propertyName: '_id' | 'externalId' | 'status' | 'appId',\n value: any\n ) => SchedulesQueryBuilder;\n in: (\n propertyName: '_id' | 'externalId' | 'status' | 'appId',\n value: any\n ) => SchedulesQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */\n limit: (limit: number) => SchedulesQueryBuilder;\n /** @param cursor - A pointer to specific record */\n skipTo: (cursor: string) => SchedulesQueryBuilder;\n find: () => Promise<SchedulesQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.calendar.schedules.v3.SchedulesService.QuerySchedules\n * @requiredField query\n */\nexport async function typedQuerySchedules(\n query: ScheduleQuery,\n options?: QuerySchedulesOptions\n): Promise<\n NonNullablePaths<\n QuerySchedulesResponse,\n | `schedules`\n | `schedules.${number}.status`\n | `schedules.${number}.defaultLocation.type`\n | `schedules.${number}.defaultConferencingDetails.type`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n ...options,\n });\n\n const reqOpts = ambassadorWixCalendarV3Schedule.querySchedules(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ScheduleQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['_id', 'appId', 'externalId', 'status'];\n operators: ['$eq', '$in'];\n sort: 'NONE';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n Schedule,\n ScheduleQuerySpec\n>;\nexport type ScheduleQuery = {\n /** \n Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. \n */\n cursorPaging?: {\n /** \n Number of schedules to return.\n\n Min: `1`\n Max: `100`\n Default: `50` \n @min: 1,\n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n You can get the relevant cursor token\n from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)\n for more information.\n\n Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.\n\n For a detailed list of supported filters, see Supported Filters. \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n};\n\n/**\n * Creates a schedule.\n *\n *\n * If you want the schedule's events to appear in the\n * [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),\n * you must set `appId` to the ID of the Wix Bookings app by providing\n * `{\"appId\": \"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"}`.\n * @param schedule - Schedule to create.\n * @public\n * @requiredField schedule\n * @requiredField schedule.defaultConferencingDetails.guestUrl\n * @requiredField schedule.defaultConferencingDetails.hostUrl\n * @requiredField schedule.defaultConferencingDetails.type\n * @requiredField schedule.defaultLocation.type\n * @requiredField schedule.permissions.identity\n * @requiredField schedule.permissions.role\n * @permissionId CALENDAR.SCHEDULE_CREATE\n * @applicableIdentity APP\n * @returns Created schedule.\n * @fqn wix.calendar.schedules.v3.SchedulesService.CreateSchedule\n */\nexport async function createSchedule(\n schedule: NonNullablePaths<\n Schedule,\n | `defaultConferencingDetails.guestUrl`\n | `defaultConferencingDetails.hostUrl`\n | `defaultConferencingDetails.type`\n | `defaultLocation.type`\n | `permissions.${number}.identity`\n | `permissions.${number}.role`,\n 4\n >,\n options?: CreateScheduleOptions\n): Promise<\n NonNullablePaths<\n Schedule,\n | `status`\n | `defaultLocation.type`\n | `defaultConferencingDetails.type`\n | `permissions`\n | `permissions.${number}.identity.wixUserId`\n | `permissions.${number}.role`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n schedule: schedule,\n idempotencyKey: options?.idempotencyKey,\n });\n\n const reqOpts = ambassadorWixCalendarV3Schedule.createSchedule(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.schedule!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n schedule: '$[0]',\n idempotencyKey: '$[1].idempotencyKey',\n },\n singleArgumentUnchanged: false,\n },\n ['schedule', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateScheduleOptions {\n /**\n * Idempotency key guaranteeing that you don't create the same schedule more\n * than once.\n * @format GUID\n */\n idempotencyKey?: string | null;\n}\n\n/**\n * Updates a schedule.\n *\n *\n * Each time the schedule is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the schedule.\n * This ensures you're working with the latest schedule\n * and prevents unintended overwrites.\n * @param _id - Schedule ID.\n * @public\n * @requiredField _id\n * @requiredField schedule\n * @requiredField schedule.permissions.identity\n * @requiredField schedule.permissions.role\n * @requiredField schedule.revision\n * @permissionId CALENDAR.SCHEDULE_UPDATE\n * @applicableIdentity APP\n * @returns Updated schedule.\n * @fqn wix.calendar.schedules.v3.SchedulesService.UpdateSchedule\n */\nexport async function updateSchedule(\n _id: string,\n schedule: NonNullablePaths<\n UpdateSchedule,\n | `permissions.${number}.identity`\n | `permissions.${number}.role`\n | `revision`,\n 4\n >,\n options?: UpdateScheduleOptions\n): Promise<\n NonNullablePaths<\n Schedule,\n | `status`\n | `defaultLocation.type`\n | `defaultConferencingDetails.type`\n | `permissions`\n | `permissions.${number}.identity.wixUserId`\n | `permissions.${number}.role`,\n 5\n > & {\n __applicationErrorsType?: UpdateScheduleApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n schedule: { ...schedule, id: _id },\n participantNotification: options?.participantNotification,\n });\n\n const reqOpts = ambassadorWixCalendarV3Schedule.updateSchedule(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.schedule!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { schedule: '$[1]' },\n explicitPathsToArguments: {\n 'schedule.id': '$[0]',\n participantNotification: '$[2].participantNotification',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'schedule', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateSchedule {\n /**\n * Schedule ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * External ID. You can't update the external ID.\n *\n * If the schedule belongs to a Bookings staff member, identical to the ID of\n * the [resource](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction).\n * If the schedule belongs to a Bookings service, identical to the ID of\n * the [service](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/setup).\n * @format GUID\n * @immutable\n */\n externalId?: string | null;\n /**\n * Schedule name.\n *\n * Min: 1 character\n * Max: 200 characters\n * @minLength 1\n * @maxLength 200\n */\n name?: string | null;\n /**\n * Schedule status.\n *\n * Supported values:\n * - `ACTIVE`: You can add events to the schedule or update its fields.\n * - `CANCELLED`: You can't add events to the schedule or update its fields.\n *\n * Default: `ACTIVE`\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Time zone the schedule is associated with in\n * [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\n * For example, `America/New_York`.\n *\n * Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties).\n *\n * Min: 1 character\n * Max: 150 characters\n * @minLength 1\n * @maxLength 150\n */\n timeZone?: string | null;\n /**\n * Whether the schedule's `timeZone` is automatically synced from\n * `timeZone` of the business [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties).\n *\n * Default: `true`\n */\n businessTimeZoneEnabled?: boolean | null;\n /**\n * Default `title` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * that are added to the schedule.\n *\n * Min: 1 character\n * Max: 200 characters\n * @minLength 1\n * @maxLength 200\n */\n defaultTitle?: string | null;\n /**\n * Default `location` for [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * that are added to the schedule.\n */\n defaultLocation?: Location;\n /**\n * Default `totalCapacity` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * that are added to the schedule.\n *\n * Min: `0`\n */\n defaultCapacity?: number | null;\n /**\n * Default `conferencingDetails` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * that are added to the schedule.\n * Returned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#retrieve-personal-information).\n */\n defaultConferencingDetails?: ConferencingDetails;\n /**\n * ID of the app that's associated with the schedule. You can't update `appId`.\n * If you want to create a schedule and ensure its associated events appear\n * in the [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),\n * you must provide the Wix Bookings app ID\n * `13d21c63-b5ec-5912-8397-c3a5ddb27a97`.\n * @format GUID\n * @immutable\n */\n appId?: string | null;\n /**\n * List of permissions associated with the schedule. Refer to the\n * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#roles)\n * for more information.\n *\n * Max: 1 permission\n * @maxSize 1\n */\n permissions?: Permission[];\n /** Extensions enabling applications or users to save custom data related to the schedule. */\n extendedFields?: ExtendedFields;\n /**\n * Revision number, which increments by 1 each time the schedule is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the schedule.\n * Ignored when creating a schedule.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date the schedule was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date the schedule was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _updatedDate?: Date | null;\n}\n\nexport interface UpdateScheduleOptions {\n /**\n * Information about whether participants of the schedule's updated events are\n * notified and the message they receive.\n */\n participantNotification?: ParticipantNotification;\n}\n\n/**\n * Sets a schedule's `status` to `CANCELLED`.\n *\n *\n * Also cancels future events belonging to the schedule.\n *\n * Once a schedule is marked as `CANCELLED`, you can't reactivate it, update it,\n * or assign new events.\n * @param scheduleId - ID of the schedule to cancel.\n * @public\n * @requiredField scheduleId\n * @permissionId CALENDAR.SCHEDULE_CANCEL\n * @applicableIdentity APP\n * @fqn wix.calendar.schedules.v3.SchedulesService.CancelSchedule\n */\nexport async function cancelSchedule(\n scheduleId: string,\n options?: CancelScheduleOptions\n): Promise<\n NonNullablePaths<\n CancelScheduleResponse,\n | `schedule.status`\n | `schedule.defaultLocation.type`\n | `schedule.defaultConferencingDetails.type`\n | `schedule.permissions`\n | `schedule.permissions.${number}.identity.wixUserId`\n | `schedule.permissions.${number}.role`,\n 6\n > & {\n __applicationErrorsType?: CancelScheduleApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n scheduleId: scheduleId,\n preserveFutureEventsWithParticipants:\n options?.preserveFutureEventsWithParticipants,\n participantNotification: options?.participantNotification,\n });\n\n const reqOpts = ambassadorWixCalendarV3Schedule.cancelSchedule(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n scheduleId: '$[0]',\n preserveFutureEventsWithParticipants:\n '$[1].preserveFutureEventsWithParticipants',\n participantNotification: '$[1].participantNotification',\n },\n singleArgumentUnchanged: false,\n },\n ['scheduleId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CancelScheduleOptions {\n /**\n * Whether to preserve future events with participants.\n * Default: `false`.\n */\n preserveFutureEventsWithParticipants?: boolean | null;\n /**\n * Information about whether participants of the schedule's updated events are\n * notified and the message they receive.\n */\n participantNotification?: ParticipantNotification;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixCalendarSchedulesV3SchedulesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/schedules-3',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/calendar/v3/schedules',\n destPath: '/v3/schedules',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/calendar/v3/schedules',\n destPath: '/v3/schedules',\n },\n ],\n _: [\n {\n srcPath: '/_api/calendar/v3/schedules',\n destPath: '/v3/schedules',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/calendar/v3/schedules',\n destPath: '/v3/schedules',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_calendar_schedules';\n\n/** Retrieves a schedule. */\nexport function getSchedule(payload: object): RequestOptionsFactory<any> {\n function __getSchedule({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'GET' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.GetSchedule',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules/{scheduleId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getSchedule;\n}\n\n/**\n * Creates a query to retrieve a list of schedules.\n *\n * The `querySchedules()` function builds a query to retrieve a list of tip settings and returns a `SchedulesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-builder/find) function.\n *\n * You can refine the query by chaining `SchedulesQueryBuilder` functions onto the query. `SchedulesQueryBuilder` functions enable you to sort, filter, and control the results that `querySchedules()` returns.\n *\n * `querySchedules()` runs with the following `SchedulesQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `id` in ascending order.\n *\n * The functions that are chained to `querySchedules()` are applied in the order they are called. For example, if you apply `ascending(\"status\")` and then `ascending(\"externalId\")`, the results are sorted first by the `\"status\"`, and then, if there are multiple results with the same `\"status\"`, the items are sorted by `\"externalId\"`.\n *\n * The following `SchedulesQueryBuilder` functions are supported for the `querySchedules()` function. For a full description of the tip settings object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-result/items) property in `SchedulesQueryResult`.\n */\nexport function querySchedules(payload: object): RequestOptionsFactory<any> {\n function __querySchedules({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'POST' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.QuerySchedules',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedules.createdDate' },\n { path: 'schedules.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __querySchedules;\n}\n\n/**\n * Creates a schedule.\n *\n *\n * If you want the schedule's events to appear in the\n * [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),\n * you must set `appId` to the ID of the Wix Bookings app by providing\n * `{\"appId\": \"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"}`.\n */\nexport function createSchedule(payload: object): RequestOptionsFactory<any> {\n function __createSchedule({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'POST' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.CreateSchedule',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createSchedule;\n}\n\n/**\n * Updates a schedule.\n *\n *\n * Each time the schedule is updated,\n * `revision` increments by 1.\n * The current `revision` must be passed when updating the schedule.\n * This ensures you're working with the latest schedule\n * and prevents unintended overwrites.\n */\nexport function updateSchedule(payload: object): RequestOptionsFactory<any> {\n function __updateSchedule({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldmask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'PATCH' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.UpdateSchedule',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules/{schedule.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateSchedule;\n}\n\n/**\n * Sets a schedule's `status` to `CANCELLED`.\n *\n *\n * Also cancels future events belonging to the schedule.\n *\n * Once a schedule is marked as `CANCELLED`, you can't reactivate it, update it,\n * or assign new events.\n */\nexport function cancelSchedule(payload: object): RequestOptionsFactory<any> {\n function __cancelSchedule({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule',\n method: 'POST' as any,\n methodFqn: 'wix.calendar.schedules.v3.SchedulesService.CancelSchedule',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarSchedulesV3SchedulesServiceUrl({\n protoPath: '/v3/schedules/{scheduleId}/cancel',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'schedule.createdDate' },\n { path: 'schedule.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __cancelSchedule;\n}\n","import {\n getSchedule as publicGetSchedule,\n querySchedules as publicQuerySchedules,\n typedQuerySchedules as publicTypedQuerySchedules,\n createSchedule as publicCreateSchedule,\n updateSchedule as publicUpdateSchedule,\n cancelSchedule as publicCancelSchedule,\n} from './calendar-v3-schedule-schedules.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n QuerySchedulesOptions,\n ScheduleQuery,\n SchedulesQueryBuilder,\n typedQuerySchedules as universalTypedQuerySchedules,\n} from './calendar-v3-schedule-schedules.universal.js';\nimport { onScheduleCancelled as publicOnScheduleCancelled } from './calendar-v3-schedule-schedules.public.js';\nimport { onScheduleCloned as publicOnScheduleCloned } from './calendar-v3-schedule-schedules.public.js';\nimport { onScheduleCreated as publicOnScheduleCreated } from './calendar-v3-schedule-schedules.public.js';\nimport { onScheduleUpdated as publicOnScheduleUpdated } from './calendar-v3-schedule-schedules.public.js';\n\nfunction customQuerySchedules(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: (options?: QuerySchedulesOptions) =>\n publicQuerySchedules(httpClient)(options),\n typedQueryFunction: (\n query: ScheduleQuery,\n options?: QuerySchedulesOptions\n ) => publicTypedQuerySchedules(httpClient)(query, options),\n hasOptionsParameter: true,\n });\n\n function overloadedQuery(\n query: ScheduleQuery,\n options?: QuerySchedulesOptions\n ): ReturnType<typeof universalTypedQuerySchedules>;\n function overloadedQuery(\n options?: QuerySchedulesOptions\n ): SchedulesQueryBuilder;\n function overloadedQuery(\n queryOrOptions?: ScheduleQuery | QuerySchedulesOptions,\n options?: QuerySchedulesOptions\n ): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\nexport const getSchedule: MaybeContext<\n BuildRESTFunction<typeof publicGetSchedule> & typeof publicGetSchedule\n> = /*#__PURE__*/ createRESTModule(publicGetSchedule);\nexport const createSchedule: MaybeContext<\n BuildRESTFunction<typeof publicCreateSchedule> & typeof publicCreateSchedule\n> = /*#__PURE__*/ createRESTModule(publicCreateSchedule);\nexport const updateSchedule: MaybeContext<\n BuildRESTFunction<typeof publicUpdateSchedule> & typeof publicUpdateSchedule\n> = /*#__PURE__*/ createRESTModule(publicUpdateSchedule);\nexport const cancelSchedule: MaybeContext<\n BuildRESTFunction<typeof publicCancelSchedule> & typeof publicCancelSchedule\n> = /*#__PURE__*/ createRESTModule(publicCancelSchedule);\nexport const querySchedules: MaybeContext<\n BuildRESTFunction<typeof customQuerySchedules> & typeof customQuerySchedules\n> = /*#__PURE__*/ createRESTModule(customQuerySchedules);\n/**\n * Triggered when a schedule is canceled.\n */\nexport const onScheduleCancelled: BuildEventDefinition<\n typeof publicOnScheduleCancelled\n> &\n typeof publicOnScheduleCancelled = createEventModule(\n publicOnScheduleCancelled\n);\n/**\n * Triggered when a schedule is cloned.\n */\nexport const onScheduleCloned: BuildEventDefinition<\n typeof publicOnScheduleCloned\n> &\n typeof publicOnScheduleCloned = createEventModule(publicOnScheduleCloned);\n/**\n * Triggered when a schedule is created.\n */\nexport const onScheduleCreated: BuildEventDefinition<\n typeof publicOnScheduleCreated\n> &\n typeof publicOnScheduleCreated = createEventModule(publicOnScheduleCreated);\n/**\n * Triggered when a schedule is updated.\n */\nexport const onScheduleUpdated: BuildEventDefinition<\n typeof publicOnScheduleUpdated\n> &\n typeof publicOnScheduleUpdated = createEventModule(publicOnScheduleUpdated);\n\nexport {\n Status,\n LocationType,\n Type,\n IdentityType,\n Role,\n RequestedFields,\n Trigger,\n State,\n SiteCreatedContext,\n Namespace,\n DeleteStatus,\n PlacementType,\n DayOfWeek,\n ResolutionMethod,\n WebhookIdentityType,\n} from './calendar-v3-schedule-schedules.universal.js';\nexport {\n Schedule,\n Location,\n ConferencingDetails,\n Permission,\n CommonIdentificationData,\n CommonIdentificationDataIdOneOf,\n ExtendedFields,\n GetScheduleRequest,\n GetScheduleResponse,\n QuerySchedulesRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n CursorPaging,\n QuerySchedulesResponse,\n CursorPagingMetadata,\n Cursors,\n CreateScheduleRequest,\n CreateScheduleResponse,\n UpdateScheduleRequest,\n ParticipantNotification,\n UpdateScheduleResponse,\n ScheduleUpdatedWithMetadata,\n CloneScheduleRequest,\n CloneScheduleResponse,\n ScheduleCloned,\n CancelScheduleRequest,\n CancelScheduleResponse,\n ScheduleCancelled,\n MetaSiteSpecialEvent,\n MetaSiteSpecialEventPayloadOneOf,\n Asset,\n SiteCreated,\n SiteTransferred,\n SiteDeleted,\n DeleteContext,\n SiteUndeleted,\n SitePublished,\n SiteUnpublished,\n SiteMarkedAsTemplate,\n SiteMarkedAsWixSite,\n ServiceProvisioned,\n ServiceRemoved,\n SiteRenamed,\n SiteHardDeleted,\n NamespaceChanged,\n StudioAssigned,\n StudioUnassigned,\n SiteUrlChanged,\n SitePurgedExternally,\n OdeditorAssigned,\n OdeditorUnassigned,\n PicassoAssigned,\n PicassoUnassigned,\n WixelAssigned,\n WixelUnassigned,\n StudioTwoAssigned,\n StudioTwoUnassigned,\n Empty,\n SitePropertiesNotification,\n SitePropertiesEvent,\n Properties,\n Categories,\n Locale,\n Address,\n AddressHint,\n GeoCoordinates,\n BusinessSchedule,\n TimePeriod,\n SpecialHourPeriod,\n Multilingual,\n SupportedLanguage,\n ConsentPolicy,\n Translation,\n ChangeContext,\n ChangeContextPayloadOneOf,\n PropertiesChange,\n V4SiteCreated,\n SiteCloned,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountDetails,\n BaseEventMetadata,\n EventMetadata,\n ScheduleCancelledEnvelope,\n ScheduleClonedEnvelope,\n ScheduleCreatedEnvelope,\n ScheduleUpdatedEnvelope,\n GetScheduleOptions,\n QuerySchedulesOptions,\n SchedulesQueryResult,\n SchedulesQueryBuilder,\n ScheduleQuerySpec,\n CreateScheduleOptions,\n UpdateSchedule,\n UpdateScheduleOptions,\n CancelScheduleOptions,\n} from './calendar-v3-schedule-schedules.universal.js';\nexport {\n StatusWithLiterals,\n LocationTypeWithLiterals,\n TypeWithLiterals,\n IdentityTypeWithLiterals,\n RoleWithLiterals,\n RequestedFieldsWithLiterals,\n TriggerWithLiterals,\n StateWithLiterals,\n SiteCreatedContextWithLiterals,\n NamespaceWithLiterals,\n DeleteStatusWithLiterals,\n PlacementTypeWithLiterals,\n DayOfWeekWithLiterals,\n ResolutionMethodWithLiterals,\n WebhookIdentityTypeWithLiterals,\n UpdateScheduleApplicationErrors,\n CancelScheduleApplicationErrors,\n CommonQueryWithEntityContext,\n ScheduleQuery,\n} from './calendar-v3-schedule-schedules.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAAA;AAAA,EAAA,sBAAAC;AAAA,EAAA,mBAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,sBAAAC;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,uBAA8D;;;ACH9D,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD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B,CAAC,YACrBC,gBAAqB,UAAU,EAAE,OAAO;AAAA,IAC1C,oBAAoB,CAClB,OACA,YACGC,qBAA0B,UAAU,EAAE,OAAO,OAAO;AAAA,IACzD,qBAAqB;AAAA,EACvB,CAAC;AASD,WAAS,gBACP,gBACA,SACK;AACL,WAAO,OAAO,GAAG,SAAS;AAAA,EAC5B;AAEA,SAAO;AACT;AAEO,IAAMC,eAEK,2DAAiBA,YAAiB;AAC7C,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAML,kBAEK,2DAAiB,oBAAoB;AAIhD,IAAMM,2BAGwB;AAAA,EACnC;AACF;AAIO,IAAMC,wBAGqB,mDAAkB,gBAAsB;AAInE,IAAMC,yBAGsB,mDAAkB,iBAAuB;AAIrE,IAAMC,yBAGsB,mDAAkB,iBAAuB;","names":["cancelSchedule","createSchedule","getSchedule","onScheduleCancelled","onScheduleCloned","onScheduleCreated","onScheduleUpdated","querySchedules","updateSchedule","import_rename_all_nested_keys","import_timestamp","import_transform_paths","import_timestamp","import_rest_modules","payload","import_transform_paths","Status","LocationType","Type","IdentityType","Role","RequestedFields","Trigger","State","SiteCreatedContext","Namespace","DeleteStatus","PlacementType","DayOfWeek","ResolutionMethod","WebhookIdentityType","getSchedule","sdkTransformError","querySchedules","createSchedule","updateSchedule","cancelSchedule","getSchedule","querySchedules","typedQuerySchedules","createSchedule","updateSchedule","cancelSchedule","import_rest_modules","querySchedules","typedQuerySchedules","getSchedule","createSchedule","updateSchedule","cancelSchedule","onScheduleCancelled","onScheduleCloned","onScheduleCreated","onScheduleUpdated"]}