@wix/auto_sdk_calendar_schedules 1.0.85 → 1.0.86

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.
@@ -1514,8 +1514,6 @@ interface ScheduleCancelledEnvelope {
1514
1514
  * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
1515
1515
  * @permissionScope Read Bookings - Including Participants
1516
1516
  * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
1517
- * @permissionScope Read Bookings - all read permissions
1518
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
1519
1517
  * @permissionScope Manage Bookings - all permissions
1520
1518
  * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
1521
1519
  * @permissionScope Read bookings calendar - including participants
@@ -1541,8 +1539,6 @@ interface ScheduleClonedEnvelope {
1541
1539
  * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
1542
1540
  * @permissionScope Read Bookings - Including Participants
1543
1541
  * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
1544
- * @permissionScope Read Bookings - all read permissions
1545
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
1546
1542
  * @permissionScope Manage Bookings - all permissions
1547
1543
  * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
1548
1544
  * @permissionScope Read bookings calendar - including participants
@@ -1568,8 +1564,6 @@ interface ScheduleCreatedEnvelope {
1568
1564
  * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
1569
1565
  * @permissionScope Read Bookings - Including Participants
1570
1566
  * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
1571
- * @permissionScope Read Bookings - all read permissions
1572
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
1573
1567
  * @permissionScope Manage Bookings - all permissions
1574
1568
  * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
1575
1569
  * @permissionScope Read bookings calendar - including participants
@@ -1595,8 +1589,6 @@ interface ScheduleUpdatedEnvelope {
1595
1589
  * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
1596
1590
  * @permissionScope Read Bookings - Including Participants
1597
1591
  * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
1598
- * @permissionScope Read Bookings - all read permissions
1599
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
1600
1592
  * @permissionScope Manage Bookings - all permissions
1601
1593
  * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
1602
1594
  * @permissionScope Read bookings calendar - including participants
@@ -1701,6 +1693,12 @@ interface SchedulesQueryBuilder {
1701
1693
  skipTo: (cursor: string) => SchedulesQueryBuilder;
1702
1694
  find: () => Promise<SchedulesQueryResult>;
1703
1695
  }
1696
+ /**
1697
+ * @hidden
1698
+ * @fqn wix.calendar.schedules.v3.SchedulesService.QuerySchedules
1699
+ * @requiredField query
1700
+ */
1701
+ declare function typedQuerySchedules(query: CursorQuery, options?: QuerySchedulesOptions): Promise<NonNullablePaths<QuerySchedulesResponse, `schedules` | `schedules.${number}.status` | `schedules.${number}.defaultLocation.type` | `schedules.${number}.defaultConferencingDetails.type`, 5>>;
1704
1702
  /**
1705
1703
  * Creates a schedule.
1706
1704
  *
@@ -1919,4 +1917,4 @@ interface CancelScheduleOptions {
1919
1917
  participantNotification?: ParticipantNotification;
1920
1918
  }
1921
1919
 
1922
- export { type ActionEvent, type Address, type AddressHint, type Asset, type BaseEventMetadata, type BusinessSchedule, type CancelScheduleApplicationErrors, type CancelScheduleOptions, type CancelScheduleRequest, type CancelScheduleResponse, type Categories, type ChangeContext, type ChangeContextPayloadOneOf, type CloneScheduleRequest, type CloneScheduleResponse, type CommonIdentificationData, type CommonIdentificationDataIdOneOf, type ConferencingDetails, type ConsentPolicy, type CreateScheduleOptions, type CreateScheduleRequest, type CreateScheduleResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, DayOfWeek, type DayOfWeekWithLiterals, type DeleteContext, DeleteStatus, type DeleteStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GeoCoordinates, type GetScheduleOptions, type GetScheduleRequest, type GetScheduleResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentityType, type IdentityTypeWithLiterals, type Locale, type Location, LocationType, type LocationTypeWithLiterals, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type Multilingual, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type ParticipantNotification, type Permission, type PicassoAssigned, type PicassoUnassigned, PlacementType, type PlacementTypeWithLiterals, type Properties, type PropertiesChange, type QuerySchedulesOptions, type QuerySchedulesRequest, type QuerySchedulesResponse, RequestedFields, type RequestedFieldsWithLiterals, ResolutionMethod, type ResolutionMethodWithLiterals, type RestoreInfo, Role, type RoleWithLiterals, type Schedule, type ScheduleCancelled, type ScheduleCancelledEnvelope, type ScheduleCloned, type ScheduleClonedEnvelope, type ScheduleCreatedEnvelope, type ScheduleUpdatedEnvelope, type ScheduleUpdatedWithMetadata, type SchedulesQueryBuilder, type SchedulesQueryResult, type ServiceProvisioned, type ServiceRemoved, type SiteCloned, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePropertiesEvent, type SitePropertiesNotification, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, type SpecialHourPeriod, State, type StateWithLiterals, Status, type StatusWithLiterals, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type SupportedLanguage, type TimePeriod, type Translation, Trigger, type TriggerWithLiterals, Type, type TypeWithLiterals, type UpdateSchedule, type UpdateScheduleApplicationErrors, type UpdateScheduleOptions, type UpdateScheduleRequest, type UpdateScheduleResponse, type V4SiteCreated, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, cancelSchedule, createSchedule, getSchedule, onScheduleCancelled, onScheduleCloned, onScheduleCreated, onScheduleUpdated, querySchedules, updateSchedule };
1920
+ export { type ActionEvent, type Address, type AddressHint, type Asset, type BaseEventMetadata, type BusinessSchedule, type CancelScheduleApplicationErrors, type CancelScheduleOptions, type CancelScheduleRequest, type CancelScheduleResponse, type Categories, type ChangeContext, type ChangeContextPayloadOneOf, type CloneScheduleRequest, type CloneScheduleResponse, type CommonIdentificationData, type CommonIdentificationDataIdOneOf, type ConferencingDetails, type ConsentPolicy, type CreateScheduleOptions, type CreateScheduleRequest, type CreateScheduleResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, DayOfWeek, type DayOfWeekWithLiterals, type DeleteContext, DeleteStatus, type DeleteStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GeoCoordinates, type GetScheduleOptions, type GetScheduleRequest, type GetScheduleResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentityType, type IdentityTypeWithLiterals, type Locale, type Location, LocationType, type LocationTypeWithLiterals, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type Multilingual, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type ParticipantNotification, type Permission, type PicassoAssigned, type PicassoUnassigned, PlacementType, type PlacementTypeWithLiterals, type Properties, type PropertiesChange, type QuerySchedulesOptions, type QuerySchedulesRequest, type QuerySchedulesResponse, RequestedFields, type RequestedFieldsWithLiterals, ResolutionMethod, type ResolutionMethodWithLiterals, type RestoreInfo, Role, type RoleWithLiterals, type Schedule, type ScheduleCancelled, type ScheduleCancelledEnvelope, type ScheduleCloned, type ScheduleClonedEnvelope, type ScheduleCreatedEnvelope, type ScheduleUpdatedEnvelope, type ScheduleUpdatedWithMetadata, type SchedulesQueryBuilder, type SchedulesQueryResult, type ServiceProvisioned, type ServiceRemoved, type SiteCloned, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePropertiesEvent, type SitePropertiesNotification, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, type SpecialHourPeriod, State, type StateWithLiterals, Status, type StatusWithLiterals, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type SupportedLanguage, type TimePeriod, type Translation, Trigger, type TriggerWithLiterals, Type, type TypeWithLiterals, type UpdateSchedule, type UpdateScheduleApplicationErrors, type UpdateScheduleOptions, type UpdateScheduleRequest, type UpdateScheduleResponse, type V4SiteCreated, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, cancelSchedule, createSchedule, getSchedule, onScheduleCancelled, onScheduleCloned, onScheduleCreated, onScheduleUpdated, querySchedules, typedQuerySchedules, updateSchedule };
@@ -39,6 +39,7 @@ __export(index_typings_exports, {
39
39
  createSchedule: () => createSchedule2,
40
40
  getSchedule: () => getSchedule2,
41
41
  querySchedules: () => querySchedules2,
42
+ typedQuerySchedules: () => typedQuerySchedules,
42
43
  updateSchedule: () => updateSchedule2
43
44
  });
44
45
  module.exports = __toCommonJS(index_typings_exports);
@@ -472,6 +473,32 @@ function querySchedules2(options) {
472
473
  transformationPaths: {}
473
474
  });
474
475
  }
476
+ async function typedQuerySchedules(query, options) {
477
+ const { httpClient, sideEffects } = arguments[2];
478
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
479
+ query,
480
+ ...options
481
+ });
482
+ const reqOpts = querySchedules(payload);
483
+ sideEffects?.onSiteCall?.();
484
+ try {
485
+ const result = await httpClient.request(reqOpts);
486
+ sideEffects?.onSuccess?.(result);
487
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
488
+ } catch (err) {
489
+ const transformedError = (0, import_transform_error.transformError)(
490
+ err,
491
+ {
492
+ spreadPathsToArguments: {},
493
+ explicitPathsToArguments: { query: "$[0]" },
494
+ singleArgumentUnchanged: false
495
+ },
496
+ ["query", "options"]
497
+ );
498
+ sideEffects?.onError?.(err);
499
+ throw transformedError;
500
+ }
501
+ }
475
502
  async function createSchedule2(schedule, options) {
476
503
  const { httpClient, sideEffects } = arguments[2];
477
504
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -582,6 +609,7 @@ async function cancelSchedule2(scheduleId, options) {
582
609
  createSchedule,
583
610
  getSchedule,
584
611
  querySchedules,
612
+ typedQuerySchedules,
585
613
  updateSchedule
586
614
  });
587
615
  //# sourceMappingURL=index.typings.js.map