@wix/auto_sdk_calendar_schedules 1.0.96 → 1.0.98

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,4 +1,4 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
1
+ import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
2
2
 
3
3
  /**
4
4
  * A collection of [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
@@ -451,6 +451,15 @@ interface ParticipantNotification {
451
451
  * @maxLength 5000
452
452
  */
453
453
  message?: string | null;
454
+ /**
455
+ * Information about the delivery channels used to send the notification.
456
+ * For example, `{"channels": "SMS" }`, `{"channels": "EMAIL" }`, or `{"channels": "EMAIL, SMS" }`.
457
+ *
458
+ * Max: 10 keys
459
+ * Max key length: 64 characters
460
+ * Max value length: 1000 characters
461
+ */
462
+ metadata?: Record<string, string>;
454
463
  }
455
464
  interface UpdateScheduleResponse {
456
465
  /** Updated schedule. */
@@ -1708,7 +1717,53 @@ interface SchedulesQueryBuilder {
1708
1717
  * @fqn wix.calendar.schedules.v3.SchedulesService.QuerySchedules
1709
1718
  * @requiredField query
1710
1719
  */
1711
- declare function typedQuerySchedules(query: CursorQuery, options?: QuerySchedulesOptions): Promise<NonNullablePaths<QuerySchedulesResponse, `schedules` | `schedules.${number}.status` | `schedules.${number}.defaultLocation.type` | `schedules.${number}.defaultConferencingDetails.type`, 5>>;
1720
+ declare function typedQuerySchedules(query: ScheduleQuery, options?: QuerySchedulesOptions): Promise<NonNullablePaths<QuerySchedulesResponse, `schedules` | `schedules.${number}.status` | `schedules.${number}.defaultLocation.type` | `schedules.${number}.defaultConferencingDetails.type`, 5>>;
1721
+ interface ScheduleQuerySpec extends QuerySpec {
1722
+ paging: 'cursor';
1723
+ wql: [
1724
+ {
1725
+ fields: ['_id', 'appId', 'externalId', 'status'];
1726
+ operators: ['$eq', '$in'];
1727
+ sort: 'NONE';
1728
+ }
1729
+ ];
1730
+ }
1731
+ type CommonQueryWithEntityContext = Query<Schedule, ScheduleQuerySpec>;
1732
+ type ScheduleQuery = {
1733
+ /**
1734
+ Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`.
1735
+ */
1736
+ cursorPaging?: {
1737
+ /**
1738
+ Number of schedules to return.
1739
+
1740
+ Min: `1`
1741
+ Max: `100`
1742
+ Default: `50`
1743
+ @min: 1,
1744
+ @max: 100
1745
+ */
1746
+ limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
1747
+ /**
1748
+ Pointer to the next or previous page in the list of results.
1749
+
1750
+ You can get the relevant cursor token
1751
+ from the `pagingMetadata` object in the previous call's response.
1752
+ Not relevant for the first request.
1753
+ */
1754
+ cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
1755
+ };
1756
+ /**
1757
+ Filter object.
1758
+ See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
1759
+ for more information.
1760
+
1761
+ Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.
1762
+
1763
+ For a detailed list of supported filters, see Supported Filters.
1764
+ */
1765
+ filter?: CommonQueryWithEntityContext['filter'] | null;
1766
+ };
1712
1767
  /**
1713
1768
  * Creates a schedule.
1714
1769
  *
@@ -1927,4 +1982,4 @@ interface CancelScheduleOptions {
1927
1982
  participantNotification?: ParticipantNotification;
1928
1983
  }
1929
1984
 
1930
- 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 };
1985
+ 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 CommonQueryWithEntityContext, 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 ScheduleQuery, type ScheduleQuerySpec, 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 };