@wix/auto_sdk_calendar_schedules 1.0.53 → 1.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,8 @@
1
- import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { G as GetScheduleOptions, S as Schedule, Q as QuerySchedulesOptions, a as SchedulesQueryBuilder, C as CreateScheduleOptions, U as UpdateSchedule, b as UpdateScheduleOptions, c as CancelScheduleOptions, d as CancelScheduleResponse, e as ScheduleCancelledEnvelope, f as ScheduleClonedEnvelope, g as ScheduleCreatedEnvelope, h as ScheduleUpdatedEnvelope } from './calendar-v3-schedule-schedules.universal-Cy_4Hg5X.js';
3
- export { aQ as ActionEvent, av as Address, aw as AddressHint, a2 as Asset, aU as BaseEventMetadata, ay as BusinessSchedule, _ as CancelScheduleRequest, at as Categories, aF as ChangeContext, aG as ChangeContextPayloadOneOf, X as CloneScheduleRequest, Y as CloneScheduleResponse, s as CommonIdentificationData, t as CommonIdentificationDataIdOneOf, q as ConferencingDetails, aD as ConsentPolicy, H as CreateScheduleRequest, J as CreateScheduleResponse, z as CursorPaging, B as CursorPagingMetadata, x as CursorQuery, y as CursorQueryPagingMethodOneOf, F as Cursors, n as DayOfWeek, a6 as DeleteContext, D as DeleteStatus, aK as DomainEvent, aL as DomainEventBodyOneOf, ap as Empty, aM as EntityCreatedEvent, aP as EntityDeletedEvent, aO as EntityUpdatedEvent, aV as EventMetadata, E as ExtendedFields, ax as GeoCoordinates, u as GetScheduleRequest, v as GetScheduleResponse, aS as IdentificationData, aT as IdentificationDataIdOneOf, I as IdentityType, au as Locale, p as Location, L as LocationType, aR as MessageEnvelope, a0 as MetaSiteSpecialEvent, a1 as MetaSiteSpecialEventPayloadOneOf, aB as Multilingual, N as Namespace, ag as NamespaceChanged, al as OdeditorAssigned, am as OdeditorUnassigned, M as ParticipantNotification, r as Permission, an as PicassoAssigned, ao as PicassoUnassigned, P as PlacementType, as as Properties, aH as PropertiesChange, w as QuerySchedulesRequest, A as QuerySchedulesResponse, j as RequestedFields, o as ResolutionMethod, aN as RestoreInfo, R as Role, $ as ScheduleCancelled, Z as ScheduleCloned, V as ScheduleUpdatedWithMetadata, aW as SchedulesQueryResult, ac as ServiceProvisioned, ad as ServiceRemoved, aJ as SiteCloned, a3 as SiteCreated, m as SiteCreatedContext, a5 as SiteDeleted, af as SiteHardDeleted, aa as SiteMarkedAsTemplate, ab as SiteMarkedAsWixSite, ar as SitePropertiesEvent, aq as SitePropertiesNotification, a8 as SitePublished, ak as SitePurgedExternally, ae as SiteRenamed, a4 as SiteTransferred, a7 as SiteUndeleted, a9 as SiteUnpublished, aj as SiteUrlChanged, aA as SpecialHourPeriod, l as State, i as Status, ah as StudioAssigned, ai as StudioUnassigned, aC as SupportedLanguage, az as TimePeriod, aE as Translation, k as Trigger, T as Type, K as UpdateScheduleRequest, O as UpdateScheduleResponse, aI as V4SiteCreated, W as WebhookIdentityType } from './calendar-v3-schedule-schedules.universal-Cy_4Hg5X.js';
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { GetScheduleOptions, Schedule, QuerySchedulesOptions, SchedulesQueryBuilder, CreateScheduleOptions, UpdateSchedule, UpdateScheduleOptions, UpdateScheduleApplicationErrors, CancelScheduleOptions, CancelScheduleResponse, CancelScheduleApplicationErrors, ScheduleCancelledEnvelope, ScheduleClonedEnvelope, ScheduleCreatedEnvelope, ScheduleUpdatedEnvelope } from './index.typings.js';
3
+ export { ActionEvent, Address, AddressHint, Asset, BaseEventMetadata, BusinessSchedule, CancelScheduleRequest, Categories, ChangeContext, ChangeContextPayloadOneOf, CloneScheduleRequest, CloneScheduleResponse, CommonIdentificationData, CommonIdentificationDataIdOneOf, ConferencingDetails, ConsentPolicy, CreateScheduleRequest, CreateScheduleResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DayOfWeek, DeleteContext, DeleteStatus, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GeoCoordinates, GetScheduleRequest, GetScheduleResponse, IdentificationData, IdentificationDataIdOneOf, IdentityType, Locale, Location, LocationType, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Multilingual, Namespace, NamespaceChanged, OdeditorAssigned, OdeditorUnassigned, ParticipantNotification, Permission, PicassoAssigned, PicassoUnassigned, PlacementType, Properties, PropertiesChange, QuerySchedulesRequest, QuerySchedulesResponse, RequestedFields, ResolutionMethod, RestoreInfo, Role, ScheduleCancelled, ScheduleCloned, ScheduleUpdatedWithMetadata, SchedulesQueryResult, ServiceProvisioned, ServiceRemoved, SiteCloned, SiteCreated, SiteCreatedContext, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePropertiesEvent, SitePropertiesNotification, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SpecialHourPeriod, State, Status, StudioAssigned, StudioUnassigned, SupportedLanguage, TimePeriod, Translation, Trigger, Type, UpdateScheduleRequest, UpdateScheduleResponse, V4SiteCreated, WebhookIdentityType } from './index.typings.js';
4
4
 
