@wix/auto_sdk_calendar_schedule-time-frames 1.0.29 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +5 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.mjs +5 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.js +5 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.mjs +5 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/index.js
CHANGED
|
@@ -269,7 +269,11 @@ var onScheduleTimeFrameUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
269
269
|
{ path: "entity.lastEventEndDate.utcDate" },
|
|
270
270
|
{ path: "entity.adjustedFirstEventStartDate.utcDate" },
|
|
271
271
|
{ path: "entity.adjustedLastEventEndDate.utcDate" },
|
|
272
|
-
{ path: "metadata.eventTime" }
|
|
272
|
+
{ path: "metadata.eventTime" },
|
|
273
|
+
{ path: "modifiedFields.firstEventStartDate.utcDate" },
|
|
274
|
+
{ path: "modifiedFields.lastEventEndDate.utcDate" },
|
|
275
|
+
{ path: "modifiedFields.adjustedFirstEventStartDate.utcDate" },
|
|
276
|
+
{ path: "modifiedFields.adjustedLastEventEndDate.utcDate" }
|
|
273
277
|
]
|
|
274
278
|
}
|
|
275
279
|
])
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts","../../src/calendar-v3-schedule-time-frame-schedule-time-frames.public.ts","../../src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.ts","../../src/calendar-v3-schedule-time-frame-schedule-time-frames.http.ts","../../src/calendar-v3-schedule-time-frame-schedule-time-frames.context.ts"],"sourcesContent":["export * from './src/calendar-v3-schedule-time-frame-schedule-time-frames.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 GetScheduleTimeFrameOptions,\n ListScheduleTimeFramesOptions,\n ListScheduleTimeFramesResponse,\n ScheduleTimeFrame,\n ScheduleTimeFrameUpdatedEnvelope,\n getScheduleTimeFrame as universalGetScheduleTimeFrame,\n listScheduleTimeFrames as universalListScheduleTimeFrames,\n} from './calendar-v3-schedule-time-frame-schedule-time-frames.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/calendar' };\n\nexport function getScheduleTimeFrame(\n httpClient: HttpClient\n): GetScheduleTimeFrameSignature {\n return (_id: string, options?: GetScheduleTimeFrameOptions) =>\n universalGetScheduleTimeFrame(\n _id,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetScheduleTimeFrameSignature {\n /**\n * Retrieves a schedule time frame by schedule ID.\n * @param - [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)\n * ID for which to retrieve the schedule time frame.\n * @returns Retrieved schedule time frame.\n */\n (_id: string, options?: GetScheduleTimeFrameOptions): Promise<\n NonNullablePaths<ScheduleTimeFrame, `status`, 2>\n >;\n}\n\nexport function listScheduleTimeFrames(\n httpClient: HttpClient\n): ListScheduleTimeFramesSignature {\n return (ids: string[], options?: ListScheduleTimeFramesOptions) =>\n universalListScheduleTimeFrames(\n ids,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListScheduleTimeFramesSignature {\n /**\n * Retrieves a list of schedule time frames by schedule IDs.\n *\n *\n * Sorted by schedule ID in ascending order.\n * @param - IDs of the schedules for which to retrieve schedule time frames.\n *\n * Min: 1 schedule ID\n * Max: 100 schedule IDs\n */\n (ids: string[], options?: ListScheduleTimeFramesOptions): Promise<\n NonNullablePaths<\n ListScheduleTimeFramesResponse,\n `scheduleTimeFrames` | `scheduleTimeFrames.${number}.status`,\n 4\n >\n >;\n}\n\nexport const onScheduleTimeFrameUpdated = EventDefinition(\n 'wix.calendar.v3.schedule_time_frame_updated',\n true,\n (event: ScheduleTimeFrameUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.firstEventStartDate.utcDate' },\n { path: 'entity.lastEventEndDate.utcDate' },\n { path: 'entity.adjustedFirstEventStartDate.utcDate' },\n { path: 'entity.adjustedLastEventEndDate.utcDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n ])\n )\n)<ScheduleTimeFrameUpdatedEnvelope>();\n\nexport {\n ActionEvent,\n Address,\n AddressHint,\n BaseEventMetadata,\n BusinessSchedule,\n Categories,\n ChangeContext,\n ChangeContextPayloadOneOf,\n ConsentPolicy,\n DayOfWeek,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n GeoCoordinates,\n GetScheduleTimeFrameOptions,\n GetScheduleTimeFrameRequest,\n GetScheduleTimeFrameResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ListScheduleTimeFramesOptions,\n ListScheduleTimeFramesRequest,\n ListScheduleTimeFramesResponse,\n Locale,\n MessageEnvelope,\n Multilingual,\n PlacementType,\n Properties,\n PropertiesChange,\n ResolutionMethod,\n RestoreInfo,\n ScheduleTimeFrame,\n ScheduleTimeFrameUpdatedEnvelope,\n SiteCloned,\n SiteCreated,\n SitePropertiesEvent,\n SitePropertiesNotification,\n SpecialHourPeriod,\n Status,\n SupportedLanguage,\n TimePeriod,\n Translation,\n WebhookIdentityType,\n ZonedDate,\n} from './calendar-v3-schedule-time-frame-schedule-time-frames.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixCalendarV3ScheduleTimeFrame from './calendar-v3-schedule-time-frame-schedule-time-frames.http.js';\n\n/**\n * Information about the start and end dates of the first and last\n * [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)\n * that belong to a [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)\n * and whether any events follow an unlimited repetition pattern.\n */\nexport interface ScheduleTimeFrame {\n /**\n * ID of the [schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)\n * to which the time frame belongs.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Information about the presence of recurring events within the schedule.\n *\n * Supported values:\n * + `NONE`: No [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction) are scheduled within the schedule.\n * + `FINITE`: All recurring events within the schedule have a defined end date, or there are no recurring events.\n * + `INFINITE`: At least one recurring event within the schedule has no end date, meaning it follows an unlimited repetition pattern.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Start date of the first [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * within the schedule. Identical to `event.start.localDate`. Available only if\n * `status` is set to `FINITE` or `INFINITE`.\n * @readonly\n */\n firstEventStartDate?: ZonedDate;\n /**\n * End date of the last [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * belonging to the schedule. Identical to `event.end.localDate`. Available only if\n * `status` is set to `FINITE`.\n * @readonly\n */\n lastEventEndDate?: ZonedDate;\n /**\n * Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * belonging to the schedule, adjusted to `timeZone` of the\n * [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)\n * or the `timeZone` specified in the request.\n * Identical to `event.adjustedStart.localDate`.\n * @readonly\n */\n adjustedFirstEventStartDate?: ZonedDate;\n /**\n * End date of the last [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * belonging to the schedule, adjusted to `timeZone` of the\n * [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)\n * or the `timeZone` specified in the request.\n * Identical to `event.adjustedEnd.localDate`.\n * @readonly\n */\n adjustedLastEventEndDate?: ZonedDate;\n /**\n * Revision number, which increments by 1 each time the schedule time frame is updated.\n * @readonly\n */\n revision?: string | null;\n}\n\nexport enum Status {\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n /** No [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object) that belong to the schedule. */\n NONE = 'NONE',\n /** There are no recurring events or all recurring events belonging to the schedule have a defined end date. */\n FINITE = 'FINITE',\n /** At least one recurring event belonging to the schedule has an unlimited repetition pattern (no end date). */\n INFINITE = 'INFINITE',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN_STATUS'\n | 'NONE'\n | 'FINITE'\n | 'INFINITE';\n\n/** A date time with a time zone, having the UTC offset and date determined by the server. */\nexport interface ZonedDate {\n /**\n * Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\n * For example, `2024-01-30T13:30:00`.\n * Wix Calendar APIs ignore seconds.\n * @format LOCAL_DATE_TIME\n */\n localDate?: string | null;\n /**\n * Time zone in\n * [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\n * For example, `America/New_York`.\n * @readonly\n */\n timeZone?: string | null;\n /**\n * UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\n * For example, `2024-01-30T13:30:00`.\n * Not available for adjusted date fields.\n * @readonly\n */\n utcDate?: Date | null;\n}\n\nexport interface GetScheduleTimeFrameRequest {\n /**\n * [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)\n * ID for which to retrieve the schedule time frame.\n * @format GUID\n */\n _id: string | null;\n /**\n * Time zone for adjusting the times of the returned schedule time frame.\n *\n * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\n */\n timeZone?: string | null;\n}\n\nexport interface GetScheduleTimeFrameResponse {\n /** Retrieved schedule time frame. */\n scheduleTimeFrame?: ScheduleTimeFrame;\n}\n\nexport interface ListScheduleTimeFramesRequest {\n /**\n * IDs of the schedules for which to retrieve schedule time frames.\n *\n * Min: 1 schedule ID\n * Max: 100 schedule IDs\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n ids: string[];\n /**\n * Time zone for adjusting the times of the returned schedule time frames.\n *\n * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\n */\n timeZone?: string | null;\n}\n\nexport interface ListScheduleTimeFramesResponse {\n /** Retrieved schedule time frames. */\n scheduleTimeFrames?: ScheduleTimeFrame[];\n}\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?: SiteCreated;\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?: SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\nexport interface PropertiesChange {}\n\nexport interface SiteCreated {\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 Empty {}\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 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 ScheduleTimeFrameUpdatedEnvelope {\n entity: ScheduleTimeFrame;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a schedule's time frame is updated, indicating a new first or\n * last event or a change in the recurrence period, such as an extension or\n * reduction.\n * @permissionScope Read Bookings - Public Data\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC\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 Read Bookings Calendar Availability\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR\n * @permissionScope Read Calendar\n * @permissionScopeId SCOPE.DC-CALENDAR.READ-PUBLIC\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 * @permissionScope Read Bookings Calendar\n * @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES\n * @permissionId CALENDAR.SCHEDULE_READ\n * @webhook\n * @eventType wix.calendar.v3.schedule_time_frame_updated\n * @slug updated\n */\nexport declare function onScheduleTimeFrameUpdated(\n handler: (event: ScheduleTimeFrameUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Retrieves a schedule time frame by schedule ID.\n * @param _id - [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)\n * ID for which to retrieve the schedule time frame.\n * @public\n * @requiredField _id\n * @permissionId CALENDAR.SCHEDULE_READ\n * @applicableIdentity APP\n * @returns Retrieved schedule time frame.\n * @fqn wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.GetScheduleTimeFrame\n */\nexport async function getScheduleTimeFrame(\n _id: string,\n options?: GetScheduleTimeFrameOptions\n): Promise<NonNullablePaths<ScheduleTimeFrame, `status`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n timeZone: options?.timeZone,\n });\n\n const reqOpts =\n ambassadorWixCalendarV3ScheduleTimeFrame.getScheduleTimeFrame(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 ?.scheduleTimeFrame!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]', timeZone: '$[1].timeZone' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetScheduleTimeFrameOptions {\n /**\n * Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting the times of the returned schedule time frame. For example, `America/New_York` or `UTC`.\n *\n * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)\n */\n timeZone?: string | null;\n}\n\n/**\n * Retrieves a list of schedule time frames by schedule IDs.\n *\n *\n * Sorted by schedule ID in ascending order.\n * @param ids - IDs of the schedules for which to retrieve schedule time frames.\n *\n * Min: 1 schedule ID\n * Max: 100 schedule IDs\n * @public\n * @requiredField ids\n * @permissionId CALENDAR.SCHEDULE_READ\n * @applicableIdentity APP\n * @fqn wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.ListScheduleTimeFrames\n */\nexport async function listScheduleTimeFrames(\n ids: string[],\n options?: ListScheduleTimeFramesOptions\n): Promise<\n NonNullablePaths<\n ListScheduleTimeFramesResponse,\n `scheduleTimeFrames` | `scheduleTimeFrames.${number}.status`,\n 4\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 ids: ids,\n timeZone: options?.timeZone,\n });\n\n const reqOpts =\n ambassadorWixCalendarV3ScheduleTimeFrame.listScheduleTimeFrames(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: { ids: '$[0]', timeZone: '$[1].timeZone' },\n singleArgumentUnchanged: false,\n },\n ['ids', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListScheduleTimeFramesOptions {\n /**\n * Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting the times of the returned schedule time frame. For example, `America/New_York` or `UTC`.\n *\n * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)\n */\n timeZone?: string | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\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 resolveWixCalendarScheduletimeframesV3ScheduleTimeFramesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/schedule-timeframes-3',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/calendar/v3/schedules/timeframe',\n destPath: '/v3/schedules/timeframe',\n },\n ],\n _: [\n {\n srcPath: '/_api/calendar/v3/schedules/timeframe',\n destPath: '/v3/schedules/timeframe',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/calendar/v3/schedules/timeframe',\n destPath: '/v3/schedules/timeframe',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/calendar/v3/schedules/timeframe',\n destPath: '/v3/schedules/timeframe',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_calendar_schedule-time-frames';\n\n/** Retrieves a schedule time frame by schedule ID. */\nexport function getScheduleTimeFrame(\n payload: object\n): RequestOptionsFactory<any> {\n function __getScheduleTimeFrame({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule_time_frame',\n method: 'GET' as any,\n methodFqn:\n 'wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.GetScheduleTimeFrame',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarScheduletimeframesV3ScheduleTimeFramesServiceUrl({\n protoPath: '/v3/schedules/timeframe/{id}',\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: 'scheduleTimeFrame.firstEventStartDate.utcDate' },\n { path: 'scheduleTimeFrame.lastEventEndDate.utcDate' },\n { path: 'scheduleTimeFrame.adjustedFirstEventStartDate.utcDate' },\n { path: 'scheduleTimeFrame.adjustedLastEventEndDate.utcDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getScheduleTimeFrame;\n}\n\n/**\n * Retrieves a list of schedule time frames by schedule IDs.\n *\n *\n * Sorted by schedule ID in ascending order.\n */\nexport function listScheduleTimeFrames(\n payload: object\n): RequestOptionsFactory<any> {\n function __listScheduleTimeFrames({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule_time_frame',\n method: 'GET' as any,\n methodFqn:\n 'wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.ListScheduleTimeFrames',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarScheduletimeframesV3ScheduleTimeFramesServiceUrl({\n protoPath: '/v3/schedules/timeframe',\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: 'scheduleTimeFrames.firstEventStartDate.utcDate' },\n { path: 'scheduleTimeFrames.lastEventEndDate.utcDate' },\n {\n path: 'scheduleTimeFrames.adjustedFirstEventStartDate.utcDate',\n },\n { path: 'scheduleTimeFrames.adjustedLastEventEndDate.utcDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listScheduleTimeFrames;\n}\n","import {\n getScheduleTimeFrame as publicGetScheduleTimeFrame,\n listScheduleTimeFrames as publicListScheduleTimeFrames,\n} from './calendar-v3-schedule-time-frame-schedule-time-frames.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 { onScheduleTimeFrameUpdated as publicOnScheduleTimeFrameUpdated } from './calendar-v3-schedule-time-frame-schedule-time-frames.public.js';\n\nexport const getScheduleTimeFrame: MaybeContext<\n BuildRESTFunction<typeof publicGetScheduleTimeFrame> &\n typeof publicGetScheduleTimeFrame\n> = /*#__PURE__*/ createRESTModule(publicGetScheduleTimeFrame);\nexport const listScheduleTimeFrames: MaybeContext<\n BuildRESTFunction<typeof publicListScheduleTimeFrames> &\n typeof publicListScheduleTimeFrames\n> = /*#__PURE__*/ createRESTModule(publicListScheduleTimeFrames);\n/**\n * Triggered when a schedule's time frame is updated, indicating a new first or\n * last event or a change in the recurrence period, such as an extension or\n * reduction.\n */\nexport const onScheduleTimeFrameUpdated: BuildEventDefinition<\n typeof publicOnScheduleTimeFrameUpdated\n> &\n typeof publicOnScheduleTimeFrameUpdated = createEventModule(\n publicOnScheduleTimeFrameUpdated\n);\n\nexport {\n Status,\n PlacementType,\n DayOfWeek,\n ResolutionMethod,\n WebhookIdentityType,\n} from './calendar-v3-schedule-time-frame-schedule-time-frames.universal.js';\nexport {\n ScheduleTimeFrame,\n ZonedDate,\n GetScheduleTimeFrameRequest,\n GetScheduleTimeFrameResponse,\n ListScheduleTimeFramesRequest,\n ListScheduleTimeFramesResponse,\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 SiteCreated,\n SiteCloned,\n Empty,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n BaseEventMetadata,\n EventMetadata,\n ScheduleTimeFrameUpdatedEnvelope,\n GetScheduleTimeFrameOptions,\n ListScheduleTimeFramesOptions,\n} from './calendar-v3-schedule-time-frame-schedule-time-frames.universal.js';\nexport {\n StatusWithLiterals,\n PlacementTypeWithLiterals,\n DayOfWeekWithLiterals,\n ResolutionMethodWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './calendar-v3-schedule-time-frame-schedule-time-frames.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAAA;AAAA,EAAA,8BAAAC;AAAA,EAAA,kCAAAC;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,uBAA8D;;;ACH9D,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,mEACP,MACA;AACA,QAAM,mBAAmB;A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MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,KAAK,QAAQ,UAAU,gBAAgB;AAAA,QACnE,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,OAAO,SAAS;AAAA,IACnB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AD7zBO,SAASE,sBACd,YAC+B;AAC/B,SAAO,CAAC,KAAa,YACnBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAcO,SAASC,wBACd,YACiC;AACjC,SAAO,CAAC,KAAe,YACrBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAsBO,IAAM,iCAA6B;AAAA,EACxC;AAAA,EACA;AAAA,EACA,CAAC,cACC;AAAA,QACE,wCAAe,OAAO;AAAA,MACpB;AAAA,QACE,aAAa;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,qCAAqC;AAAA,UAC7C,EAAE,MAAM,kCAAkC;AAAA,UAC1C,EAAE,MAAM,6CAA6C;AAAA,UACrD,EAAE,MAAM,0CAA0C;AAAA,UAClD,EAAE,MAAM,qBAAqB;AAAA,QAC/B;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAAoC;;;AGtFpC,IAAAC,uBAAiC;AACjC,sCAAkC;AAQ3B,IAAMC,wBAGK,2DAAiBA,qBAA0B;AACtD,IAAMC,0BAGK,2DAAiBA,uBAA4B;AAMxD,IAAMC,kCAG+B;AAAA,EAC1C;AACF;","names":["getScheduleTimeFrame","listScheduleTimeFrames","onScheduleTimeFrameUpdated","import_rename_all_nested_keys","import_timestamp","import_transform_paths","import_rest_modules","payload","Status","PlacementType","DayOfWeek","ResolutionMethod","WebhookIdentityType","getScheduleTimeFrame","sdkTransformError","listScheduleTimeFrames","getScheduleTimeFrame","listScheduleTimeFrames","import_rest_modules","getScheduleTimeFrame","listScheduleTimeFrames","onScheduleTimeFrameUpdated"]}
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../src/calendar-v3-schedule-time-frame-schedule-time-frames.public.ts","../../src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.ts","../../src/calendar-v3-schedule-time-frame-schedule-time-frames.http.ts","../../src/calendar-v3-schedule-time-frame-schedule-time-frames.context.ts"],"sourcesContent":["export * from './src/calendar-v3-schedule-time-frame-schedule-time-frames.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 GetScheduleTimeFrameOptions,\n ListScheduleTimeFramesOptions,\n ListScheduleTimeFramesResponse,\n ScheduleTimeFrame,\n ScheduleTimeFrameUpdatedEnvelope,\n getScheduleTimeFrame as universalGetScheduleTimeFrame,\n listScheduleTimeFrames as universalListScheduleTimeFrames,\n} from './calendar-v3-schedule-time-frame-schedule-time-frames.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/calendar' };\n\nexport function getScheduleTimeFrame(\n httpClient: HttpClient\n): GetScheduleTimeFrameSignature {\n return (_id: string, options?: GetScheduleTimeFrameOptions) =>\n universalGetScheduleTimeFrame(\n _id,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetScheduleTimeFrameSignature {\n /**\n * Retrieves a schedule time frame by schedule ID.\n * @param - [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)\n * ID for which to retrieve the schedule time frame.\n * @returns Retrieved schedule time frame.\n */\n (_id: string, options?: GetScheduleTimeFrameOptions): Promise<\n NonNullablePaths<ScheduleTimeFrame, `status`, 2>\n >;\n}\n\nexport function listScheduleTimeFrames(\n httpClient: HttpClient\n): ListScheduleTimeFramesSignature {\n return (ids: string[], options?: ListScheduleTimeFramesOptions) =>\n universalListScheduleTimeFrames(\n ids,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListScheduleTimeFramesSignature {\n /**\n * Retrieves a list of schedule time frames by schedule IDs.\n *\n *\n * Sorted by schedule ID in ascending order.\n * @param - IDs of the schedules for which to retrieve schedule time frames.\n *\n * Min: 1 schedule ID\n * Max: 100 schedule IDs\n */\n (ids: string[], options?: ListScheduleTimeFramesOptions): Promise<\n NonNullablePaths<\n ListScheduleTimeFramesResponse,\n `scheduleTimeFrames` | `scheduleTimeFrames.${number}.status`,\n 4\n >\n >;\n}\n\nexport const onScheduleTimeFrameUpdated = EventDefinition(\n 'wix.calendar.v3.schedule_time_frame_updated',\n true,\n (event: ScheduleTimeFrameUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.firstEventStartDate.utcDate' },\n { path: 'entity.lastEventEndDate.utcDate' },\n { path: 'entity.adjustedFirstEventStartDate.utcDate' },\n { path: 'entity.adjustedLastEventEndDate.utcDate' },\n { path: 'metadata.eventTime' },\n { path: 'modifiedFields.firstEventStartDate.utcDate' },\n { path: 'modifiedFields.lastEventEndDate.utcDate' },\n { path: 'modifiedFields.adjustedFirstEventStartDate.utcDate' },\n { path: 'modifiedFields.adjustedLastEventEndDate.utcDate' },\n ],\n },\n ])\n )\n)<ScheduleTimeFrameUpdatedEnvelope>();\n\nexport {\n ActionEvent,\n Address,\n AddressHint,\n BaseEventMetadata,\n BusinessSchedule,\n Categories,\n ChangeContext,\n ChangeContextPayloadOneOf,\n ConsentPolicy,\n DayOfWeek,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n GeoCoordinates,\n GetScheduleTimeFrameOptions,\n GetScheduleTimeFrameRequest,\n GetScheduleTimeFrameResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ListScheduleTimeFramesOptions,\n ListScheduleTimeFramesRequest,\n ListScheduleTimeFramesResponse,\n Locale,\n MessageEnvelope,\n Multilingual,\n PlacementType,\n Properties,\n PropertiesChange,\n ResolutionMethod,\n RestoreInfo,\n ScheduleTimeFrame,\n ScheduleTimeFrameUpdatedEnvelope,\n SiteCloned,\n SiteCreated,\n SitePropertiesEvent,\n SitePropertiesNotification,\n SpecialHourPeriod,\n Status,\n SupportedLanguage,\n TimePeriod,\n Translation,\n WebhookIdentityType,\n ZonedDate,\n} from './calendar-v3-schedule-time-frame-schedule-time-frames.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixCalendarV3ScheduleTimeFrame from './calendar-v3-schedule-time-frame-schedule-time-frames.http.js';\n\n/**\n * Information about the start and end dates of the first and last\n * [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)\n * that belong to a [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)\n * and whether any events follow an unlimited repetition pattern.\n */\nexport interface ScheduleTimeFrame {\n /**\n * ID of the [schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)\n * to which the time frame belongs.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Information about the presence of recurring events within the schedule.\n *\n * Supported values:\n * + `NONE`: No [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction) are scheduled within the schedule.\n * + `FINITE`: All recurring events within the schedule have a defined end date, or there are no recurring events.\n * + `INFINITE`: At least one recurring event within the schedule has no end date, meaning it follows an unlimited repetition pattern.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Start date of the first [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * within the schedule. Identical to `event.start.localDate`. Available only if\n * `status` is set to `FINITE` or `INFINITE`.\n * @readonly\n */\n firstEventStartDate?: ZonedDate;\n /**\n * End date of the last [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * belonging to the schedule. Identical to `event.end.localDate`. Available only if\n * `status` is set to `FINITE`.\n * @readonly\n */\n lastEventEndDate?: ZonedDate;\n /**\n * Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * belonging to the schedule, adjusted to `timeZone` of the\n * [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)\n * or the `timeZone` specified in the request.\n * Identical to `event.adjustedStart.localDate`.\n * @readonly\n */\n adjustedFirstEventStartDate?: ZonedDate;\n /**\n * End date of the last [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * belonging to the schedule, adjusted to `timeZone` of the\n * [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)\n * or the `timeZone` specified in the request.\n * Identical to `event.adjustedEnd.localDate`.\n * @readonly\n */\n adjustedLastEventEndDate?: ZonedDate;\n /**\n * Revision number, which increments by 1 each time the schedule time frame is updated.\n * @readonly\n */\n revision?: string | null;\n}\n\nexport enum Status {\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n /** No [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object) that belong to the schedule. */\n NONE = 'NONE',\n /** There are no recurring events or all recurring events belonging to the schedule have a defined end date. */\n FINITE = 'FINITE',\n /** At least one recurring event belonging to the schedule has an unlimited repetition pattern (no end date). */\n INFINITE = 'INFINITE',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN_STATUS'\n | 'NONE'\n | 'FINITE'\n | 'INFINITE';\n\n/** A date time with a time zone, having the UTC offset and date determined by the server. */\nexport interface ZonedDate {\n /**\n * Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\n * For example, `2024-01-30T13:30:00`.\n * Wix Calendar APIs ignore seconds.\n * @format LOCAL_DATE_TIME\n */\n localDate?: string | null;\n /**\n * Time zone in\n * [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\n * For example, `America/New_York`.\n * @readonly\n */\n timeZone?: string | null;\n /**\n * UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\n * For example, `2024-01-30T13:30:00`.\n * Not available for adjusted date fields.\n * @readonly\n */\n utcDate?: Date | null;\n}\n\nexport interface GetScheduleTimeFrameRequest {\n /**\n * [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)\n * ID for which to retrieve the schedule time frame.\n * @format GUID\n */\n _id: string | null;\n /**\n * Time zone for adjusting the times of the returned schedule time frame.\n *\n * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\n */\n timeZone?: string | null;\n}\n\nexport interface GetScheduleTimeFrameResponse {\n /** Retrieved schedule time frame. */\n scheduleTimeFrame?: ScheduleTimeFrame;\n}\n\nexport interface ListScheduleTimeFramesRequest {\n /**\n * IDs of the schedules for which to retrieve schedule time frames.\n *\n * Min: 1 schedule ID\n * Max: 100 schedule IDs\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n ids: string[];\n /**\n * Time zone for adjusting the times of the returned schedule time frames.\n *\n * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\n */\n timeZone?: string | null;\n}\n\nexport interface ListScheduleTimeFramesResponse {\n /** Retrieved schedule time frames. */\n scheduleTimeFrames?: ScheduleTimeFrame[];\n}\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?: SiteCreated;\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?: SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\nexport interface PropertiesChange {}\n\nexport interface SiteCreated {\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 Empty {}\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 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 ScheduleTimeFrameUpdatedEnvelope {\n entity: ScheduleTimeFrame;\n metadata: EventMetadata;\n /** @hidden */\n modifiedFields: Record<string, any>;\n}\n\n/**\n * Triggered when a schedule's time frame is updated, indicating a new first or\n * last event or a change in the recurrence period, such as an extension or\n * reduction.\n * @permissionScope Read Bookings - Public Data\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC\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 Read Bookings Calendar Availability\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR\n * @permissionScope Read Calendar\n * @permissionScopeId SCOPE.DC-CALENDAR.READ-PUBLIC\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 * @permissionScope Read Bookings Calendar\n * @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES\n * @permissionId CALENDAR.SCHEDULE_READ\n * @webhook\n * @eventType wix.calendar.v3.schedule_time_frame_updated\n * @slug updated\n */\nexport declare function onScheduleTimeFrameUpdated(\n handler: (event: ScheduleTimeFrameUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Retrieves a schedule time frame by schedule ID.\n * @param _id - [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)\n * ID for which to retrieve the schedule time frame.\n * @public\n * @requiredField _id\n * @permissionId CALENDAR.SCHEDULE_READ\n * @applicableIdentity APP\n * @returns Retrieved schedule time frame.\n * @fqn wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.GetScheduleTimeFrame\n */\nexport async function getScheduleTimeFrame(\n _id: string,\n options?: GetScheduleTimeFrameOptions\n): Promise<NonNullablePaths<ScheduleTimeFrame, `status`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n timeZone: options?.timeZone,\n });\n\n const reqOpts =\n ambassadorWixCalendarV3ScheduleTimeFrame.getScheduleTimeFrame(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 ?.scheduleTimeFrame!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]', timeZone: '$[1].timeZone' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetScheduleTimeFrameOptions {\n /**\n * Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting the times of the returned schedule time frame. For example, `America/New_York` or `UTC`.\n *\n * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)\n */\n timeZone?: string | null;\n}\n\n/**\n * Retrieves a list of schedule time frames by schedule IDs.\n *\n *\n * Sorted by schedule ID in ascending order.\n * @param ids - IDs of the schedules for which to retrieve schedule time frames.\n *\n * Min: 1 schedule ID\n * Max: 100 schedule IDs\n * @public\n * @requiredField ids\n * @permissionId CALENDAR.SCHEDULE_READ\n * @applicableIdentity APP\n * @fqn wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.ListScheduleTimeFrames\n */\nexport async function listScheduleTimeFrames(\n ids: string[],\n options?: ListScheduleTimeFramesOptions\n): Promise<\n NonNullablePaths<\n ListScheduleTimeFramesResponse,\n `scheduleTimeFrames` | `scheduleTimeFrames.${number}.status`,\n 4\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 ids: ids,\n timeZone: options?.timeZone,\n });\n\n const reqOpts =\n ambassadorWixCalendarV3ScheduleTimeFrame.listScheduleTimeFrames(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: { ids: '$[0]', timeZone: '$[1].timeZone' },\n singleArgumentUnchanged: false,\n },\n ['ids', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListScheduleTimeFramesOptions {\n /**\n * Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting the times of the returned schedule time frame. For example, `America/New_York` or `UTC`.\n *\n * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)\n */\n timeZone?: string | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\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 resolveWixCalendarScheduletimeframesV3ScheduleTimeFramesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/schedule-timeframes-3',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/calendar/v3/schedules/timeframe',\n destPath: '/v3/schedules/timeframe',\n },\n ],\n _: [\n {\n srcPath: '/_api/calendar/v3/schedules/timeframe',\n destPath: '/v3/schedules/timeframe',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/calendar/v3/schedules/timeframe',\n destPath: '/v3/schedules/timeframe',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/calendar/v3/schedules/timeframe',\n destPath: '/v3/schedules/timeframe',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_calendar_schedule-time-frames';\n\n/** Retrieves a schedule time frame by schedule ID. */\nexport function getScheduleTimeFrame(\n payload: object\n): RequestOptionsFactory<any> {\n function __getScheduleTimeFrame({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule_time_frame',\n method: 'GET' as any,\n methodFqn:\n 'wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.GetScheduleTimeFrame',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarScheduletimeframesV3ScheduleTimeFramesServiceUrl({\n protoPath: '/v3/schedules/timeframe/{id}',\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: 'scheduleTimeFrame.firstEventStartDate.utcDate' },\n { path: 'scheduleTimeFrame.lastEventEndDate.utcDate' },\n { path: 'scheduleTimeFrame.adjustedFirstEventStartDate.utcDate' },\n { path: 'scheduleTimeFrame.adjustedLastEventEndDate.utcDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getScheduleTimeFrame;\n}\n\n/**\n * Retrieves a list of schedule time frames by schedule IDs.\n *\n *\n * Sorted by schedule ID in ascending order.\n */\nexport function listScheduleTimeFrames(\n payload: object\n): RequestOptionsFactory<any> {\n function __listScheduleTimeFrames({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule_time_frame',\n method: 'GET' as any,\n methodFqn:\n 'wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.ListScheduleTimeFrames',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarScheduletimeframesV3ScheduleTimeFramesServiceUrl({\n protoPath: '/v3/schedules/timeframe',\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: 'scheduleTimeFrames.firstEventStartDate.utcDate' },\n { path: 'scheduleTimeFrames.lastEventEndDate.utcDate' },\n {\n path: 'scheduleTimeFrames.adjustedFirstEventStartDate.utcDate',\n },\n { path: 'scheduleTimeFrames.adjustedLastEventEndDate.utcDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listScheduleTimeFrames;\n}\n","import {\n getScheduleTimeFrame as publicGetScheduleTimeFrame,\n listScheduleTimeFrames as publicListScheduleTimeFrames,\n} from './calendar-v3-schedule-time-frame-schedule-time-frames.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 { onScheduleTimeFrameUpdated as publicOnScheduleTimeFrameUpdated } from './calendar-v3-schedule-time-frame-schedule-time-frames.public.js';\n\nexport const getScheduleTimeFrame: MaybeContext<\n BuildRESTFunction<typeof publicGetScheduleTimeFrame> &\n typeof publicGetScheduleTimeFrame\n> = /*#__PURE__*/ createRESTModule(publicGetScheduleTimeFrame);\nexport const listScheduleTimeFrames: MaybeContext<\n BuildRESTFunction<typeof publicListScheduleTimeFrames> &\n typeof publicListScheduleTimeFrames\n> = /*#__PURE__*/ createRESTModule(publicListScheduleTimeFrames);\n/**\n * Triggered when a schedule's time frame is updated, indicating a new first or\n * last event or a change in the recurrence period, such as an extension or\n * reduction.\n */\nexport const onScheduleTimeFrameUpdated: BuildEventDefinition<\n typeof publicOnScheduleTimeFrameUpdated\n> &\n typeof publicOnScheduleTimeFrameUpdated = createEventModule(\n publicOnScheduleTimeFrameUpdated\n);\n\nexport {\n Status,\n PlacementType,\n DayOfWeek,\n ResolutionMethod,\n WebhookIdentityType,\n} from './calendar-v3-schedule-time-frame-schedule-time-frames.universal.js';\nexport {\n ScheduleTimeFrame,\n ZonedDate,\n GetScheduleTimeFrameRequest,\n GetScheduleTimeFrameResponse,\n ListScheduleTimeFramesRequest,\n ListScheduleTimeFramesResponse,\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 SiteCreated,\n SiteCloned,\n Empty,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n BaseEventMetadata,\n EventMetadata,\n ScheduleTimeFrameUpdatedEnvelope,\n GetScheduleTimeFrameOptions,\n ListScheduleTimeFramesOptions,\n} from './calendar-v3-schedule-time-frame-schedule-time-frames.universal.js';\nexport {\n StatusWithLiterals,\n PlacementTypeWithLiterals,\n DayOfWeekWithLiterals,\n ResolutionMethodWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './calendar-v3-schedule-time-frame-schedule-time-frames.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;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C5D;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAAoC;;;AG1FpC,IAAAC,uBAAiC;AACjC,sCAAkC;AAQ3B,IAAMC,wBAGK,2DAAiBA,qBAA0B;AACtD,IAAMC,0BAGK,2DAAiBA,uBAA4B;AAMxD,IAAMC,kCAG+B;AAAA,EAC1C;AACF;","names":["getScheduleTimeFrame","listScheduleTimeFrames","onScheduleTimeFrameUpdated","import_rename_all_nested_keys","import_timestamp","import_transform_paths","import_rest_modules","payload","Status","PlacementType","DayOfWeek","ResolutionMethod","WebhookIdentityType","getScheduleTimeFrame","sdkTransformError","listScheduleTimeFrames","getScheduleTimeFrame","listScheduleTimeFrames","import_rest_modules","getScheduleTimeFrame","listScheduleTimeFrames","onScheduleTimeFrameUpdated"]}
|
|
@@ -606,6 +606,8 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
606
606
|
interface ScheduleTimeFrameUpdatedEnvelope {
|
|
607
607
|
entity: ScheduleTimeFrame;
|
|
608
608
|
metadata: EventMetadata;
|
|
609
|
+
/** @hidden */
|
|
610
|
+
modifiedFields: Record<string, any>;
|
|
609
611
|
}
|
|
610
612
|
/**
|
|
611
613
|
* Triggered when a schedule's time frame is updated, indicating a new first or
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.typings.ts","../../src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.ts","../../src/calendar-v3-schedule-time-frame-schedule-time-frames.http.ts"],"sourcesContent":["export * from './src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixCalendarV3ScheduleTimeFrame from './calendar-v3-schedule-time-frame-schedule-time-frames.http.js';\n\n/**\n * Information about the start and end dates of the first and last\n * [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)\n * that belong to a [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)\n * and whether any events follow an unlimited repetition pattern.\n */\nexport interface ScheduleTimeFrame {\n /**\n * ID of the [schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)\n * to which the time frame belongs.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Information about the presence of recurring events within the schedule.\n *\n * Supported values:\n * + `NONE`: No [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction) are scheduled within the schedule.\n * + `FINITE`: All recurring events within the schedule have a defined end date, or there are no recurring events.\n * + `INFINITE`: At least one recurring event within the schedule has no end date, meaning it follows an unlimited repetition pattern.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Start date of the first [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * within the schedule. Identical to `event.start.localDate`. Available only if\n * `status` is set to `FINITE` or `INFINITE`.\n * @readonly\n */\n firstEventStartDate?: ZonedDate;\n /**\n * End date of the last [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * belonging to the schedule. Identical to `event.end.localDate`. Available only if\n * `status` is set to `FINITE`.\n * @readonly\n */\n lastEventEndDate?: ZonedDate;\n /**\n * Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * belonging to the schedule, adjusted to `timeZone` of the\n * [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)\n * or the `timeZone` specified in the request.\n * Identical to `event.adjustedStart.localDate`.\n * @readonly\n */\n adjustedFirstEventStartDate?: ZonedDate;\n /**\n * End date of the last [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * belonging to the schedule, adjusted to `timeZone` of the\n * [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)\n * or the `timeZone` specified in the request.\n * Identical to `event.adjustedEnd.localDate`.\n * @readonly\n */\n adjustedLastEventEndDate?: ZonedDate;\n /**\n * Revision number, which increments by 1 each time the schedule time frame is updated.\n * @readonly\n */\n revision?: string | null;\n}\n\nexport enum Status {\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n /** No [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object) that belong to the schedule. */\n NONE = 'NONE',\n /** There are no recurring events or all recurring events belonging to the schedule have a defined end date. */\n FINITE = 'FINITE',\n /** At least one recurring event belonging to the schedule has an unlimited repetition pattern (no end date). */\n INFINITE = 'INFINITE',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN_STATUS'\n | 'NONE'\n | 'FINITE'\n | 'INFINITE';\n\n/** A date time with a time zone, having the UTC offset and date determined by the server. */\nexport interface ZonedDate {\n /**\n * Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\n * For example, `2024-01-30T13:30:00`.\n * Wix Calendar APIs ignore seconds.\n * @format LOCAL_DATE_TIME\n */\n localDate?: string | null;\n /**\n * Time zone in\n * [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\n * For example, `America/New_York`.\n * @readonly\n */\n timeZone?: string | null;\n /**\n * UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\n * For example, `2024-01-30T13:30:00`.\n * Not available for adjusted date fields.\n * @readonly\n */\n utcDate?: Date | null;\n}\n\nexport interface GetScheduleTimeFrameRequest {\n /**\n * [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)\n * ID for which to retrieve the schedule time frame.\n * @format GUID\n */\n _id: string | null;\n /**\n * Time zone for adjusting the times of the returned schedule time frame.\n *\n * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\n */\n timeZone?: string | null;\n}\n\nexport interface GetScheduleTimeFrameResponse {\n /** Retrieved schedule time frame. */\n scheduleTimeFrame?: ScheduleTimeFrame;\n}\n\nexport interface ListScheduleTimeFramesRequest {\n /**\n * IDs of the schedules for which to retrieve schedule time frames.\n *\n * Min: 1 schedule ID\n * Max: 100 schedule IDs\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n ids: string[];\n /**\n * Time zone for adjusting the times of the returned schedule time frames.\n *\n * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\n */\n timeZone?: string | null;\n}\n\nexport interface ListScheduleTimeFramesResponse {\n /** Retrieved schedule time frames. */\n scheduleTimeFrames?: ScheduleTimeFrame[];\n}\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?: SiteCreated;\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?: SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\nexport interface PropertiesChange {}\n\nexport interface SiteCreated {\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 Empty {}\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 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 ScheduleTimeFrameUpdatedEnvelope {\n entity: ScheduleTimeFrame;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a schedule's time frame is updated, indicating a new first or\n * last event or a change in the recurrence period, such as an extension or\n * reduction.\n * @permissionScope Read Bookings - Public Data\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC\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 Read Bookings Calendar Availability\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR\n * @permissionScope Read Calendar\n * @permissionScopeId SCOPE.DC-CALENDAR.READ-PUBLIC\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 * @permissionScope Read Bookings Calendar\n * @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES\n * @permissionId CALENDAR.SCHEDULE_READ\n * @webhook\n * @eventType wix.calendar.v3.schedule_time_frame_updated\n * @slug updated\n */\nexport declare function onScheduleTimeFrameUpdated(\n handler: (event: ScheduleTimeFrameUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Retrieves a schedule time frame by schedule ID.\n * @param _id - [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)\n * ID for which to retrieve the schedule time frame.\n * @public\n * @requiredField _id\n * @permissionId CALENDAR.SCHEDULE_READ\n * @applicableIdentity APP\n * @returns Retrieved schedule time frame.\n * @fqn wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.GetScheduleTimeFrame\n */\nexport async function getScheduleTimeFrame(\n _id: string,\n options?: GetScheduleTimeFrameOptions\n): Promise<NonNullablePaths<ScheduleTimeFrame, `status`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n timeZone: options?.timeZone,\n });\n\n const reqOpts =\n ambassadorWixCalendarV3ScheduleTimeFrame.getScheduleTimeFrame(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 ?.scheduleTimeFrame!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]', timeZone: '$[1].timeZone' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetScheduleTimeFrameOptions {\n /**\n * Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting the times of the returned schedule time frame. For example, `America/New_York` or `UTC`.\n *\n * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)\n */\n timeZone?: string | null;\n}\n\n/**\n * Retrieves a list of schedule time frames by schedule IDs.\n *\n *\n * Sorted by schedule ID in ascending order.\n * @param ids - IDs of the schedules for which to retrieve schedule time frames.\n *\n * Min: 1 schedule ID\n * Max: 100 schedule IDs\n * @public\n * @requiredField ids\n * @permissionId CALENDAR.SCHEDULE_READ\n * @applicableIdentity APP\n * @fqn wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.ListScheduleTimeFrames\n */\nexport async function listScheduleTimeFrames(\n ids: string[],\n options?: ListScheduleTimeFramesOptions\n): Promise<\n NonNullablePaths<\n ListScheduleTimeFramesResponse,\n `scheduleTimeFrames` | `scheduleTimeFrames.${number}.status`,\n 4\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 ids: ids,\n timeZone: options?.timeZone,\n });\n\n const reqOpts =\n ambassadorWixCalendarV3ScheduleTimeFrame.listScheduleTimeFrames(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: { ids: '$[0]', timeZone: '$[1].timeZone' },\n singleArgumentUnchanged: false,\n },\n ['ids', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListScheduleTimeFramesOptions {\n /**\n * Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting the times of the returned schedule time frame. For example, `America/New_York` or `UTC`.\n *\n * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)\n */\n timeZone?: string | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\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 resolveWixCalendarScheduletimeframesV3ScheduleTimeFramesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/schedule-timeframes-3',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/calendar/v3/schedules/timeframe',\n destPath: '/v3/schedules/timeframe',\n },\n ],\n _: [\n {\n srcPath: '/_api/calendar/v3/schedules/timeframe',\n destPath: '/v3/schedules/timeframe',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/calendar/v3/schedules/timeframe',\n destPath: '/v3/schedules/timeframe',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/calendar/v3/schedules/timeframe',\n destPath: '/v3/schedules/timeframe',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_calendar_schedule-time-frames';\n\n/** Retrieves a schedule time frame by schedule ID. */\nexport function getScheduleTimeFrame(\n payload: object\n): RequestOptionsFactory<any> {\n function __getScheduleTimeFrame({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule_time_frame',\n method: 'GET' as any,\n methodFqn:\n 'wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.GetScheduleTimeFrame',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarScheduletimeframesV3ScheduleTimeFramesServiceUrl({\n protoPath: '/v3/schedules/timeframe/{id}',\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: 'scheduleTimeFrame.firstEventStartDate.utcDate' },\n { path: 'scheduleTimeFrame.lastEventEndDate.utcDate' },\n { path: 'scheduleTimeFrame.adjustedFirstEventStartDate.utcDate' },\n { path: 'scheduleTimeFrame.adjustedLastEventEndDate.utcDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getScheduleTimeFrame;\n}\n\n/**\n * Retrieves a list of schedule time frames by schedule IDs.\n *\n *\n * Sorted by schedule ID in ascending order.\n */\nexport function listScheduleTimeFrames(\n payload: object\n): RequestOptionsFactory<any> {\n function __listScheduleTimeFrames({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule_time_frame',\n method: 'GET' as any,\n methodFqn:\n 'wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.ListScheduleTimeFrames',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarScheduletimeframesV3ScheduleTimeFramesServiceUrl({\n protoPath: '/v3/schedules/timeframe',\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: 'scheduleTimeFrames.firstEventStartDate.utcDate' },\n { path: 'scheduleTimeFrames.lastEventEndDate.utcDate' },\n {\n path: 'scheduleTimeFrames.adjustedFirstEventStartDate.utcDate',\n },\n { path: 'scheduleTimeFrames.adjustedLastEventEndDate.utcDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listScheduleTimeFrames;\n}\n"],"mappings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,UAAU,SAAS;AAAA,EACrB,CAAC;AAED,QAAM,UACqC,uBAAuB,OAAO;AAEzE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAD;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,KAAK,QAAQ,UAAU,gBAAgB;AAAA,QACnE,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,OAAO,SAAS;AAAA,IACnB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["getScheduleTimeFrame","listScheduleTimeFrames","import_rest_modules","payload","Status","PlacementType","DayOfWeek","ResolutionMethod","WebhookIdentityType","getScheduleTimeFrame","sdkTransformError","listScheduleTimeFrames"]}
|
|
1
|
+
{"version":3,"sources":["../../index.typings.ts","../../src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.ts","../../src/calendar-v3-schedule-time-frame-schedule-time-frames.http.ts"],"sourcesContent":["export * from './src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixCalendarV3ScheduleTimeFrame from './calendar-v3-schedule-time-frame-schedule-time-frames.http.js';\n\n/**\n * Information about the start and end dates of the first and last\n * [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)\n * that belong to a [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)\n * and whether any events follow an unlimited repetition pattern.\n */\nexport interface ScheduleTimeFrame {\n /**\n * ID of the [schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)\n * to which the time frame belongs.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Information about the presence of recurring events within the schedule.\n *\n * Supported values:\n * + `NONE`: No [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction) are scheduled within the schedule.\n * + `FINITE`: All recurring events within the schedule have a defined end date, or there are no recurring events.\n * + `INFINITE`: At least one recurring event within the schedule has no end date, meaning it follows an unlimited repetition pattern.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Start date of the first [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * within the schedule. Identical to `event.start.localDate`. Available only if\n * `status` is set to `FINITE` or `INFINITE`.\n * @readonly\n */\n firstEventStartDate?: ZonedDate;\n /**\n * End date of the last [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * belonging to the schedule. Identical to `event.end.localDate`. Available only if\n * `status` is set to `FINITE`.\n * @readonly\n */\n lastEventEndDate?: ZonedDate;\n /**\n * Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)\n * belonging to the schedule, adjusted to `timeZone` of the\n * [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)\n * or the `timeZone` specified in the request.\n * Identical to `event.adjustedStart.localDate`.\n * @readonly\n */\n adjustedFirstEventStartDate?: ZonedDate;\n /**\n * End date of the last [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)\n * belonging to the schedule, adjusted to `timeZone` of the\n * [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)\n * or the `timeZone` specified in the request.\n * Identical to `event.adjustedEnd.localDate`.\n * @readonly\n */\n adjustedLastEventEndDate?: ZonedDate;\n /**\n * Revision number, which increments by 1 each time the schedule time frame is updated.\n * @readonly\n */\n revision?: string | null;\n}\n\nexport enum Status {\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n /** No [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object) that belong to the schedule. */\n NONE = 'NONE',\n /** There are no recurring events or all recurring events belonging to the schedule have a defined end date. */\n FINITE = 'FINITE',\n /** At least one recurring event belonging to the schedule has an unlimited repetition pattern (no end date). */\n INFINITE = 'INFINITE',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN_STATUS'\n | 'NONE'\n | 'FINITE'\n | 'INFINITE';\n\n/** A date time with a time zone, having the UTC offset and date determined by the server. */\nexport interface ZonedDate {\n /**\n * Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\n * For example, `2024-01-30T13:30:00`.\n * Wix Calendar APIs ignore seconds.\n * @format LOCAL_DATE_TIME\n */\n localDate?: string | null;\n /**\n * Time zone in\n * [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).\n * For example, `America/New_York`.\n * @readonly\n */\n timeZone?: string | null;\n /**\n * UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).\n * For example, `2024-01-30T13:30:00`.\n * Not available for adjusted date fields.\n * @readonly\n */\n utcDate?: Date | null;\n}\n\nexport interface GetScheduleTimeFrameRequest {\n /**\n * [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)\n * ID for which to retrieve the schedule time frame.\n * @format GUID\n */\n _id: string | null;\n /**\n * Time zone for adjusting the times of the returned schedule time frame.\n *\n * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\n */\n timeZone?: string | null;\n}\n\nexport interface GetScheduleTimeFrameResponse {\n /** Retrieved schedule time frame. */\n scheduleTimeFrame?: ScheduleTimeFrame;\n}\n\nexport interface ListScheduleTimeFramesRequest {\n /**\n * IDs of the schedules for which to retrieve schedule time frames.\n *\n * Min: 1 schedule ID\n * Max: 100 schedule IDs\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n ids: string[];\n /**\n * Time zone for adjusting the times of the returned schedule time frames.\n *\n * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)\n */\n timeZone?: string | null;\n}\n\nexport interface ListScheduleTimeFramesResponse {\n /** Retrieved schedule time frames. */\n scheduleTimeFrames?: ScheduleTimeFrame[];\n}\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?: SiteCreated;\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?: SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\nexport interface PropertiesChange {}\n\nexport interface SiteCreated {\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 Empty {}\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 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 ScheduleTimeFrameUpdatedEnvelope {\n entity: ScheduleTimeFrame;\n metadata: EventMetadata;\n /** @hidden */\n modifiedFields: Record<string, any>;\n}\n\n/**\n * Triggered when a schedule's time frame is updated, indicating a new first or\n * last event or a change in the recurrence period, such as an extension or\n * reduction.\n * @permissionScope Read Bookings - Public Data\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC\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 Read Bookings Calendar Availability\n * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR\n * @permissionScope Read Calendar\n * @permissionScopeId SCOPE.DC-CALENDAR.READ-PUBLIC\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 * @permissionScope Read Bookings Calendar\n * @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES\n * @permissionId CALENDAR.SCHEDULE_READ\n * @webhook\n * @eventType wix.calendar.v3.schedule_time_frame_updated\n * @slug updated\n */\nexport declare function onScheduleTimeFrameUpdated(\n handler: (event: ScheduleTimeFrameUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Retrieves a schedule time frame by schedule ID.\n * @param _id - [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)\n * ID for which to retrieve the schedule time frame.\n * @public\n * @requiredField _id\n * @permissionId CALENDAR.SCHEDULE_READ\n * @applicableIdentity APP\n * @returns Retrieved schedule time frame.\n * @fqn wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.GetScheduleTimeFrame\n */\nexport async function getScheduleTimeFrame(\n _id: string,\n options?: GetScheduleTimeFrameOptions\n): Promise<NonNullablePaths<ScheduleTimeFrame, `status`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n timeZone: options?.timeZone,\n });\n\n const reqOpts =\n ambassadorWixCalendarV3ScheduleTimeFrame.getScheduleTimeFrame(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 ?.scheduleTimeFrame!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]', timeZone: '$[1].timeZone' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetScheduleTimeFrameOptions {\n /**\n * Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting the times of the returned schedule time frame. For example, `America/New_York` or `UTC`.\n *\n * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)\n */\n timeZone?: string | null;\n}\n\n/**\n * Retrieves a list of schedule time frames by schedule IDs.\n *\n *\n * Sorted by schedule ID in ascending order.\n * @param ids - IDs of the schedules for which to retrieve schedule time frames.\n *\n * Min: 1 schedule ID\n * Max: 100 schedule IDs\n * @public\n * @requiredField ids\n * @permissionId CALENDAR.SCHEDULE_READ\n * @applicableIdentity APP\n * @fqn wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.ListScheduleTimeFrames\n */\nexport async function listScheduleTimeFrames(\n ids: string[],\n options?: ListScheduleTimeFramesOptions\n): Promise<\n NonNullablePaths<\n ListScheduleTimeFramesResponse,\n `scheduleTimeFrames` | `scheduleTimeFrames.${number}.status`,\n 4\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 ids: ids,\n timeZone: options?.timeZone,\n });\n\n const reqOpts =\n ambassadorWixCalendarV3ScheduleTimeFrame.listScheduleTimeFrames(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: { ids: '$[0]', timeZone: '$[1].timeZone' },\n singleArgumentUnchanged: false,\n },\n ['ids', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListScheduleTimeFramesOptions {\n /**\n * Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting the times of the returned schedule time frame. For example, `America/New_York` or `UTC`.\n *\n * Default: `timeZone` of the [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)\n */\n timeZone?: string | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\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 resolveWixCalendarScheduletimeframesV3ScheduleTimeFramesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/schedule-timeframes-3',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/calendar/v3/schedules/timeframe',\n destPath: '/v3/schedules/timeframe',\n },\n ],\n _: [\n {\n srcPath: '/_api/calendar/v3/schedules/timeframe',\n destPath: '/v3/schedules/timeframe',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/calendar/v3/schedules/timeframe',\n destPath: '/v3/schedules/timeframe',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/calendar/v3/schedules/timeframe',\n destPath: '/v3/schedules/timeframe',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_calendar_schedule-time-frames';\n\n/** Retrieves a schedule time frame by schedule ID. */\nexport function getScheduleTimeFrame(\n payload: object\n): RequestOptionsFactory<any> {\n function __getScheduleTimeFrame({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule_time_frame',\n method: 'GET' as any,\n methodFqn:\n 'wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.GetScheduleTimeFrame',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarScheduletimeframesV3ScheduleTimeFramesServiceUrl({\n protoPath: '/v3/schedules/timeframe/{id}',\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: 'scheduleTimeFrame.firstEventStartDate.utcDate' },\n { path: 'scheduleTimeFrame.lastEventEndDate.utcDate' },\n { path: 'scheduleTimeFrame.adjustedFirstEventStartDate.utcDate' },\n { path: 'scheduleTimeFrame.adjustedLastEventEndDate.utcDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getScheduleTimeFrame;\n}\n\n/**\n * Retrieves a list of schedule time frames by schedule IDs.\n *\n *\n * Sorted by schedule ID in ascending order.\n */\nexport function listScheduleTimeFrames(\n payload: object\n): RequestOptionsFactory<any> {\n function __listScheduleTimeFrames({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.calendar.v3.schedule_time_frame',\n method: 'GET' as any,\n methodFqn:\n 'wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.ListScheduleTimeFrames',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixCalendarScheduletimeframesV3ScheduleTimeFramesServiceUrl({\n protoPath: '/v3/schedules/timeframe',\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: 'scheduleTimeFrames.firstEventStartDate.utcDate' },\n { path: 'scheduleTimeFrames.lastEventEndDate.utcDate' },\n {\n path: 'scheduleTimeFrames.adjustedFirstEventStartDate.utcDate',\n },\n { path: 'scheduleTimeFrames.adjustedLastEventEndDate.utcDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listScheduleTimeFrames;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAAA;AAAA,EAAA,8BAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;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iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAD;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,KAAK,QAAQ,UAAU,gBAAgB;AAAA,QACnE,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,OAAO,SAAS;AAAA,IACnB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["getScheduleTimeFrame","listScheduleTimeFrames","import_rest_modules","payload","Status","PlacementType","DayOfWeek","ResolutionMethod","WebhookIdentityType","getScheduleTimeFrame","sdkTransformError","listScheduleTimeFrames"]}
|
package/build/es/index.mjs
CHANGED
|
@@ -239,7 +239,11 @@ var onScheduleTimeFrameUpdated = EventDefinition(
|
|
|
239
239
|
{ path: "entity.lastEventEndDate.utcDate" },
|
|
240
240
|
{ path: "entity.adjustedFirstEventStartDate.utcDate" },
|
|
241
241
|
{ path: "entity.adjustedLastEventEndDate.utcDate" },
|
|
242
|
-
{ path: "metadata.eventTime" }
|
|
242
|
+
{ path: "metadata.eventTime" },
|
|
243
|
+
{ path: "modifiedFields.firstEventStartDate.utcDate" },
|
|
244
|
+
{ path: "modifiedFields.lastEventEndDate.utcDate" },
|
|
245
|
+
{ path: "modifiedFields.adjustedFirstEventStartDate.utcDate" },
|
|
246
|
+
{ path: "modifiedFields.adjustedLastEventEndDate.utcDate" }
|
|
243
247
|
]
|
|
244
248
|
}
|
|
245
249
|
])
|