@wix/calendar 1.0.1 → 1.0.3
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/calendar",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"type-bundles"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@wix/calendar_events": "1.0.
|
|
22
|
-
"@wix/calendar_schedule-time-frames": "1.0.
|
|
23
|
-
"@wix/calendar_schedules": "1.0.
|
|
21
|
+
"@wix/calendar_events": "1.0.2",
|
|
22
|
+
"@wix/calendar_schedule-time-frames": "1.0.1",
|
|
23
|
+
"@wix/calendar_schedules": "1.0.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"glob": "^10.4.1",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"fqdn": ""
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
"falconPackageHash": "
|
|
47
|
+
"falconPackageHash": "28fccc925fb4abd6ee32d577b05bea9dd6f1b314139f242d2d403c42"
|
|
48
48
|
}
|
|
@@ -279,6 +279,7 @@ interface Location$1 {
|
|
|
279
279
|
* The location type.
|
|
280
280
|
* The possible values are:
|
|
281
281
|
* - `"BUSINESS"` event takes place at the business location.
|
|
282
|
+
* - `"CUSTOMER"` event takes place at the customer location.
|
|
282
283
|
* - `"CUSTOM"` event takes place at the custom location.
|
|
283
284
|
*/
|
|
284
285
|
type?: LocationType$1;
|
|
@@ -883,7 +884,7 @@ interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
|
|
|
883
884
|
slug?: string;
|
|
884
885
|
/** ID of the entity associated with the event. */
|
|
885
886
|
entityId?: string;
|
|
886
|
-
/** Event timestamp. */
|
|
887
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
887
888
|
eventTime?: Date;
|
|
888
889
|
/**
|
|
889
890
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1236,7 +1237,7 @@ interface ListEventsByContactIdRequest {
|
|
|
1236
1237
|
* The ID of the contact participating in the events.
|
|
1237
1238
|
* Required, unless `cursorPaging` is provided.
|
|
1238
1239
|
*/
|
|
1239
|
-
contactId
|
|
1240
|
+
contactId: string | null;
|
|
1240
1241
|
/**
|
|
1241
1242
|
* Local start date for which events are returned, in ISO-8601 format.
|
|
1242
1243
|
* E.g, `2024-01-01T00:00:00`.
|
|
@@ -1310,7 +1311,7 @@ interface ListEventsByMemberIdRequest {
|
|
|
1310
1311
|
*
|
|
1311
1312
|
* Required, unless `cursorPaging` is provided.
|
|
1312
1313
|
*/
|
|
1313
|
-
memberId
|
|
1314
|
+
memberId: string | null;
|
|
1314
1315
|
/**
|
|
1315
1316
|
* Local start date for which events are returned, in ISO-8601 format.
|
|
1316
1317
|
* E.g, `2024-01-01T00:00:00`.
|
|
@@ -1438,6 +1439,12 @@ interface BulkCancelEventResponseNonNullableFields {
|
|
|
1438
1439
|
results: BulkEventResultNonNullableFields[];
|
|
1439
1440
|
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
1440
1441
|
}
|
|
1442
|
+
interface ListEventsByContactIdResponseNonNullableFields {
|
|
1443
|
+
events: EventNonNullableFields[];
|
|
1444
|
+
}
|
|
1445
|
+
interface ListEventsByMemberIdResponseNonNullableFields {
|
|
1446
|
+
events: EventNonNullableFields[];
|
|
1447
|
+
}
|
|
1441
1448
|
interface BaseEventMetadata$2 {
|
|
1442
1449
|
/** App instance ID. */
|
|
1443
1450
|
instanceId?: string | null;
|
|
@@ -1465,7 +1472,7 @@ interface EventMetadata$2 extends BaseEventMetadata$2 {
|
|
|
1465
1472
|
slug?: string;
|
|
1466
1473
|
/** ID of the entity associated with the event. */
|
|
1467
1474
|
entityId?: string;
|
|
1468
|
-
/** Event timestamp. */
|
|
1475
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
1469
1476
|
eventTime?: Date;
|
|
1470
1477
|
/**
|
|
1471
1478
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1876,6 +1883,63 @@ interface BulkCancelEventOptions {
|
|
|
1876
1883
|
*/
|
|
1877
1884
|
timeZone?: string | null;
|
|
1878
1885
|
}
|
|
1886
|
+
interface ListEventsByContactIdOptions {
|
|
1887
|
+
/**
|
|
1888
|
+
* Local start date for which events are returned, in ISO-8601 format.
|
|
1889
|
+
* E.g, `2024-01-01T00:00:00`.
|
|
1890
|
+
*
|
|
1891
|
+
* Required, unless `cursorPaging` is provided.
|
|
1892
|
+
*/
|
|
1893
|
+
fromLocalDate?: string | null;
|
|
1894
|
+
/**
|
|
1895
|
+
* Local end date for which events are returned, in ISO-8601 format.
|
|
1896
|
+
* E.g, `2024-01-7T00:00:00`.
|
|
1897
|
+
*
|
|
1898
|
+
* Required, unless `cursorPaging` is provided.
|
|
1899
|
+
* Max: 1 year after `fromLocalDate`.
|
|
1900
|
+
*/
|
|
1901
|
+
toLocalDate?: string | null;
|
|
1902
|
+
/**
|
|
1903
|
+
* The time zone, in IANA time zone format.
|
|
1904
|
+
* Default is the Wix Business time zone.
|
|
1905
|
+
*/
|
|
1906
|
+
timeZone?: string | null;
|
|
1907
|
+
/** Optional Wix app ID to filter events by. */
|
|
1908
|
+
appId?: string | null;
|
|
1909
|
+
/** Optional cursor to the next events page. */
|
|
1910
|
+
cursorPaging?: CommonCursorPaging;
|
|
1911
|
+
}
|
|
1912
|
+
interface ListEventsByMemberIdOptions {
|
|
1913
|
+
/**
|
|
1914
|
+
* Local start date for which events are returned, in ISO-8601 format.
|
|
1915
|
+
* E.g, `2024-01-01T00:00:00`.
|
|
1916
|
+
*
|
|
1917
|
+
* Required, unless `cursorPaging` or `eventIds` are provided.
|
|
1918
|
+
*/
|
|
1919
|
+
fromLocalDate?: string | null;
|
|
1920
|
+
/**
|
|
1921
|
+
* Local end date for which events are returned, in ISO-8601 format.
|
|
1922
|
+
* E.g, `2024-01-7T00:00:00`.
|
|
1923
|
+
*
|
|
1924
|
+
* Required, unless `cursorPaging` or `eventIds` are provided.
|
|
1925
|
+
* Max: 1 year after `fromLocalDate`.
|
|
1926
|
+
*/
|
|
1927
|
+
toLocalDate?: string | null;
|
|
1928
|
+
/**
|
|
1929
|
+
* The time zone, in IANA time zone format.
|
|
1930
|
+
* Default is the Wix Business time zone.
|
|
1931
|
+
*/
|
|
1932
|
+
timeZone?: string | null;
|
|
1933
|
+
/** Optional Wix app ID to filter events by. */
|
|
1934
|
+
appId?: string | null;
|
|
1935
|
+
/** Optional cursor to the next events page. */
|
|
1936
|
+
cursorPaging?: CommonCursorPaging;
|
|
1937
|
+
/**
|
|
1938
|
+
* Optional event IDs to filter events by.
|
|
1939
|
+
* If provided, other filters are ignored.
|
|
1940
|
+
*/
|
|
1941
|
+
eventIds?: string[];
|
|
1942
|
+
}
|
|
1879
1943
|
|
|
1880
1944
|
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
1881
1945
|
interface HttpClient {
|
|
@@ -1936,6 +2000,8 @@ declare const restoreEventDefaults: ReturnType<typeof createRESTModule$2<typeof
|
|
|
1936
2000
|
declare const splitRecurringEvent: ReturnType<typeof createRESTModule$2<typeof publicSplitRecurringEvent>>;
|
|
1937
2001
|
declare const cancelEvent: ReturnType<typeof createRESTModule$2<typeof publicCancelEvent>>;
|
|
1938
2002
|
declare const bulkCancelEvent: ReturnType<typeof createRESTModule$2<typeof publicBulkCancelEvent>>;
|
|
2003
|
+
declare const listEventsByContactId: ReturnType<typeof createRESTModule$2<typeof publicListEventsByContactId>>;
|
|
2004
|
+
declare const listEventsByMemberId: ReturnType<typeof createRESTModule$2<typeof publicListEventsByMemberId>>;
|
|
1939
2005
|
declare const onEventCreated: ReturnType<typeof createEventModule$2<typeof publicOnEventCreated>>;
|
|
1940
2006
|
declare const onEventUpdated: ReturnType<typeof createEventModule$2<typeof publicOnEventUpdated>>;
|
|
1941
2007
|
declare const onEventRecurringSplit: ReturnType<typeof createEventModule$2<typeof publicOnEventRecurringSplit>>;
|
|
@@ -1991,10 +2057,14 @@ type context$2_GetEventRequest = GetEventRequest;
|
|
|
1991
2057
|
type context$2_GetEventResponse = GetEventResponse;
|
|
1992
2058
|
type context$2_GetEventResponseNonNullableFields = GetEventResponseNonNullableFields;
|
|
1993
2059
|
type context$2_ItemMetadata = ItemMetadata;
|
|
2060
|
+
type context$2_ListEventsByContactIdOptions = ListEventsByContactIdOptions;
|
|
1994
2061
|
type context$2_ListEventsByContactIdRequest = ListEventsByContactIdRequest;
|
|
1995
2062
|
type context$2_ListEventsByContactIdResponse = ListEventsByContactIdResponse;
|
|
2063
|
+
type context$2_ListEventsByContactIdResponseNonNullableFields = ListEventsByContactIdResponseNonNullableFields;
|
|
2064
|
+
type context$2_ListEventsByMemberIdOptions = ListEventsByMemberIdOptions;
|
|
1996
2065
|
type context$2_ListEventsByMemberIdRequest = ListEventsByMemberIdRequest;
|
|
1997
2066
|
type context$2_ListEventsByMemberIdResponse = ListEventsByMemberIdResponse;
|
|
2067
|
+
type context$2_ListEventsByMemberIdResponseNonNullableFields = ListEventsByMemberIdResponseNonNullableFields;
|
|
1998
2068
|
type context$2_ListEventsOptions = ListEventsOptions;
|
|
1999
2069
|
type context$2_ListEventsRequest = ListEventsRequest;
|
|
2000
2070
|
type context$2_ListEventsResponse = ListEventsResponse;
|
|
@@ -2042,6 +2112,8 @@ declare const context$2_cancelEvent: typeof cancelEvent;
|
|
|
2042
2112
|
declare const context$2_createEvent: typeof createEvent;
|
|
2043
2113
|
declare const context$2_getEvent: typeof getEvent;
|
|
2044
2114
|
declare const context$2_listEvents: typeof listEvents;
|
|
2115
|
+
declare const context$2_listEventsByContactId: typeof listEventsByContactId;
|
|
2116
|
+
declare const context$2_listEventsByMemberId: typeof listEventsByMemberId;
|
|
2045
2117
|
declare const context$2_onEventCancelled: typeof onEventCancelled;
|
|
2046
2118
|
declare const context$2_onEventCreated: typeof onEventCreated;
|
|
2047
2119
|
declare const context$2_onEventRecurringSplit: typeof onEventRecurringSplit;
|
|
@@ -2051,7 +2123,7 @@ declare const context$2_restoreEventDefaults: typeof restoreEventDefaults;
|
|
|
2051
2123
|
declare const context$2_splitRecurringEvent: typeof splitRecurringEvent;
|
|
2052
2124
|
declare const context$2_updateEvent: typeof updateEvent;
|
|
2053
2125
|
declare namespace context$2 {
|
|
2054
|
-
export { type ActionEvent$2 as ActionEvent, type Address$2 as Address, type AddressHint$2 as AddressHint, type context$2_ApplicationError as ApplicationError, type BaseEventMetadata$2 as BaseEventMetadata, type context$2_BulkActionMetadata as BulkActionMetadata, type context$2_BulkCancelEventOptions as BulkCancelEventOptions, type context$2_BulkCancelEventRequest as BulkCancelEventRequest, type context$2_BulkCancelEventResponse as BulkCancelEventResponse, type context$2_BulkCancelEventResponseNonNullableFields as BulkCancelEventResponseNonNullableFields, type context$2_BulkCreateEventOptions as BulkCreateEventOptions, type context$2_BulkCreateEventRequest as BulkCreateEventRequest, type context$2_BulkCreateEventResponse as BulkCreateEventResponse, type context$2_BulkCreateEventResponseNonNullableFields as BulkCreateEventResponseNonNullableFields, type context$2_BulkEventResult as BulkEventResult, type context$2_BulkUpdateEventOptions as BulkUpdateEventOptions, type context$2_BulkUpdateEventRequest as BulkUpdateEventRequest, type context$2_BulkUpdateEventRequestMaskedEvent as BulkUpdateEventRequestMaskedEvent, type context$2_BulkUpdateEventResponse as BulkUpdateEventResponse, type context$2_BulkUpdateEventResponseNonNullableFields as BulkUpdateEventResponseNonNullableFields, type BusinessSchedule$2 as BusinessSchedule, type context$2_CancelEventOptions as CancelEventOptions, type context$2_CancelEventRequest as CancelEventRequest, type context$2_CancelEventResponse as CancelEventResponse, type context$2_CancelEventResponseNonNullableFields as CancelEventResponseNonNullableFields, type Categories$2 as Categories, type ChangeContext$2 as ChangeContext, type ChangeContextPayloadOneOf$2 as ChangeContextPayloadOneOf, type context$2_CommonCursorPaging as CommonCursorPaging, type context$2_CommonCursorPagingMetadata as CommonCursorPagingMetadata, type context$2_CommonCursors as CommonCursors, type CommonIdentificationData$1 as CommonIdentificationData, type CommonIdentificationDataIdOneOf$1 as CommonIdentificationDataIdOneOf, type ConferencingDetails$1 as ConferencingDetails, type ConsentPolicy$2 as ConsentPolicy, type context$2_CreateEventOptions as CreateEventOptions, type context$2_CreateEventRequest as CreateEventRequest, type context$2_CreateEventResponse as CreateEventResponse, type context$2_CreateEventResponseNonNullableFields as CreateEventResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, context$2_Day as Day, DayOfWeek$2 as DayOfWeek, type context$2_DeleteTargetsRequest as DeleteTargetsRequest, type context$2_DeleteTargetsResponse as DeleteTargetsResponse, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$2 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type context$2_Event as Event, type context$2_EventCancelled as EventCancelled, type context$2_EventCancelledEnvelope as EventCancelledEnvelope, type context$2_EventCreatedEnvelope as EventCreatedEnvelope, type EventMetadata$2 as EventMetadata, type context$2_EventNonNullableFields as EventNonNullableFields, type context$2_EventRecurringSplitEnvelope as EventRecurringSplitEnvelope, type context$2_EventUpdatedEnvelope as EventUpdatedEnvelope, type context$2_EventUpdatedWithMetadata as EventUpdatedWithMetadata, type context$2_EventsQueryBuilder as EventsQueryBuilder, type context$2_EventsQueryResult as EventsQueryResult, type ExtendedFields$1 as ExtendedFields, context$2_Field as Field, context$2_Frequency as Frequency, type GeoCoordinates$2 as GeoCoordinates, type context$2_GetEventOptions as GetEventOptions, type context$2_GetEventRequest as GetEventRequest, type context$2_GetEventResponse as GetEventResponse, type context$2_GetEventResponseNonNullableFields as GetEventResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, IdentityType$1 as IdentityType, type context$2_ItemMetadata as ItemMetadata, type context$2_ListEventsByContactIdRequest as ListEventsByContactIdRequest, type context$2_ListEventsByContactIdResponse as ListEventsByContactIdResponse, type context$2_ListEventsByMemberIdRequest as ListEventsByMemberIdRequest, type context$2_ListEventsByMemberIdResponse as ListEventsByMemberIdResponse, type context$2_ListEventsOptions as ListEventsOptions, type context$2_ListEventsRequest as ListEventsRequest, type context$2_ListEventsResponse as ListEventsResponse, type context$2_ListEventsResponseNonNullableFields as ListEventsResponseNonNullableFields, type context$2_ListRecurringEventInstancesHistoryRequest as ListRecurringEventInstancesHistoryRequest, type context$2_ListRecurringEventInstancesHistoryResponse as ListRecurringEventInstancesHistoryResponse, type Locale$2 as Locale, type Location$1 as Location, LocationType$1 as LocationType, type context$2_MaskedEvent as MaskedEvent, type MessageEnvelope$2 as MessageEnvelope, type Multilingual$2 as Multilingual, type context$2_Participant as Participant, type ParticipantNotification$1 as ParticipantNotification, type context$2_Participants as Participants, context$2_ParticipantsStatus as ParticipantsStatus, type Permission$1 as Permission, PlacementType$2 as PlacementType, type Properties$2 as Properties, type PropertiesChange$2 as PropertiesChange, type context$2_QueryEventsOptions as QueryEventsOptions, type context$2_QueryEventsRequest as QueryEventsRequest, type context$2_QueryEventsResponse as QueryEventsResponse, type context$2_QueryEventsResponseNonNullableFields as QueryEventsResponseNonNullableFields, type context$2_RecurrenceRule as RecurrenceRule, context$2_RecurrenceType as RecurrenceType, type context$2_RecurringEventSplit as RecurringEventSplit, RequestedFields$1 as RequestedFields, ResolutionMethod$2 as ResolutionMethod, type context$2_Resource as Resource, type context$2_RestoreEventDefaultsOptions as RestoreEventDefaultsOptions, type context$2_RestoreEventDefaultsRequest as RestoreEventDefaultsRequest, type context$2_RestoreEventDefaultsResponse as RestoreEventDefaultsResponse, type context$2_RestoreEventDefaultsResponseNonNullableFields as RestoreEventDefaultsResponseNonNullableFields, type RestoreInfo$2 as RestoreInfo, Role$1 as Role, type SiteCloned$2 as SiteCloned, type SiteCreated$2 as SiteCreated, type SitePropertiesEvent$2 as SitePropertiesEvent, type SitePropertiesNotification$2 as SitePropertiesNotification, context$2_SortOrder as SortOrder, type context$2_Sorting as Sorting, type SpecialHourPeriod$2 as SpecialHourPeriod, type context$2_SplitRecurringEventOptions as SplitRecurringEventOptions, type context$2_SplitRecurringEventRequest as SplitRecurringEventRequest, type context$2_SplitRecurringEventResponse as SplitRecurringEventResponse, type context$2_SplitRecurringEventResponseNonNullableFields as SplitRecurringEventResponseNonNullableFields, Status$2 as Status, type SupportedLanguage$2 as SupportedLanguage, type TimePeriod$2 as TimePeriod, type Translation$2 as Translation, context$2_Transparency as Transparency, Type$1 as Type, type context$2_UpdateEvent as UpdateEvent, type context$2_UpdateEventOptions as UpdateEventOptions, type context$2_UpdateEventParticipantsRequest as UpdateEventParticipantsRequest, type context$2_UpdateEventParticipantsResponse as UpdateEventParticipantsResponse, type context$2_UpdateEventRequest as UpdateEventRequest, type context$2_UpdateEventResponse as UpdateEventResponse, type context$2_UpdateEventResponseNonNullableFields as UpdateEventResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType, type ZonedDate$1 as ZonedDate, context$2_bulkCancelEvent as bulkCancelEvent, context$2_bulkCreateEvent as bulkCreateEvent, context$2_bulkUpdateEvent as bulkUpdateEvent, context$2_cancelEvent as cancelEvent, context$2_createEvent as createEvent, context$2_getEvent as getEvent, context$2_listEvents as listEvents, context$2_onEventCancelled as onEventCancelled, context$2_onEventCreated as onEventCreated, context$2_onEventRecurringSplit as onEventRecurringSplit, context$2_onEventUpdated as onEventUpdated, context$2_queryEvents as queryEvents, context$2_restoreEventDefaults as restoreEventDefaults, context$2_splitRecurringEvent as splitRecurringEvent, context$2_updateEvent as updateEvent };
|
|
2126
|
+
export { type ActionEvent$2 as ActionEvent, type Address$2 as Address, type AddressHint$2 as AddressHint, type context$2_ApplicationError as ApplicationError, type BaseEventMetadata$2 as BaseEventMetadata, type context$2_BulkActionMetadata as BulkActionMetadata, type context$2_BulkCancelEventOptions as BulkCancelEventOptions, type context$2_BulkCancelEventRequest as BulkCancelEventRequest, type context$2_BulkCancelEventResponse as BulkCancelEventResponse, type context$2_BulkCancelEventResponseNonNullableFields as BulkCancelEventResponseNonNullableFields, type context$2_BulkCreateEventOptions as BulkCreateEventOptions, type context$2_BulkCreateEventRequest as BulkCreateEventRequest, type context$2_BulkCreateEventResponse as BulkCreateEventResponse, type context$2_BulkCreateEventResponseNonNullableFields as BulkCreateEventResponseNonNullableFields, type context$2_BulkEventResult as BulkEventResult, type context$2_BulkUpdateEventOptions as BulkUpdateEventOptions, type context$2_BulkUpdateEventRequest as BulkUpdateEventRequest, type context$2_BulkUpdateEventRequestMaskedEvent as BulkUpdateEventRequestMaskedEvent, type context$2_BulkUpdateEventResponse as BulkUpdateEventResponse, type context$2_BulkUpdateEventResponseNonNullableFields as BulkUpdateEventResponseNonNullableFields, type BusinessSchedule$2 as BusinessSchedule, type context$2_CancelEventOptions as CancelEventOptions, type context$2_CancelEventRequest as CancelEventRequest, type context$2_CancelEventResponse as CancelEventResponse, type context$2_CancelEventResponseNonNullableFields as CancelEventResponseNonNullableFields, type Categories$2 as Categories, type ChangeContext$2 as ChangeContext, type ChangeContextPayloadOneOf$2 as ChangeContextPayloadOneOf, type context$2_CommonCursorPaging as CommonCursorPaging, type context$2_CommonCursorPagingMetadata as CommonCursorPagingMetadata, type context$2_CommonCursors as CommonCursors, type CommonIdentificationData$1 as CommonIdentificationData, type CommonIdentificationDataIdOneOf$1 as CommonIdentificationDataIdOneOf, type ConferencingDetails$1 as ConferencingDetails, type ConsentPolicy$2 as ConsentPolicy, type context$2_CreateEventOptions as CreateEventOptions, type context$2_CreateEventRequest as CreateEventRequest, type context$2_CreateEventResponse as CreateEventResponse, type context$2_CreateEventResponseNonNullableFields as CreateEventResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, context$2_Day as Day, DayOfWeek$2 as DayOfWeek, type context$2_DeleteTargetsRequest as DeleteTargetsRequest, type context$2_DeleteTargetsResponse as DeleteTargetsResponse, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$2 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type context$2_Event as Event, type context$2_EventCancelled as EventCancelled, type context$2_EventCancelledEnvelope as EventCancelledEnvelope, type context$2_EventCreatedEnvelope as EventCreatedEnvelope, type EventMetadata$2 as EventMetadata, type context$2_EventNonNullableFields as EventNonNullableFields, type context$2_EventRecurringSplitEnvelope as EventRecurringSplitEnvelope, type context$2_EventUpdatedEnvelope as EventUpdatedEnvelope, type context$2_EventUpdatedWithMetadata as EventUpdatedWithMetadata, type context$2_EventsQueryBuilder as EventsQueryBuilder, type context$2_EventsQueryResult as EventsQueryResult, type ExtendedFields$1 as ExtendedFields, context$2_Field as Field, context$2_Frequency as Frequency, type GeoCoordinates$2 as GeoCoordinates, type context$2_GetEventOptions as GetEventOptions, type context$2_GetEventRequest as GetEventRequest, type context$2_GetEventResponse as GetEventResponse, type context$2_GetEventResponseNonNullableFields as GetEventResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, IdentityType$1 as IdentityType, type context$2_ItemMetadata as ItemMetadata, type context$2_ListEventsByContactIdOptions as ListEventsByContactIdOptions, type context$2_ListEventsByContactIdRequest as ListEventsByContactIdRequest, type context$2_ListEventsByContactIdResponse as ListEventsByContactIdResponse, type context$2_ListEventsByContactIdResponseNonNullableFields as ListEventsByContactIdResponseNonNullableFields, type context$2_ListEventsByMemberIdOptions as ListEventsByMemberIdOptions, type context$2_ListEventsByMemberIdRequest as ListEventsByMemberIdRequest, type context$2_ListEventsByMemberIdResponse as ListEventsByMemberIdResponse, type context$2_ListEventsByMemberIdResponseNonNullableFields as ListEventsByMemberIdResponseNonNullableFields, type context$2_ListEventsOptions as ListEventsOptions, type context$2_ListEventsRequest as ListEventsRequest, type context$2_ListEventsResponse as ListEventsResponse, type context$2_ListEventsResponseNonNullableFields as ListEventsResponseNonNullableFields, type context$2_ListRecurringEventInstancesHistoryRequest as ListRecurringEventInstancesHistoryRequest, type context$2_ListRecurringEventInstancesHistoryResponse as ListRecurringEventInstancesHistoryResponse, type Locale$2 as Locale, type Location$1 as Location, LocationType$1 as LocationType, type context$2_MaskedEvent as MaskedEvent, type MessageEnvelope$2 as MessageEnvelope, type Multilingual$2 as Multilingual, type context$2_Participant as Participant, type ParticipantNotification$1 as ParticipantNotification, type context$2_Participants as Participants, context$2_ParticipantsStatus as ParticipantsStatus, type Permission$1 as Permission, PlacementType$2 as PlacementType, type Properties$2 as Properties, type PropertiesChange$2 as PropertiesChange, type context$2_QueryEventsOptions as QueryEventsOptions, type context$2_QueryEventsRequest as QueryEventsRequest, type context$2_QueryEventsResponse as QueryEventsResponse, type context$2_QueryEventsResponseNonNullableFields as QueryEventsResponseNonNullableFields, type context$2_RecurrenceRule as RecurrenceRule, context$2_RecurrenceType as RecurrenceType, type context$2_RecurringEventSplit as RecurringEventSplit, RequestedFields$1 as RequestedFields, ResolutionMethod$2 as ResolutionMethod, type context$2_Resource as Resource, type context$2_RestoreEventDefaultsOptions as RestoreEventDefaultsOptions, type context$2_RestoreEventDefaultsRequest as RestoreEventDefaultsRequest, type context$2_RestoreEventDefaultsResponse as RestoreEventDefaultsResponse, type context$2_RestoreEventDefaultsResponseNonNullableFields as RestoreEventDefaultsResponseNonNullableFields, type RestoreInfo$2 as RestoreInfo, Role$1 as Role, type SiteCloned$2 as SiteCloned, type SiteCreated$2 as SiteCreated, type SitePropertiesEvent$2 as SitePropertiesEvent, type SitePropertiesNotification$2 as SitePropertiesNotification, context$2_SortOrder as SortOrder, type context$2_Sorting as Sorting, type SpecialHourPeriod$2 as SpecialHourPeriod, type context$2_SplitRecurringEventOptions as SplitRecurringEventOptions, type context$2_SplitRecurringEventRequest as SplitRecurringEventRequest, type context$2_SplitRecurringEventResponse as SplitRecurringEventResponse, type context$2_SplitRecurringEventResponseNonNullableFields as SplitRecurringEventResponseNonNullableFields, Status$2 as Status, type SupportedLanguage$2 as SupportedLanguage, type TimePeriod$2 as TimePeriod, type Translation$2 as Translation, context$2_Transparency as Transparency, Type$1 as Type, type context$2_UpdateEvent as UpdateEvent, type context$2_UpdateEventOptions as UpdateEventOptions, type context$2_UpdateEventParticipantsRequest as UpdateEventParticipantsRequest, type context$2_UpdateEventParticipantsResponse as UpdateEventParticipantsResponse, type context$2_UpdateEventRequest as UpdateEventRequest, type context$2_UpdateEventResponse as UpdateEventResponse, type context$2_UpdateEventResponseNonNullableFields as UpdateEventResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType, type ZonedDate$1 as ZonedDate, context$2_bulkCancelEvent as bulkCancelEvent, context$2_bulkCreateEvent as bulkCreateEvent, context$2_bulkUpdateEvent as bulkUpdateEvent, context$2_cancelEvent as cancelEvent, context$2_createEvent as createEvent, context$2_getEvent as getEvent, context$2_listEvents as listEvents, context$2_listEventsByContactId as listEventsByContactId, context$2_listEventsByMemberId as listEventsByMemberId, context$2_onEventCancelled as onEventCancelled, context$2_onEventCreated as onEventCreated, context$2_onEventRecurringSplit as onEventRecurringSplit, context$2_onEventUpdated as onEventUpdated, context$2_queryEvents as queryEvents, context$2_restoreEventDefaults as restoreEventDefaults, context$2_splitRecurringEvent as splitRecurringEvent, context$2_updateEvent as updateEvent };
|
|
2055
2127
|
}
|
|
2056
2128
|
|
|
2057
2129
|
interface Schedule {
|
|
@@ -2155,6 +2227,7 @@ interface Location {
|
|
|
2155
2227
|
* The location type.
|
|
2156
2228
|
* The possible values are:
|
|
2157
2229
|
* - `"BUSINESS"` event takes place at the business location.
|
|
2230
|
+
* - `"CUSTOMER"` event takes place at the customer location.
|
|
2158
2231
|
* - `"CUSTOM"` event takes place at the custom location.
|
|
2159
2232
|
*/
|
|
2160
2233
|
type?: LocationType;
|
|
@@ -2971,7 +3044,7 @@ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
|
|
|
2971
3044
|
slug?: string;
|
|
2972
3045
|
/** ID of the entity associated with the event. */
|
|
2973
3046
|
entityId?: string;
|
|
2974
|
-
/** Event timestamp. */
|
|
3047
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2975
3048
|
eventTime?: Date;
|
|
2976
3049
|
/**
|
|
2977
3050
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -3123,7 +3196,7 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
|
|
|
3123
3196
|
slug?: string;
|
|
3124
3197
|
/** ID of the entity associated with the event. */
|
|
3125
3198
|
entityId?: string;
|
|
3126
|
-
/** Event timestamp. */
|
|
3199
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
3127
3200
|
eventTime?: Date;
|
|
3128
3201
|
/**
|
|
3129
3202
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -279,6 +279,7 @@ interface Location$1 {
|
|
|
279
279
|
* The location type.
|
|
280
280
|
* The possible values are:
|
|
281
281
|
* - `"BUSINESS"` event takes place at the business location.
|
|
282
|
+
* - `"CUSTOMER"` event takes place at the customer location.
|
|
282
283
|
* - `"CUSTOM"` event takes place at the custom location.
|
|
283
284
|
*/
|
|
284
285
|
type?: LocationType$1;
|
|
@@ -883,7 +884,7 @@ interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
|
|
|
883
884
|
slug?: string;
|
|
884
885
|
/** ID of the entity associated with the event. */
|
|
885
886
|
entityId?: string;
|
|
886
|
-
/** Event timestamp. */
|
|
887
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
887
888
|
eventTime?: Date;
|
|
888
889
|
/**
|
|
889
890
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1236,7 +1237,7 @@ interface ListEventsByContactIdRequest {
|
|
|
1236
1237
|
* The ID of the contact participating in the events.
|
|
1237
1238
|
* Required, unless `cursorPaging` is provided.
|
|
1238
1239
|
*/
|
|
1239
|
-
contactId
|
|
1240
|
+
contactId: string | null;
|
|
1240
1241
|
/**
|
|
1241
1242
|
* Local start date for which events are returned, in ISO-8601 format.
|
|
1242
1243
|
* E.g, `2024-01-01T00:00:00`.
|
|
@@ -1310,7 +1311,7 @@ interface ListEventsByMemberIdRequest {
|
|
|
1310
1311
|
*
|
|
1311
1312
|
* Required, unless `cursorPaging` is provided.
|
|
1312
1313
|
*/
|
|
1313
|
-
memberId
|
|
1314
|
+
memberId: string | null;
|
|
1314
1315
|
/**
|
|
1315
1316
|
* Local start date for which events are returned, in ISO-8601 format.
|
|
1316
1317
|
* E.g, `2024-01-01T00:00:00`.
|
|
@@ -1438,6 +1439,12 @@ interface BulkCancelEventResponseNonNullableFields {
|
|
|
1438
1439
|
results: BulkEventResultNonNullableFields[];
|
|
1439
1440
|
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
1440
1441
|
}
|
|
1442
|
+
interface ListEventsByContactIdResponseNonNullableFields {
|
|
1443
|
+
events: EventNonNullableFields[];
|
|
1444
|
+
}
|
|
1445
|
+
interface ListEventsByMemberIdResponseNonNullableFields {
|
|
1446
|
+
events: EventNonNullableFields[];
|
|
1447
|
+
}
|
|
1441
1448
|
interface BaseEventMetadata$2 {
|
|
1442
1449
|
/** App instance ID. */
|
|
1443
1450
|
instanceId?: string | null;
|
|
@@ -1465,7 +1472,7 @@ interface EventMetadata$2 extends BaseEventMetadata$2 {
|
|
|
1465
1472
|
slug?: string;
|
|
1466
1473
|
/** ID of the entity associated with the event. */
|
|
1467
1474
|
entityId?: string;
|
|
1468
|
-
/** Event timestamp. */
|
|
1475
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
1469
1476
|
eventTime?: Date;
|
|
1470
1477
|
/**
|
|
1471
1478
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -1876,7 +1883,65 @@ interface BulkCancelEventOptions {
|
|
|
1876
1883
|
*/
|
|
1877
1884
|
timeZone?: string | null;
|
|
1878
1885
|
}
|
|
1886
|
+
interface ListEventsByContactIdOptions {
|
|
1887
|
+
/**
|
|
1888
|
+
* Local start date for which events are returned, in ISO-8601 format.
|
|
1889
|
+
* E.g, `2024-01-01T00:00:00`.
|
|
1890
|
+
*
|
|
1891
|
+
* Required, unless `cursorPaging` is provided.
|
|
1892
|
+
*/
|
|
1893
|
+
fromLocalDate?: string | null;
|
|
1894
|
+
/**
|
|
1895
|
+
* Local end date for which events are returned, in ISO-8601 format.
|
|
1896
|
+
* E.g, `2024-01-7T00:00:00`.
|
|
1897
|
+
*
|
|
1898
|
+
* Required, unless `cursorPaging` is provided.
|
|
1899
|
+
* Max: 1 year after `fromLocalDate`.
|
|
1900
|
+
*/
|
|
1901
|
+
toLocalDate?: string | null;
|
|
1902
|
+
/**
|
|
1903
|
+
* The time zone, in IANA time zone format.
|
|
1904
|
+
* Default is the Wix Business time zone.
|
|
1905
|
+
*/
|
|
1906
|
+
timeZone?: string | null;
|
|
1907
|
+
/** Optional Wix app ID to filter events by. */
|
|
1908
|
+
appId?: string | null;
|
|
1909
|
+
/** Optional cursor to the next events page. */
|
|
1910
|
+
cursorPaging?: CommonCursorPaging;
|
|
1911
|
+
}
|
|
1912
|
+
interface ListEventsByMemberIdOptions {
|
|
1913
|
+
/**
|
|
1914
|
+
* Local start date for which events are returned, in ISO-8601 format.
|
|
1915
|
+
* E.g, `2024-01-01T00:00:00`.
|
|
1916
|
+
*
|
|
1917
|
+
* Required, unless `cursorPaging` or `eventIds` are provided.
|
|
1918
|
+
*/
|
|
1919
|
+
fromLocalDate?: string | null;
|
|
1920
|
+
/**
|
|
1921
|
+
* Local end date for which events are returned, in ISO-8601 format.
|
|
1922
|
+
* E.g, `2024-01-7T00:00:00`.
|
|
1923
|
+
*
|
|
1924
|
+
* Required, unless `cursorPaging` or `eventIds` are provided.
|
|
1925
|
+
* Max: 1 year after `fromLocalDate`.
|
|
1926
|
+
*/
|
|
1927
|
+
toLocalDate?: string | null;
|
|
1928
|
+
/**
|
|
1929
|
+
* The time zone, in IANA time zone format.
|
|
1930
|
+
* Default is the Wix Business time zone.
|
|
1931
|
+
*/
|
|
1932
|
+
timeZone?: string | null;
|
|
1933
|
+
/** Optional Wix app ID to filter events by. */
|
|
1934
|
+
appId?: string | null;
|
|
1935
|
+
/** Optional cursor to the next events page. */
|
|
1936
|
+
cursorPaging?: CommonCursorPaging;
|
|
1937
|
+
/**
|
|
1938
|
+
* Optional event IDs to filter events by.
|
|
1939
|
+
* If provided, other filters are ignored.
|
|
1940
|
+
*/
|
|
1941
|
+
eventIds?: string[];
|
|
1942
|
+
}
|
|
1879
1943
|
|
|
1944
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
1880
1945
|
interface HttpClient {
|
|
1881
1946
|
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1882
1947
|
fetchWithAuth: typeof fetch;
|
|
@@ -1901,6 +1966,7 @@ type APIMetadata = {
|
|
|
1901
1966
|
entityFqdn?: string;
|
|
1902
1967
|
packageName?: string;
|
|
1903
1968
|
};
|
|
1969
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
1904
1970
|
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
1905
1971
|
__type: 'event-definition';
|
|
1906
1972
|
type: Type;
|
|
@@ -1909,6 +1975,8 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
|
1909
1975
|
__payload: Payload;
|
|
1910
1976
|
};
|
|
1911
1977
|
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
1978
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
1979
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
1912
1980
|
|
|
1913
1981
|
declare global {
|
|
1914
1982
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -1917,24 +1985,27 @@ declare global {
|
|
|
1917
1985
|
}
|
|
1918
1986
|
}
|
|
1919
1987
|
|
|
1920
|
-
declare
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
declare
|
|
1925
|
-
declare
|
|
1926
|
-
declare
|
|
1927
|
-
declare
|
|
1928
|
-
declare
|
|
1929
|
-
declare
|
|
1930
|
-
declare
|
|
1931
|
-
declare
|
|
1932
|
-
declare
|
|
1933
|
-
declare
|
|
1934
|
-
declare const
|
|
1935
|
-
declare const
|
|
1936
|
-
declare const
|
|
1937
|
-
declare const
|
|
1988
|
+
declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
1989
|
+
|
|
1990
|
+
declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1991
|
+
|
|
1992
|
+
declare const getEvent: ReturnType<typeof createRESTModule$2<typeof publicGetEvent>>;
|
|
1993
|
+
declare const listEvents: ReturnType<typeof createRESTModule$2<typeof publicListEvents>>;
|
|
1994
|
+
declare const queryEvents: ReturnType<typeof createRESTModule$2<typeof publicQueryEvents>>;
|
|
1995
|
+
declare const createEvent: ReturnType<typeof createRESTModule$2<typeof publicCreateEvent>>;
|
|
1996
|
+
declare const bulkCreateEvent: ReturnType<typeof createRESTModule$2<typeof publicBulkCreateEvent>>;
|
|
1997
|
+
declare const updateEvent: ReturnType<typeof createRESTModule$2<typeof publicUpdateEvent>>;
|
|
1998
|
+
declare const bulkUpdateEvent: ReturnType<typeof createRESTModule$2<typeof publicBulkUpdateEvent>>;
|
|
1999
|
+
declare const restoreEventDefaults: ReturnType<typeof createRESTModule$2<typeof publicRestoreEventDefaults>>;
|
|
2000
|
+
declare const splitRecurringEvent: ReturnType<typeof createRESTModule$2<typeof publicSplitRecurringEvent>>;
|
|
2001
|
+
declare const cancelEvent: ReturnType<typeof createRESTModule$2<typeof publicCancelEvent>>;
|
|
2002
|
+
declare const bulkCancelEvent: ReturnType<typeof createRESTModule$2<typeof publicBulkCancelEvent>>;
|
|
2003
|
+
declare const listEventsByContactId: ReturnType<typeof createRESTModule$2<typeof publicListEventsByContactId>>;
|
|
2004
|
+
declare const listEventsByMemberId: ReturnType<typeof createRESTModule$2<typeof publicListEventsByMemberId>>;
|
|
2005
|
+
declare const onEventCreated: ReturnType<typeof createEventModule$2<typeof publicOnEventCreated>>;
|
|
2006
|
+
declare const onEventUpdated: ReturnType<typeof createEventModule$2<typeof publicOnEventUpdated>>;
|
|
2007
|
+
declare const onEventRecurringSplit: ReturnType<typeof createEventModule$2<typeof publicOnEventRecurringSplit>>;
|
|
2008
|
+
declare const onEventCancelled: ReturnType<typeof createEventModule$2<typeof publicOnEventCancelled>>;
|
|
1938
2009
|
|
|
1939
2010
|
type index_d$2_ApplicationError = ApplicationError;
|
|
1940
2011
|
type index_d$2_BulkActionMetadata = BulkActionMetadata;
|
|
@@ -1986,10 +2057,14 @@ type index_d$2_GetEventRequest = GetEventRequest;
|
|
|
1986
2057
|
type index_d$2_GetEventResponse = GetEventResponse;
|
|
1987
2058
|
type index_d$2_GetEventResponseNonNullableFields = GetEventResponseNonNullableFields;
|
|
1988
2059
|
type index_d$2_ItemMetadata = ItemMetadata;
|
|
2060
|
+
type index_d$2_ListEventsByContactIdOptions = ListEventsByContactIdOptions;
|
|
1989
2061
|
type index_d$2_ListEventsByContactIdRequest = ListEventsByContactIdRequest;
|
|
1990
2062
|
type index_d$2_ListEventsByContactIdResponse = ListEventsByContactIdResponse;
|
|
2063
|
+
type index_d$2_ListEventsByContactIdResponseNonNullableFields = ListEventsByContactIdResponseNonNullableFields;
|
|
2064
|
+
type index_d$2_ListEventsByMemberIdOptions = ListEventsByMemberIdOptions;
|
|
1991
2065
|
type index_d$2_ListEventsByMemberIdRequest = ListEventsByMemberIdRequest;
|
|
1992
2066
|
type index_d$2_ListEventsByMemberIdResponse = ListEventsByMemberIdResponse;
|
|
2067
|
+
type index_d$2_ListEventsByMemberIdResponseNonNullableFields = ListEventsByMemberIdResponseNonNullableFields;
|
|
1993
2068
|
type index_d$2_ListEventsOptions = ListEventsOptions;
|
|
1994
2069
|
type index_d$2_ListEventsRequest = ListEventsRequest;
|
|
1995
2070
|
type index_d$2_ListEventsResponse = ListEventsResponse;
|
|
@@ -2037,6 +2112,8 @@ declare const index_d$2_cancelEvent: typeof cancelEvent;
|
|
|
2037
2112
|
declare const index_d$2_createEvent: typeof createEvent;
|
|
2038
2113
|
declare const index_d$2_getEvent: typeof getEvent;
|
|
2039
2114
|
declare const index_d$2_listEvents: typeof listEvents;
|
|
2115
|
+
declare const index_d$2_listEventsByContactId: typeof listEventsByContactId;
|
|
2116
|
+
declare const index_d$2_listEventsByMemberId: typeof listEventsByMemberId;
|
|
2040
2117
|
declare const index_d$2_onEventCancelled: typeof onEventCancelled;
|
|
2041
2118
|
declare const index_d$2_onEventCreated: typeof onEventCreated;
|
|
2042
2119
|
declare const index_d$2_onEventRecurringSplit: typeof onEventRecurringSplit;
|
|
@@ -2046,7 +2123,7 @@ declare const index_d$2_restoreEventDefaults: typeof restoreEventDefaults;
|
|
|
2046
2123
|
declare const index_d$2_splitRecurringEvent: typeof splitRecurringEvent;
|
|
2047
2124
|
declare const index_d$2_updateEvent: typeof updateEvent;
|
|
2048
2125
|
declare namespace index_d$2 {
|
|
2049
|
-
export { type ActionEvent$2 as ActionEvent, type Address$2 as Address, type AddressHint$2 as AddressHint, type index_d$2_ApplicationError as ApplicationError, type BaseEventMetadata$2 as BaseEventMetadata, type index_d$2_BulkActionMetadata as BulkActionMetadata, type index_d$2_BulkCancelEventOptions as BulkCancelEventOptions, type index_d$2_BulkCancelEventRequest as BulkCancelEventRequest, type index_d$2_BulkCancelEventResponse as BulkCancelEventResponse, type index_d$2_BulkCancelEventResponseNonNullableFields as BulkCancelEventResponseNonNullableFields, type index_d$2_BulkCreateEventOptions as BulkCreateEventOptions, type index_d$2_BulkCreateEventRequest as BulkCreateEventRequest, type index_d$2_BulkCreateEventResponse as BulkCreateEventResponse, type index_d$2_BulkCreateEventResponseNonNullableFields as BulkCreateEventResponseNonNullableFields, type index_d$2_BulkEventResult as BulkEventResult, type index_d$2_BulkUpdateEventOptions as BulkUpdateEventOptions, type index_d$2_BulkUpdateEventRequest as BulkUpdateEventRequest, type index_d$2_BulkUpdateEventRequestMaskedEvent as BulkUpdateEventRequestMaskedEvent, type index_d$2_BulkUpdateEventResponse as BulkUpdateEventResponse, type index_d$2_BulkUpdateEventResponseNonNullableFields as BulkUpdateEventResponseNonNullableFields, type BusinessSchedule$2 as BusinessSchedule, type index_d$2_CancelEventOptions as CancelEventOptions, type index_d$2_CancelEventRequest as CancelEventRequest, type index_d$2_CancelEventResponse as CancelEventResponse, type index_d$2_CancelEventResponseNonNullableFields as CancelEventResponseNonNullableFields, type Categories$2 as Categories, type ChangeContext$2 as ChangeContext, type ChangeContextPayloadOneOf$2 as ChangeContextPayloadOneOf, type index_d$2_CommonCursorPaging as CommonCursorPaging, type index_d$2_CommonCursorPagingMetadata as CommonCursorPagingMetadata, type index_d$2_CommonCursors as CommonCursors, type CommonIdentificationData$1 as CommonIdentificationData, type CommonIdentificationDataIdOneOf$1 as CommonIdentificationDataIdOneOf, type ConferencingDetails$1 as ConferencingDetails, type ConsentPolicy$2 as ConsentPolicy, type index_d$2_CreateEventOptions as CreateEventOptions, type index_d$2_CreateEventRequest as CreateEventRequest, type index_d$2_CreateEventResponse as CreateEventResponse, type index_d$2_CreateEventResponseNonNullableFields as CreateEventResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, index_d$2_Day as Day, DayOfWeek$2 as DayOfWeek, type index_d$2_DeleteTargetsRequest as DeleteTargetsRequest, type index_d$2_DeleteTargetsResponse as DeleteTargetsResponse, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$2 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type index_d$2_Event as Event, type index_d$2_EventCancelled as EventCancelled, type index_d$2_EventCancelledEnvelope as EventCancelledEnvelope, type index_d$2_EventCreatedEnvelope as EventCreatedEnvelope, type EventMetadata$2 as EventMetadata, type index_d$2_EventNonNullableFields as EventNonNullableFields, type index_d$2_EventRecurringSplitEnvelope as EventRecurringSplitEnvelope, type index_d$2_EventUpdatedEnvelope as EventUpdatedEnvelope, type index_d$2_EventUpdatedWithMetadata as EventUpdatedWithMetadata, type index_d$2_EventsQueryBuilder as EventsQueryBuilder, type index_d$2_EventsQueryResult as EventsQueryResult, type ExtendedFields$1 as ExtendedFields, index_d$2_Field as Field, index_d$2_Frequency as Frequency, type GeoCoordinates$2 as GeoCoordinates, type index_d$2_GetEventOptions as GetEventOptions, type index_d$2_GetEventRequest as GetEventRequest, type index_d$2_GetEventResponse as GetEventResponse, type index_d$2_GetEventResponseNonNullableFields as GetEventResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, IdentityType$1 as IdentityType, type index_d$2_ItemMetadata as ItemMetadata, type index_d$2_ListEventsByContactIdRequest as ListEventsByContactIdRequest, type index_d$2_ListEventsByContactIdResponse as ListEventsByContactIdResponse, type index_d$2_ListEventsByMemberIdRequest as ListEventsByMemberIdRequest, type index_d$2_ListEventsByMemberIdResponse as ListEventsByMemberIdResponse, type index_d$2_ListEventsOptions as ListEventsOptions, type index_d$2_ListEventsRequest as ListEventsRequest, type index_d$2_ListEventsResponse as ListEventsResponse, type index_d$2_ListEventsResponseNonNullableFields as ListEventsResponseNonNullableFields, type index_d$2_ListRecurringEventInstancesHistoryRequest as ListRecurringEventInstancesHistoryRequest, type index_d$2_ListRecurringEventInstancesHistoryResponse as ListRecurringEventInstancesHistoryResponse, type Locale$2 as Locale, type Location$1 as Location, LocationType$1 as LocationType, type index_d$2_MaskedEvent as MaskedEvent, type MessageEnvelope$2 as MessageEnvelope, type Multilingual$2 as Multilingual, type index_d$2_Participant as Participant, type ParticipantNotification$1 as ParticipantNotification, type index_d$2_Participants as Participants, index_d$2_ParticipantsStatus as ParticipantsStatus, type Permission$1 as Permission, PlacementType$2 as PlacementType, type Properties$2 as Properties, type PropertiesChange$2 as PropertiesChange, type index_d$2_QueryEventsOptions as QueryEventsOptions, type index_d$2_QueryEventsRequest as QueryEventsRequest, type index_d$2_QueryEventsResponse as QueryEventsResponse, type index_d$2_QueryEventsResponseNonNullableFields as QueryEventsResponseNonNullableFields, type index_d$2_RecurrenceRule as RecurrenceRule, index_d$2_RecurrenceType as RecurrenceType, type index_d$2_RecurringEventSplit as RecurringEventSplit, RequestedFields$1 as RequestedFields, ResolutionMethod$2 as ResolutionMethod, type index_d$2_Resource as Resource, type index_d$2_RestoreEventDefaultsOptions as RestoreEventDefaultsOptions, type index_d$2_RestoreEventDefaultsRequest as RestoreEventDefaultsRequest, type index_d$2_RestoreEventDefaultsResponse as RestoreEventDefaultsResponse, type index_d$2_RestoreEventDefaultsResponseNonNullableFields as RestoreEventDefaultsResponseNonNullableFields, type RestoreInfo$2 as RestoreInfo, Role$1 as Role, type SiteCloned$2 as SiteCloned, type SiteCreated$2 as SiteCreated, type SitePropertiesEvent$2 as SitePropertiesEvent, type SitePropertiesNotification$2 as SitePropertiesNotification, index_d$2_SortOrder as SortOrder, type index_d$2_Sorting as Sorting, type SpecialHourPeriod$2 as SpecialHourPeriod, type index_d$2_SplitRecurringEventOptions as SplitRecurringEventOptions, type index_d$2_SplitRecurringEventRequest as SplitRecurringEventRequest, type index_d$2_SplitRecurringEventResponse as SplitRecurringEventResponse, type index_d$2_SplitRecurringEventResponseNonNullableFields as SplitRecurringEventResponseNonNullableFields, Status$2 as Status, type SupportedLanguage$2 as SupportedLanguage, type TimePeriod$2 as TimePeriod, type Translation$2 as Translation, index_d$2_Transparency as Transparency, Type$1 as Type, type index_d$2_UpdateEvent as UpdateEvent, type index_d$2_UpdateEventOptions as UpdateEventOptions, type index_d$2_UpdateEventParticipantsRequest as UpdateEventParticipantsRequest, type index_d$2_UpdateEventParticipantsResponse as UpdateEventParticipantsResponse, type index_d$2_UpdateEventRequest as UpdateEventRequest, type index_d$2_UpdateEventResponse as UpdateEventResponse, type index_d$2_UpdateEventResponseNonNullableFields as UpdateEventResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType, type ZonedDate$1 as ZonedDate,
|
|
2126
|
+
export { type ActionEvent$2 as ActionEvent, type Address$2 as Address, type AddressHint$2 as AddressHint, type index_d$2_ApplicationError as ApplicationError, type BaseEventMetadata$2 as BaseEventMetadata, type index_d$2_BulkActionMetadata as BulkActionMetadata, type index_d$2_BulkCancelEventOptions as BulkCancelEventOptions, type index_d$2_BulkCancelEventRequest as BulkCancelEventRequest, type index_d$2_BulkCancelEventResponse as BulkCancelEventResponse, type index_d$2_BulkCancelEventResponseNonNullableFields as BulkCancelEventResponseNonNullableFields, type index_d$2_BulkCreateEventOptions as BulkCreateEventOptions, type index_d$2_BulkCreateEventRequest as BulkCreateEventRequest, type index_d$2_BulkCreateEventResponse as BulkCreateEventResponse, type index_d$2_BulkCreateEventResponseNonNullableFields as BulkCreateEventResponseNonNullableFields, type index_d$2_BulkEventResult as BulkEventResult, type index_d$2_BulkUpdateEventOptions as BulkUpdateEventOptions, type index_d$2_BulkUpdateEventRequest as BulkUpdateEventRequest, type index_d$2_BulkUpdateEventRequestMaskedEvent as BulkUpdateEventRequestMaskedEvent, type index_d$2_BulkUpdateEventResponse as BulkUpdateEventResponse, type index_d$2_BulkUpdateEventResponseNonNullableFields as BulkUpdateEventResponseNonNullableFields, type BusinessSchedule$2 as BusinessSchedule, type index_d$2_CancelEventOptions as CancelEventOptions, type index_d$2_CancelEventRequest as CancelEventRequest, type index_d$2_CancelEventResponse as CancelEventResponse, type index_d$2_CancelEventResponseNonNullableFields as CancelEventResponseNonNullableFields, type Categories$2 as Categories, type ChangeContext$2 as ChangeContext, type ChangeContextPayloadOneOf$2 as ChangeContextPayloadOneOf, type index_d$2_CommonCursorPaging as CommonCursorPaging, type index_d$2_CommonCursorPagingMetadata as CommonCursorPagingMetadata, type index_d$2_CommonCursors as CommonCursors, type CommonIdentificationData$1 as CommonIdentificationData, type CommonIdentificationDataIdOneOf$1 as CommonIdentificationDataIdOneOf, type ConferencingDetails$1 as ConferencingDetails, type ConsentPolicy$2 as ConsentPolicy, type index_d$2_CreateEventOptions as CreateEventOptions, type index_d$2_CreateEventRequest as CreateEventRequest, type index_d$2_CreateEventResponse as CreateEventResponse, type index_d$2_CreateEventResponseNonNullableFields as CreateEventResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, index_d$2_Day as Day, DayOfWeek$2 as DayOfWeek, type index_d$2_DeleteTargetsRequest as DeleteTargetsRequest, type index_d$2_DeleteTargetsResponse as DeleteTargetsResponse, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$2 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type index_d$2_Event as Event, type index_d$2_EventCancelled as EventCancelled, type index_d$2_EventCancelledEnvelope as EventCancelledEnvelope, type index_d$2_EventCreatedEnvelope as EventCreatedEnvelope, type EventMetadata$2 as EventMetadata, type index_d$2_EventNonNullableFields as EventNonNullableFields, type index_d$2_EventRecurringSplitEnvelope as EventRecurringSplitEnvelope, type index_d$2_EventUpdatedEnvelope as EventUpdatedEnvelope, type index_d$2_EventUpdatedWithMetadata as EventUpdatedWithMetadata, type index_d$2_EventsQueryBuilder as EventsQueryBuilder, type index_d$2_EventsQueryResult as EventsQueryResult, type ExtendedFields$1 as ExtendedFields, index_d$2_Field as Field, index_d$2_Frequency as Frequency, type GeoCoordinates$2 as GeoCoordinates, type index_d$2_GetEventOptions as GetEventOptions, type index_d$2_GetEventRequest as GetEventRequest, type index_d$2_GetEventResponse as GetEventResponse, type index_d$2_GetEventResponseNonNullableFields as GetEventResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, IdentityType$1 as IdentityType, type index_d$2_ItemMetadata as ItemMetadata, type index_d$2_ListEventsByContactIdOptions as ListEventsByContactIdOptions, type index_d$2_ListEventsByContactIdRequest as ListEventsByContactIdRequest, type index_d$2_ListEventsByContactIdResponse as ListEventsByContactIdResponse, type index_d$2_ListEventsByContactIdResponseNonNullableFields as ListEventsByContactIdResponseNonNullableFields, type index_d$2_ListEventsByMemberIdOptions as ListEventsByMemberIdOptions, type index_d$2_ListEventsByMemberIdRequest as ListEventsByMemberIdRequest, type index_d$2_ListEventsByMemberIdResponse as ListEventsByMemberIdResponse, type index_d$2_ListEventsByMemberIdResponseNonNullableFields as ListEventsByMemberIdResponseNonNullableFields, type index_d$2_ListEventsOptions as ListEventsOptions, type index_d$2_ListEventsRequest as ListEventsRequest, type index_d$2_ListEventsResponse as ListEventsResponse, type index_d$2_ListEventsResponseNonNullableFields as ListEventsResponseNonNullableFields, type index_d$2_ListRecurringEventInstancesHistoryRequest as ListRecurringEventInstancesHistoryRequest, type index_d$2_ListRecurringEventInstancesHistoryResponse as ListRecurringEventInstancesHistoryResponse, type Locale$2 as Locale, type Location$1 as Location, LocationType$1 as LocationType, type index_d$2_MaskedEvent as MaskedEvent, type MessageEnvelope$2 as MessageEnvelope, type Multilingual$2 as Multilingual, type index_d$2_Participant as Participant, type ParticipantNotification$1 as ParticipantNotification, type index_d$2_Participants as Participants, index_d$2_ParticipantsStatus as ParticipantsStatus, type Permission$1 as Permission, PlacementType$2 as PlacementType, type Properties$2 as Properties, type PropertiesChange$2 as PropertiesChange, type index_d$2_QueryEventsOptions as QueryEventsOptions, type index_d$2_QueryEventsRequest as QueryEventsRequest, type index_d$2_QueryEventsResponse as QueryEventsResponse, type index_d$2_QueryEventsResponseNonNullableFields as QueryEventsResponseNonNullableFields, type index_d$2_RecurrenceRule as RecurrenceRule, index_d$2_RecurrenceType as RecurrenceType, type index_d$2_RecurringEventSplit as RecurringEventSplit, RequestedFields$1 as RequestedFields, ResolutionMethod$2 as ResolutionMethod, type index_d$2_Resource as Resource, type index_d$2_RestoreEventDefaultsOptions as RestoreEventDefaultsOptions, type index_d$2_RestoreEventDefaultsRequest as RestoreEventDefaultsRequest, type index_d$2_RestoreEventDefaultsResponse as RestoreEventDefaultsResponse, type index_d$2_RestoreEventDefaultsResponseNonNullableFields as RestoreEventDefaultsResponseNonNullableFields, type RestoreInfo$2 as RestoreInfo, Role$1 as Role, type SiteCloned$2 as SiteCloned, type SiteCreated$2 as SiteCreated, type SitePropertiesEvent$2 as SitePropertiesEvent, type SitePropertiesNotification$2 as SitePropertiesNotification, index_d$2_SortOrder as SortOrder, type index_d$2_Sorting as Sorting, type SpecialHourPeriod$2 as SpecialHourPeriod, type index_d$2_SplitRecurringEventOptions as SplitRecurringEventOptions, type index_d$2_SplitRecurringEventRequest as SplitRecurringEventRequest, type index_d$2_SplitRecurringEventResponse as SplitRecurringEventResponse, type index_d$2_SplitRecurringEventResponseNonNullableFields as SplitRecurringEventResponseNonNullableFields, Status$2 as Status, type SupportedLanguage$2 as SupportedLanguage, type TimePeriod$2 as TimePeriod, type Translation$2 as Translation, index_d$2_Transparency as Transparency, Type$1 as Type, type index_d$2_UpdateEvent as UpdateEvent, type index_d$2_UpdateEventOptions as UpdateEventOptions, type index_d$2_UpdateEventParticipantsRequest as UpdateEventParticipantsRequest, type index_d$2_UpdateEventParticipantsResponse as UpdateEventParticipantsResponse, type index_d$2_UpdateEventRequest as UpdateEventRequest, type index_d$2_UpdateEventResponse as UpdateEventResponse, type index_d$2_UpdateEventResponseNonNullableFields as UpdateEventResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType, type ZonedDate$1 as ZonedDate, index_d$2_bulkCancelEvent as bulkCancelEvent, index_d$2_bulkCreateEvent as bulkCreateEvent, index_d$2_bulkUpdateEvent as bulkUpdateEvent, index_d$2_cancelEvent as cancelEvent, index_d$2_createEvent as createEvent, index_d$2_getEvent as getEvent, index_d$2_listEvents as listEvents, index_d$2_listEventsByContactId as listEventsByContactId, index_d$2_listEventsByMemberId as listEventsByMemberId, index_d$2_onEventCancelled as onEventCancelled, index_d$2_onEventCreated as onEventCreated, index_d$2_onEventRecurringSplit as onEventRecurringSplit, index_d$2_onEventUpdated as onEventUpdated, index_d$2_queryEvents as queryEvents, index_d$2_restoreEventDefaults as restoreEventDefaults, index_d$2_splitRecurringEvent as splitRecurringEvent, index_d$2_updateEvent as updateEvent };
|
|
2050
2127
|
}
|
|
2051
2128
|
|
|
2052
2129
|
interface Schedule {
|
|
@@ -2150,6 +2227,7 @@ interface Location {
|
|
|
2150
2227
|
* The location type.
|
|
2151
2228
|
* The possible values are:
|
|
2152
2229
|
* - `"BUSINESS"` event takes place at the business location.
|
|
2230
|
+
* - `"CUSTOMER"` event takes place at the customer location.
|
|
2153
2231
|
* - `"CUSTOM"` event takes place at the custom location.
|
|
2154
2232
|
*/
|
|
2155
2233
|
type?: LocationType;
|
|
@@ -2966,7 +3044,7 @@ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
|
|
|
2966
3044
|
slug?: string;
|
|
2967
3045
|
/** ID of the entity associated with the event. */
|
|
2968
3046
|
entityId?: string;
|
|
2969
|
-
/** Event timestamp. */
|
|
3047
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2970
3048
|
eventTime?: Date;
|
|
2971
3049
|
/**
|
|
2972
3050
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -3118,7 +3196,7 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
|
|
|
3118
3196
|
slug?: string;
|
|
3119
3197
|
/** ID of the entity associated with the event. */
|
|
3120
3198
|
entityId?: string;
|
|
3121
|
-
/** Event timestamp. */
|
|
3199
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
3122
3200
|
eventTime?: Date;
|
|
3123
3201
|
/**
|
|
3124
3202
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -3301,19 +3379,20 @@ interface CancelScheduleOptions {
|
|
|
3301
3379
|
participantNotification?: ParticipantNotification;
|
|
3302
3380
|
}
|
|
3303
3381
|
|
|
3304
|
-
declare
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
declare
|
|
3309
|
-
declare
|
|
3310
|
-
declare
|
|
3311
|
-
declare
|
|
3312
|
-
declare
|
|
3313
|
-
declare const
|
|
3314
|
-
declare const
|
|
3315
|
-
declare const
|
|
3316
|
-
declare const
|
|
3382
|
+
declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
3383
|
+
|
|
3384
|
+
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3385
|
+
|
|
3386
|
+
declare const getSchedule: ReturnType<typeof createRESTModule$1<typeof publicGetSchedule>>;
|
|
3387
|
+
declare const querySchedules: ReturnType<typeof createRESTModule$1<typeof publicQuerySchedules>>;
|
|
3388
|
+
declare const createSchedule: ReturnType<typeof createRESTModule$1<typeof publicCreateSchedule>>;
|
|
3389
|
+
declare const updateSchedule: ReturnType<typeof createRESTModule$1<typeof publicUpdateSchedule>>;
|
|
3390
|
+
declare const cloneSchedule: ReturnType<typeof createRESTModule$1<typeof publicCloneSchedule>>;
|
|
3391
|
+
declare const cancelSchedule: ReturnType<typeof createRESTModule$1<typeof publicCancelSchedule>>;
|
|
3392
|
+
declare const onScheduleCreated: ReturnType<typeof createEventModule$1<typeof publicOnScheduleCreated>>;
|
|
3393
|
+
declare const onScheduleUpdated: ReturnType<typeof createEventModule$1<typeof publicOnScheduleUpdated>>;
|
|
3394
|
+
declare const onScheduleCloned: ReturnType<typeof createEventModule$1<typeof publicOnScheduleCloned>>;
|
|
3395
|
+
declare const onScheduleCancelled: ReturnType<typeof createEventModule$1<typeof publicOnScheduleCancelled>>;
|
|
3317
3396
|
|
|
3318
3397
|
type index_d$1_Asset = Asset;
|
|
3319
3398
|
type index_d$1_CancelScheduleOptions = CancelScheduleOptions;
|
|
@@ -3413,7 +3492,7 @@ declare const index_d$1_onScheduleUpdated: typeof onScheduleUpdated;
|
|
|
3413
3492
|
declare const index_d$1_querySchedules: typeof querySchedules;
|
|
3414
3493
|
declare const index_d$1_updateSchedule: typeof updateSchedule;
|
|
3415
3494
|
declare namespace index_d$1 {
|
|
3416
|
-
export { type ActionEvent$1 as ActionEvent, type Address$1 as Address, type AddressHint$1 as AddressHint, type index_d$1_Asset as Asset, type BaseEventMetadata$1 as BaseEventMetadata, type BusinessSchedule$1 as BusinessSchedule, type index_d$1_CancelScheduleOptions as CancelScheduleOptions, type index_d$1_CancelScheduleRequest as CancelScheduleRequest, type index_d$1_CancelScheduleResponse as CancelScheduleResponse, type index_d$1_CancelScheduleResponseNonNullableFields as CancelScheduleResponseNonNullableFields, type Categories$1 as Categories, type ChangeContext$1 as ChangeContext, type ChangeContextPayloadOneOf$1 as ChangeContextPayloadOneOf, type index_d$1_CloneScheduleOptions as CloneScheduleOptions, type index_d$1_CloneScheduleRequest as CloneScheduleRequest, type index_d$1_CloneScheduleResponse as CloneScheduleResponse, type index_d$1_CloneScheduleResponseNonNullableFields as CloneScheduleResponseNonNullableFields, type index_d$1_CommonIdentificationData as CommonIdentificationData, type index_d$1_CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOf, type index_d$1_ConferencingDetails as ConferencingDetails, type ConsentPolicy$1 as ConsentPolicy, type index_d$1_CreateScheduleOptions as CreateScheduleOptions, type index_d$1_CreateScheduleRequest as CreateScheduleRequest, type index_d$1_CreateScheduleResponse as CreateScheduleResponse, type index_d$1_CreateScheduleResponseNonNullableFields as CreateScheduleResponseNonNullableFields, type index_d$1_CursorPaging as CursorPaging, type index_d$1_CursorPagingMetadata as CursorPagingMetadata, type index_d$1_CursorQuery as CursorQuery, type index_d$1_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d$1_Cursors as Cursors, DayOfWeek$1 as DayOfWeek, type index_d$1_DeleteContext as DeleteContext, index_d$1_DeleteStatus as DeleteStatus, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_ExtendedFields as ExtendedFields, type GeoCoordinates$1 as GeoCoordinates, type index_d$1_GetScheduleOptions as GetScheduleOptions, type index_d$1_GetScheduleRequest as GetScheduleRequest, type index_d$1_GetScheduleResponse as GetScheduleResponse, type index_d$1_GetScheduleResponseNonNullableFields as GetScheduleResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, index_d$1_IdentityType as IdentityType, type Locale$1 as Locale, type index_d$1_Location as Location, index_d$1_LocationType as LocationType, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d$1_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, type Multilingual$1 as Multilingual, index_d$1_Namespace as Namespace, type index_d$1_NamespaceChanged as NamespaceChanged, type index_d$1_ParticipantNotification as ParticipantNotification, type index_d$1_Permission as Permission, PlacementType$1 as PlacementType, type Properties$1 as Properties, type PropertiesChange$1 as PropertiesChange, type index_d$1_QuerySchedulesOptions as QuerySchedulesOptions, type index_d$1_QuerySchedulesRequest as QuerySchedulesRequest, type index_d$1_QuerySchedulesResponse as QuerySchedulesResponse, type index_d$1_QuerySchedulesResponseNonNullableFields as QuerySchedulesResponseNonNullableFields, index_d$1_RequestedFields as RequestedFields, ResolutionMethod$1 as ResolutionMethod, type RestoreInfo$1 as RestoreInfo, index_d$1_Role as Role, type index_d$1_Schedule as Schedule, type index_d$1_ScheduleCancelled as ScheduleCancelled, type index_d$1_ScheduleCancelledEnvelope as ScheduleCancelledEnvelope, type index_d$1_ScheduleCloned as ScheduleCloned, type index_d$1_ScheduleClonedEnvelope as ScheduleClonedEnvelope, type index_d$1_ScheduleCreatedEnvelope as ScheduleCreatedEnvelope, type index_d$1_ScheduleNonNullableFields as ScheduleNonNullableFields, type index_d$1_ScheduleUpdatedEnvelope as ScheduleUpdatedEnvelope, type index_d$1_ScheduleUpdatedWithMetadata as ScheduleUpdatedWithMetadata, type index_d$1_SchedulesQueryBuilder as SchedulesQueryBuilder, type index_d$1_SchedulesQueryResult as SchedulesQueryResult, type index_d$1_ServiceProvisioned as ServiceProvisioned, type index_d$1_ServiceRemoved as ServiceRemoved, type SiteCloned$1 as SiteCloned, type SiteCreated$1 as SiteCreated, index_d$1_SiteCreatedContext as SiteCreatedContext, type index_d$1_SiteDeleted as SiteDeleted, type index_d$1_SiteHardDeleted as SiteHardDeleted, type index_d$1_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d$1_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type SitePropertiesEvent$1 as SitePropertiesEvent, type SitePropertiesNotification$1 as SitePropertiesNotification, type index_d$1_SitePublished as SitePublished, type index_d$1_SiteRenamed as SiteRenamed, type index_d$1_SiteTransferred as SiteTransferred, type index_d$1_SiteUndeleted as SiteUndeleted, type index_d$1_SiteUnpublished as SiteUnpublished, type SpecialHourPeriod$1 as SpecialHourPeriod, index_d$1_State as State, Status$1 as Status, type index_d$1_StudioAssigned as StudioAssigned, type index_d$1_StudioUnassigned as StudioUnassigned, type SupportedLanguage$1 as SupportedLanguage, type TimePeriod$1 as TimePeriod, type Translation$1 as Translation, index_d$1_Trigger as Trigger, index_d$1_Type as Type, type index_d$1_UpdateSchedule as UpdateSchedule, type index_d$1_UpdateScheduleOptions as UpdateScheduleOptions, type index_d$1_UpdateScheduleRequest as UpdateScheduleRequest, type index_d$1_UpdateScheduleResponse as UpdateScheduleResponse, type index_d$1_UpdateScheduleResponseNonNullableFields as UpdateScheduleResponseNonNullableFields, type index_d$1_V4SiteCreated as V4SiteCreated, WebhookIdentityType$1 as WebhookIdentityType,
|
|
3495
|
+
export { type ActionEvent$1 as ActionEvent, type Address$1 as Address, type AddressHint$1 as AddressHint, type index_d$1_Asset as Asset, type BaseEventMetadata$1 as BaseEventMetadata, type BusinessSchedule$1 as BusinessSchedule, type index_d$1_CancelScheduleOptions as CancelScheduleOptions, type index_d$1_CancelScheduleRequest as CancelScheduleRequest, type index_d$1_CancelScheduleResponse as CancelScheduleResponse, type index_d$1_CancelScheduleResponseNonNullableFields as CancelScheduleResponseNonNullableFields, type Categories$1 as Categories, type ChangeContext$1 as ChangeContext, type ChangeContextPayloadOneOf$1 as ChangeContextPayloadOneOf, type index_d$1_CloneScheduleOptions as CloneScheduleOptions, type index_d$1_CloneScheduleRequest as CloneScheduleRequest, type index_d$1_CloneScheduleResponse as CloneScheduleResponse, type index_d$1_CloneScheduleResponseNonNullableFields as CloneScheduleResponseNonNullableFields, type index_d$1_CommonIdentificationData as CommonIdentificationData, type index_d$1_CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOf, type index_d$1_ConferencingDetails as ConferencingDetails, type ConsentPolicy$1 as ConsentPolicy, type index_d$1_CreateScheduleOptions as CreateScheduleOptions, type index_d$1_CreateScheduleRequest as CreateScheduleRequest, type index_d$1_CreateScheduleResponse as CreateScheduleResponse, type index_d$1_CreateScheduleResponseNonNullableFields as CreateScheduleResponseNonNullableFields, type index_d$1_CursorPaging as CursorPaging, type index_d$1_CursorPagingMetadata as CursorPagingMetadata, type index_d$1_CursorQuery as CursorQuery, type index_d$1_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d$1_Cursors as Cursors, DayOfWeek$1 as DayOfWeek, type index_d$1_DeleteContext as DeleteContext, index_d$1_DeleteStatus as DeleteStatus, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_ExtendedFields as ExtendedFields, type GeoCoordinates$1 as GeoCoordinates, type index_d$1_GetScheduleOptions as GetScheduleOptions, type index_d$1_GetScheduleRequest as GetScheduleRequest, type index_d$1_GetScheduleResponse as GetScheduleResponse, type index_d$1_GetScheduleResponseNonNullableFields as GetScheduleResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, index_d$1_IdentityType as IdentityType, type Locale$1 as Locale, type index_d$1_Location as Location, index_d$1_LocationType as LocationType, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d$1_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, type Multilingual$1 as Multilingual, index_d$1_Namespace as Namespace, type index_d$1_NamespaceChanged as NamespaceChanged, type index_d$1_ParticipantNotification as ParticipantNotification, type index_d$1_Permission as Permission, PlacementType$1 as PlacementType, type Properties$1 as Properties, type PropertiesChange$1 as PropertiesChange, type index_d$1_QuerySchedulesOptions as QuerySchedulesOptions, type index_d$1_QuerySchedulesRequest as QuerySchedulesRequest, type index_d$1_QuerySchedulesResponse as QuerySchedulesResponse, type index_d$1_QuerySchedulesResponseNonNullableFields as QuerySchedulesResponseNonNullableFields, index_d$1_RequestedFields as RequestedFields, ResolutionMethod$1 as ResolutionMethod, type RestoreInfo$1 as RestoreInfo, index_d$1_Role as Role, type index_d$1_Schedule as Schedule, type index_d$1_ScheduleCancelled as ScheduleCancelled, type index_d$1_ScheduleCancelledEnvelope as ScheduleCancelledEnvelope, type index_d$1_ScheduleCloned as ScheduleCloned, type index_d$1_ScheduleClonedEnvelope as ScheduleClonedEnvelope, type index_d$1_ScheduleCreatedEnvelope as ScheduleCreatedEnvelope, type index_d$1_ScheduleNonNullableFields as ScheduleNonNullableFields, type index_d$1_ScheduleUpdatedEnvelope as ScheduleUpdatedEnvelope, type index_d$1_ScheduleUpdatedWithMetadata as ScheduleUpdatedWithMetadata, type index_d$1_SchedulesQueryBuilder as SchedulesQueryBuilder, type index_d$1_SchedulesQueryResult as SchedulesQueryResult, type index_d$1_ServiceProvisioned as ServiceProvisioned, type index_d$1_ServiceRemoved as ServiceRemoved, type SiteCloned$1 as SiteCloned, type SiteCreated$1 as SiteCreated, index_d$1_SiteCreatedContext as SiteCreatedContext, type index_d$1_SiteDeleted as SiteDeleted, type index_d$1_SiteHardDeleted as SiteHardDeleted, type index_d$1_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d$1_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type SitePropertiesEvent$1 as SitePropertiesEvent, type SitePropertiesNotification$1 as SitePropertiesNotification, type index_d$1_SitePublished as SitePublished, type index_d$1_SiteRenamed as SiteRenamed, type index_d$1_SiteTransferred as SiteTransferred, type index_d$1_SiteUndeleted as SiteUndeleted, type index_d$1_SiteUnpublished as SiteUnpublished, type SpecialHourPeriod$1 as SpecialHourPeriod, index_d$1_State as State, Status$1 as Status, type index_d$1_StudioAssigned as StudioAssigned, type index_d$1_StudioUnassigned as StudioUnassigned, type SupportedLanguage$1 as SupportedLanguage, type TimePeriod$1 as TimePeriod, type Translation$1 as Translation, index_d$1_Trigger as Trigger, index_d$1_Type as Type, type index_d$1_UpdateSchedule as UpdateSchedule, type index_d$1_UpdateScheduleOptions as UpdateScheduleOptions, type index_d$1_UpdateScheduleRequest as UpdateScheduleRequest, type index_d$1_UpdateScheduleResponse as UpdateScheduleResponse, type index_d$1_UpdateScheduleResponseNonNullableFields as UpdateScheduleResponseNonNullableFields, type index_d$1_V4SiteCreated as V4SiteCreated, WebhookIdentityType$1 as WebhookIdentityType, index_d$1_cancelSchedule as cancelSchedule, index_d$1_cloneSchedule as cloneSchedule, index_d$1_createSchedule as createSchedule, index_d$1_getSchedule as getSchedule, index_d$1_onScheduleCancelled as onScheduleCancelled, index_d$1_onScheduleCloned as onScheduleCloned, index_d$1_onScheduleCreated as onScheduleCreated, index_d$1_onScheduleUpdated as onScheduleUpdated, index_d$1_querySchedules as querySchedules, index_d$1_updateSchedule as updateSchedule };
|
|
3417
3496
|
}
|
|
3418
3497
|
|
|
3419
3498
|
interface ScheduleTimeFrame {
|
|
@@ -3963,12 +4042,13 @@ interface ListScheduleTimeFramesOptions {
|
|
|
3963
4042
|
timeZone?: string | null;
|
|
3964
4043
|
}
|
|
3965
4044
|
|
|
3966
|
-
declare
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
declare
|
|
3971
|
-
declare const
|
|
4045
|
+
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
4046
|
+
|
|
4047
|
+
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
4048
|
+
|
|
4049
|
+
declare const getScheduleTimeFrame: ReturnType<typeof createRESTModule<typeof publicGetScheduleTimeFrame>>;
|
|
4050
|
+
declare const listScheduleTimeFrames: ReturnType<typeof createRESTModule<typeof publicListScheduleTimeFrames>>;
|
|
4051
|
+
declare const onScheduleTimeFrameUpdated: ReturnType<typeof createEventModule<typeof publicOnScheduleTimeFrameUpdated>>;
|
|
3972
4052
|
|
|
3973
4053
|
type index_d_ActionEvent = ActionEvent;
|
|
3974
4054
|
type index_d_Address = Address;
|
|
@@ -4026,12 +4106,11 @@ type index_d_Translation = Translation;
|
|
|
4026
4106
|
type index_d_WebhookIdentityType = WebhookIdentityType;
|
|
4027
4107
|
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
|
4028
4108
|
type index_d_ZonedDate = ZonedDate;
|
|
4029
|
-
declare const index_d___metadata: typeof __metadata;
|
|
4030
4109
|
declare const index_d_getScheduleTimeFrame: typeof getScheduleTimeFrame;
|
|
4031
4110
|
declare const index_d_listScheduleTimeFrames: typeof listScheduleTimeFrames;
|
|
4032
4111
|
declare const index_d_onScheduleTimeFrameUpdated: typeof onScheduleTimeFrameUpdated;
|
|
4033
4112
|
declare namespace index_d {
|
|
4034
|
-
export { type index_d_ActionEvent as ActionEvent, type index_d_Address as Address, type index_d_AddressHint as AddressHint, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BusinessSchedule as BusinessSchedule, type index_d_Categories as Categories, type index_d_ChangeContext as ChangeContext, type index_d_ChangeContextPayloadOneOf as ChangeContextPayloadOneOf, type index_d_ConsentPolicy as ConsentPolicy, index_d_DayOfWeek as DayOfWeek, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GeoCoordinates as GeoCoordinates, type index_d_GetScheduleTimeFrameOptions as GetScheduleTimeFrameOptions, type index_d_GetScheduleTimeFrameRequest as GetScheduleTimeFrameRequest, type index_d_GetScheduleTimeFrameResponse as GetScheduleTimeFrameResponse, type index_d_GetScheduleTimeFrameResponseNonNullableFields as GetScheduleTimeFrameResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ListScheduleTimeFramesOptions as ListScheduleTimeFramesOptions, type index_d_ListScheduleTimeFramesRequest as ListScheduleTimeFramesRequest, type index_d_ListScheduleTimeFramesResponse as ListScheduleTimeFramesResponse, type index_d_ListScheduleTimeFramesResponseNonNullableFields as ListScheduleTimeFramesResponseNonNullableFields, type index_d_Locale as Locale, type index_d_MessageEnvelope as MessageEnvelope, type index_d_Multilingual as Multilingual, index_d_PlacementType as PlacementType, type index_d_Properties as Properties, type index_d_PropertiesChange as PropertiesChange, index_d_ResolutionMethod as ResolutionMethod, type index_d_RestoreInfo as RestoreInfo, type index_d_ScheduleTimeFrame as ScheduleTimeFrame, type index_d_ScheduleTimeFrameNonNullableFields as ScheduleTimeFrameNonNullableFields, type index_d_ScheduleTimeFrameUpdatedEnvelope as ScheduleTimeFrameUpdatedEnvelope, type index_d_ScheduleTimeFrameUpdatedWithMetadata as ScheduleTimeFrameUpdatedWithMetadata, type index_d_SiteCloned as SiteCloned, type index_d_SiteCreated as SiteCreated, type index_d_SitePropertiesEvent as SitePropertiesEvent, type index_d_SitePropertiesNotification as SitePropertiesNotification, type index_d_SpecialHourPeriod as SpecialHourPeriod, index_d_Status as Status, type index_d_SupportedLanguage as SupportedLanguage, type index_d_TimePeriod as TimePeriod, type index_d_Translation as Translation, index_d_WebhookIdentityType as WebhookIdentityType, type index_d_ZonedDate as ZonedDate,
|
|
4113
|
+
export { type index_d_ActionEvent as ActionEvent, type index_d_Address as Address, type index_d_AddressHint as AddressHint, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BusinessSchedule as BusinessSchedule, type index_d_Categories as Categories, type index_d_ChangeContext as ChangeContext, type index_d_ChangeContextPayloadOneOf as ChangeContextPayloadOneOf, type index_d_ConsentPolicy as ConsentPolicy, index_d_DayOfWeek as DayOfWeek, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GeoCoordinates as GeoCoordinates, type index_d_GetScheduleTimeFrameOptions as GetScheduleTimeFrameOptions, type index_d_GetScheduleTimeFrameRequest as GetScheduleTimeFrameRequest, type index_d_GetScheduleTimeFrameResponse as GetScheduleTimeFrameResponse, type index_d_GetScheduleTimeFrameResponseNonNullableFields as GetScheduleTimeFrameResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ListScheduleTimeFramesOptions as ListScheduleTimeFramesOptions, type index_d_ListScheduleTimeFramesRequest as ListScheduleTimeFramesRequest, type index_d_ListScheduleTimeFramesResponse as ListScheduleTimeFramesResponse, type index_d_ListScheduleTimeFramesResponseNonNullableFields as ListScheduleTimeFramesResponseNonNullableFields, type index_d_Locale as Locale, type index_d_MessageEnvelope as MessageEnvelope, type index_d_Multilingual as Multilingual, index_d_PlacementType as PlacementType, type index_d_Properties as Properties, type index_d_PropertiesChange as PropertiesChange, index_d_ResolutionMethod as ResolutionMethod, type index_d_RestoreInfo as RestoreInfo, type index_d_ScheduleTimeFrame as ScheduleTimeFrame, type index_d_ScheduleTimeFrameNonNullableFields as ScheduleTimeFrameNonNullableFields, type index_d_ScheduleTimeFrameUpdatedEnvelope as ScheduleTimeFrameUpdatedEnvelope, type index_d_ScheduleTimeFrameUpdatedWithMetadata as ScheduleTimeFrameUpdatedWithMetadata, type index_d_SiteCloned as SiteCloned, type index_d_SiteCreated as SiteCreated, type index_d_SitePropertiesEvent as SitePropertiesEvent, type index_d_SitePropertiesNotification as SitePropertiesNotification, type index_d_SpecialHourPeriod as SpecialHourPeriod, index_d_Status as Status, type index_d_SupportedLanguage as SupportedLanguage, type index_d_TimePeriod as TimePeriod, type index_d_Translation as Translation, index_d_WebhookIdentityType as WebhookIdentityType, type index_d_ZonedDate as ZonedDate, index_d_getScheduleTimeFrame as getScheduleTimeFrame, index_d_listScheduleTimeFrames as listScheduleTimeFrames, index_d_onScheduleTimeFrameUpdated as onScheduleTimeFrameUpdated };
|
|
4035
4114
|
}
|
|
4036
4115
|
|
|
4037
4116
|
export { index_d$2 as events, index_d as scheduleTimeFrames, index_d$1 as schedules };
|
|
@@ -279,6 +279,7 @@ interface Location$3 {
|
|
|
279
279
|
* The location type.
|
|
280
280
|
* The possible values are:
|
|
281
281
|
* - `"BUSINESS"` event takes place at the business location.
|
|
282
|
+
* - `"CUSTOMER"` event takes place at the customer location.
|
|
282
283
|
* - `"CUSTOM"` event takes place at the custom location.
|
|
283
284
|
*/
|
|
284
285
|
type?: LocationType$3;
|
|
@@ -790,6 +791,122 @@ interface BulkCancelEventResponse$1 {
|
|
|
790
791
|
/** Total successes and failures. */
|
|
791
792
|
bulkActionMetadata?: BulkActionMetadata$1;
|
|
792
793
|
}
|
|
794
|
+
interface ListEventsByContactIdRequest$1 {
|
|
795
|
+
/**
|
|
796
|
+
* The ID of the contact participating in the events.
|
|
797
|
+
* Required, unless `cursorPaging` is provided.
|
|
798
|
+
*/
|
|
799
|
+
contactId: string | null;
|
|
800
|
+
/**
|
|
801
|
+
* Local start date for which events are returned, in ISO-8601 format.
|
|
802
|
+
* E.g, `2024-01-01T00:00:00`.
|
|
803
|
+
*
|
|
804
|
+
* Required, unless `cursorPaging` is provided.
|
|
805
|
+
*/
|
|
806
|
+
fromLocalDate?: string | null;
|
|
807
|
+
/**
|
|
808
|
+
* Local end date for which events are returned, in ISO-8601 format.
|
|
809
|
+
* E.g, `2024-01-7T00:00:00`.
|
|
810
|
+
*
|
|
811
|
+
* Required, unless `cursorPaging` is provided.
|
|
812
|
+
* Max: 1 year after `fromLocalDate`.
|
|
813
|
+
*/
|
|
814
|
+
toLocalDate?: string | null;
|
|
815
|
+
/**
|
|
816
|
+
* The time zone, in IANA time zone format.
|
|
817
|
+
* Default is the Wix Business time zone.
|
|
818
|
+
*/
|
|
819
|
+
timeZone?: string | null;
|
|
820
|
+
/** Optional Wix app ID to filter events by. */
|
|
821
|
+
appId?: string | null;
|
|
822
|
+
/** Optional cursor to the next events page. */
|
|
823
|
+
cursorPaging?: CommonCursorPaging$1;
|
|
824
|
+
}
|
|
825
|
+
/** TODO Diverge */
|
|
826
|
+
interface CommonCursorPaging$1 {
|
|
827
|
+
/**
|
|
828
|
+
* Number of events to return.
|
|
829
|
+
* Defaults to `50`. Maximum `100`.
|
|
830
|
+
*/
|
|
831
|
+
limit?: number | null;
|
|
832
|
+
/**
|
|
833
|
+
* Pointer to the next or previous page in the list of results.
|
|
834
|
+
*
|
|
835
|
+
* You can get the relevant cursor token
|
|
836
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
837
|
+
* Not relevant for the first request.
|
|
838
|
+
*/
|
|
839
|
+
cursor?: string | null;
|
|
840
|
+
}
|
|
841
|
+
interface ListEventsByContactIdResponse$1 {
|
|
842
|
+
/** The participant events. */
|
|
843
|
+
events?: Event$1[];
|
|
844
|
+
/** Paging metadata. */
|
|
845
|
+
pagingMetadata?: CommonCursorPagingMetadata$1;
|
|
846
|
+
}
|
|
847
|
+
/** TODO Diverge */
|
|
848
|
+
interface CommonCursorPagingMetadata$1 {
|
|
849
|
+
/** Number of items returned in the response. */
|
|
850
|
+
count?: number | null;
|
|
851
|
+
/** Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
|
|
852
|
+
cursors?: CommonCursors$1;
|
|
853
|
+
/**
|
|
854
|
+
* Indicates if there are more results after the current page.
|
|
855
|
+
* If `true`, another page of results can be retrieved.
|
|
856
|
+
* If `false`, this is the last page.
|
|
857
|
+
*/
|
|
858
|
+
hasNext?: boolean | null;
|
|
859
|
+
}
|
|
860
|
+
interface CommonCursors$1 {
|
|
861
|
+
/** Cursor pointing to next page in the list of results. */
|
|
862
|
+
next?: string | null;
|
|
863
|
+
}
|
|
864
|
+
interface ListEventsByMemberIdRequest$1 {
|
|
865
|
+
/**
|
|
866
|
+
* The ID of the member participating in the events.
|
|
867
|
+
*
|
|
868
|
+
* Can be `me` for the currently logged-in member ID.
|
|
869
|
+
* To retrieve other member events the `CALENDAR.EVENT_READ_PI` permission is required.
|
|
870
|
+
*
|
|
871
|
+
* Required, unless `cursorPaging` is provided.
|
|
872
|
+
*/
|
|
873
|
+
memberId: string | null;
|
|
874
|
+
/**
|
|
875
|
+
* Local start date for which events are returned, in ISO-8601 format.
|
|
876
|
+
* E.g, `2024-01-01T00:00:00`.
|
|
877
|
+
*
|
|
878
|
+
* Required, unless `cursorPaging` or `eventIds` are provided.
|
|
879
|
+
*/
|
|
880
|
+
fromLocalDate?: string | null;
|
|
881
|
+
/**
|
|
882
|
+
* Local end date for which events are returned, in ISO-8601 format.
|
|
883
|
+
* E.g, `2024-01-7T00:00:00`.
|
|
884
|
+
*
|
|
885
|
+
* Required, unless `cursorPaging` or `eventIds` are provided.
|
|
886
|
+
* Max: 1 year after `fromLocalDate`.
|
|
887
|
+
*/
|
|
888
|
+
toLocalDate?: string | null;
|
|
889
|
+
/**
|
|
890
|
+
* The time zone, in IANA time zone format.
|
|
891
|
+
* Default is the Wix Business time zone.
|
|
892
|
+
*/
|
|
893
|
+
timeZone?: string | null;
|
|
894
|
+
/** Optional Wix app ID to filter events by. */
|
|
895
|
+
appId?: string | null;
|
|
896
|
+
/** Optional cursor to the next events page. */
|
|
897
|
+
cursorPaging?: CommonCursorPaging$1;
|
|
898
|
+
/**
|
|
899
|
+
* Optional event IDs to filter events by.
|
|
900
|
+
* If provided, other filters are ignored.
|
|
901
|
+
*/
|
|
902
|
+
eventIds?: string[];
|
|
903
|
+
}
|
|
904
|
+
interface ListEventsByMemberIdResponse$1 {
|
|
905
|
+
/** The participant events. */
|
|
906
|
+
events?: Event$1[];
|
|
907
|
+
/** Paging metadata. */
|
|
908
|
+
pagingMetadata?: CommonCursorPagingMetadata$1;
|
|
909
|
+
}
|
|
793
910
|
interface RecurrenceRuleNonNullableFields$1 {
|
|
794
911
|
frequency: Frequency$1;
|
|
795
912
|
days: Day$1[];
|
|
@@ -881,6 +998,12 @@ interface BulkCancelEventResponseNonNullableFields$1 {
|
|
|
881
998
|
results: BulkEventResultNonNullableFields$1[];
|
|
882
999
|
bulkActionMetadata?: BulkActionMetadataNonNullableFields$1;
|
|
883
1000
|
}
|
|
1001
|
+
interface ListEventsByContactIdResponseNonNullableFields$1 {
|
|
1002
|
+
events: EventNonNullableFields$1[];
|
|
1003
|
+
}
|
|
1004
|
+
interface ListEventsByMemberIdResponseNonNullableFields$1 {
|
|
1005
|
+
events: EventNonNullableFields$1[];
|
|
1006
|
+
}
|
|
884
1007
|
|
|
885
1008
|
interface Event {
|
|
886
1009
|
/**
|
|
@@ -1163,6 +1286,7 @@ interface Location$2 {
|
|
|
1163
1286
|
* The location type.
|
|
1164
1287
|
* The possible values are:
|
|
1165
1288
|
* - `"BUSINESS"` event takes place at the business location.
|
|
1289
|
+
* - `"CUSTOMER"` event takes place at the customer location.
|
|
1166
1290
|
* - `"CUSTOM"` event takes place at the custom location.
|
|
1167
1291
|
*/
|
|
1168
1292
|
type?: LocationType$2;
|
|
@@ -1674,6 +1798,122 @@ interface BulkCancelEventResponse {
|
|
|
1674
1798
|
/** Total successes and failures. */
|
|
1675
1799
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1676
1800
|
}
|
|
1801
|
+
interface ListEventsByContactIdRequest {
|
|
1802
|
+
/**
|
|
1803
|
+
* The ID of the contact participating in the events.
|
|
1804
|
+
* Required, unless `cursorPaging` is provided.
|
|
1805
|
+
*/
|
|
1806
|
+
contactId: string | null;
|
|
1807
|
+
/**
|
|
1808
|
+
* Local start date for which events are returned, in ISO-8601 format.
|
|
1809
|
+
* E.g, `2024-01-01T00:00:00`.
|
|
1810
|
+
*
|
|
1811
|
+
* Required, unless `cursorPaging` is provided.
|
|
1812
|
+
*/
|
|
1813
|
+
fromLocalDate?: string | null;
|
|
1814
|
+
/**
|
|
1815
|
+
* Local end date for which events are returned, in ISO-8601 format.
|
|
1816
|
+
* E.g, `2024-01-7T00:00:00`.
|
|
1817
|
+
*
|
|
1818
|
+
* Required, unless `cursorPaging` is provided.
|
|
1819
|
+
* Max: 1 year after `fromLocalDate`.
|
|
1820
|
+
*/
|
|
1821
|
+
toLocalDate?: string | null;
|
|
1822
|
+
/**
|
|
1823
|
+
* The time zone, in IANA time zone format.
|
|
1824
|
+
* Default is the Wix Business time zone.
|
|
1825
|
+
*/
|
|
1826
|
+
timeZone?: string | null;
|
|
1827
|
+
/** Optional Wix app ID to filter events by. */
|
|
1828
|
+
appId?: string | null;
|
|
1829
|
+
/** Optional cursor to the next events page. */
|
|
1830
|
+
cursorPaging?: CommonCursorPaging;
|
|
1831
|
+
}
|
|
1832
|
+
/** TODO Diverge */
|
|
1833
|
+
interface CommonCursorPaging {
|
|
1834
|
+
/**
|
|
1835
|
+
* Number of events to return.
|
|
1836
|
+
* Defaults to `50`. Maximum `100`.
|
|
1837
|
+
*/
|
|
1838
|
+
limit?: number | null;
|
|
1839
|
+
/**
|
|
1840
|
+
* Pointer to the next or previous page in the list of results.
|
|
1841
|
+
*
|
|
1842
|
+
* You can get the relevant cursor token
|
|
1843
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
1844
|
+
* Not relevant for the first request.
|
|
1845
|
+
*/
|
|
1846
|
+
cursor?: string | null;
|
|
1847
|
+
}
|
|
1848
|
+
interface ListEventsByContactIdResponse {
|
|
1849
|
+
/** The participant events. */
|
|
1850
|
+
events?: Event[];
|
|
1851
|
+
/** Paging metadata. */
|
|
1852
|
+
pagingMetadata?: CommonCursorPagingMetadata;
|
|
1853
|
+
}
|
|
1854
|
+
/** TODO Diverge */
|
|
1855
|
+
interface CommonCursorPagingMetadata {
|
|
1856
|
+
/** Number of items returned in the response. */
|
|
1857
|
+
count?: number | null;
|
|
1858
|
+
/** Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
|
|
1859
|
+
cursors?: CommonCursors;
|
|
1860
|
+
/**
|
|
1861
|
+
* Indicates if there are more results after the current page.
|
|
1862
|
+
* If `true`, another page of results can be retrieved.
|
|
1863
|
+
* If `false`, this is the last page.
|
|
1864
|
+
*/
|
|
1865
|
+
hasNext?: boolean | null;
|
|
1866
|
+
}
|
|
1867
|
+
interface CommonCursors {
|
|
1868
|
+
/** Cursor pointing to next page in the list of results. */
|
|
1869
|
+
next?: string | null;
|
|
1870
|
+
}
|
|
1871
|
+
interface ListEventsByMemberIdRequest {
|
|
1872
|
+
/**
|
|
1873
|
+
* The ID of the member participating in the events.
|
|
1874
|
+
*
|
|
1875
|
+
* Can be `me` for the currently logged-in member ID.
|
|
1876
|
+
* To retrieve other member events the `CALENDAR.EVENT_READ_PI` permission is required.
|
|
1877
|
+
*
|
|
1878
|
+
* Required, unless `cursorPaging` is provided.
|
|
1879
|
+
*/
|
|
1880
|
+
memberId: string | null;
|
|
1881
|
+
/**
|
|
1882
|
+
* Local start date for which events are returned, in ISO-8601 format.
|
|
1883
|
+
* E.g, `2024-01-01T00:00:00`.
|
|
1884
|
+
*
|
|
1885
|
+
* Required, unless `cursorPaging` or `eventIds` are provided.
|
|
1886
|
+
*/
|
|
1887
|
+
fromLocalDate?: string | null;
|
|
1888
|
+
/**
|
|
1889
|
+
* Local end date for which events are returned, in ISO-8601 format.
|
|
1890
|
+
* E.g, `2024-01-7T00:00:00`.
|
|
1891
|
+
*
|
|
1892
|
+
* Required, unless `cursorPaging` or `eventIds` are provided.
|
|
1893
|
+
* Max: 1 year after `fromLocalDate`.
|
|
1894
|
+
*/
|
|
1895
|
+
toLocalDate?: string | null;
|
|
1896
|
+
/**
|
|
1897
|
+
* The time zone, in IANA time zone format.
|
|
1898
|
+
* Default is the Wix Business time zone.
|
|
1899
|
+
*/
|
|
1900
|
+
timeZone?: string | null;
|
|
1901
|
+
/** Optional Wix app ID to filter events by. */
|
|
1902
|
+
appId?: string | null;
|
|
1903
|
+
/** Optional cursor to the next events page. */
|
|
1904
|
+
cursorPaging?: CommonCursorPaging;
|
|
1905
|
+
/**
|
|
1906
|
+
* Optional event IDs to filter events by.
|
|
1907
|
+
* If provided, other filters are ignored.
|
|
1908
|
+
*/
|
|
1909
|
+
eventIds?: string[];
|
|
1910
|
+
}
|
|
1911
|
+
interface ListEventsByMemberIdResponse {
|
|
1912
|
+
/** The participant events. */
|
|
1913
|
+
events?: Event[];
|
|
1914
|
+
/** Paging metadata. */
|
|
1915
|
+
pagingMetadata?: CommonCursorPagingMetadata;
|
|
1916
|
+
}
|
|
1677
1917
|
interface RecurrenceRuleNonNullableFields {
|
|
1678
1918
|
frequency: Frequency;
|
|
1679
1919
|
days: Day[];
|
|
@@ -1765,6 +2005,12 @@ interface BulkCancelEventResponseNonNullableFields {
|
|
|
1765
2005
|
results: BulkEventResultNonNullableFields[];
|
|
1766
2006
|
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
1767
2007
|
}
|
|
2008
|
+
interface ListEventsByContactIdResponseNonNullableFields {
|
|
2009
|
+
events: EventNonNullableFields[];
|
|
2010
|
+
}
|
|
2011
|
+
interface ListEventsByMemberIdResponseNonNullableFields {
|
|
2012
|
+
events: EventNonNullableFields[];
|
|
2013
|
+
}
|
|
1768
2014
|
|
|
1769
2015
|
type __PublicMethodMetaInfo$2<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
1770
2016
|
getUrl: (context: any) => string;
|
|
@@ -1797,6 +2043,12 @@ declare function cancelEvent(): __PublicMethodMetaInfo$2<'POST', {
|
|
|
1797
2043
|
eventId: string;
|
|
1798
2044
|
}, CancelEventRequest, CancelEventRequest$1, CancelEventResponse & CancelEventResponseNonNullableFields, CancelEventResponse$1 & CancelEventResponseNonNullableFields$1>;
|
|
1799
2045
|
declare function bulkCancelEvent(): __PublicMethodMetaInfo$2<'POST', {}, BulkCancelEventRequest, BulkCancelEventRequest$1, BulkCancelEventResponse & BulkCancelEventResponseNonNullableFields, BulkCancelEventResponse$1 & BulkCancelEventResponseNonNullableFields$1>;
|
|
2046
|
+
declare function listEventsByContactId(): __PublicMethodMetaInfo$2<'GET', {
|
|
2047
|
+
contactId: string;
|
|
2048
|
+
}, ListEventsByContactIdRequest, ListEventsByContactIdRequest$1, ListEventsByContactIdResponse & ListEventsByContactIdResponseNonNullableFields, ListEventsByContactIdResponse$1 & ListEventsByContactIdResponseNonNullableFields$1>;
|
|
2049
|
+
declare function listEventsByMemberId(): __PublicMethodMetaInfo$2<'GET', {
|
|
2050
|
+
memberId: string;
|
|
2051
|
+
}, ListEventsByMemberIdRequest, ListEventsByMemberIdRequest$1, ListEventsByMemberIdResponse & ListEventsByMemberIdResponseNonNullableFields, ListEventsByMemberIdResponse$1 & ListEventsByMemberIdResponseNonNullableFields$1>;
|
|
1800
2052
|
|
|
1801
2053
|
declare const meta$2_bulkCancelEvent: typeof bulkCancelEvent;
|
|
1802
2054
|
declare const meta$2_bulkCreateEvent: typeof bulkCreateEvent;
|
|
@@ -1805,12 +2057,14 @@ declare const meta$2_cancelEvent: typeof cancelEvent;
|
|
|
1805
2057
|
declare const meta$2_createEvent: typeof createEvent;
|
|
1806
2058
|
declare const meta$2_getEvent: typeof getEvent;
|
|
1807
2059
|
declare const meta$2_listEvents: typeof listEvents;
|
|
2060
|
+
declare const meta$2_listEventsByContactId: typeof listEventsByContactId;
|
|
2061
|
+
declare const meta$2_listEventsByMemberId: typeof listEventsByMemberId;
|
|
1808
2062
|
declare const meta$2_queryEvents: typeof queryEvents;
|
|
1809
2063
|
declare const meta$2_restoreEventDefaults: typeof restoreEventDefaults;
|
|
1810
2064
|
declare const meta$2_splitRecurringEvent: typeof splitRecurringEvent;
|
|
1811
2065
|
declare const meta$2_updateEvent: typeof updateEvent;
|
|
1812
2066
|
declare namespace meta$2 {
|
|
1813
|
-
export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_bulkCancelEvent as bulkCancelEvent, meta$2_bulkCreateEvent as bulkCreateEvent, meta$2_bulkUpdateEvent as bulkUpdateEvent, meta$2_cancelEvent as cancelEvent, meta$2_createEvent as createEvent, meta$2_getEvent as getEvent, meta$2_listEvents as listEvents, meta$2_queryEvents as queryEvents, meta$2_restoreEventDefaults as restoreEventDefaults, meta$2_splitRecurringEvent as splitRecurringEvent, meta$2_updateEvent as updateEvent };
|
|
2067
|
+
export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_bulkCancelEvent as bulkCancelEvent, meta$2_bulkCreateEvent as bulkCreateEvent, meta$2_bulkUpdateEvent as bulkUpdateEvent, meta$2_cancelEvent as cancelEvent, meta$2_createEvent as createEvent, meta$2_getEvent as getEvent, meta$2_listEvents as listEvents, meta$2_listEventsByContactId as listEventsByContactId, meta$2_listEventsByMemberId as listEventsByMemberId, meta$2_queryEvents as queryEvents, meta$2_restoreEventDefaults as restoreEventDefaults, meta$2_splitRecurringEvent as splitRecurringEvent, meta$2_updateEvent as updateEvent };
|
|
1814
2068
|
}
|
|
1815
2069
|
|
|
1816
2070
|
interface Schedule$1 {
|
|
@@ -1914,6 +2168,7 @@ interface Location$1 {
|
|
|
1914
2168
|
* The location type.
|
|
1915
2169
|
* The possible values are:
|
|
1916
2170
|
* - `"BUSINESS"` event takes place at the business location.
|
|
2171
|
+
* - `"CUSTOMER"` event takes place at the customer location.
|
|
1917
2172
|
* - `"CUSTOM"` event takes place at the custom location.
|
|
1918
2173
|
*/
|
|
1919
2174
|
type?: LocationType$1;
|
|
@@ -2281,6 +2536,7 @@ interface Location {
|
|
|
2281
2536
|
* The location type.
|
|
2282
2537
|
* The possible values are:
|
|
2283
2538
|
* - `"BUSINESS"` event takes place at the business location.
|
|
2539
|
+
* - `"CUSTOMER"` event takes place at the customer location.
|
|
2284
2540
|
* - `"CUSTOM"` event takes place at the custom location.
|
|
2285
2541
|
*/
|
|
2286
2542
|
type?: LocationType;
|