@vendasta/forms_microservice 0.4.0 → 0.6.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.
@@ -22,6 +22,7 @@ var FieldType;
22
22
  FieldType[FieldType["FIELD_TYPE_RADIO"] = 7] = "FIELD_TYPE_RADIO";
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
+ FieldType[FieldType["FIELD_TYPE_PHONE"] = 10] = "FIELD_TYPE_PHONE";
25
26
  })(FieldType || (FieldType = {}));
26
27
  var JsonSchemaLibrary;
27
28
  (function (JsonSchemaLibrary) {
@@ -817,6 +818,9 @@ class FormConfigFieldMappedField {
817
818
  if (proto.options) {
818
819
  m.options = proto.options.map(FormConfigFieldOption.fromProto);
819
820
  }
821
+ if (proto.systemDefined) {
822
+ m.systemDefined = FormConfigFieldSystemDefined.fromProto(proto.systemDefined);
823
+ }
820
824
  return m;
821
825
  }
822
826
  constructor(kwargs) {
@@ -839,6 +843,9 @@ class FormConfigFieldMappedField {
839
843
  if (typeof this.mappedTo !== 'undefined') {
840
844
  toReturn['mappedTo'] = this.mappedTo;
841
845
  }
846
+ if (typeof this.systemDefined !== 'undefined' && this.systemDefined !== null) {
847
+ toReturn['systemDefined'] = 'toApiJson' in this.systemDefined ? this.systemDefined.toApiJson() : this.systemDefined;
848
+ }
842
849
  return toReturn;
843
850
  }
844
851
  }
@@ -1115,6 +1122,26 @@ class FormSubmissionSubmittedValue {
1115
1122
  return toReturn;
1116
1123
  }
1117
1124
  }
1125
+ class FormConfigFieldSystemDefined {
1126
+ static fromProto(proto) {
1127
+ let m = new FormConfigFieldSystemDefined();
1128
+ m = Object.assign(m, proto);
1129
+ return m;
1130
+ }
1131
+ constructor(kwargs) {
1132
+ if (!kwargs) {
1133
+ return;
1134
+ }
1135
+ Object.assign(this, kwargs);
1136
+ }
1137
+ toApiJson() {
1138
+ const toReturn = {};
1139
+ if (typeof this.required !== 'undefined') {
1140
+ toReturn['required'] = this.required;
1141
+ }
1142
+ return toReturn;
1143
+ }
1144
+ }
1118
1145
  class FormConfigFieldUnmappedField {
1119
1146
  static fromProto(proto) {
1120
1147
  let m = new FormConfigFieldUnmappedField();
@@ -1467,5 +1494,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1467
1494
  * Generated bundle index. Do not edit.
1468
1495
  */
1469
1496
 
1470
- 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 };
1497
+ 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 };
1471
1498
  //# sourceMappingURL=vendasta-forms_microservice.mjs.map