@vendasta/forms_microservice 0.5.0 → 0.7.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.
@@ -23,6 +23,7 @@ var FieldType;
23
23
  FieldType[FieldType["FIELD_TYPE_RICH_TEXT_ELEMENT"] = 8] = "FIELD_TYPE_RICH_TEXT_ELEMENT";
24
24
  FieldType[FieldType["FIELD_TYPE_EMAIL"] = 9] = "FIELD_TYPE_EMAIL";
25
25
  FieldType[FieldType["FIELD_TYPE_PHONE"] = 10] = "FIELD_TYPE_PHONE";
26
+ FieldType[FieldType["FIELD_TYPE_BUSINESS_SEARCH"] = 11] = "FIELD_TYPE_BUSINESS_SEARCH";
26
27
  })(FieldType || (FieldType = {}));
27
28
  var JsonSchemaLibrary;
28
29
  (function (JsonSchemaLibrary) {
@@ -818,6 +819,9 @@ class FormConfigFieldMappedField {
818
819
  if (proto.options) {
819
820
  m.options = proto.options.map(FormConfigFieldOption.fromProto);
820
821
  }
822
+ if (proto.systemDefined) {
823
+ m.systemDefined = FormConfigFieldSystemDefined.fromProto(proto.systemDefined);
824
+ }
821
825
  return m;
822
826
  }
823
827
  constructor(kwargs) {
@@ -840,6 +844,9 @@ class FormConfigFieldMappedField {
840
844
  if (typeof this.mappedTo !== 'undefined') {
841
845
  toReturn['mappedTo'] = this.mappedTo;
842
846
  }
847
+ if (typeof this.systemDefined !== 'undefined' && this.systemDefined !== null) {
848
+ toReturn['systemDefined'] = 'toApiJson' in this.systemDefined ? this.systemDefined.toApiJson() : this.systemDefined;
849
+ }
843
850
  return toReturn;
844
851
  }
845
852
  }
@@ -1116,6 +1123,26 @@ class FormSubmissionSubmittedValue {
1116
1123
  return toReturn;
1117
1124
  }
1118
1125
  }
1126
+ class FormConfigFieldSystemDefined {
1127
+ static fromProto(proto) {
1128
+ let m = new FormConfigFieldSystemDefined();
1129
+ m = Object.assign(m, proto);
1130
+ return m;
1131
+ }
1132
+ constructor(kwargs) {
1133
+ if (!kwargs) {
1134
+ return;
1135
+ }
1136
+ Object.assign(this, kwargs);
1137
+ }
1138
+ toApiJson() {
1139
+ const toReturn = {};
1140
+ if (typeof this.required !== 'undefined') {
1141
+ toReturn['required'] = this.required;
1142
+ }
1143
+ return toReturn;
1144
+ }
1145
+ }
1119
1146
  class FormConfigFieldUnmappedField {
1120
1147
  static fromProto(proto) {
1121
1148
  let m = new FormConfigFieldUnmappedField();
@@ -1469,5 +1496,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1469
1496
  * Generated bundle index. Do not edit.
1470
1497
  */
1471
1498
 
1472
- export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FieldType, FieldValue, FormConfig, FormConfigField, FormConfigFieldMappedField, FormConfigFieldOption, FormConfigFieldSchema, FormConfigFieldUnmappedField, 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, PagedRequestOptions, PagedResponseMetadata, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, RenderFormResponsePreFillByUrlQueryParameter, Styles, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError };
1499
+ export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FieldType, FieldValue, FormConfig, FormConfigField, FormConfigFieldMappedField, FormConfigFieldOption, FormConfigFieldSchema, FormConfigFieldSystemDefined, FormConfigFieldUnmappedField, 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, PagedRequestOptions, PagedResponseMetadata, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, RenderFormResponsePreFillByUrlQueryParameter, Styles, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError };
1473
1500
  //# sourceMappingURL=vendasta-forms_microservice.mjs.map