@vendasta/meetings 1.5.9 → 1.6.1
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/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/meeting-host.api.service.mjs +7 -2
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/meeting-guest.mjs +13 -1
- package/esm2020/lib/_internal/objects/meeting-host.mjs +62 -19
- package/esm2020/lib/host/host.service.mjs +27 -2
- package/fesm2015/vendasta-meetings.mjs +104 -19
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +104 -19
- package/fesm2020/vendasta-meetings.mjs.map +1 -1
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/meeting-guest.interface.d.ts +2 -0
- package/lib/_internal/interfaces/meeting-host.interface.d.ts +12 -6
- package/lib/_internal/meeting-host.api.service.d.ts +3 -2
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/meeting-guest.d.ts +2 -0
- package/lib/_internal/objects/meeting-host.d.ts +25 -13
- package/lib/host/host.service.d.ts +7 -0
- package/package.json +1 -1
|
@@ -3190,6 +3190,12 @@ class GuestGetBookedMeetingResponseV2 {
|
|
|
3190
3190
|
if (proto.timeZone) {
|
|
3191
3191
|
m.timeZone = TimeZone.fromProto(proto.timeZone);
|
|
3192
3192
|
}
|
|
3193
|
+
if (proto.previousStartTime) {
|
|
3194
|
+
m.previousStartTime = new Date(proto.previousStartTime);
|
|
3195
|
+
}
|
|
3196
|
+
if (proto.previousEndTime) {
|
|
3197
|
+
m.previousEndTime = new Date(proto.previousEndTime);
|
|
3198
|
+
}
|
|
3193
3199
|
return m;
|
|
3194
3200
|
}
|
|
3195
3201
|
constructor(kwargs) {
|
|
@@ -3245,6 +3251,12 @@ class GuestGetBookedMeetingResponseV2 {
|
|
|
3245
3251
|
if (typeof this.bookingUrl !== 'undefined') {
|
|
3246
3252
|
toReturn['bookingUrl'] = this.bookingUrl;
|
|
3247
3253
|
}
|
|
3254
|
+
if (typeof this.previousStartTime !== 'undefined' && this.previousStartTime !== null) {
|
|
3255
|
+
toReturn['previousStartTime'] = 'toApiJson' in this.previousStartTime ? this.previousStartTime.toApiJson() : this.previousStartTime;
|
|
3256
|
+
}
|
|
3257
|
+
if (typeof this.previousEndTime !== 'undefined' && this.previousEndTime !== null) {
|
|
3258
|
+
toReturn['previousEndTime'] = 'toApiJson' in this.previousEndTime ? this.previousEndTime.toApiJson() : this.previousEndTime;
|
|
3259
|
+
}
|
|
3248
3260
|
return toReturn;
|
|
3249
3261
|
}
|
|
3250
3262
|
}
|
|
@@ -4362,9 +4374,9 @@ class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
|
|
|
4362
4374
|
return toReturn;
|
|
4363
4375
|
}
|
|
4364
4376
|
}
|
|
4365
|
-
class
|
|
4377
|
+
class BuildHostIdRequestApplicationContextPropertiesEntry {
|
|
4366
4378
|
static fromProto(proto) {
|
|
4367
|
-
let m = new
|
|
4379
|
+
let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
|
|
4368
4380
|
m = Object.assign(m, proto);
|
|
4369
4381
|
return m;
|
|
4370
4382
|
}
|
|
@@ -4385,9 +4397,9 @@ class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
|
|
|
4385
4397
|
return toReturn;
|
|
4386
4398
|
}
|
|
4387
4399
|
}
|
|
4388
|
-
class
|
|
4400
|
+
class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
|
|
4389
4401
|
static fromProto(proto) {
|
|
4390
|
-
let m = new
|
|
4402
|
+
let m = new EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry();
|
|
4391
4403
|
m = Object.assign(m, proto);
|
|
4392
4404
|
return m;
|
|
4393
4405
|
}
|
|
@@ -5237,13 +5249,10 @@ class EventTypeSummary {
|
|
|
5237
5249
|
return toReturn;
|
|
5238
5250
|
}
|
|
5239
5251
|
}
|
|
5240
|
-
class
|
|
5252
|
+
class ListAvailabilityRequestFilters {
|
|
5241
5253
|
static fromProto(proto) {
|
|
5242
|
-
let m = new
|
|
5254
|
+
let m = new ListAvailabilityRequestFilters();
|
|
5243
5255
|
m = Object.assign(m, proto);
|
|
5244
|
-
if (proto.timeSpan) {
|
|
5245
|
-
m.timeSpan = DateRange.fromProto(proto.timeSpan);
|
|
5246
|
-
}
|
|
5247
5256
|
return m;
|
|
5248
5257
|
}
|
|
5249
5258
|
constructor(kwargs) {
|
|
@@ -5254,22 +5263,22 @@ class ListBookedMeetingsRequestFilters {
|
|
|
5254
5263
|
}
|
|
5255
5264
|
toApiJson() {
|
|
5256
5265
|
const toReturn = {};
|
|
5257
|
-
if (typeof this.meetingTypeIds !== 'undefined') {
|
|
5258
|
-
toReturn['meetingTypeIds'] = this.meetingTypeIds;
|
|
5259
|
-
}
|
|
5260
5266
|
if (typeof this.hostId !== 'undefined') {
|
|
5261
5267
|
toReturn['hostId'] = this.hostId;
|
|
5262
5268
|
}
|
|
5263
|
-
if (typeof this.
|
|
5264
|
-
toReturn['
|
|
5269
|
+
if (typeof this.meetingTypeId !== 'undefined') {
|
|
5270
|
+
toReturn['meetingTypeId'] = this.meetingTypeId;
|
|
5265
5271
|
}
|
|
5266
5272
|
return toReturn;
|
|
5267
5273
|
}
|
|
5268
5274
|
}
|
|
5269
|
-
class
|
|
5275
|
+
class ListBookedMeetingsRequestFilters {
|
|
5270
5276
|
static fromProto(proto) {
|
|
5271
|
-
let m = new
|
|
5277
|
+
let m = new ListBookedMeetingsRequestFilters();
|
|
5272
5278
|
m = Object.assign(m, proto);
|
|
5279
|
+
if (proto.timeSpan) {
|
|
5280
|
+
m.timeSpan = DateRange.fromProto(proto.timeSpan);
|
|
5281
|
+
}
|
|
5273
5282
|
return m;
|
|
5274
5283
|
}
|
|
5275
5284
|
constructor(kwargs) {
|
|
@@ -5280,11 +5289,14 @@ class ListAvailabilityRequestFilters {
|
|
|
5280
5289
|
}
|
|
5281
5290
|
toApiJson() {
|
|
5282
5291
|
const toReturn = {};
|
|
5292
|
+
if (typeof this.meetingTypeIds !== 'undefined') {
|
|
5293
|
+
toReturn['meetingTypeIds'] = this.meetingTypeIds;
|
|
5294
|
+
}
|
|
5283
5295
|
if (typeof this.hostId !== 'undefined') {
|
|
5284
5296
|
toReturn['hostId'] = this.hostId;
|
|
5285
5297
|
}
|
|
5286
|
-
if (typeof this.
|
|
5287
|
-
toReturn['
|
|
5298
|
+
if (typeof this.timeSpan !== 'undefined' && this.timeSpan !== null) {
|
|
5299
|
+
toReturn['timeSpan'] = 'toApiJson' in this.timeSpan ? this.timeSpan.toApiJson() : this.timeSpan;
|
|
5288
5300
|
}
|
|
5289
5301
|
return toReturn;
|
|
5290
5302
|
}
|
|
@@ -5332,6 +5344,49 @@ class GetEntityAssociationResponse {
|
|
|
5332
5344
|
return toReturn;
|
|
5333
5345
|
}
|
|
5334
5346
|
}
|
|
5347
|
+
class GetEventTypeByIdRequest {
|
|
5348
|
+
static fromProto(proto) {
|
|
5349
|
+
let m = new GetEventTypeByIdRequest();
|
|
5350
|
+
m = Object.assign(m, proto);
|
|
5351
|
+
return m;
|
|
5352
|
+
}
|
|
5353
|
+
constructor(kwargs) {
|
|
5354
|
+
if (!kwargs) {
|
|
5355
|
+
return;
|
|
5356
|
+
}
|
|
5357
|
+
Object.assign(this, kwargs);
|
|
5358
|
+
}
|
|
5359
|
+
toApiJson() {
|
|
5360
|
+
const toReturn = {};
|
|
5361
|
+
if (typeof this.eventTypeId !== 'undefined') {
|
|
5362
|
+
toReturn['eventTypeId'] = this.eventTypeId;
|
|
5363
|
+
}
|
|
5364
|
+
return toReturn;
|
|
5365
|
+
}
|
|
5366
|
+
}
|
|
5367
|
+
class GetEventTypeByIdResponse {
|
|
5368
|
+
static fromProto(proto) {
|
|
5369
|
+
let m = new GetEventTypeByIdResponse();
|
|
5370
|
+
m = Object.assign(m, proto);
|
|
5371
|
+
if (proto.meetingType) {
|
|
5372
|
+
m.meetingType = MeetingType.fromProto(proto.meetingType);
|
|
5373
|
+
}
|
|
5374
|
+
return m;
|
|
5375
|
+
}
|
|
5376
|
+
constructor(kwargs) {
|
|
5377
|
+
if (!kwargs) {
|
|
5378
|
+
return;
|
|
5379
|
+
}
|
|
5380
|
+
Object.assign(this, kwargs);
|
|
5381
|
+
}
|
|
5382
|
+
toApiJson() {
|
|
5383
|
+
const toReturn = {};
|
|
5384
|
+
if (typeof this.meetingType !== 'undefined' && this.meetingType !== null) {
|
|
5385
|
+
toReturn['meetingType'] = 'toApiJson' in this.meetingType ? this.meetingType.toApiJson() : this.meetingType;
|
|
5386
|
+
}
|
|
5387
|
+
return toReturn;
|
|
5388
|
+
}
|
|
5389
|
+
}
|
|
5335
5390
|
class GetHostMeetingRequest {
|
|
5336
5391
|
static fromProto(proto) {
|
|
5337
5392
|
let m = new GetHostMeetingRequest();
|
|
@@ -8016,6 +8071,11 @@ class MeetingHostApiService {
|
|
|
8016
8071
|
return this.http.post(this._host + "/meetings.v1.MeetingHost/ListAvailableTimeslotsForRecurringSession", request.toApiJson(), this.apiOptions())
|
|
8017
8072
|
.pipe(map(resp => ListAvailableTimeslotsForRecurringSessionResponse.fromProto(resp)));
|
|
8018
8073
|
}
|
|
8074
|
+
getEventTypeById(r) {
|
|
8075
|
+
const request = (r.toApiJson) ? r : new GetEventTypeByIdRequest(r);
|
|
8076
|
+
return this.http.post(this._host + "/meetings.v1.MeetingHost/GetEventTypeById", request.toApiJson(), this.apiOptions())
|
|
8077
|
+
.pipe(map(resp => GetEventTypeByIdResponse.fromProto(resp)));
|
|
8078
|
+
}
|
|
8019
8079
|
}
|
|
8020
8080
|
MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8021
8081
|
MeetingHostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, providedIn: 'root' });
|
|
@@ -8754,7 +8814,7 @@ class HostService {
|
|
|
8754
8814
|
@param metadata: optional metadata to include on the meeting type booking link
|
|
8755
8815
|
@param calendarSlug: used to replace hostId in the url. Use it when you are confident you know the host's slug.
|
|
8756
8816
|
- calendarSlug IS NOT USED TO RETRIEVE MEETING TYPES, ONLY TO MAKE THE BOOKING URLS
|
|
8757
|
-
|
|
8817
|
+
*/
|
|
8758
8818
|
listMeetingTypes(req) {
|
|
8759
8819
|
return this.hostAPIService.listMeetingTypes(req).pipe(map((resp) => {
|
|
8760
8820
|
if (!resp || !resp.meetingTypes) {
|
|
@@ -8773,6 +8833,31 @@ class HostService {
|
|
|
8773
8833
|
});
|
|
8774
8834
|
}));
|
|
8775
8835
|
}
|
|
8836
|
+
/*
|
|
8837
|
+
getEventTypeById returns a single meeting type by ID.
|
|
8838
|
+
@param eventTypeId: The unique identifier for the event type
|
|
8839
|
+
@param metadata: optional metadata to include on the meeting type booking link
|
|
8840
|
+
@param calendarSlug: used to replace hostId in the url. Use it when you are confident you know the host's slug.
|
|
8841
|
+
- calendarSlug IS NOT USED TO RETRIEVE THE EVENT TYPE, ONLY TO MAKE THE BOOKING URL
|
|
8842
|
+
*/
|
|
8843
|
+
getEventTypeById(req) {
|
|
8844
|
+
return this.hostAPIService
|
|
8845
|
+
.getEventTypeById({ eventTypeId: req.eventTypeId })
|
|
8846
|
+
.pipe(map((resp) => {
|
|
8847
|
+
if (!resp.meetingType) {
|
|
8848
|
+
return null;
|
|
8849
|
+
}
|
|
8850
|
+
return MeetingTypeFromApi({
|
|
8851
|
+
meetingTypeApi: resp.meetingType,
|
|
8852
|
+
calendarId: resp.meetingType.calendarId || "",
|
|
8853
|
+
environment: onProductionGlobal()
|
|
8854
|
+
? Environment.PROD
|
|
8855
|
+
: Environment.DEMO,
|
|
8856
|
+
metadata: req.metadata,
|
|
8857
|
+
calendarSlug: req.calendarSlug,
|
|
8858
|
+
});
|
|
8859
|
+
}));
|
|
8860
|
+
}
|
|
8776
8861
|
/*
|
|
8777
8862
|
getBookingUrl returns a link that can be used to book a meeting with this host.
|
|
8778
8863
|
@param calendarId: An identifier for an individual host or grouping of hosts (i.e., team).
|