@vendasta/meetings 1.5.7 → 1.5.9

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.
@@ -4339,9 +4339,9 @@ function enumStringToValue$3(enumRef, value) {
4339
4339
  }
4340
4340
  return enumRef[value];
4341
4341
  }
4342
- class BuildHostIdRequestApplicationContextPropertiesEntry {
4342
+ class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
4343
4343
  static fromProto(proto) {
4344
- let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
4344
+ let m = new IsCalendarConfiguredRequestApplicationContextPropertiesEntry();
4345
4345
  m = Object.assign(m, proto);
4346
4346
  return m;
4347
4347
  }
@@ -4385,9 +4385,9 @@ class EnsurePersonalCalendarExistsRequestApplicationContextPropertiesEntry {
4385
4385
  return toReturn;
4386
4386
  }
4387
4387
  }
4388
- class IsCalendarConfiguredRequestApplicationContextPropertiesEntry {
4388
+ class BuildHostIdRequestApplicationContextPropertiesEntry {
4389
4389
  static fromProto(proto) {
4390
- let m = new IsCalendarConfiguredRequestApplicationContextPropertiesEntry();
4390
+ let m = new BuildHostIdRequestApplicationContextPropertiesEntry();
4391
4391
  m = Object.assign(m, proto);
4392
4392
  return m;
4393
4393
  }
@@ -5187,6 +5187,56 @@ class EnsureSessionEventCalendarsExistResponse {
5187
5187
  return toReturn;
5188
5188
  }
5189
5189
  }
5190
+ class EventTypeSummary {
5191
+ static fromProto(proto) {
5192
+ let m = new EventTypeSummary();
5193
+ m = Object.assign(m, proto);
5194
+ if (proto.duration) {
5195
+ m.duration = parseInt(proto.duration, 10);
5196
+ }
5197
+ return m;
5198
+ }
5199
+ constructor(kwargs) {
5200
+ if (!kwargs) {
5201
+ return;
5202
+ }
5203
+ Object.assign(this, kwargs);
5204
+ }
5205
+ toApiJson() {
5206
+ const toReturn = {};
5207
+ if (typeof this.id !== 'undefined') {
5208
+ toReturn['id'] = this.id;
5209
+ }
5210
+ if (typeof this.name !== 'undefined') {
5211
+ toReturn['name'] = this.name;
5212
+ }
5213
+ if (typeof this.slug !== 'undefined') {
5214
+ toReturn['slug'] = this.slug;
5215
+ }
5216
+ if (typeof this.duration !== 'undefined') {
5217
+ toReturn['duration'] = this.duration;
5218
+ }
5219
+ if (typeof this.bookingUrl !== 'undefined') {
5220
+ toReturn['bookingUrl'] = this.bookingUrl;
5221
+ }
5222
+ if (typeof this.isPinned !== 'undefined') {
5223
+ toReturn['isPinned'] = this.isPinned;
5224
+ }
5225
+ if (typeof this.location !== 'undefined') {
5226
+ toReturn['location'] = this.location;
5227
+ }
5228
+ if (typeof this.category !== 'undefined') {
5229
+ toReturn['category'] = this.category;
5230
+ }
5231
+ if (typeof this.teamName !== 'undefined') {
5232
+ toReturn['teamName'] = this.teamName;
5233
+ }
5234
+ if (typeof this.calendarId !== 'undefined') {
5235
+ toReturn['calendarId'] = this.calendarId;
5236
+ }
5237
+ return toReturn;
5238
+ }
5239
+ }
5190
5240
  class ListBookedMeetingsRequestFilters {
5191
5241
  static fromProto(proto) {
5192
5242
  let m = new ListBookedMeetingsRequestFilters();
@@ -6255,6 +6305,49 @@ class ListBookedMeetingsResponse {
6255
6305
  return toReturn;
6256
6306
  }
6257
6307
  }
6308
+ class ListEventTypesForMultipleCalendarsRequest {
6309
+ static fromProto(proto) {
6310
+ let m = new ListEventTypesForMultipleCalendarsRequest();
6311
+ m = Object.assign(m, proto);
6312
+ return m;
6313
+ }
6314
+ constructor(kwargs) {
6315
+ if (!kwargs) {
6316
+ return;
6317
+ }
6318
+ Object.assign(this, kwargs);
6319
+ }
6320
+ toApiJson() {
6321
+ const toReturn = {};
6322
+ if (typeof this.calendarIds !== 'undefined') {
6323
+ toReturn['calendarIds'] = this.calendarIds;
6324
+ }
6325
+ return toReturn;
6326
+ }
6327
+ }
6328
+ class ListEventTypesForMultipleCalendarsResponse {
6329
+ static fromProto(proto) {
6330
+ let m = new ListEventTypesForMultipleCalendarsResponse();
6331
+ m = Object.assign(m, proto);
6332
+ if (proto.eventTypes) {
6333
+ m.eventTypes = proto.eventTypes.map(EventTypeSummary.fromProto);
6334
+ }
6335
+ return m;
6336
+ }
6337
+ constructor(kwargs) {
6338
+ if (!kwargs) {
6339
+ return;
6340
+ }
6341
+ Object.assign(this, kwargs);
6342
+ }
6343
+ toApiJson() {
6344
+ const toReturn = {};
6345
+ if (typeof this.eventTypes !== 'undefined' && this.eventTypes !== null) {
6346
+ toReturn['eventTypes'] = 'toApiJson' in this.eventTypes ? this.eventTypes.toApiJson() : this.eventTypes;
6347
+ }
6348
+ return toReturn;
6349
+ }
6350
+ }
6258
6351
  class ListGroupsRequest {
6259
6352
  static fromProto(proto) {
6260
6353
  let m = new ListGroupsRequest();
@@ -7717,6 +7810,11 @@ class MeetingHostApiService {
7717
7810
  return this.http.post(this._host + "/meetings.v1.MeetingHost/GetMeetingTypesForCalendars", request.toApiJson(), this.apiOptions())
7718
7811
  .pipe(map(resp => GetMeetingTypesForCalendarsResponse.fromProto(resp)));
7719
7812
  }
7813
+ listEventTypesForMultipleCalendars(r) {
7814
+ const request = (r.toApiJson) ? r : new ListEventTypesForMultipleCalendarsRequest(r);
7815
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/ListEventTypesForMultipleCalendars", request.toApiJson(), this.apiOptions())
7816
+ .pipe(map(resp => ListEventTypesForMultipleCalendarsResponse.fromProto(resp)));
7817
+ }
7720
7818
  listAvailability(r) {
7721
7819
  const request = (r.toApiJson) ? r : new ListAvailabilityRequest(r);
7722
7820
  return this.http.post(this._host + "/meetings.v1.MeetingHost/ListAvailability", request.toApiJson(), this.apiOptions())
@@ -9101,7 +9199,12 @@ class HostService {
9101
9199
  .pipe(mapTo(null));
9102
9200
  }
9103
9201
  listAvailableTimeslotsForSession(req) {
9104
- return this.hostAPIService.listAvailableTimeslotsForSession(req).pipe(map(resp => resp.timeSlots ? resp.timeSlots.map(ts => TimeSpanFromApi(ts)) : []));
9202
+ return this.hostAPIService
9203
+ .listAvailableTimeslotsForSession(req)
9204
+ .pipe(map((resp) => resp.timeSlots ? resp.timeSlots.map((ts) => TimeSpanFromApi(ts)) : []));
9205
+ }
9206
+ listEventTypesForMultipleCalendars(req) {
9207
+ return this.hostAPIService.listEventTypesForMultipleCalendars(req);
9105
9208
  }
9106
9209
  }
9107
9210
  HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, deps: [{ token: MeetingHostApiService }], target: i0.ɵɵFactoryTarget.Injectable });