@wix/auto_sdk_calendar_events 1.0.30 → 1.0.31
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/build/{calendar-v3-event-events.universal-Cfq4Piiv.d.mts → calendar-v3-event-events.universal-oZbWDSxX.d.mts} +625 -385
- package/build/{calendar-v3-event-events.universal-Cfq4Piiv.d.ts → calendar-v3-event-events.universal-oZbWDSxX.d.ts} +625 -385
- package/build/index.d.mts +39 -3
- package/build/index.d.ts +39 -3
- package/build/index.js +230 -19
- package/build/index.js.map +1 -1
- package/build/index.mjs +228 -19
- package/build/index.mjs.map +1 -1
- package/build/internal/{calendar-v3-event-events.universal-Cfq4Piiv.d.mts → calendar-v3-event-events.universal-oZbWDSxX.d.mts} +625 -385
- package/build/internal/{calendar-v3-event-events.universal-Cfq4Piiv.d.ts → calendar-v3-event-events.universal-oZbWDSxX.d.ts} +625 -385
- package/build/internal/index.d.mts +39 -3
- package/build/internal/index.d.ts +39 -3
- package/build/internal/index.js +230 -19
- package/build/internal/index.js.map +1 -1
- package/build/internal/index.mjs +228 -19
- package/build/internal/index.mjs.map +1 -1
- package/build/internal/meta.d.mts +160 -2
- package/build/internal/meta.d.ts +160 -2
- package/build/internal/meta.js +153 -0
- package/build/internal/meta.js.map +1 -1
- package/build/internal/meta.mjs +151 -0
- package/build/internal/meta.mjs.map +1 -1
- package/build/meta.d.mts +160 -2
- package/build/meta.d.ts +160 -2
- package/build/meta.js +153 -0
- package/build/meta.js.map +1 -1
- package/build/meta.mjs +151 -0
- package/build/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aa as ListEventsByContactIdRequest$1, a as ListEventsByContactIdResponse$1, ae as ListEventsByMemberIdRequest$1, c as ListEventsByMemberIdResponse$1, aO as GetEventRequest$1, aP as GetEventResponse$1, aQ as ListEventsRequest$1, e as ListEventsResponse$1, aR as QueryEventsRequest$1, aW as QueryEventsResponse$1, a$ as CreateEventRequest$1, b0 as CreateEventResponse$1, b1 as BulkCreateEventRequest$1, g as BulkCreateEventResponse$1, b6 as UpdateEventRequest$1, b7 as UpdateEventResponse$1, b8 as BulkUpdateEventRequest$1, k as BulkUpdateEventResponse$1, bb as RestoreEventDefaultsRequest$1, l as RestoreEventDefaultsResponse$1, bc as SplitRecurringEventRequest$1, m as SplitRecurringEventResponse$1, bd as CancelEventRequest$1, o as CancelEventResponse$1, be as BulkCancelEventRequest$1, q as BulkCancelEventResponse$1 } from './calendar-v3-event-events.universal-oZbWDSxX.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* An event is a scheduled entry on a calendar that includes details like timing,
|
|
@@ -650,6 +650,158 @@ interface ParticipantNotification {
|
|
|
650
650
|
*/
|
|
651
651
|
message?: string | null;
|
|
652
652
|
}
|
|
653
|
+
interface ListEventsByContactIdRequest {
|
|
654
|
+
/**
|
|
655
|
+
* ID of the [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)
|
|
656
|
+
* to retrieve events for. Required, unless you provide `cursorPaging`.
|
|
657
|
+
* @format GUID
|
|
658
|
+
*/
|
|
659
|
+
contactId: string | null;
|
|
660
|
+
/**
|
|
661
|
+
* Local start date and time from which events are returned in
|
|
662
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
663
|
+
* `2024-01-30T13:30:00`. Required if `cursorPaging` isn't provided.
|
|
664
|
+
*
|
|
665
|
+
* Events that start before the `fromLocalDate` but end after it are included in
|
|
666
|
+
* the results. Must be earlier than `toLocalDate`.
|
|
667
|
+
* @format LOCAL_DATE_TIME
|
|
668
|
+
*/
|
|
669
|
+
fromLocalDate?: string | null;
|
|
670
|
+
/**
|
|
671
|
+
* Local end date and time up to which events are returned in
|
|
672
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
673
|
+
* `2024-01-30T13:30:00`. Can't be more than a full year after
|
|
674
|
+
* `2024-01-30T13:30:00`. Required if `cursorPaging` isn't provided.
|
|
675
|
+
*
|
|
676
|
+
* Events that start before `toLocalDate` but end after it are included in the
|
|
677
|
+
* results. Must be later than `fromLocalDate`.
|
|
678
|
+
* @format LOCAL_DATE_TIME
|
|
679
|
+
*/
|
|
680
|
+
toLocalDate?: string | null;
|
|
681
|
+
/**
|
|
682
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
683
|
+
* for `fromLocalDate`, `toLocalDate`, and for calculating `adjustedStart` and
|
|
684
|
+
* `adjustedEnd`. For example, `America/New_York` or `UTC`.
|
|
685
|
+
*
|
|
686
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
687
|
+
*/
|
|
688
|
+
timeZone?: string | null;
|
|
689
|
+
/**
|
|
690
|
+
* [App ID](https://dev.wix.com/docs/rest/articles/getting-started/wix-business-solutions)
|
|
691
|
+
* to filter events by.
|
|
692
|
+
* @format GUID
|
|
693
|
+
*/
|
|
694
|
+
appId?: string | null;
|
|
695
|
+
/** Cursor to retrieve the next page of the results. */
|
|
696
|
+
cursorPaging?: CommonCursorPaging;
|
|
697
|
+
}
|
|
698
|
+
/** TODO Diverge */
|
|
699
|
+
interface CommonCursorPaging {
|
|
700
|
+
/**
|
|
701
|
+
* Number of events to return.
|
|
702
|
+
* Defaults to `50`. Maximum `100`.
|
|
703
|
+
* @min 1
|
|
704
|
+
* @max 100
|
|
705
|
+
*/
|
|
706
|
+
limit?: number | null;
|
|
707
|
+
/**
|
|
708
|
+
* Pointer to the next or previous page in the list of results.
|
|
709
|
+
*
|
|
710
|
+
* You can get the relevant cursor token
|
|
711
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
712
|
+
* Not relevant for the first request.
|
|
713
|
+
*/
|
|
714
|
+
cursor?: string | null;
|
|
715
|
+
}
|
|
716
|
+
interface ListEventsByContactIdResponse {
|
|
717
|
+
/** Retrieved events. */
|
|
718
|
+
events?: Event[];
|
|
719
|
+
/** Paging metadata. */
|
|
720
|
+
pagingMetadata?: CommonCursorPagingMetadata;
|
|
721
|
+
}
|
|
722
|
+
/** TODO Diverge */
|
|
723
|
+
interface CommonCursorPagingMetadata {
|
|
724
|
+
/** Number of items returned in the response. */
|
|
725
|
+
count?: number | null;
|
|
726
|
+
/** 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). */
|
|
727
|
+
cursors?: CommonCursors;
|
|
728
|
+
/**
|
|
729
|
+
* Indicates if there are more results after the current page.
|
|
730
|
+
* If `true`, another page of results can be retrieved.
|
|
731
|
+
* If `false`, this is the last page.
|
|
732
|
+
*/
|
|
733
|
+
hasNext?: boolean | null;
|
|
734
|
+
}
|
|
735
|
+
interface CommonCursors {
|
|
736
|
+
/** Cursor pointing to next page in the list of results. */
|
|
737
|
+
next?: string | null;
|
|
738
|
+
}
|
|
739
|
+
interface ListEventsByMemberIdRequest {
|
|
740
|
+
/**
|
|
741
|
+
* ID of the [member](https://dev.wix.com/docs/rest/crm/members-contacts/members/members/member-object)
|
|
742
|
+
* to retrieve events for. Required, unless you provide `cursorPaging`.
|
|
743
|
+
* Provide `me` to retrieve events for the currently logged-in member.
|
|
744
|
+
* You must have the `Read Calendars - Including PI`
|
|
745
|
+
* [permission scope](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app)
|
|
746
|
+
* to retrieve events for members who aren't the currently logged in member.
|
|
747
|
+
* @minLength 2
|
|
748
|
+
* @maxLength 36
|
|
749
|
+
*/
|
|
750
|
+
memberId: string | null;
|
|
751
|
+
/**
|
|
752
|
+
* Local start date and time from which events are returned in
|
|
753
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
754
|
+
* `2024-01-30T13:30:00`. Required if neither `cursorPaging` is provided nor a non-empty `eventIds` array.
|
|
755
|
+
*
|
|
756
|
+
* Events that start before the `fromLocalDate` but end after it are included in
|
|
757
|
+
* the results. Must be earlier than `toLocalDate`.
|
|
758
|
+
* @format LOCAL_DATE_TIME
|
|
759
|
+
*/
|
|
760
|
+
fromLocalDate?: string | null;
|
|
761
|
+
/**
|
|
762
|
+
* Local end date and time up to which events are returned in
|
|
763
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
764
|
+
* `2024-01-30T13:30:00`. Can't be more than a full year after
|
|
765
|
+
* `fromLocalDate`. Required if neither `cursorPaging` is provided nor a non-empty `eventIds` array.
|
|
766
|
+
*
|
|
767
|
+
* Events that start before `toLocalDate` but end after it are included in the
|
|
768
|
+
* results. Must be later than `fromLocalDate`.
|
|
769
|
+
* @format LOCAL_DATE_TIME
|
|
770
|
+
*/
|
|
771
|
+
toLocalDate?: string | null;
|
|
772
|
+
/**
|
|
773
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
774
|
+
* for `fromLocalDate`, `toLocalDate`, and for calculating `adjustedStart` and
|
|
775
|
+
* `adjustedEnd`. For example, `America/New_York` or `UTC`.
|
|
776
|
+
*
|
|
777
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
778
|
+
*/
|
|
779
|
+
timeZone?: string | null;
|
|
780
|
+
/**
|
|
781
|
+
* [App ID](https://dev.wix.com/docs/rest/articles/getting-started/wix-business-solutions)
|
|
782
|
+
* to filter events by.
|
|
783
|
+
* @format GUID
|
|
784
|
+
*/
|
|
785
|
+
appId?: string | null;
|
|
786
|
+
/** Cursor to retrieve the next page of the results. */
|
|
787
|
+
cursorPaging?: CommonCursorPaging;
|
|
788
|
+
/**
|
|
789
|
+
* IDs of the events to retrieve.
|
|
790
|
+
* If you provide a list of IDs, all other filters are ignored.
|
|
791
|
+
*
|
|
792
|
+
* Max: 100 `eventId`s
|
|
793
|
+
* @maxSize 100
|
|
794
|
+
* @minLength 36
|
|
795
|
+
* @maxLength 250
|
|
796
|
+
*/
|
|
797
|
+
eventIds?: string[];
|
|
798
|
+
}
|
|
799
|
+
interface ListEventsByMemberIdResponse {
|
|
800
|
+
/** Retrieved events. */
|
|
801
|
+
events?: Event[];
|
|
802
|
+
/** Paging metadata. */
|
|
803
|
+
pagingMetadata?: CommonCursorPagingMetadata;
|
|
804
|
+
}
|
|
653
805
|
interface GetEventRequest {
|
|
654
806
|
/**
|
|
655
807
|
* ID of the event to retrieve.
|
|
@@ -1170,6 +1322,12 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
1170
1322
|
__responseType: Q;
|
|
1171
1323
|
__originalResponseType: R;
|
|
1172
1324
|
};
|
|
1325
|
+
declare function listEventsByContactId(): __PublicMethodMetaInfo<'GET', {
|
|
1326
|
+
contactId: string;
|
|
1327
|
+
}, ListEventsByContactIdRequest$1, ListEventsByContactIdRequest, ListEventsByContactIdResponse$1, ListEventsByContactIdResponse>;
|
|
1328
|
+
declare function listEventsByMemberId(): __PublicMethodMetaInfo<'GET', {
|
|
1329
|
+
memberId: string;
|
|
1330
|
+
}, ListEventsByMemberIdRequest$1, ListEventsByMemberIdRequest, ListEventsByMemberIdResponse$1, ListEventsByMemberIdResponse>;
|
|
1173
1331
|
declare function getEvent(): __PublicMethodMetaInfo<'GET', {
|
|
1174
1332
|
eventId: string;
|
|
1175
1333
|
}, GetEventRequest$1, GetEventRequest, GetEventResponse$1, GetEventResponse>;
|
|
@@ -1192,4 +1350,4 @@ declare function cancelEvent(): __PublicMethodMetaInfo<'POST', {
|
|
|
1192
1350
|
}, CancelEventRequest$1, CancelEventRequest, CancelEventResponse$1, CancelEventResponse>;
|
|
1193
1351
|
declare function bulkCancelEvent(): __PublicMethodMetaInfo<'POST', {}, BulkCancelEventRequest$1, BulkCancelEventRequest, BulkCancelEventResponse$1, BulkCancelEventResponse>;
|
|
1194
1352
|
|
|
1195
|
-
export { type __PublicMethodMetaInfo, bulkCancelEvent, bulkCreateEvent, bulkUpdateEvent, cancelEvent, createEvent, getEvent, listEvents, queryEvents, restoreEventDefaults, splitRecurringEvent, updateEvent };
|
|
1353
|
+
export { type __PublicMethodMetaInfo, bulkCancelEvent, bulkCreateEvent, bulkUpdateEvent, cancelEvent, createEvent, getEvent, listEvents, listEventsByContactId, listEventsByMemberId, queryEvents, restoreEventDefaults, splitRecurringEvent, updateEvent };
|
package/build/internal/meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aa as ListEventsByContactIdRequest$1, a as ListEventsByContactIdResponse$1, ae as ListEventsByMemberIdRequest$1, c as ListEventsByMemberIdResponse$1, aO as GetEventRequest$1, aP as GetEventResponse$1, aQ as ListEventsRequest$1, e as ListEventsResponse$1, aR as QueryEventsRequest$1, aW as QueryEventsResponse$1, a$ as CreateEventRequest$1, b0 as CreateEventResponse$1, b1 as BulkCreateEventRequest$1, g as BulkCreateEventResponse$1, b6 as UpdateEventRequest$1, b7 as UpdateEventResponse$1, b8 as BulkUpdateEventRequest$1, k as BulkUpdateEventResponse$1, bb as RestoreEventDefaultsRequest$1, l as RestoreEventDefaultsResponse$1, bc as SplitRecurringEventRequest$1, m as SplitRecurringEventResponse$1, bd as CancelEventRequest$1, o as CancelEventResponse$1, be as BulkCancelEventRequest$1, q as BulkCancelEventResponse$1 } from './calendar-v3-event-events.universal-oZbWDSxX.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* An event is a scheduled entry on a calendar that includes details like timing,
|
|
@@ -650,6 +650,158 @@ interface ParticipantNotification {
|
|
|
650
650
|
*/
|
|
651
651
|
message?: string | null;
|
|
652
652
|
}
|
|
653
|
+
interface ListEventsByContactIdRequest {
|
|
654
|
+
/**
|
|
655
|
+
* ID of the [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)
|
|
656
|
+
* to retrieve events for. Required, unless you provide `cursorPaging`.
|
|
657
|
+
* @format GUID
|
|
658
|
+
*/
|
|
659
|
+
contactId: string | null;
|
|
660
|
+
/**
|
|
661
|
+
* Local start date and time from which events are returned in
|
|
662
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
663
|
+
* `2024-01-30T13:30:00`. Required if `cursorPaging` isn't provided.
|
|
664
|
+
*
|
|
665
|
+
* Events that start before the `fromLocalDate` but end after it are included in
|
|
666
|
+
* the results. Must be earlier than `toLocalDate`.
|
|
667
|
+
* @format LOCAL_DATE_TIME
|
|
668
|
+
*/
|
|
669
|
+
fromLocalDate?: string | null;
|
|
670
|
+
/**
|
|
671
|
+
* Local end date and time up to which events are returned in
|
|
672
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
673
|
+
* `2024-01-30T13:30:00`. Can't be more than a full year after
|
|
674
|
+
* `2024-01-30T13:30:00`. Required if `cursorPaging` isn't provided.
|
|
675
|
+
*
|
|
676
|
+
* Events that start before `toLocalDate` but end after it are included in the
|
|
677
|
+
* results. Must be later than `fromLocalDate`.
|
|
678
|
+
* @format LOCAL_DATE_TIME
|
|
679
|
+
*/
|
|
680
|
+
toLocalDate?: string | null;
|
|
681
|
+
/**
|
|
682
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
683
|
+
* for `fromLocalDate`, `toLocalDate`, and for calculating `adjustedStart` and
|
|
684
|
+
* `adjustedEnd`. For example, `America/New_York` or `UTC`.
|
|
685
|
+
*
|
|
686
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
687
|
+
*/
|
|
688
|
+
timeZone?: string | null;
|
|
689
|
+
/**
|
|
690
|
+
* [App ID](https://dev.wix.com/docs/rest/articles/getting-started/wix-business-solutions)
|
|
691
|
+
* to filter events by.
|
|
692
|
+
* @format GUID
|
|
693
|
+
*/
|
|
694
|
+
appId?: string | null;
|
|
695
|
+
/** Cursor to retrieve the next page of the results. */
|
|
696
|
+
cursorPaging?: CommonCursorPaging;
|
|
697
|
+
}
|
|
698
|
+
/** TODO Diverge */
|
|
699
|
+
interface CommonCursorPaging {
|
|
700
|
+
/**
|
|
701
|
+
* Number of events to return.
|
|
702
|
+
* Defaults to `50`. Maximum `100`.
|
|
703
|
+
* @min 1
|
|
704
|
+
* @max 100
|
|
705
|
+
*/
|
|
706
|
+
limit?: number | null;
|
|
707
|
+
/**
|
|
708
|
+
* Pointer to the next or previous page in the list of results.
|
|
709
|
+
*
|
|
710
|
+
* You can get the relevant cursor token
|
|
711
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
712
|
+
* Not relevant for the first request.
|
|
713
|
+
*/
|
|
714
|
+
cursor?: string | null;
|
|
715
|
+
}
|
|
716
|
+
interface ListEventsByContactIdResponse {
|
|
717
|
+
/** Retrieved events. */
|
|
718
|
+
events?: Event[];
|
|
719
|
+
/** Paging metadata. */
|
|
720
|
+
pagingMetadata?: CommonCursorPagingMetadata;
|
|
721
|
+
}
|
|
722
|
+
/** TODO Diverge */
|
|
723
|
+
interface CommonCursorPagingMetadata {
|
|
724
|
+
/** Number of items returned in the response. */
|
|
725
|
+
count?: number | null;
|
|
726
|
+
/** 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). */
|
|
727
|
+
cursors?: CommonCursors;
|
|
728
|
+
/**
|
|
729
|
+
* Indicates if there are more results after the current page.
|
|
730
|
+
* If `true`, another page of results can be retrieved.
|
|
731
|
+
* If `false`, this is the last page.
|
|
732
|
+
*/
|
|
733
|
+
hasNext?: boolean | null;
|
|
734
|
+
}
|
|
735
|
+
interface CommonCursors {
|
|
736
|
+
/** Cursor pointing to next page in the list of results. */
|
|
737
|
+
next?: string | null;
|
|
738
|
+
}
|
|
739
|
+
interface ListEventsByMemberIdRequest {
|
|
740
|
+
/**
|
|
741
|
+
* ID of the [member](https://dev.wix.com/docs/rest/crm/members-contacts/members/members/member-object)
|
|
742
|
+
* to retrieve events for. Required, unless you provide `cursorPaging`.
|
|
743
|
+
* Provide `me` to retrieve events for the currently logged-in member.
|
|
744
|
+
* You must have the `Read Calendars - Including PI`
|
|
745
|
+
* [permission scope](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app)
|
|
746
|
+
* to retrieve events for members who aren't the currently logged in member.
|
|
747
|
+
* @minLength 2
|
|
748
|
+
* @maxLength 36
|
|
749
|
+
*/
|
|
750
|
+
memberId: string | null;
|
|
751
|
+
/**
|
|
752
|
+
* Local start date and time from which events are returned in
|
|
753
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
754
|
+
* `2024-01-30T13:30:00`. Required if neither `cursorPaging` is provided nor a non-empty `eventIds` array.
|
|
755
|
+
*
|
|
756
|
+
* Events that start before the `fromLocalDate` but end after it are included in
|
|
757
|
+
* the results. Must be earlier than `toLocalDate`.
|
|
758
|
+
* @format LOCAL_DATE_TIME
|
|
759
|
+
*/
|
|
760
|
+
fromLocalDate?: string | null;
|
|
761
|
+
/**
|
|
762
|
+
* Local end date and time up to which events are returned in
|
|
763
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
764
|
+
* `2024-01-30T13:30:00`. Can't be more than a full year after
|
|
765
|
+
* `fromLocalDate`. Required if neither `cursorPaging` is provided nor a non-empty `eventIds` array.
|
|
766
|
+
*
|
|
767
|
+
* Events that start before `toLocalDate` but end after it are included in the
|
|
768
|
+
* results. Must be later than `fromLocalDate`.
|
|
769
|
+
* @format LOCAL_DATE_TIME
|
|
770
|
+
*/
|
|
771
|
+
toLocalDate?: string | null;
|
|
772
|
+
/**
|
|
773
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
774
|
+
* for `fromLocalDate`, `toLocalDate`, and for calculating `adjustedStart` and
|
|
775
|
+
* `adjustedEnd`. For example, `America/New_York` or `UTC`.
|
|
776
|
+
*
|
|
777
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
778
|
+
*/
|
|
779
|
+
timeZone?: string | null;
|
|
780
|
+
/**
|
|
781
|
+
* [App ID](https://dev.wix.com/docs/rest/articles/getting-started/wix-business-solutions)
|
|
782
|
+
* to filter events by.
|
|
783
|
+
* @format GUID
|
|
784
|
+
*/
|
|
785
|
+
appId?: string | null;
|
|
786
|
+
/** Cursor to retrieve the next page of the results. */
|
|
787
|
+
cursorPaging?: CommonCursorPaging;
|
|
788
|
+
/**
|
|
789
|
+
* IDs of the events to retrieve.
|
|
790
|
+
* If you provide a list of IDs, all other filters are ignored.
|
|
791
|
+
*
|
|
792
|
+
* Max: 100 `eventId`s
|
|
793
|
+
* @maxSize 100
|
|
794
|
+
* @minLength 36
|
|
795
|
+
* @maxLength 250
|
|
796
|
+
*/
|
|
797
|
+
eventIds?: string[];
|
|
798
|
+
}
|
|
799
|
+
interface ListEventsByMemberIdResponse {
|
|
800
|
+
/** Retrieved events. */
|
|
801
|
+
events?: Event[];
|
|
802
|
+
/** Paging metadata. */
|
|
803
|
+
pagingMetadata?: CommonCursorPagingMetadata;
|
|
804
|
+
}
|
|
653
805
|
interface GetEventRequest {
|
|
654
806
|
/**
|
|
655
807
|
* ID of the event to retrieve.
|
|
@@ -1170,6 +1322,12 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
1170
1322
|
__responseType: Q;
|
|
1171
1323
|
__originalResponseType: R;
|
|
1172
1324
|
};
|
|
1325
|
+
declare function listEventsByContactId(): __PublicMethodMetaInfo<'GET', {
|
|
1326
|
+
contactId: string;
|
|
1327
|
+
}, ListEventsByContactIdRequest$1, ListEventsByContactIdRequest, ListEventsByContactIdResponse$1, ListEventsByContactIdResponse>;
|
|
1328
|
+
declare function listEventsByMemberId(): __PublicMethodMetaInfo<'GET', {
|
|
1329
|
+
memberId: string;
|
|
1330
|
+
}, ListEventsByMemberIdRequest$1, ListEventsByMemberIdRequest, ListEventsByMemberIdResponse$1, ListEventsByMemberIdResponse>;
|
|
1173
1331
|
declare function getEvent(): __PublicMethodMetaInfo<'GET', {
|
|
1174
1332
|
eventId: string;
|
|
1175
1333
|
}, GetEventRequest$1, GetEventRequest, GetEventResponse$1, GetEventResponse>;
|
|
@@ -1192,4 +1350,4 @@ declare function cancelEvent(): __PublicMethodMetaInfo<'POST', {
|
|
|
1192
1350
|
}, CancelEventRequest$1, CancelEventRequest, CancelEventResponse$1, CancelEventResponse>;
|
|
1193
1351
|
declare function bulkCancelEvent(): __PublicMethodMetaInfo<'POST', {}, BulkCancelEventRequest$1, BulkCancelEventRequest, BulkCancelEventResponse$1, BulkCancelEventResponse>;
|
|
1194
1352
|
|
|
1195
|
-
export { type __PublicMethodMetaInfo, bulkCancelEvent, bulkCreateEvent, bulkUpdateEvent, cancelEvent, createEvent, getEvent, listEvents, queryEvents, restoreEventDefaults, splitRecurringEvent, updateEvent };
|
|
1353
|
+
export { type __PublicMethodMetaInfo, bulkCancelEvent, bulkCreateEvent, bulkUpdateEvent, cancelEvent, createEvent, getEvent, listEvents, listEventsByContactId, listEventsByMemberId, queryEvents, restoreEventDefaults, splitRecurringEvent, updateEvent };
|
package/build/internal/meta.js
CHANGED
|
@@ -27,6 +27,8 @@ __export(meta_exports, {
|
|
|
27
27
|
createEvent: () => createEvent2,
|
|
28
28
|
getEvent: () => getEvent2,
|
|
29
29
|
listEvents: () => listEvents2,
|
|
30
|
+
listEventsByContactId: () => listEventsByContactId2,
|
|
31
|
+
listEventsByMemberId: () => listEventsByMemberId2,
|
|
30
32
|
queryEvents: () => queryEvents2,
|
|
31
33
|
restoreEventDefaults: () => restoreEventDefaults2,
|
|
32
34
|
splitRecurringEvent: () => splitRecurringEvent2,
|
|
@@ -96,7 +98,120 @@ function resolveWixCalendarEventsV3EventsServiceUrl(opts) {
|
|
|
96
98
|
};
|
|
97
99
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
98
100
|
}
|
|
101
|
+
function resolveWixCalendarParticipanteventsV3ParticipantEventsServiceUrl(opts) {
|
|
102
|
+
const domainToMappings = {
|
|
103
|
+
"api._api_base_domain_": [
|
|
104
|
+
{
|
|
105
|
+
srcPath: "/participant-events-3",
|
|
106
|
+
destPath: ""
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"manage._base_domain_": [
|
|
110
|
+
{
|
|
111
|
+
srcPath: "/_api/calendar/v3/events/memberId",
|
|
112
|
+
destPath: "/v3/events/memberId"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
srcPath: "/_api/calendar/v3/events/contactId",
|
|
116
|
+
destPath: "/v3/events/contactId"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"www.wixapis.com": [
|
|
120
|
+
{
|
|
121
|
+
srcPath: "/calendar/v3/events/contactId",
|
|
122
|
+
destPath: "/v3/events/contactId"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
srcPath: "/calendar/v3/events/memberId",
|
|
126
|
+
destPath: "/v3/events/memberId"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
_: [
|
|
130
|
+
{
|
|
131
|
+
srcPath: "/_api/calendar/v3/events/memberId",
|
|
132
|
+
destPath: "/v3/events/memberId"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"*.dev.wix-code.com": [
|
|
136
|
+
{
|
|
137
|
+
srcPath: "/_api/calendar/v3/events/memberId",
|
|
138
|
+
destPath: "/v3/events/memberId"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
srcPath: "/_api/calendar/v3/events/contactId",
|
|
142
|
+
destPath: "/v3/events/contactId"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
};
|
|
146
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
147
|
+
}
|
|
99
148
|
var PACKAGE_NAME = "@wix/auto_sdk_calendar_events";
|
|
149
|
+
function listEventsByContactId(payload) {
|
|
150
|
+
function __listEventsByContactId({ host }) {
|
|
151
|
+
const metadata = {
|
|
152
|
+
entityFqdn: "wix.calendar.v3.event",
|
|
153
|
+
method: "GET",
|
|
154
|
+
methodFqn: "wix.calendar.participantevents.v3.ParticipantEventsService.ListEventsByContactId",
|
|
155
|
+
packageName: PACKAGE_NAME,
|
|
156
|
+
url: resolveWixCalendarParticipanteventsV3ParticipantEventsServiceUrl({
|
|
157
|
+
protoPath: "/v3/events/contactId/{contactId}",
|
|
158
|
+
data: payload,
|
|
159
|
+
host
|
|
160
|
+
}),
|
|
161
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
162
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
163
|
+
{
|
|
164
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
165
|
+
paths: [
|
|
166
|
+
{ path: "events.createdDate" },
|
|
167
|
+
{ path: "events.updatedDate" },
|
|
168
|
+
{ path: "events.start.utcDate" },
|
|
169
|
+
{ path: "events.end.utcDate" },
|
|
170
|
+
{ path: "events.adjustedStart.utcDate" },
|
|
171
|
+
{ path: "events.adjustedEnd.utcDate" },
|
|
172
|
+
{ path: "events.recurrenceRule.until.utcDate" },
|
|
173
|
+
{ path: "events.recurrenceRule.adjustedUntil.utcDate" }
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
])
|
|
177
|
+
};
|
|
178
|
+
return metadata;
|
|
179
|
+
}
|
|
180
|
+
return __listEventsByContactId;
|
|
181
|
+
}
|
|
182
|
+
function listEventsByMemberId(payload) {
|
|
183
|
+
function __listEventsByMemberId({ host }) {
|
|
184
|
+
const metadata = {
|
|
185
|
+
entityFqdn: "wix.calendar.v3.event",
|
|
186
|
+
method: "GET",
|
|
187
|
+
methodFqn: "wix.calendar.participantevents.v3.ParticipantEventsService.ListEventsByMemberId",
|
|
188
|
+
packageName: PACKAGE_NAME,
|
|
189
|
+
url: resolveWixCalendarParticipanteventsV3ParticipantEventsServiceUrl({
|
|
190
|
+
protoPath: "/v3/events/memberId/{memberId}",
|
|
191
|
+
data: payload,
|
|
192
|
+
host
|
|
193
|
+
}),
|
|
194
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
195
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
196
|
+
{
|
|
197
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
198
|
+
paths: [
|
|
199
|
+
{ path: "events.createdDate" },
|
|
200
|
+
{ path: "events.updatedDate" },
|
|
201
|
+
{ path: "events.start.utcDate" },
|
|
202
|
+
{ path: "events.end.utcDate" },
|
|
203
|
+
{ path: "events.adjustedStart.utcDate" },
|
|
204
|
+
{ path: "events.adjustedEnd.utcDate" },
|
|
205
|
+
{ path: "events.recurrenceRule.until.utcDate" },
|
|
206
|
+
{ path: "events.recurrenceRule.adjustedUntil.utcDate" }
|
|
207
|
+
]
|
|
208
|
+
}
|
|
209
|
+
])
|
|
210
|
+
};
|
|
211
|
+
return metadata;
|
|
212
|
+
}
|
|
213
|
+
return __listEventsByMemberId;
|
|
214
|
+
}
|
|
100
215
|
function getEvent(payload) {
|
|
101
216
|
function __getEvent({ host }) {
|
|
102
217
|
const metadata = {
|
|
@@ -562,6 +677,42 @@ function bulkCancelEvent(payload) {
|
|
|
562
677
|
}
|
|
563
678
|
|
|
564
679
|
// src/calendar-v3-event-events.meta.ts
|
|
680
|
+
function listEventsByContactId2() {
|
|
681
|
+
const payload = { contactId: ":contactId" };
|
|
682
|
+
const getRequestOptions = listEventsByContactId(payload);
|
|
683
|
+
const getUrl = (context) => {
|
|
684
|
+
const { url } = getRequestOptions(context);
|
|
685
|
+
return url;
|
|
686
|
+
};
|
|
687
|
+
return {
|
|
688
|
+
getUrl,
|
|
689
|
+
httpMethod: "GET",
|
|
690
|
+
path: "/v3/events/contactId/{contactId}",
|
|
691
|
+
pathParams: { contactId: "contactId" },
|
|
692
|
+
__requestType: null,
|
|
693
|
+
__originalRequestType: null,
|
|
694
|
+
__responseType: null,
|
|
695
|
+
__originalResponseType: null
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
function listEventsByMemberId2() {
|
|
699
|
+
const payload = { memberId: ":memberId" };
|
|
700
|
+
const getRequestOptions = listEventsByMemberId(payload);
|
|
701
|
+
const getUrl = (context) => {
|
|
702
|
+
const { url } = getRequestOptions(context);
|
|
703
|
+
return url;
|
|
704
|
+
};
|
|
705
|
+
return {
|
|
706
|
+
getUrl,
|
|
707
|
+
httpMethod: "GET",
|
|
708
|
+
path: "/v3/events/memberId/{memberId}",
|
|
709
|
+
pathParams: { memberId: "memberId" },
|
|
710
|
+
__requestType: null,
|
|
711
|
+
__originalRequestType: null,
|
|
712
|
+
__responseType: null,
|
|
713
|
+
__originalResponseType: null
|
|
714
|
+
};
|
|
715
|
+
}
|
|
565
716
|
function getEvent2() {
|
|
566
717
|
const payload = { eventId: ":eventId" };
|
|
567
718
|
const getRequestOptions = getEvent(payload);
|
|
@@ -769,6 +920,8 @@ function bulkCancelEvent2() {
|
|
|
769
920
|
createEvent,
|
|
770
921
|
getEvent,
|
|
771
922
|
listEvents,
|
|
923
|
+
listEventsByContactId,
|
|
924
|
+
listEventsByMemberId,
|
|
772
925
|
queryEvents,
|
|
773
926
|
restoreEventDefaults,
|
|
774
927
|
splitRecurringEvent,
|