@vendasta/forms_microservice 0.14.1 → 0.16.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.
@@ -25,6 +25,7 @@ var FieldType;
25
25
  FieldType[FieldType["FIELD_TYPE_PHONE"] = 10] = "FIELD_TYPE_PHONE";
26
26
  FieldType[FieldType["FIELD_TYPE_BUSINESS_SEARCH"] = 11] = "FIELD_TYPE_BUSINESS_SEARCH";
27
27
  FieldType[FieldType["FIELD_TYPE_TEXT_AREA"] = 12] = "FIELD_TYPE_TEXT_AREA";
28
+ FieldType[FieldType["FIELD_TYPE_TAG"] = 13] = "FIELD_TYPE_TAG";
28
29
  })(FieldType || (FieldType = {}));
29
30
  var JsonSchemaLibrary;
30
31
  (function (JsonSchemaLibrary) {
@@ -269,6 +270,9 @@ class FormConfigField {
269
270
  if (typeof this.placeholder !== 'undefined') {
270
271
  toReturn['placeholder'] = this.placeholder;
271
272
  }
273
+ if (typeof this.defaultPhoneIsoCountryCode !== 'undefined') {
274
+ toReturn['defaultPhoneIsoCountryCode'] = this.defaultPhoneIsoCountryCode;
275
+ }
272
276
  return toReturn;
273
277
  }
274
278
  }
@@ -302,6 +306,9 @@ class FieldValue {
302
306
  if (proto.integer) {
303
307
  m.integer = parseInt(proto.integer, 10);
304
308
  }
309
+ if (proto.stringValues) {
310
+ m.stringValues = StringList.fromProto(proto.stringValues);
311
+ }
305
312
  return m;
306
313
  }
307
314
  constructor(kwargs) {
@@ -321,6 +328,9 @@ class FieldValue {
321
328
  if (typeof this.string !== 'undefined') {
322
329
  toReturn['string'] = this.string;
323
330
  }
331
+ if (typeof this.stringValues !== 'undefined' && this.stringValues !== null) {
332
+ toReturn['stringValues'] = 'toApiJson' in this.stringValues ? this.stringValues.toApiJson() : this.stringValues;
333
+ }
324
334
  if (typeof this.boolean !== 'undefined') {
325
335
  toReturn['boolean'] = this.boolean;
326
336
  }
@@ -1115,6 +1125,26 @@ class FormConfigFieldSchema {
1115
1125
  return toReturn;
1116
1126
  }
1117
1127
  }
1128
+ class StringList {
1129
+ static fromProto(proto) {
1130
+ let m = new StringList();
1131
+ m = Object.assign(m, proto);
1132
+ return m;
1133
+ }
1134
+ constructor(kwargs) {
1135
+ if (!kwargs) {
1136
+ return;
1137
+ }
1138
+ Object.assign(this, kwargs);
1139
+ }
1140
+ toApiJson() {
1141
+ const toReturn = {};
1142
+ if (typeof this.values !== 'undefined') {
1143
+ toReturn['values'] = this.values;
1144
+ }
1145
+ return toReturn;
1146
+ }
1147
+ }
1118
1148
  class Styles {
1119
1149
  static fromProto(proto) {
1120
1150
  let m = new Styles();
@@ -1580,5 +1610,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1580
1610
  * Generated bundle index. Do not edit.
1581
1611
  */
1582
1612
 
1583
- export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FieldOption, FieldType, FieldValue, FormConfig, FormConfigField, FormConfigFieldSchema, FormSubmission, FormSubmissionApiService, FormSubmissionSubmittedValue, FormSubmissionsExportService, FormsApiService, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormSubmissionRequest, GetMultiFormSubmissionResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiFormVersionsListResponseVersions, GetMultiRequest, GetMultiRequestFormConfigIdentifier, GetMultiResponse, HostService, JsonSchemaLibrary, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsRequestFilters, ListFormsResponse, ListFormsResponseFormRow, ListMappedFieldSchemaRequest, ListMappedFieldSchemaResponse, MappedField, PagedRequestOptions, PagedResponseMetadata, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, RenderFormResponsePreFillByUrlQueryParameter, Styles, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError };
1613
+ export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FieldOption, FieldType, FieldValue, FormConfig, FormConfigField, FormConfigFieldSchema, FormSubmission, FormSubmissionApiService, FormSubmissionSubmittedValue, FormSubmissionsExportService, FormsApiService, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormSubmissionRequest, GetMultiFormSubmissionResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiFormVersionsListResponseVersions, GetMultiRequest, GetMultiRequestFormConfigIdentifier, GetMultiResponse, HostService, JsonSchemaLibrary, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsRequestFilters, ListFormsResponse, ListFormsResponseFormRow, ListMappedFieldSchemaRequest, ListMappedFieldSchemaResponse, MappedField, PagedRequestOptions, PagedResponseMetadata, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, RenderFormResponsePreFillByUrlQueryParameter, StringList, Styles, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError };
1584
1614
  //# sourceMappingURL=vendasta-forms_microservice.mjs.map