@vendasta/meetings 1.7.3 → 1.7.5

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.
Files changed (32) hide show
  1. package/esm2020/lib/_internal/enums/index.mjs +2 -2
  2. package/esm2020/lib/_internal/enums/meeting-type.enum.mjs +7 -1
  3. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  4. package/esm2020/lib/_internal/interfaces/meeting-guest.interface.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/meeting-host.interface.mjs +1 -1
  6. package/esm2020/lib/_internal/interfaces/meeting-type.interface.mjs +1 -1
  7. package/esm2020/lib/_internal/meeting-guest.api.service.mjs +6 -2
  8. package/esm2020/lib/_internal/meeting-host.api.service.mjs +7 -2
  9. package/esm2020/lib/_internal/objects/index.mjs +4 -4
  10. package/esm2020/lib/_internal/objects/meeting-guest.mjs +40 -5
  11. package/esm2020/lib/_internal/objects/meeting-host.mjs +54 -2
  12. package/esm2020/lib/_internal/objects/meeting-type.mjs +33 -1
  13. package/esm2020/lib/guest/guest.service.mjs +1 -1
  14. package/esm2020/lib/host/host.service.mjs +4 -1
  15. package/fesm2015/vendasta-meetings.mjs +141 -4
  16. package/fesm2015/vendasta-meetings.mjs.map +1 -1
  17. package/fesm2020/vendasta-meetings.mjs +141 -4
  18. package/fesm2020/vendasta-meetings.mjs.map +1 -1
  19. package/lib/_internal/enums/index.d.ts +1 -1
  20. package/lib/_internal/enums/meeting-type.enum.d.ts +5 -0
  21. package/lib/_internal/interfaces/index.d.ts +3 -3
  22. package/lib/_internal/interfaces/meeting-guest.interface.d.ts +8 -2
  23. package/lib/_internal/interfaces/meeting-host.interface.d.ts +9 -1
  24. package/lib/_internal/interfaces/meeting-type.interface.d.ts +6 -0
  25. package/lib/_internal/meeting-guest.api.service.d.ts +3 -2
  26. package/lib/_internal/meeting-host.api.service.d.ts +3 -2
  27. package/lib/_internal/objects/index.d.ts +3 -3
  28. package/lib/_internal/objects/meeting-guest.d.ts +15 -6
  29. package/lib/_internal/objects/meeting-host.d.ts +15 -1
  30. package/lib/_internal/objects/meeting-type.d.ts +9 -0
  31. package/lib/host/host.service.d.ts +7 -1
  32. package/package.json +1 -1
@@ -134,6 +134,12 @@ var OnBoardingState;
134
134
  //
135
135
  // Enums.
136
136
  // *********************************
137
+ var BookingEventType;
138
+ (function (BookingEventType) {
139
+ BookingEventType[BookingEventType["BOOKING_EVENT_TYPE_PERSONAL"] = 0] = "BOOKING_EVENT_TYPE_PERSONAL";
140
+ BookingEventType[BookingEventType["BOOKING_EVENT_TYPE_TEAM"] = 1] = "BOOKING_EVENT_TYPE_TEAM";
141
+ BookingEventType[BookingEventType["BOOKING_EVENT_TYPE_SERVICE_MENU"] = 2] = "BOOKING_EVENT_TYPE_SERVICE_MENU";
142
+ })(BookingEventType || (BookingEventType = {}));
137
143
  var BookingSource;
