@vendasta/meetings 1.12.0 → 1.14.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.
@@ -126,6 +126,8 @@ var FormFieldType;
126
126
  FormFieldType[FormFieldType["FORM_FIELD_TYPE_EMAIL"] = 2] = "FORM_FIELD_TYPE_EMAIL";
127
127
  FormFieldType[FormFieldType["FORM_FIELD_TYPE_PHONE_NUMBER"] = 3] = "FORM_FIELD_TYPE_PHONE_NUMBER";
128
128
  FormFieldType[FormFieldType["FORM_FIELD_TYPE_SELECT"] = 4] = "FORM_FIELD_TYPE_SELECT";
129
+ FormFieldType[FormFieldType["FORM_FIELD_TYPE_MULTIPLE_CHOICE"] = 5] = "FORM_FIELD_TYPE_MULTIPLE_CHOICE";
130
+ FormFieldType[FormFieldType["FORM_FIELD_TYPE_DROPDOWN"] = 6] = "FORM_FIELD_TYPE_DROPDOWN";
129
131
  })(FormFieldType || (FormFieldType = {}));
130
132
  var OnBoardingState;
131
133
  (function (OnBoardingState) {
@@ -2269,6 +2271,9 @@ class Field {
2269
2271
  if (typeof this.required !== 'undefined') {
2270
2272
  toReturn['required'] = this.required;
2271
2273
  }
2274
+ if (typeof this.options !== 'undefined') {
2275
+ toReturn['options'] = this.options;
2276
+ }
2272
2277
  return toReturn;
2273
2278
  }
2274
2279
  }
@@ -4244,6 +4249,76 @@ class GetGroupResponse {
4244
4249
  return toReturn;
4245
4250
  }
4246
4251
  }
4252
+ class GetGroupV2Request {
4253
+ static fromProto(proto) {
4254
+ let m = new GetGroupV2Request();
4255
+ m = Object.assign(m, proto);
4256
+ if (proto.bookingSource) {
4257
+ m.bookingSource = enumStringToValue$6(BookingSource, proto.bookingSource);
4258
+ }
4259
+ return m;
4260
+ }
4261
+ constructor(kwargs) {
4262
+ if (!kwargs) {
4263
+ return;
4264
+ }
4265
+ Object.assign(this, kwargs);
4266
+ }
4267
+ toApiJson() {
4268
+ const toReturn = {};
4269
+ if (typeof this.groupId !== 'undefined') {
4270
+ toReturn['groupId'] = this.groupId;
4271
+ }
4272
+ if (typeof this.uniqueRequestId !== 'undefined') {
4273
+ toReturn['uniqueRequestId'] = this.uniqueRequestId;
4274
+ }
4275
+ if (typeof this.bookingSource !== 'undefined') {
4276
+ toReturn['bookingSource'] = this.bookingSource;
4277
+ }
4278
+ return toReturn;
4279
+ }
4280
+ }
4281
+ class GetGroupV2Response {
4282
+ static fromProto(proto) {
4283
+ let m = new GetGroupV2Response();
4284
+ m = Object.assign(m, proto);
4285
+ if (proto.eventTypes) {
4286
+ m.eventTypes = proto.eventTypes.map(ServiceEventType.fromProto);
4287
+ }
4288
+ return m;
4289
+ }
4290
+ constructor(kwargs) {
4291
+ if (!kwargs) {
4292
+ return;
4293
+ }
4294
+ Object.assign(this, kwargs);
4295
+ }
4296
+ toApiJson() {
4297
+ const toReturn = {};
4298
+ if (typeof this.id !== 'undefined') {
4299
+ toReturn['id'] = this.id;
4300
+ }
4301
+ if (typeof this.name !== 'undefined') {
4302
+ toReturn['name'] = this.name;
4303
+ }
4304
+ if (typeof this.description !== 'undefined') {
4305
+ toReturn['description'] = this.description;
4306
+ }
4307
+ if (typeof this.eventTypes !== 'undefined' && this.eventTypes !== null) {
4308
+ toReturn['eventTypes'] = 'toApiJson' in this.eventTypes ? this.eventTypes.toApiJson() : this.eventTypes;
4309
+ }
4310
+ if (typeof this.businessDisplayLogoUrl !== 'undefined') {
4311
+ toReturn['businessDisplayLogoUrl'] = this.businessDisplayLogoUrl;
4312
+ }
4313
+ if (typeof this.bookingUrl !== 'undefined') {
4314
+ toReturn['bookingUrl'] = this.bookingUrl;
4315
+ }
4316
+ if (typeof this.isBatchBookingEnabled !== 'undefined') {
4317
+ toReturn['isBatchBookingEnabled'] = this.isBatchBookingEnabled;
4318
+ }
4319
+ return toReturn;
4320
+ }
4321
+ }
4247
4322
  class GetHostRequest {
4248
4323
  static fromProto(proto) {
4249
4324
  let m = new GetHostRequest();
@@ -10502,6 +10577,11 @@ class MeetingGuestApiService {
10502
10577
  return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetServiceV2", request.toApiJson(), this.apiOptions())
10503
10578
  .pipe(map(resp => GetServiceV2Response.fromProto(resp)));
10504
10579
  }
10580
+ getGroupV2(r) {
10581
+ const request = (r.toApiJson) ? r : new GetGroupV2Request(r);
10582
+ return this.http.post(this._host + "/meetings.v1.MeetingGuest/GetGroupV2", request.toApiJson(), this.apiOptions())
10583
+ .pipe(map(resp => GetGroupV2Response.fromProto(resp)));
10584
+ }
10505
10585
  listGuestBookedMeetings(r) {
10506
10586
  const request = (r.toApiJson) ? r : new ListGuestBookedMeetingsRequest(r);
10507
10587
  return this.http.post(this._host + "/meetings.v1.MeetingGuest/ListGuestBookedMeetings", request.toApiJson(), this.apiOptions())
@@ -10937,6 +11017,7 @@ function MeetingTypeFromApi(req) {
10937
11017
  label: field.label || "",
10938
11018
  type: field.type || FormFieldType.FORM_FIELD_TYPE_INVALID,
10939
11019
  required: field.required || false,
11020
+ options: field.options || [],
10940
11021
  };
10941
11022
  }),
10942
11023
  };
@@ -11473,6 +11554,9 @@ class GuestService {
11473
11554
  getGroup(req) {
11474
11555
  return this.guestAPIService.getGroup(req);
11475
11556
  }
11557
+ getGroupV2(req) {
11558
+ return this.guestAPIService.getGroupV2(req);
11559
+ }
11476
11560
  getService(req) {
11477
11561
  return this.guestAPIService.getService(req);
11478
11562
  }