5
+ type ScheduleNonNullablePaths = `status` | `defaultLocation.type` | `defaultConferencingDetails.type` | `permissions` | `permissions.${number}.identity.wixUserId` | `permissions.${number}.role`;
5
6
  declare function getSchedule$1(httpClient: HttpClient): GetScheduleSignature;
6
7
  interface GetScheduleSignature {
7
8
  /**
@@ -9,7 +10,7 @@ interface GetScheduleSignature {
9
10
  * @param - ID of the schedule to retrieve.
10
11
  * @returns Retrieved schedule.
11
12
  */
12
- (scheduleId: string, options?: GetScheduleOptions | undefined): Promise<Schedule>;
13
+ (scheduleId: string, options?: GetScheduleOptions): Promise<NonNullablePaths<Schedule, ScheduleNonNullablePaths>>;
13
14
  }
14
15
  declare function querySchedules$1(httpClient: HttpClient): QuerySchedulesSignature;
15
16
  interface QuerySchedulesSignature {
@@ -31,7 +32,7 @@ interface QuerySchedulesSignature {
31
32
  *
32
33
  * The following `SchedulesQueryBuilder` functions are supported for the `querySchedules()` function. For a full description of the tip settings object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-result/items) property in `SchedulesQueryResult`.
33
34
  */
34
- (options?: QuerySchedulesOptions | undefined): SchedulesQueryBuilder;
35
+ (options?: QuerySchedulesOptions): SchedulesQueryBuilder;
35
36
  }
36
37
  declare function createSchedule$1(httpClient: HttpClient): CreateScheduleSignature;
37
38
  interface CreateScheduleSignature {
@@ -46,7 +47,7 @@ interface CreateScheduleSignature {
46
47
  * @param - Schedule to create.
47
48
  * @returns Created schedule.
48
49
  */
49
- (schedule: Schedule, options?: CreateScheduleOptions | undefined): Promise<Schedule>;
50
+ (schedule: NonNullablePaths<Schedule, `defaultConferencingDetails.guestUrl` | `defaultConferencingDetails.hostUrl` | `defaultConferencingDetails.type` | `defaultLocation.type` | `permissions.${number}.identity` | `permissions.${number}.role`>, options?: CreateScheduleOptions): Promise<NonNullablePaths<Schedule, ScheduleNonNullablePaths>>;
50
51
  }
51
52
  declare function updateSchedule$1(httpClient: HttpClient): UpdateScheduleSignature;
52
53
  interface UpdateScheduleSignature {
@@ -62,7 +63,9 @@ interface UpdateScheduleSignature {
62
63
  * @param - Schedule ID.
63
64
  * @returns Updated schedule.
64
65
  */
65
- (_id: string, schedule: UpdateSchedule, options?: UpdateScheduleOptions | undefined): Promise<Schedule>;
66
+ (_id: string, schedule: NonNullablePaths<UpdateSchedule, `permissions.${number}.identity` | `permissions.${number}.role` | `revision`>, options?: UpdateScheduleOptions): Promise<NonNullablePaths<Schedule, ScheduleNonNullablePaths> & {
67
+ __applicationErrorsType?: UpdateScheduleApplicationErrors;
68
+ }>;
66
69
  }
67
70
  declare function cancelSchedule$1(httpClient: HttpClient): CancelScheduleSignature;
68
71
  interface CancelScheduleSignature {
@@ -76,7 +79,11 @@ interface CancelScheduleSignature {
76
79
  * or assign new events.
77
80
  * @param - ID of the schedule to cancel.
78
81
  */
79
- (scheduleId: string, options?: CancelScheduleOptions | undefined): Promise<CancelScheduleResponse>;
82
+ (scheduleId: string, options?: CancelScheduleOptions): Promise<NonNullablePaths<CancelScheduleResponse, {
83
+ [P in ScheduleNonNullablePaths]: `schedule.${P}`;
84
+ }[ScheduleNonNullablePaths]> & {
85
+ __applicationErrorsType?: CancelScheduleApplicationErrors;
86
+ }>;
80
87
  }
81
88
  declare const onScheduleCancelled$1: EventDefinition<ScheduleCancelledEnvelope, "wix.calendar.v3.schedule_cancelled">;
82
89
  declare const onScheduleCloned$1: EventDefinition<ScheduleClonedEnvelope, "wix.calendar.v3.schedule_cloned">;