@wix/auto_sdk_calendar_schedules 1.0.60 → 1.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,7 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
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';
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, DayOfWeekWithLiterals, DeleteContext, DeleteStatus, DeleteStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GeoCoordinates, GetScheduleRequest, GetScheduleResponse, IdentificationData, IdentificationDataIdOneOf, IdentityType, IdentityTypeWithLiterals, Locale, Location, LocationType, LocationTypeWithLiterals, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Multilingual, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, ParticipantNotification, Permission, PicassoAssigned, PicassoUnassigned, PlacementType, PlacementTypeWithLiterals, Properties, PropertiesChange, QuerySchedulesRequest, QuerySchedulesResponse, RequestedFields, RequestedFieldsWithLiterals, ResolutionMethod, ResolutionMethodWithLiterals, RestoreInfo, Role, RoleWithLiterals, ScheduleCancelled, ScheduleCloned, ScheduleUpdatedWithMetadata, SchedulesQueryResult, ServiceProvisioned, ServiceRemoved, SiteCloned, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePropertiesEvent, SitePropertiesNotification, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SpecialHourPeriod, State, StateWithLiterals, Status, StatusWithLiterals, StudioAssigned, StudioUnassigned, SupportedLanguage, TimePeriod, Translation, Trigger, TriggerWithLiterals, Type, TypeWithLiterals, UpdateScheduleRequest, UpdateScheduleResponse, V4SiteCreated, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
4
4
 
5
- type ScheduleNonNullablePaths = `status` | `defaultLocation.type` | `defaultConferencingDetails.type` | `permissions` | `permissions.${number}.identity.wixUserId` | `permissions.${number}.role`;
6
5
  declare function getSchedule$1(httpClient: HttpClient): GetScheduleSignature;
7
6
  interface GetScheduleSignature {
8
7
  /**
@@ -10,7 +9,7 @@ interface GetScheduleSignature {
10
9
  * @param - ID of the schedule to retrieve.
11
10
  * @returns Retrieved schedule.
12
11
  */
13
- (scheduleId: string, options?: GetScheduleOptions): Promise<NonNullablePaths<Schedule, ScheduleNonNullablePaths>>;
12
+ (scheduleId: string, options?: GetScheduleOptions): Promise<NonNullablePaths<Schedule, `status` | `defaultLocation.type` | `defaultConferencingDetails.type` | `permissions` | `permissions.${number}.identity.wixUserId` | `permissions.${number}.role`, 5>>;
14
13
  }
15
14
  declare function querySchedules$1(httpClient: HttpClient): QuerySchedulesSignature;
