@wix/auto_sdk_calendar_schedule-time-frames 1.0.6 → 1.0.8

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.
Files changed (133) hide show
  1. package/build/{internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.d.ts → calendar-v3-schedule-time-frame-schedule-time-frames.universal-C2n2lbDD.d.mts} +49 -161
  2. package/build/{cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.d.ts → calendar-v3-schedule-time-frame-schedule-time-frames.universal-C2n2lbDD.d.ts} +49 -161
  3. package/build/index.d.mts +40 -0
  4. package/build/index.d.ts +40 -0
  5. package/build/index.js +290 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +259 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.d.ts → calendar-v3-schedule-time-frame-schedule-time-frames.universal-C2n2lbDD.d.mts} +49 -161
  10. package/build/{es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.d.ts → internal/calendar-v3-schedule-time-frame-schedule-time-frames.universal-C2n2lbDD.d.ts} +49 -161
  11. package/build/internal/index.d.mts +40 -0
  12. package/build/internal/index.d.ts +40 -0
  13. package/build/internal/index.js +290 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +259 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +154 -0
  18. package/build/internal/meta.d.ts +154 -0
  19. package/build/internal/meta.js +172 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +144 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +154 -0
  24. package/build/meta.d.ts +154 -0
  25. package/build/meta.js +172 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +144 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.d.ts +0 -14
  40. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js +0 -22
  41. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js.map +0 -1
  42. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.d.ts +0 -10
  43. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js +0 -113
  44. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js.map +0 -1
  45. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.d.ts +0 -16
  46. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js +0 -66
  47. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js.map +0 -1
  48. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.d.ts +0 -31
  49. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js +0 -40
  50. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js.map +0 -1
  51. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.d.ts +0 -557
  52. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js +0 -46
  53. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js.map +0 -1
  54. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js +0 -197
  55. package/build/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.d.ts +0 -14
  66. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js +0 -14
  67. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js.map +0 -1
  68. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.d.ts +0 -10
  69. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js +0 -108
  70. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js.map +0 -1
  71. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.d.ts +0 -16
  72. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js +0 -38
  73. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js.map +0 -1
  74. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.d.ts +0 -31
  75. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js +0 -30
  76. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js.map +0 -1
  77. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.d.ts +0 -557
  78. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js +0 -43
  79. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js.map +0 -1
  80. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js +0 -169
  81. package/build/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js.map +0 -1
  82. package/build/internal/cjs/index.d.ts +0 -1
  83. package/build/internal/cjs/index.js +0 -18
  84. package/build/internal/cjs/index.js.map +0 -1
  85. package/build/internal/cjs/index.typings.d.ts +0 -1
  86. package/build/internal/cjs/index.typings.js +0 -18
  87. package/build/internal/cjs/index.typings.js.map +0 -1
  88. package/build/internal/cjs/meta.d.ts +0 -1
  89. package/build/internal/cjs/meta.js +0 -18
  90. package/build/internal/cjs/meta.js.map +0 -1
  91. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.d.ts +0 -14
  92. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js +0 -22
  93. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js.map +0 -1
  94. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.d.ts +0 -10
  95. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js +0 -113
  96. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js.map +0 -1
  97. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.d.ts +0 -16
  98. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js +0 -66
  99. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js.map +0 -1
  100. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.d.ts +0 -31
  101. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js +0 -40
  102. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js.map +0 -1
  103. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.d.ts +0 -557
  104. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js +0 -46
  105. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js.map +0 -1
  106. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js +0 -197
  107. package/build/internal/cjs/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js.map +0 -1
  108. package/build/internal/es/index.d.ts +0 -1
  109. package/build/internal/es/index.js +0 -2
  110. package/build/internal/es/index.js.map +0 -1
  111. package/build/internal/es/index.typings.d.ts +0 -1
  112. package/build/internal/es/index.typings.js +0 -2
  113. package/build/internal/es/index.typings.js.map +0 -1
  114. package/build/internal/es/meta.d.ts +0 -1
  115. package/build/internal/es/meta.js +0 -2
  116. package/build/internal/es/meta.js.map +0 -1
  117. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.d.ts +0 -14
  118. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js +0 -14
  119. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.context.js.map +0 -1
  120. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.d.ts +0 -10
  121. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js +0 -108
  122. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.http.js.map +0 -1
  123. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.d.ts +0 -16
  124. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js +0 -38
  125. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.meta.js.map +0 -1
  126. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.d.ts +0 -31
  127. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js +0 -30
  128. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.public.js.map +0 -1
  129. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.d.ts +0 -557
  130. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js +0 -43
  131. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.types.js.map +0 -1
  132. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js +0 -169
  133. package/build/internal/es/src/calendar-v3-schedule-time-frame-schedule-time-frames.universal.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../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":["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 } 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 (\n _id: string,\n options?: GetScheduleTimeFrameOptions | undefined\n ): Promise<ScheduleTimeFrame>;\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 (\n ids: string[],\n options?: ListScheduleTimeFramesOptions | undefined\n ): Promise<ListScheduleTimeFramesResponse>;\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?: Status;\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/** 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?: PlacementType;\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/** 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?: DayOfWeek;\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?: DayOfWeek;\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/** 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?: ResolutionMethod;\n}\n\nexport enum ResolutionMethod {\n QUERY_PARAM = 'QUERY_PARAM',\n SUBDOMAIN = 'SUBDOMAIN',\n SUBDIRECTORY = 'SUBDIRECTORY',\n}\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 /**\n * Unique event ID.\n * Allows clients to ignore duplicate webhooks.\n */\n _id?: string;\n /**\n * Assumes actions are also always typed to an entity_type\n * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction\n */\n entityFqdn?: string;\n /**\n * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)\n * This is although the created/updated/deleted notion is duplication of the oneof types\n * 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 defining the order of updates to the underlying entity.\n * For example, given that some entity was updated at 16:00 and than again at 16:01,\n * it is guaranteed that the sequence number of the second update is strictly higher than the first.\n * As the consumer, you can use this value to ensure that you handle messages in the correct order.\n * To do so, you will need to persist this number on your end, and compare the sequence number from the\n * message against the one you have stored. Given that the stored number is higher, you should ignore the message.\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?: WebhookIdentityType;\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\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 /**\n * Unique event ID.\n * Allows clients to ignore duplicate webhooks.\n */\n _id?: string;\n /**\n * Assumes actions are also always typed to an entity_type\n * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction\n */\n entityFqdn?: string;\n /**\n * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)\n * This is although the created/updated/deleted notion is duplication of the oneof types\n * 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 defining the order of updates to the underlying entity.\n * For example, given that some entity was updated at 16:00 and than again at 16:01,\n * it is guaranteed that the sequence number of the second update is strictly higher than the first.\n * As the consumer, you can use this value to ensure that you handle messages in the correct order.\n * To do so, you will need to persist this number on your end, and compare the sequence number from the\n * message against the one you have stored. Given that the stored number is higher, you should ignore the message.\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 * @documentationMaturity preview\n */\nexport declare function onScheduleTimeFrameUpdated(\n handler: (event: ScheduleTimeFrameUpdatedEnvelope) => void | Promise<void>\n): void;\n\ntype ScheduleTimeFrameNonNullablePaths = `status`;\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 * @documentationMaturity preview\n * @requiredField _id\n * @permissionId CALENDAR.SCHEDULE_READ\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 * @applicableIdentity APP\n * @applicableIdentity VISITOR\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<\n NonNullablePaths<ScheduleTimeFrame, ScheduleTimeFrameNonNullablePaths>\n> {\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 * @documentationMaturity preview\n * @requiredField ids\n * @permissionId CALENDAR.SCHEDULE_READ\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 * @applicableIdentity APP\n * @applicableIdentity VISITOR\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 {\n [P in ScheduleTimeFrameNonNullablePaths]: `scheduleTimeFrames.${number}.${P}`;\n }[ScheduleTimeFrameNonNullablePaths]\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 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 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 { BuildRESTFunction, MaybeContext } 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: ReturnType<\n typeof createEventModule<typeof publicOnScheduleTimeFrameUpdated>\n> = createEventModule(publicOnScheduleTimeFrameUpdated);\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';\n"],"mappings":"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","names":["renameKeysFromRESTResponseToSDKResponse","transformRESTTimestampToSDKTimestamp","transformPaths","payload","Status","PlacementType","DayOfWeek","ResolutionMethod","WebhookIdentityType","getScheduleTimeFrame","listScheduleTimeFrames","getScheduleTimeFrame","listScheduleTimeFrames","renameKeysFromRESTResponseToSDKResponse","transformPaths","transformRESTTimestampToSDKTimestamp","getScheduleTimeFrame","listScheduleTimeFrames","onScheduleTimeFrameUpdated"]}
@@ -1,11 +1,10 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
1
  /**
3
2
  * Information about the start and end dates of the first and last
4
3
  * [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)
5
4
  * that belong to a [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)
6
5
  * and whether any events follow an unlimited repetition pattern.
7
6
  */
8
- export interface ScheduleTimeFrame {
7
+ interface ScheduleTimeFrame {
9
8
  /**
10
9
  * ID of the [schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)
11
10
  * to which the time frame belongs.
@@ -61,7 +60,7 @@ export interface ScheduleTimeFrame {
61
60
  */
62
61
  revision?: string | null;
63
62
  }
64
- export declare enum Status {
63
+ declare enum Status {
65
64
  UNKNOWN_STATUS = "UNKNOWN_STATUS",
66
65
  /** No [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object) that belong to the schedule. */
67
66
  NONE = "NONE",
@@ -71,7 +70,7 @@ export declare enum Status {
71
70
  INFINITE = "INFINITE"
72
71
  }
73
72
  /** A date time with a time zone, having the UTC offset and date determined by the server. */
74
- export interface ZonedDate {
73
+ interface ZonedDate {
75
74
  /**
76
75
  * Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
77
76
  * For example, `2024-01-30T13:30:00`.
@@ -94,7 +93,7 @@ export interface ZonedDate {
94
93
  */
95
94
  utcDate?: Date | null;
96
95
  }
97
- export interface GetScheduleTimeFrameRequest {
96
+ interface GetScheduleTimeFrameRequest {
98
97
  /**
99
98
  * [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)
100
99
  * ID for which to retrieve the schedule time frame.
@@ -108,11 +107,11 @@ export interface GetScheduleTimeFrameRequest {
108
107
  */
109
108
  timeZone?: string | null;
110
109
  }
111
- export interface GetScheduleTimeFrameResponse {
110
+ interface GetScheduleTimeFrameResponse {
112
111
  /** Retrieved schedule time frame. */
113
112
  scheduleTimeFrame?: ScheduleTimeFrame;
114
113
  }
115
- export interface ListScheduleTimeFramesRequest {
114
+ interface ListScheduleTimeFramesRequest {
116
115
  /**
117
116
  * IDs of the schedules for which to retrieve schedule time frames.
118
117
  *
@@ -130,12 +129,12 @@ export interface ListScheduleTimeFramesRequest {
130
129
  */
131
130
  timeZone?: string | null;
132
131
  }
133
- export interface ListScheduleTimeFramesResponse {
132
+ interface ListScheduleTimeFramesResponse {
134
133
  /** Retrieved schedule time frames. */
135
134
  scheduleTimeFrames?: ScheduleTimeFrame[];
136
135
  }
137
136
  /** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */
138
- export interface SitePropertiesNotification {
137
+ interface SitePropertiesNotification {
139
138
  /** The site ID for which this update notification applies. */
140
139
  metasiteId?: string;
141
140
  /** The actual update event. */
@@ -149,7 +148,7 @@ export interface SitePropertiesNotification {
149
148
  changeContext?: ChangeContext;
150
149
  }
151
150
  /** The actual update event for a particular notification. */
152
- export interface SitePropertiesEvent {
151
+ interface SitePropertiesEvent {
153
152
  /** Version of the site's properties represented by this update. */
154
153
  version?: number;
155
154
  /** Set of properties that were updated - corresponds to the fields in "properties". */
@@ -157,7 +156,7 @@ export interface SitePropertiesEvent {
157
156
  /** Updated properties. */
158
157
  properties?: Properties;
159
158
  }
160
- export interface Properties {
159
+ interface Properties {
161
160
  /** Site categories. */
162
161
  categories?: Categories;
163
162
  /** Site locale. */
@@ -213,7 +212,7 @@ export interface Properties {
213
212
  /** Track clicks analytics. */
214
213
  trackClicksAnalytics?: boolean;
215
214
  }
216
- export interface Categories {
215
+ interface Categories {
217
216
  /** Primary site category. */
218
217
  primary?: string;
219
218
  /**
@@ -224,13 +223,13 @@ export interface Categories {
224
223
  /** Business Term Id */
225
224
  businessTermId?: string | null;
226
225
  }
227
- export interface Locale {
226
+ interface Locale {
228
227
  /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
229
228
  languageCode?: string;
230
229
  /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */
231
230
  country?: string;
232
231
  }
233
- export interface Address {
232
+ interface Address {
234
233
  /** Street name. */
235
234
  street?: string;
236
235
  /** City name. */
@@ -262,27 +261,27 @@ export interface Address {
262
261
  * This is used for display purposes. Used to add additional data about the address, such as "In the passage".
263
262
  * Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.
264
263
  */
265
- export interface AddressHint {
264
+ interface AddressHint {
266
265
  /** Extra text displayed next to, or instead of, the actual address. */
267
266
  text?: string;
268
267
  /** Where the extra text should be displayed. */
269
268
  placement?: PlacementType;
270
269
  }
271
270
  /** Where the extra text should be displayed: before, after or instead of the actual address. */
272
- export declare enum PlacementType {
271
+ declare enum PlacementType {
273
272
  BEFORE = "BEFORE",
274
273
  AFTER = "AFTER",
275
274
  REPLACE = "REPLACE"
276
275
  }
277
276
  /** Geocoordinates for a particular address. */
278
- export interface GeoCoordinates {
277
+ interface GeoCoordinates {
279
278
  /** Latitude of the location. Must be between -90 and 90. */
280
279
  latitude?: number;
281
280
  /** Longitude of the location. Must be between -180 and 180. */
282
281
  longitude?: number;
283
282
  }
284
283
  /** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */
285
- export interface BusinessSchedule {
284
+ interface BusinessSchedule {
286
285
  /**
287
286
  * Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.
288
287
  * @maxSize 100
@@ -295,7 +294,7 @@ export interface BusinessSchedule {
295
294
  specialHourPeriod?: SpecialHourPeriod[];
296
295
  }
297
296
  /** Weekly recurring time periods when the business is regularly open or the service is available. */
298
- export interface TimePeriod {
297
+ interface TimePeriod {
299
298
  /** Day of the week the period starts on. */
300
299
  openDay?: DayOfWeek;
301
300
  /**
@@ -314,7 +313,7 @@ export interface TimePeriod {
314
313
  closeTime?: string;
315
314
  }
316
315
  /** Enumerates the days of the week. */
317
- export declare enum DayOfWeek {
316
+ declare enum DayOfWeek {
318
317
  MONDAY = "MONDAY",
319
318
  TUESDAY = "TUESDAY",
320
319
  WEDNESDAY = "WEDNESDAY",
@@ -324,7 +323,7 @@ export declare enum DayOfWeek {
324
323
  SUNDAY = "SUNDAY"
325
324
  }
326
325
  /** Exception to the business's regular hours. The business can be open or closed during the exception. */
327
- export interface SpecialHourPeriod {
326
+ interface SpecialHourPeriod {
328
327
  /** 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). */
329
328
  startDate?: string;
330
329
  /** 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). */
@@ -338,7 +337,7 @@ export interface SpecialHourPeriod {
338
337
  /** Additional info about the exception. For example, "We close earlier on New Year's Eve." */
339
338
  comment?: string;
340
339
  }
341
- export interface Multilingual {
340
+ interface Multilingual {
342
341
  /**
343
342
  * Supported languages list.
344
343
  * @maxSize 200
@@ -347,7 +346,7 @@ export interface Multilingual {
347
346
  /** Whether to redirect to user language. */
348
347
  autoRedirect?: boolean;
349
348
  }
350
- export interface SupportedLanguage {
349
+ interface SupportedLanguage {
351
350
  /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
352
351
  languageCode?: string;
353
352
  /** Locale. */
@@ -359,12 +358,12 @@ export interface SupportedLanguage {
359
358
  /** How the language will be resolved. For internal use. */
360
359
  resolutionMethod?: ResolutionMethod;
361
360
  }
362
- export declare enum ResolutionMethod {
361
+ declare enum ResolutionMethod {
363
362
  QUERY_PARAM = "QUERY_PARAM",
364
363
  SUBDOMAIN = "SUBDOMAIN",
365
364
  SUBDIRECTORY = "SUBDIRECTORY"
366
365
  }
367
- export interface ConsentPolicy {
366
+ interface ConsentPolicy {
368
367
  /** Whether the site uses cookies that are essential to site operation. Always `true`. */
369
368
  essential?: boolean | null;
370
369
  /** Whether the site uses cookies that affect site performance and other functional measurements. */
@@ -377,7 +376,7 @@ export interface ConsentPolicy {
377
376
  dataToThirdParty?: boolean | null;
378
377
  }
379
378
  /** A single mapping from the MetaSite ID to a particular service. */
380
- export interface Translation {
379
+ interface Translation {
381
380
  /** The service type. */
382
381
  serviceType?: string;
383
382
  /** The application definition ID; this only applies to services of type ThirdPartyApps. */
@@ -385,7 +384,7 @@ export interface Translation {
385
384
  /** The instance ID of the service. */
386
385
  instanceId?: string;
387
386
  }
388
- export interface ChangeContext extends ChangeContextPayloadOneOf {
387
+ interface ChangeContext extends ChangeContextPayloadOneOf {
389
388
  /** Properties were updated. */
390
389
  propertiesChange?: PropertiesChange;
391
390
  /** Default properties were created on site creation. */
@@ -394,7 +393,7 @@ export interface ChangeContext extends ChangeContextPayloadOneOf {
394
393
  siteCloned?: SiteCloned;
395
394
  }
396
395
  /** @oneof */
397
- export interface ChangeContextPayloadOneOf {
396
+ interface ChangeContextPayloadOneOf {
398
397
  /** Properties were updated. */
399
398
  propertiesChange?: PropertiesChange;
400
399
  /** Default properties were created on site creation. */
@@ -402,19 +401,19 @@ export interface ChangeContextPayloadOneOf {
402
401
  /** Properties were cloned on site cloning. */
403
402
  siteCloned?: SiteCloned;
404
403
  }
405
- export interface PropertiesChange {
404
+ interface PropertiesChange {
406
405
  }
407
- export interface SiteCreated {
406
+ interface SiteCreated {
408
407
  /** Origin template site id. */
409
408
  originTemplateId?: string | null;
410
409
  }
411
- export interface SiteCloned {
410
+ interface SiteCloned {
412
411
  /** Origin site id. */
413
412
  originMetaSiteId?: string;
414
413
  }
415
- export interface Empty {
414
+ interface Empty {
416
415
  }
417
- export interface DomainEvent extends DomainEventBodyOneOf {
416
+ interface DomainEvent extends DomainEventBodyOneOf {
418
417
  createdEvent?: EntityCreatedEvent;
419
418
  updatedEvent?: EntityUpdatedEvent;
420
419
  deletedEvent?: EntityDeletedEvent;
@@ -457,19 +456,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
457
456
  entityEventSequence?: string | null;
458
457
  }
459
458
  /** @oneof */
460
- export interface DomainEventBodyOneOf {
459
+ interface DomainEventBodyOneOf {
461
460
  createdEvent?: EntityCreatedEvent;
462
461
  updatedEvent?: EntityUpdatedEvent;
463
462
  deletedEvent?: EntityDeletedEvent;
464
463
  actionEvent?: ActionEvent;
465
464
  }
466
- export interface EntityCreatedEvent {
465
+ interface EntityCreatedEvent {
467
466
  entity?: string;
468
467
  }
469
- export interface RestoreInfo {
468
+ interface RestoreInfo {
470
469
  deletedDate?: Date | null;
471
470
  }
472
- export interface EntityUpdatedEvent {
471
+ interface EntityUpdatedEvent {
473
472
  /**
474
473
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
475
474
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -477,14 +476,14 @@ export interface EntityUpdatedEvent {
477
476
  */
478
477
  currentEntity?: string;
479
478
  }
480
- export interface EntityDeletedEvent {
479
+ interface EntityDeletedEvent {
481
480
  /** Entity that was deleted */
482
481
  deletedEntity?: string | null;
483
482
  }
484
- export interface ActionEvent {
483
+ interface ActionEvent {
485
484
  body?: string;
486
485
  }
487
- export interface MessageEnvelope {
486
+ interface MessageEnvelope {
488
487
  /**
489
488
  * App instance ID.
490
489
  * @format GUID
@@ -500,7 +499,7 @@ export interface MessageEnvelope {
500
499
  /** Stringify payload. */
501
500
  data?: string;
502
501
  }
503
- export interface IdentificationData extends IdentificationDataIdOneOf {
502
+ interface IdentificationData extends IdentificationDataIdOneOf {
504
503
  /**
505
504
  * ID of a site visitor that has not logged in to the site.
506
505
  * @format GUID
@@ -525,7 +524,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
525
524
  identityType?: WebhookIdentityType;
526
525
  }
527
526
  /** @oneof */
528
- export interface IdentificationDataIdOneOf {
527
+ interface IdentificationDataIdOneOf {
529
528
  /**
530
529
  * ID of a site visitor that has not logged in to the site.
531
530
  * @format GUID
@@ -547,14 +546,14 @@ export interface IdentificationDataIdOneOf {
547
546
  */
548
547
  appId?: string;
549
548
  }
550
- export declare enum WebhookIdentityType {
549
+ declare enum WebhookIdentityType {
551
550
  UNKNOWN = "UNKNOWN",
552
551
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
553
552
  MEMBER = "MEMBER",
554
553
  WIX_USER = "WIX_USER",
555
554
  APP = "APP"
556
555
  }
557
- export interface BaseEventMetadata {
556
+ interface BaseEventMetadata {
558
557
  /**
559
558
  * App instance ID.
560
559
  * @format GUID
@@ -568,7 +567,7 @@ export interface BaseEventMetadata {
568
567
  /** The identification type and identity data. */
569
568
  identity?: IdentificationData;
570
569
  }
571
- export interface EventMetadata extends BaseEventMetadata {
570
+ interface EventMetadata extends BaseEventMetadata {
572
571
  /**
573
572
  * Unique event ID.
574
573
  * Allows clients to ignore duplicate webhooks.
@@ -606,81 +605,11 @@ export interface EventMetadata extends BaseEventMetadata {
606
605
  */
607
606
  entityEventSequence?: string | null;
608
607
  }
609
- export interface ScheduleTimeFrameUpdatedEnvelope {
608
+ interface ScheduleTimeFrameUpdatedEnvelope {
610
609
  entity: ScheduleTimeFrame;
611
610
  metadata: EventMetadata;
612
611
  }
613
- /**
614
- * Triggered when a schedule's time frame is updated, indicating a new first or
615
- * last event or a change in the recurrence period, such as an extension or
616
- * reduction.
617
- * @permissionScope Read Bookings - Public Data
618
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
619
- * @permissionScope Read Calendar - Including PI
620
- * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
621
- * @permissionScope Manage Calendars
622
- * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
623
- * @permissionScope Manage Bookings
624
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
625
- * @permissionScope Read Bookings - Including Participants
626
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
627
- * @permissionScope Read Bookings - all read permissions
628
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
629
- * @permissionScope Read Bookings Calendar Availability
630
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
631
- * @permissionScope Read Calendar
632
- * @permissionScopeId SCOPE.DC-CALENDAR.READ-PUBLIC
633
- * @permissionScope Manage Bookings - all permissions
634
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
635
- * @permissionScope Read bookings calendar - including participants
636
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
637
- * @permissionScope Read Bookings Calendar
638
- * @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES
639
- * @permissionId CALENDAR.SCHEDULE_READ
640
- * @webhook
641
- * @eventType wix.calendar.v3.schedule_time_frame_updated
642
- * @slug updated
643
- * @documentationMaturity preview
644
- */
645
- export declare function onScheduleTimeFrameUpdated(handler: (event: ScheduleTimeFrameUpdatedEnvelope) => void | Promise<void>): void;
646
- type ScheduleTimeFrameNonNullablePaths = `status`;
647
- /**
648
- * Retrieves a schedule time frame by schedule ID.
649
- * @param _id - [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)
650
- * ID for which to retrieve the schedule time frame.
651
- * @public
652
- * @documentationMaturity preview
653
- * @requiredField _id
654
- * @permissionId CALENDAR.SCHEDULE_READ
655
- * @permissionScope Read Bookings - Public Data
656
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
657
- * @permissionScope Read Calendar - Including PI
658
- * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
659
- * @permissionScope Manage Calendars
660
- * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
661
- * @permissionScope Manage Bookings
662
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
663
- * @permissionScope Read Bookings - Including Participants
664
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
665
- * @permissionScope Read Bookings - all read permissions
666
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
667
- * @permissionScope Read Bookings Calendar Availability
668
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
669
- * @permissionScope Read Calendar
670
- * @permissionScopeId SCOPE.DC-CALENDAR.READ-PUBLIC
671
- * @permissionScope Manage Bookings - all permissions
672
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
673
- * @permissionScope Read bookings calendar - including participants
674
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
675
- * @permissionScope Read Bookings Calendar
676
- * @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES
677
- * @applicableIdentity APP
678
- * @applicableIdentity VISITOR
679
- * @returns Retrieved schedule time frame.
680
- * @fqn wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.GetScheduleTimeFrame
681
- */
682
- export declare function getScheduleTimeFrame(_id: string, options?: GetScheduleTimeFrameOptions): Promise<NonNullablePaths<ScheduleTimeFrame, ScheduleTimeFrameNonNullablePaths>>;
683
- export interface GetScheduleTimeFrameOptions {
612
+ interface GetScheduleTimeFrameOptions {
684
613
  /**
685
614
  * 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`.
686
615
  *
@@ -688,49 +617,7 @@ export interface GetScheduleTimeFrameOptions {
688
617
  */
689
618
  timeZone?: string | null;
690
619
  }
691
- /**
692
- * Retrieves a list of schedule time frames by schedule IDs.
693
- *
694
- *
695
- * Sorted by schedule ID in ascending order.
696
- * @param ids - IDs of the schedules for which to retrieve schedule time frames.
697
- *
698
- * Min: 1 schedule ID
699
- * Max: 100 schedule IDs
700
- * @public
701
- * @documentationMaturity preview
702
- * @requiredField ids
703
- * @permissionId CALENDAR.SCHEDULE_READ
704
- * @permissionScope Read Bookings - Public Data
705
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
706
- * @permissionScope Read Calendar - Including PI
707
- * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
708
- * @permissionScope Manage Calendars
709
- * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
710
- * @permissionScope Manage Bookings
711
- * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
712
- * @permissionScope Read Bookings - Including Participants
713
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
714
- * @permissionScope Read Bookings - all read permissions
715
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
716
- * @permissionScope Read Bookings Calendar Availability
717
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
718
- * @permissionScope Read Calendar
719
- * @permissionScopeId SCOPE.DC-CALENDAR.READ-PUBLIC
720
- * @permissionScope Manage Bookings - all permissions
721
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
722
- * @permissionScope Read bookings calendar - including participants
723
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
724
- * @permissionScope Read Bookings Calendar
725
- * @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES
726
- * @applicableIdentity APP
727
- * @applicableIdentity VISITOR
728
- * @fqn wix.calendar.scheduletimeframes.v3.ScheduleTimeFramesService.ListScheduleTimeFrames
729
- */
730
- export declare function listScheduleTimeFrames(ids: string[], options?: ListScheduleTimeFramesOptions): Promise<NonNullablePaths<ListScheduleTimeFramesResponse, {
731
- [P in ScheduleTimeFrameNonNullablePaths]: `scheduleTimeFrames.${number}.${P}`;
732
- }[ScheduleTimeFrameNonNullablePaths]>>;
733
- export interface ListScheduleTimeFramesOptions {
620
+ interface ListScheduleTimeFramesOptions {
734
621
  /**
735
622
  * 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`.
736
623
  *
@@ -738,4 +625,5 @@ export interface ListScheduleTimeFramesOptions {
738
625
  */
739
626
  timeZone?: string | null;
740
627
  }
741
- export {};
628
+
629
+ export { type Address as A, type BusinessSchedule as B, type Categories as C, DayOfWeek as D, type Empty as E, type ActionEvent as F, type GetScheduleTimeFrameOptions as G, type MessageEnvelope as H, type IdentificationData as I, type IdentificationDataIdOneOf as J, type BaseEventMetadata as K, type ListScheduleTimeFramesOptions as L, type Multilingual as M, type EventMetadata as N, type ScheduleTimeFrameUpdatedEnvelope as O, PlacementType as P, ResolutionMethod as R, type ScheduleTimeFrame as S, type TimePeriod as T, WebhookIdentityType as W, type ZonedDate as Z, type ListScheduleTimeFramesResponse as a, Status as b, type GetScheduleTimeFrameRequest as c, type GetScheduleTimeFrameResponse as d, type ListScheduleTimeFramesRequest as e, type SitePropertiesNotification as f, type SitePropertiesEvent as g, type Properties as h, type Locale as i, type AddressHint as j, type GeoCoordinates as k, type SpecialHourPeriod as l, type SupportedLanguage as m, type ConsentPolicy as n, type Translation as o, type ChangeContext as p, type ChangeContextPayloadOneOf as q, type PropertiesChange as r, type SiteCreated as s, type SiteCloned as t, type DomainEvent as u, type DomainEventBodyOneOf as v, type EntityCreatedEvent as w, type RestoreInfo as x, type EntityUpdatedEvent as y, type EntityDeletedEvent as z };