138
144
  (function (BookingSource) {
139
145
  BookingSource[BookingSource["BOOKING_SOURCE_UNKNOWN"] = 0] = "BOOKING_SOURCE_UNKNOWN";
@@ -2065,6 +2071,38 @@ function enumStringToValue$9(enumRef, value) {
2065
2071
  }
2066
2072
  return enumRef[value];
2067
2073
  }
2074
+ class BookingEventForAI {
2075
+ static fromProto(proto) {
2076
+ let m = new BookingEventForAI();
2077
+ m = Object.assign(m, proto);
2078
+ if (proto.type) {
2079
+ m.type = enumStringToValue$9(BookingEventType, proto.type);
2080
+ }
2081
+ return m;
2082
+ }
2083
+ constructor(kwargs) {
2084
+ if (!kwargs) {
2085
+ return;
2086
+ }
2087
+ Object.assign(this, kwargs);
2088
+ }
2089
+ toApiJson() {
2090
+ const toReturn = {};
2091
+ if (typeof this.id !== 'undefined') {
2092
+ toReturn['id'] = this.id;
2093
+ }
2094
+ if (typeof this.name !== 'undefined') {
2095
+ toReturn['name'] = this.name;
2096
+ }
2097
+ if (typeof this.calendarId !== 'undefined') {
2098
+ toReturn['calendarId'] = this.calendarId;
2099
+ }
2100
+ if (typeof this.type !== 'undefined') {
2101
+ toReturn['type'] = this.type;
2102
+ }
2103
+ return toReturn;
2104
+ }
2105
+ }
2068
2106
  class EventTypeDateRange {
2069
2107
  static fromProto(proto) {
2070
2108
  let m = new EventTypeDateRange();
@@ -5289,9 +5327,9 @@ class MeetingSummary {
5289
5327
  return toReturn;
5290
5328
  }
5291
5329
  }
5292
- class BookMeetingRequestMetadataEntry {
5330
+ class BookBatchMeetingRequestMetadataEntry {
5293
5331
  static fromProto(proto) {
5294
- let m = new BookMeetingRequestMetadataEntry();
5332
+ let m = new BookBatchMeetingRequestMetadataEntry();
5295
5333
  m = Object.assign(m, proto);
5296
5334
  return m;
5297
5335
  }
@@ -5312,9 +5350,9 @@ class BookMeetingRequestMetadataEntry {
5312
5350
  return toReturn;
5313
5351
  }
5314
5352
  }
5315
- class BookBatchMeetingRequestMetadataEntry {
5353
+ class BookMeetingRequestMetadataEntry {
5316
5354
  static fromProto(proto) {
5317
- let m = new BookBatchMeetingRequestMetadataEntry();
5355
+ let m = new BookMeetingRequestMetadataEntry();
5318
5356
  m = Object.assign(m, proto);
5319
5357
  return m;
5320
5358
  }
@@ -5373,6 +5411,41 @@ class RegisterSessionRequest {
5373
5411
  return toReturn;
5374
5412
  }
5375
5413
  }
5414
+ class RescheduleBatchMeetingRequest {
5415
+ static fromProto(proto) {
5416
+ let m = new RescheduleBatchMeetingRequest();
5417
+ m = Object.assign(m, proto);
5418
+ if (proto.start) {
5419
+ m.start = new Date(proto.start);
5420
+ }
5421
+ if (proto.timeZone) {
5422
+ m.timeZone = TimeZone.fromProto(proto.timeZone);
5423
+ }
5424
+ return m;
5425
+ }
5426
+ constructor(kwargs) {
5427
+ if (!kwargs) {
5428
+ return;
5429
+ }
5430
+ Object.assign(this, kwargs);
5431
+ }
5432
+ toApiJson() {
5433
+ const toReturn = {};
5434
+ if (typeof this.id !== 'undefined') {
5435
+ toReturn['id'] = this.id;
5436
+ }
5437
+ if (typeof this.start !== 'undefined' && this.start !== null) {
5438
+ toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
5439
+ }
5440
+ if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
5441
+ toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
5442
+ }
5443
+ if (typeof this.location !== 'undefined') {
5444
+ toReturn['location'] = this.location;
5445
+ }
5446
+ return toReturn;
5447
+ }
5448
+ }
5376
5449
  class ServiceEventType {
5377
5450
  static fromProto(proto) {
5378
5451
  let m = new ServiceEventType();
@@ -8260,6 +8333,58 @@ class ListBookedMeetingsResponse {
8260
8333
  return toReturn;
8261
8334
  }
8262
8335
  }
8336
+ class ListBookingTypesForAIRequest {
8337
+ static fromProto(proto) {
8338
+ let m = new ListBookingTypesForAIRequest();
8339
+ m = Object.assign(m, proto);
8340
+ if (proto.bookingSource) {
8341
+ m.bookingSource = enumStringToValue$3(BookingSource, proto.bookingSource);
8342
+ }
8343
+ return m;
8344
+ }
8345
+ constructor(kwargs) {
8346
+ if (!kwargs) {
8347
+ return;
8348
+ }
8349
+ Object.assign(this, kwargs);
8350
+ }
8351
+ toApiJson() {
8352
+ const toReturn = {};
8353
+ if (typeof this.userId !== 'undefined') {
8354
+ toReturn['userId'] = this.userId;
8355
+ }
8356
+ if (typeof this.namespace !== 'undefined') {
8357
+ toReturn['namespace'] = this.namespace;
8358
+ }
8359
+ if (typeof this.bookingSource !== 'undefined') {
8360
+ toReturn['bookingSource'] = this.bookingSource;
8361
+ }
8362
+ return toReturn;
8363
+ }
8364
+ }
8365
+ class ListBookingTypesForAIResponse {
8366
+ static fromProto(proto) {
8367
+ let m = new ListBookingTypesForAIResponse();
8368
+ m = Object.assign(m, proto);
8369
+ if (proto.bookingEvents) {
8370
+ m.bookingEvents = proto.bookingEvents.map(BookingEventForAI.fromProto);
8371
+ }
8372
+ return m;
8373
+ }
8374
+ constructor(kwargs) {
8375
+ if (!kwargs) {
8376
+ return;
8377
+ }
8378
+ Object.assign(this, kwargs);
8379
+ }
8380
+ toApiJson() {
8381
+ const toReturn = {};
8382
+ if (typeof this.bookingEvents !== 'undefined' && this.bookingEvents !== null) {
8383
+ toReturn['bookingEvents'] = 'toApiJson' in this.bookingEvents ? this.bookingEvents.toApiJson() : this.bookingEvents;
8384
+ }
8385
+ return toReturn;
8386
+ }
8387
+ }
8263
8388
  class ListEventTypesForMultipleCalendarsRequest {
8264
8389
  static fromProto(proto) {
8265
8390
  let m = new ListEventTypesForMultipleCalendarsRequest();
@@ -9703,6 +9828,10 @@ class MeetingGuestApiService {
9703
9828
  return this.http.post(this._host + "/meetings.v1.MeetingGuest/BookBatchMeeting", request.toApiJson(), this.apiOptions())
9704
9829
  .pipe(map(resp => BookBatchMeetingResponse.fromProto(resp)));
9705
9830
  }
9831
+ rescheduleBatchMeeting(r) {
9832
+ const request = (r.toApiJson) ? r : new RescheduleBatchMeetingRequest(r);
9833
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/RescheduleBatchMeeting", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
9834
+ }
9706
9835
  cancelBatchMeeting(r) {
9707
9836
  const request = (r.toApiJson) ? r : new CancelBatchMeetingRequest(r);
9708
9837
  return this.http.post(this._host + "/meetings.v1.MeetingGuest/CancelBatchMeeting", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
@@ -10000,6 +10129,11 @@ class MeetingHostApiService {
10000
10129
  return this.http.post(this._host + "/meetings.v1.MeetingHost/GetEventTypeById", request.toApiJson(), this.apiOptions())
10001
10130
  .pipe(map(resp => GetEventTypeByIdResponse.fromProto(resp)));
10002
10131
  }
10132
+ listBookingTypesForAi(r) {
10133
+ const request = (r.toApiJson) ? r : new ListBookingTypesForAIRequest(r);
10134
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/ListBookingTypesForAI", request.toApiJson(), this.apiOptions())
10135
+ .pipe(map(resp => ListBookingTypesForAIResponse.fromProto(resp)));
10136
+ }
10003
10137
  }
10004
10138
  MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10005
10139
  MeetingHostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, providedIn: 'root' });
@@ -11246,6 +11380,9 @@ class HostService {
11246
11380
  listEventTypesForMultipleCalendars(req) {
11247
11381
  return this.hostAPIService.listEventTypesForMultipleCalendars(req);
11248
11382
  }
11383
+ listBookingTypesForAi(req) {
11384
+ return this.hostAPIService.listBookingTypesForAi(req);
11385
+ }
11249
11386
  }
11250
11387
  HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, deps: [{ token: MeetingHostApiService }], target: i0.ɵɵFactoryTarget.Injectable });
11251
11388
  HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, providedIn: "root" });