@vendasta/meetings 1.7.6 → 1.8.0
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/esm2020/lib/_internal/enums/index.mjs +2 -2
- package/esm2020/lib/_internal/enums/shared.enum.mjs +9 -1
- package/esm2020/lib/_internal/interfaces/annotations.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/groups-and-services.interface.mjs +1 -7
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/shared.interface.mjs +1 -1
- package/esm2020/lib/_internal/meeting-host.api.service.mjs +25 -2
- package/esm2020/lib/_internal/objects/annotations.mjs +7 -1
- package/esm2020/lib/_internal/objects/groups-and-services.mjs +15 -1
- package/esm2020/lib/_internal/objects/index.mjs +4 -4
- package/esm2020/lib/_internal/objects/meeting-guest.mjs +15 -58
- package/esm2020/lib/_internal/objects/meeting-host.mjs +319 -2
- package/esm2020/lib/_internal/objects/shared.mjs +91 -1
- package/esm2020/lib/host/host.service.mjs +63 -2
- package/esm2020/lib/index.mjs +3 -3
- package/esm2020/lib/shared/meeting.mjs +1 -1
- package/esm2020/lib/shared/preferences.mjs +4 -2
- package/fesm2015/vendasta-meetings.mjs +531 -57
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +533 -57
- package/fesm2020/vendasta-meetings.mjs.map +1 -1
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/enums/shared.enum.d.ts +7 -0
- package/lib/_internal/interfaces/annotations.interface.d.ts +2 -0
- package/lib/_internal/interfaces/groups-and-services.interface.d.ts +4 -0
- package/lib/_internal/interfaces/index.d.ts +3 -3
- package/lib/_internal/interfaces/meeting-guest.interface.d.ts +5 -13
- package/lib/_internal/interfaces/meeting-host.interface.d.ts +54 -1
- package/lib/_internal/interfaces/shared.interface.d.ts +17 -0
- package/lib/_internal/meeting-host.api.service.d.ts +7 -2
- package/lib/_internal/objects/annotations.d.ts +2 -0
- package/lib/_internal/objects/groups-and-services.d.ts +4 -0
- package/lib/_internal/objects/index.d.ts +3 -3
- package/lib/_internal/objects/meeting-guest.d.ts +9 -23
- package/lib/_internal/objects/meeting-host.d.ts +84 -1
- package/lib/_internal/objects/shared.d.ts +26 -0
- package/lib/host/host.service.d.ts +38 -2
- package/lib/index.d.ts +4 -4
- package/lib/shared/meeting.d.ts +4 -0
- package/lib/shared/preferences.d.ts +4 -2
- package/package.json +1 -1
|
@@ -44,6 +44,22 @@ export declare class Attendee implements i.AttendeeInterface {
|
|
|
44
44
|
constructor(kwargs?: i.AttendeeInterface);
|
|
45
45
|
toApiJson(): object;
|
|
46
46
|
}
|
|
47
|
+
export declare class BatchBookingTarget implements i.BatchBookingTargetInterface {
|
|
48
|
+
eventTypeId: string;
|
|
49
|
+
userId: string;
|
|
50
|
+
order: number;
|
|
51
|
+
static fromProto(proto: any): BatchBookingTarget;
|
|
52
|
+
constructor(kwargs?: i.BatchBookingTargetInterface);
|
|
53
|
+
toApiJson(): object;
|
|
54
|
+
}
|
|
55
|
+
export declare class BatchEventTypeTarget implements i.BatchEventTypeTargetInterface {
|
|
56
|
+
eventTypeId: string;
|
|
57
|
+
userId: string;
|
|
58
|
+
order: number;
|
|
59
|
+
static fromProto(proto: any): BatchEventTypeTarget;
|
|
60
|
+
constructor(kwargs?: i.BatchEventTypeTargetInterface);
|
|
61
|
+
toApiJson(): object;
|
|
62
|
+
}
|
|
47
63
|
export declare class Calendar implements i.CalendarInterface {
|
|
48
64
|
id: string;
|
|
49
65
|
displayName: string;
|
|
@@ -64,6 +80,14 @@ export declare class Calendar implements i.CalendarInterface {
|
|
|
64
80
|
constructor(kwargs?: i.CalendarInterface);
|
|
65
81
|
toApiJson(): object;
|
|
66
82
|
}
|
|
83
|
+
export declare class CalendarMember implements i.CalendarMemberInterface {
|
|
84
|
+
hostUserId: string;
|
|
85
|
+
color: string;
|
|
86
|
+
selected: boolean;
|
|
87
|
+
static fromProto(proto: any): CalendarMember;
|
|
88
|
+
constructor(kwargs?: i.CalendarMemberInterface);
|
|
89
|
+
toApiJson(): object;
|
|
90
|
+
}
|
|
67
91
|
export declare class Contact implements i.ContactInterface {
|
|
68
92
|
firstName: string;
|
|
69
93
|
lastName: string;
|
|
@@ -147,6 +171,8 @@ export declare class Preferences implements i.PreferencesInterface {
|
|
|
147
171
|
bufferDurationBeforeMeeting: number;
|
|
148
172
|
calendarIntegration: e.CalendarSource;
|
|
149
173
|
onBoardingState: e.OnBoardingState;
|
|
174
|
+
calendarMembers: CalendarMember[];
|
|
175
|
+
defaultCalendarView: e.CalendarView;
|
|
150
176
|
static fromProto(proto: any): Preferences;
|
|
151
177
|
constructor(kwargs?: i.PreferencesInterface);
|
|
152
178
|
toApiJson(): object;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
-
import { AvailabilityRuleList, CreateCalendarRequestInterface, CreateCalendarResponse, DayOfWeek, GetGroupResponse, GetServiceResponse, HostBookMeetingRequestInterface, IsCalendarConfiguredRequestInterface, IsCalendarConfiguredResponse, IsHostConfiguredResponse, ListAvailabilityRequestFiltersInterface, ListBookedMeetingsRequestFiltersInterface, MeetingHostApiService, PagedRequestOptionsInterface, SendMeetingRequestEmailRequestInterface, TimeRangeInterface, TimeZoneInterface, WeekdayAvailability, Contact, EmailsToDelete, HostBookSessionRequestInterface, ListAttendeesResponse, BookingSource, ListEventTypesForMultipleCalendarsResponse, ListBookingTypesForAIResponse } from "../_internal";
|
|
2
|
+
import { AvailabilityRuleList, BatchBookingTargetInterface, BatchEventTypeTargetInterface, ContactInterface, CreateCalendarRequestInterface, CreateCalendarResponse, DayOfWeek, GetGroupResponse, GetServiceResponse, HostBookMeetingRequestInterface, IsCalendarConfiguredRequestInterface, IsCalendarConfiguredResponse, IsHostConfiguredResponse, ListAvailabilityRequestFiltersInterface, ListBookedMeetingsRequestFiltersInterface, MeetingHostApiService, PagedRequestOptionsInterface, SendMeetingRequestEmailRequestInterface, TimeRangeInterface, TimeZoneInterface, WeekdayAvailability, Contact, EmailsToDelete, HostBookSessionRequestInterface, ListAttendeesResponse, BookingSource, ListEventTypesForMultipleCalendarsResponse, ListBookingTypesForAIResponse } from "../_internal";
|
|
3
3
|
import { BookMeetingResponse, BookSessionResponse } from "../guest";
|
|
4
|
-
import { ApplicationContextPropertiesSet, AvailabilityRule, Calendar, EntityAssociations, Group, HostUrlMap, Meeting, MeetingMetadata, MeetingType, PagedResponse, Preferences, Service, TimeSpan } from "../shared";
|
|
4
|
+
import { ApplicationContextPropertiesSet, AvailabilityRule, BookedMeetingGroup, Calendar, EntityAssociations, Group, HostUrlMap, Meeting, MeetingForm, MeetingMetadata, MeetingType, PagedResponse, Preferences, Service, TimeSpan } from "../shared";
|
|
5
5
|
import { HostUser } from "../shared/host-user";
|
|
6
6
|
import { HttpResponse } from "@angular/common/http";
|
|
7
7
|
import * as e from "../_internal/enums";
|
|
@@ -129,6 +129,42 @@ export declare class HostService {
|
|
|
129
129
|
}): Observable<BookMeetingResponse>;
|
|
130
130
|
hostBookSession(req: HostBookSessionRequestInterface): Observable<BookSessionResponse>;
|
|
131
131
|
bookMeeting(req: HostBookMeetingRequestInterface): Observable<string>;
|
|
132
|
+
listBookedMeetingsV2(req: {
|
|
133
|
+
filters: ListBookedMeetingsRequestFiltersInterface;
|
|
134
|
+
cursor: string;
|
|
135
|
+
pageSize: number;
|
|
136
|
+
timeZone: TimeZoneInterface;
|
|
137
|
+
}): Observable<PagedResponse<BookedMeetingGroup>>;
|
|
138
|
+
hostBookBatchMeeting(req: {
|
|
139
|
+
calendarId: string;
|
|
140
|
+
targets: BatchBookingTargetInterface[];
|
|
141
|
+
start: Date;
|
|
142
|
+
attendees?: ContactInterface[];
|
|
143
|
+
comment?: string;
|
|
144
|
+
metadata?: {
|
|
145
|
+
[key: string]: string;
|
|
146
|
+
};
|
|
147
|
+
formAnswers?: MeetingForm;
|
|
148
|
+
location?: string;
|
|
149
|
+
bookingSource?: BookingSource;
|
|
150
|
+
bookingOriginId?: string;
|
|
151
|
+
}): Observable<string>;
|
|
152
|
+
hostRescheduleBatchMeeting(req: {
|
|
153
|
+
id: string;
|
|
154
|
+
start: Date;
|
|
155
|
+
location?: string;
|
|
156
|
+
timeZone?: TimeZoneInterface;
|
|
157
|
+
}): Observable<null>;
|
|
158
|
+
hostCancelBatchMeeting(req: {
|
|
159
|
+
id: string;
|
|
160
|
+
cancellationReason?: string;
|
|
161
|
+
}): Observable<null>;
|
|
162
|
+
hostListBatchAvailableTimeSlots(req: {
|
|
163
|
+
hostId: string;
|
|
164
|
+
targets: BatchEventTypeTargetInterface[];
|
|
165
|
+
timeSpan: TimeSpan;
|
|
166
|
+
timeZone: TimeZoneInterface;
|
|
167
|
+
}): Observable<TimeSpan[]>;
|
|
132
168
|
createDefaultMeetingTypes(req: {
|
|
133
169
|
calendarIds: string[];
|
|
134
170
|
}): Observable<void>;
|
package/lib/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { BookedMeetingInfo, BookMeetingResponse, GuestServiceInterface } from '.
|
|
|
3
3
|
export { GuestService } from './guest/guest.service';
|
|
4
4
|
export { HostService } from './host/host.service';
|
|
5
5
|
export { addMetadataToBookingLink } from './host/url';
|
|
6
|
-
export { MeetingSource, MeetingSourceStatus, DayOfWeek, FormFieldType, CalendarType, MeetingLocation, MeetingLocationType, CalendarSource, RelativeTimeUnit, DateRangeType, TeamEventMeetingType, OnBoardingState, RegistrationCutOffUnit, NotificationType, BookingSource, FeatureFlagFieldType } from './_internal/enums/index';
|
|
7
|
-
export { MeetingSourceQuery, MeetingSourceInfo, MeetingSourceListResponse, Contact, WeekdayAvailability, CreateCalendarRequest, CreateCalendarResponse, CheckFeatureFlagRequest, CheckFeatureFlagResponse, GuestGetBookedMeetingResponseV2, GetServiceV2Response, BookBatchMeetingResponse, ListBatchAvailableTimeSlotsResponse, ListGuestBookedMeetingsResponse, MeetingDetail, ServiceEventType, ServiceGroup, } from './_internal/objects/index';
|
|
8
|
-
export { Host, TimeSpan, PagedResponse, Meeting, MeetingType, Attendee, AvailabilityRule, Calendar, HostUrlMap, Preferences, Duration, MeetingTypeForm, MeetingTypeFormField, MeetingForm, MeetingFormAnswer, MeetingMetadata, WellKnownMeetingMetadataKeys, WellKnownFormFieldIds, meetingSchedulerIdToMetadataKey, durationFromString, durationToString, durationStringToMinutes, newBusinessCenterApplicationContextProperties, newSalesCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, ApplicationContextPropertiesSet, BusinessCenterApplicationContextProperties, SalesCenterApplicationContextProperties, PartnerCenterApplicationContextProperties, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, HostUser, Group, Service, EventGroupAndServiceAssociations, MeetingSourceOrigin, EntityAssociations, } from './shared/index';
|
|
9
|
-
export { TimeRangeInterface as TimeRange, TimeOfDayInterface as TimeOfDay, TimeZoneInterface as TimeZone, ListBookedMeetingsRequestFiltersInterface as ListBookedMeetingsRequestFilters, ListAvailabilityRequestFiltersInterface as ListAvailabilityRequestFilters, PagedRequestOptionsInterface as PagedRequestOptions, DateRangeInterface as DateRange, CreateCalendarRequestInterface, CreateCalendarResponseInterface, UpdateCalendarRequestInterface, AttachmentInterface, GoogleMeetMeetingAttendeeInterface, IsCalendarConfiguredRequestInterface, SendMeetingRequestEmailRequestInterface, EventTypeDateRangeInterface, DateRangeInterface, RelativeDateRangeInterface, CheckFeatureFlagRequestInterface, CheckFeatureFlagResponseInterface, CheckEventTypeSlugExistRequestInterface, CheckEventTypeSlugExistResponseInterface, HostBookMeetingRequestInterface, MeetingInterface, PhoneFieldsInterface, AvailabilityRuleListInterface as AvailabilityRuleList, EventTypeSummaryInterface, ListEventTypesForMultipleCalendarsResponseInterface, EmailsToDeleteInterface, GetGroupResponseInterface, GetServiceResponseInterface, IsHostConfiguredResponseInterface, ListAttendeesResponseInterface, RescheduleMeetingRequestInterface, SessionAttendeesInterface, GuestGetBookedMeetingResponseV2Interface, MeetingDetailInterface, ServiceEventTypeInterface, ServiceGroupInterface, HostUserInterface, BatchBookingTargetInterface, BatchEventTypeTargetInterface, } from './_internal/interfaces/index';
|
|
6
|
+
export { MeetingSource, MeetingSourceStatus, DayOfWeek, FormFieldType, CalendarType, MeetingLocation, MeetingLocationType, CalendarSource, RelativeTimeUnit, DateRangeType, TeamEventMeetingType, OnBoardingState, RegistrationCutOffUnit, NotificationType, BookingSource, FeatureFlagFieldType, CalendarView } from './_internal/enums/index';
|
|
7
|
+
export { MeetingSourceQuery, MeetingSourceInfo, MeetingSourceListResponse, Contact, WeekdayAvailability, CreateCalendarRequest, CreateCalendarResponse, CheckFeatureFlagRequest, CheckFeatureFlagResponse, GuestGetBookedMeetingResponseV2, GetServiceV2Response, BookBatchMeetingResponse, ListBatchAvailableTimeSlotsResponse, ListGuestBookedMeetingsResponse, MeetingDetail, ServiceEventType, ServiceGroup, BookedMeetingV2, HostBookBatchMeetingResponse, HostListBatchAvailableTimeSlotsResponse, ListBookedMeetingsV2Response, CalendarMember, } from './_internal/objects/index';
|
|
8
|
+
export { Host, TimeSpan, PagedResponse, BookedMeetingGroup, Meeting, MeetingType, Attendee, AvailabilityRule, Calendar, HostUrlMap, Preferences, Duration, MeetingTypeForm, MeetingTypeFormField, MeetingForm, MeetingFormAnswer, MeetingMetadata, WellKnownMeetingMetadataKeys, WellKnownFormFieldIds, meetingSchedulerIdToMetadataKey, durationFromString, durationToString, durationStringToMinutes, newBusinessCenterApplicationContextProperties, newSalesCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, ApplicationContextPropertiesSet, BusinessCenterApplicationContextProperties, SalesCenterApplicationContextProperties, PartnerCenterApplicationContextProperties, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, HostUser, Group, Service, EventGroupAndServiceAssociations, MeetingSourceOrigin, EntityAssociations, } from './shared/index';
|
|
9
|
+
export { TimeRangeInterface as TimeRange, TimeOfDayInterface as TimeOfDay, TimeZoneInterface as TimeZone, ListBookedMeetingsRequestFiltersInterface as ListBookedMeetingsRequestFilters, ListAvailabilityRequestFiltersInterface as ListAvailabilityRequestFilters, PagedRequestOptionsInterface as PagedRequestOptions, DateRangeInterface as DateRange, CreateCalendarRequestInterface, CreateCalendarResponseInterface, UpdateCalendarRequestInterface, AttachmentInterface, GoogleMeetMeetingAttendeeInterface, IsCalendarConfiguredRequestInterface, SendMeetingRequestEmailRequestInterface, EventTypeDateRangeInterface, DateRangeInterface, RelativeDateRangeInterface, CheckFeatureFlagRequestInterface, CheckFeatureFlagResponseInterface, CheckEventTypeSlugExistRequestInterface, CheckEventTypeSlugExistResponseInterface, HostBookMeetingRequestInterface, MeetingInterface, PhoneFieldsInterface, AvailabilityRuleListInterface as AvailabilityRuleList, EventTypeSummaryInterface, ListEventTypesForMultipleCalendarsResponseInterface, EmailsToDeleteInterface, GetGroupResponseInterface, GetServiceResponseInterface, IsHostConfiguredResponseInterface, ListAttendeesResponseInterface, RescheduleMeetingRequestInterface, SessionAttendeesInterface, GuestGetBookedMeetingResponseV2Interface, MeetingDetailInterface, ServiceEventTypeInterface, ServiceGroupInterface, HostUserInterface, BatchBookingTargetInterface, BatchEventTypeTargetInterface, BookedMeetingV2Interface, HostBookBatchMeetingResponseInterface, HostListBatchAvailableTimeSlotsResponseInterface, ListBookedMeetingsV2ResponseInterface, CalendarMemberInterface, } from './_internal/interfaces/index';
|
package/lib/shared/meeting.d.ts
CHANGED
|
@@ -54,6 +54,10 @@ export interface Meeting {
|
|
|
54
54
|
registeredAttendeeCount: number;
|
|
55
55
|
registrationCutoff: string;
|
|
56
56
|
}
|
|
57
|
+
export interface BookedMeetingGroup {
|
|
58
|
+
bookingGroupId: string;
|
|
59
|
+
meetings: Meeting[];
|
|
60
|
+
}
|
|
57
61
|
export declare function meetingFromApi(meetingApi: ApiMeeting): Meeting;
|
|
58
62
|
export declare function answersFromAPI(formAnswers: AnswersInterface): MeetingForm;
|
|
59
63
|
export declare function answersToAPI(formAnswers?: MeetingForm): AnswersInterface;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Preferences as APIPreferences } from '../_internal/objects';
|
|
2
|
-
import { CalendarSource, MeetingSource, OnBoardingState } from '../_internal/enums';
|
|
3
|
-
import { TimeZoneInterface } from '../_internal/interfaces';
|
|
2
|
+
import { CalendarSource, CalendarView, MeetingSource, OnBoardingState } from '../_internal/enums';
|
|
3
|
+
import { CalendarMemberInterface, TimeZoneInterface } from '../_internal/interfaces';
|
|
4
4
|
export interface Preferences {
|
|
5
5
|
timezone: TimeZoneInterface;
|
|
6
6
|
meetingIntegration: MeetingSource;
|
|
@@ -11,5 +11,7 @@ export interface Preferences {
|
|
|
11
11
|
calendarSlug: string;
|
|
12
12
|
calendarIntegration: CalendarSource;
|
|
13
13
|
onBoardingState: OnBoardingState;
|
|
14
|
+
calendarMembers: CalendarMemberInterface[];
|
|
15
|
+
defaultCalendarView: CalendarView;
|
|
14
16
|
}
|
|
15
17
|
export declare function PreferencesFromApi(preferences: APIPreferences): Preferences;
|