16
15
  interface QuerySchedulesSignature {
@@ -47,7 +46,7 @@ interface CreateScheduleSignature {
47
46
  * @param - Schedule to create.
48
47
  * @returns Created schedule.
49
48
  */
50
- (schedule: NonNullablePaths<Schedule, `defaultConferencingDetails.guestUrl` | `defaultConferencingDetails.hostUrl` | `defaultConferencingDetails.type` | `defaultLocation.type` | `permissions.${number}.identity` | `permissions.${number}.role`>, options?: CreateScheduleOptions): Promise<NonNullablePaths<Schedule, ScheduleNonNullablePaths>>;
49
+ (schedule: NonNullablePaths<Schedule, `defaultConferencingDetails.guestUrl` | `defaultConferencingDetails.hostUrl` | `defaultConferencingDetails.type` | `defaultLocation.type` | `permissions.${number}.identity` | `permissions.${number}.role`, 4>, options?: CreateScheduleOptions): Promise<NonNullablePaths<Schedule, `status` | `defaultLocation.type` | `defaultConferencingDetails.type` | `permissions` | `permissions.${number}.identity.wixUserId` | `permissions.${number}.role`, 5>>;
51
50
  }
52
51
  declare function updateSchedule$1(httpClient: HttpClient): UpdateScheduleSignature;
53
52
  interface UpdateScheduleSignature {
@@ -63,7 +62,7 @@ interface UpdateScheduleSignature {
63
62
  * @param - Schedule ID.
64
63
  * @returns Updated schedule.
65
64
  */
66
- (_id: string, schedule: NonNullablePaths<UpdateSchedule, `permissions.${number}.identity` | `permissions.${number}.role` | `revision`>, options?: UpdateScheduleOptions): Promise<NonNullablePaths<Schedule, ScheduleNonNullablePaths> & {
65
+ (_id: string, schedule: NonNullablePaths<UpdateSchedule, `permissions.${number}.identity` | `permissions.${number}.role` | `revision`, 4>, options?: UpdateScheduleOptions): Promise<NonNullablePaths<Schedule, `status` | `defaultLocation.type` | `defaultConferencingDetails.type` | `permissions` | `permissions.${number}.identity.wixUserId` | `permissions.${number}.role`, 5> & {
67
66
  __applicationErrorsType?: UpdateScheduleApplicationErrors;
68
67
  }>;
69
68
  }
@@ -79,9 +78,7 @@ interface CancelScheduleSignature {
79
78
  * or assign new events.
80
79
  * @param - ID of the schedule to cancel.
81
80
  */
82
- (scheduleId: string, options?: CancelScheduleOptions): Promise<NonNullablePaths<CancelScheduleResponse, {
83
- [P in ScheduleNonNullablePaths]: `schedule.${P}`;
84
- }[ScheduleNonNullablePaths]> & {
81
+ (scheduleId: string, options?: CancelScheduleOptions): Promise<NonNullablePaths<CancelScheduleResponse, `schedule.status` | `schedule.defaultLocation.type` | `schedule.defaultConferencingDetails.type` | `schedule.permissions` | `schedule.permissions.${number}.identity.wixUserId` | `schedule.permissions.${number}.role`, 6> & {
85
82
  __applicationErrorsType?: CancelScheduleApplicationErrors;
86
83
  }>;
87
84
  }
@@ -98,18 +95,18 @@ declare const cancelSchedule: MaybeContext<BuildRESTFunction<typeof cancelSchedu
98
95
  /**
99
96
  * Triggered when a schedule is canceled.
100
97
  */
101
- declare const onScheduleCancelled: BuildEventDefinition<typeof onScheduleCancelled$1>;
98
+ declare const onScheduleCancelled: BuildEventDefinition<typeof onScheduleCancelled$1> & typeof onScheduleCancelled$1;
102
99
  /**
103
100
  * Triggered when a schedule is cloned.
104
101
  */
105
- declare const onScheduleCloned: BuildEventDefinition<typeof onScheduleCloned$1>;
102
+ declare const onScheduleCloned: BuildEventDefinition<typeof onScheduleCloned$1> & typeof onScheduleCloned$1;
106
103
  /**
107
104
  * Triggered when a schedule is created.
108
105
  */
109
- declare const onScheduleCreated: BuildEventDefinition<typeof onScheduleCreated$1>;
106
+ declare const onScheduleCreated: BuildEventDefinition<typeof onScheduleCreated$1> & typeof onScheduleCreated$1;
110
107
  /**
111
108
  * Triggered when a schedule is updated.
112
109
  */
113
- declare const onScheduleUpdated: BuildEventDefinition<typeof onScheduleUpdated$1>;
110
+ declare const onScheduleUpdated: BuildEventDefinition<typeof onScheduleUpdated$1> & typeof onScheduleUpdated$1;
114
111
 
115
- export { CancelScheduleOptions, CancelScheduleResponse, CreateScheduleOptions, GetScheduleOptions, QuerySchedulesOptions, Schedule, ScheduleCancelledEnvelope, ScheduleClonedEnvelope, ScheduleCreatedEnvelope, ScheduleUpdatedEnvelope, SchedulesQueryBuilder, UpdateSchedule, UpdateScheduleOptions, cancelSchedule, createSchedule, getSchedule, onScheduleCancelled, onScheduleCloned, onScheduleCreated, onScheduleUpdated, querySchedules, updateSchedule };
112
+ export { CancelScheduleApplicationErrors, CancelScheduleOptions, CancelScheduleResponse, CreateScheduleOptions, GetScheduleOptions, QuerySchedulesOptions, Schedule, ScheduleCancelledEnvelope, ScheduleClonedEnvelope, ScheduleCreatedEnvelope, ScheduleUpdatedEnvelope, SchedulesQueryBuilder, UpdateSchedule, UpdateScheduleApplicationErrors, UpdateScheduleOptions, cancelSchedule, createSchedule, getSchedule, onScheduleCancelled, onScheduleCloned, onScheduleCreated, onScheduleUpdated, querySchedules, updateSchedule };
@@ -353,6 +353,7 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
353
353
  Namespace2["STANDALONE_FORMS"] = "STANDALONE_FORMS";
354
354
  Namespace2["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
355
355
  Namespace2["MIMIR"] = "MIMIR";
356
+ Namespace2["TWINS"] = "TWINS";
356
357
  return Namespace2;
357
358
  })(Namespace || {});
358
359
  var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
@@ -669,7 +670,9 @@ var querySchedules4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)
669
670
  var createSchedule4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createSchedule3);
670
671
  var updateSchedule4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSchedule3);
671
672
  var cancelSchedule4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(cancelSchedule3);
672
- var onScheduleCancelled2 = (0, import_event_definition_modules.createEventModule)(onScheduleCancelled);
673
+ var onScheduleCancelled2 = (0, import_event_definition_modules.createEventModule)(
674
+ onScheduleCancelled
675
+ );
673
676
  var onScheduleCloned2 = (0, import_event_definition_modules.createEventModule)(onScheduleCloned);
674
677
  var onScheduleCreated2 = (0, import_event_definition_modules.createEventModule)(onScheduleCreated);
675
678
  var onScheduleUpdated2 = (0, import_event_definition_modules.createEventModule)(onScheduleUpdated);