@vendasta/meetings 1.7.4 → 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 +5 -5
  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 -40
  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 -43
  16. package/fesm2015/vendasta-meetings.mjs.map +1 -1
  17. package/fesm2020/vendasta-meetings.mjs +141 -43
  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 -8
  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 +1 -1
  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 -15
  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();
@@ -3979,41 +4017,6 @@ class CancelBatchMeetingRequest {
3979
4017
  return toReturn;
3980
4018
  }
3981
4019
  }
3982
- class RescheduleBatchMeetingRequest {
3983
- static fromProto(proto) {
3984
- let m = new RescheduleBatchMeetingRequest();
3985
- m = Object.assign(m, proto);
3986
- if (proto.start) {
3987
- m.start = new Date(proto.start);
3988
- }
3989
- if (proto.timeZone) {
3990
- m.timeZone = TimeZone.fromProto(proto.timeZone);
3991
- }
3992
- return m;
3993
- }
3994
- constructor(kwargs) {
3995
- if (!kwargs) {
3996
- return;
3997
- }
3998
- Object.assign(this, kwargs);
3999
- }
4000
- toApiJson() {
4001
- const toReturn = {};
4002
- if (typeof this.id !== 'undefined') {
4003
- toReturn['id'] = this.id;
4004
- }
4005
- if (typeof this.start !== 'undefined' && this.start !== null) {
4006
- toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
4007
- }
4008
- if (typeof this.timeZone !== 'undefined' && this.timeZone !== null) {
4009
- toReturn['timeZone'] = 'toApiJson' in this.timeZone ? this.timeZone.toApiJson() : this.timeZone;
4010
- }
4011
- if (typeof this.location !== 'undefined') {
4012
- toReturn['location'] = this.location;
4013
- }
4014
- return toReturn;
4015
- }
4016
- }
4017
4020
  class CheckFeatureFlagRequest {
4018
4021
  static fromProto(proto) {
4019
4022
  let m = new CheckFeatureFlagRequest();
@@ -5324,9 +5327,9 @@ class MeetingSummary {
5324
5327
  return toReturn;
5325
5328
  }
5326
5329
  }
5327
- class BookMeetingRequestMetadataEntry {
5330
+ class BookBatchMeetingRequestMetadataEntry {
5328
5331
  static fromProto(proto) {
5329
- let m = new BookMeetingRequestMetadataEntry();
5332
+ let m = new BookBatchMeetingRequestMetadataEntry();
5330
5333
  m = Object.assign(m, proto);
5331
5334
  return m;
5332
5335
  }
@@ -5347,9 +5350,9 @@ class BookMeetingRequestMetadataEntry {
5347
5350
  return toReturn;
5348
5351
  }
5349
5352
  }
5350
- class BookBatchMeetingRequestMetadataEntry {
5353
+ class BookMeetingRequestMetadataEntry {
5351
5354
  static fromProto(proto) {
5352
- let m = new BookBatchMeetingRequestMetadataEntry();
5355
+ let m = new BookMeetingRequestMetadataEntry();
5353
5356
  m = Object.assign(m, proto);
5354
5357
  return m;
5355
5358
  }
@@ -5408,6 +5411,41 @@ class RegisterSessionRequest {
5408
5411
  return toReturn;
5409
5412
  }
5410
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
+ }
5411
5449
  class ServiceEventType {
5412
5450
  static fromProto(proto) {
5413
5451
  let m = new ServiceEventType();
@@ -8295,6 +8333,58 @@ class ListBookedMeetingsResponse {
8295
8333
  return toReturn;
8296
8334
  }
8297
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
+ }
8298
8388
  class ListEventTypesForMultipleCalendarsRequest {
8299
8389
  static fromProto(proto) {
8300
8390
  let m = new ListEventTypesForMultipleCalendarsRequest();
@@ -10029,14 +10119,14 @@ class MeetingGuestApiService {
10029
10119
  return this.http.post(this._host + "/meetings.v1.MeetingGuest/BookBatchMeeting", request.toApiJson(), this.apiOptions())
10030
10120
  .pipe(map(resp => BookBatchMeetingResponse.fromProto(resp)));
10031
10121
  }
10032
- cancelBatchMeeting(r) {
10033
- const request = (r.toApiJson) ? r : new CancelBatchMeetingRequest(r);
10034
- return this.http.post(this._host + "/meetings.v1.MeetingGuest/CancelBatchMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
10035
- }
10036
10122
  rescheduleBatchMeeting(r) {
10037
10123
  const request = (r.toApiJson) ? r : new RescheduleBatchMeetingRequest(r);
10038
10124
  return this.http.post(this._host + "/meetings.v1.MeetingGuest/RescheduleBatchMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
10039
10125
  }
10126
+ cancelBatchMeeting(r) {
10127
+ const request = (r.toApiJson) ? r : new CancelBatchMeetingRequest(r);
10128
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/CancelBatchMeeting", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
10129
+ }
10040
10130
  getServiceV2(r) {
10041
10131
  const request = (r.toApiJson) ? r : new GetServiceV2Request(r);
10042
10132
  return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetServiceV2", request.toApiJson(), this.apiOptions())
@@ -10330,6 +10420,11 @@ class MeetingHostApiService {
10330
10420
  return this.http.post(this._host + "/meetings.v1.MeetingHost/GetEventTypeById", request.toApiJson(), this.apiOptions())
10331
10421
  .pipe(map(resp => GetEventTypeByIdResponse.fromProto(resp)));
10332
10422
  }
10423
+ listBookingTypesForAi(r) {
10424
+ const request = (r.toApiJson) ? r : new ListBookingTypesForAIRequest(r);
10425
+ return this.http.post(this._host + "/meetings.v1.MeetingHost/ListBookingTypesForAI", request.toApiJson(), this.apiOptions())
10426
+ .pipe(map(resp => ListBookingTypesForAIResponse.fromProto(resp)));
10427
+ }
10333
10428
  }
10334
10429
  MeetingHostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10335
10430
  MeetingHostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: MeetingHostApiService, providedIn: 'root' });
@@ -11240,6 +11335,9 @@ class HostService {
11240
11335
  listEventTypesForMultipleCalendars(req) {
11241
11336
  return this.hostAPIService.listEventTypesForMultipleCalendars(req);
11242
11337
  }
11338
+ listBookingTypesForAi(req) {
11339
+ return this.hostAPIService.listBookingTypesForAi(req);
11340
+ }
11243
11341
  }
11244
11342
  HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, deps: [{ token: MeetingHostApiService }], target: i0.ɵɵFactoryTarget.Injectable });
11245
11343
  HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, providedIn: "root" });