@vendasta/forms_microservice 0.0.20 → 0.0.21

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.
@@ -361,6 +361,12 @@ class FormConfig {
361
361
  if (typeof this.redirectUrl !== 'undefined') {
362
362
  toReturn['redirectUrl'] = this.redirectUrl;
363
363
  }
364
+ if (typeof this.recaptchaSiteKey !== 'undefined') {
365
+ toReturn['recaptchaSiteKey'] = this.recaptchaSiteKey;
366
+ }
367
+ if (typeof this.recaptchaSecretKey !== 'undefined') {
368
+ toReturn['recaptchaSecretKey'] = this.recaptchaSecretKey;
369
+ }
364
370
  return toReturn;
365
371
  }
366
372
  }
@@ -416,7 +422,7 @@ class ListFormsResponseFormRow {
416
422
  return toReturn;
417
423
  }
418
424
  }
419
- class FormSubmission {
425
+ class ListFormSubmissionResponseFormSubmission {
420
426
  constructor(kwargs) {
421
427
  if (!kwargs) {
422
428
  return;
@@ -424,25 +430,28 @@ class FormSubmission {
424
430
  Object.assign(this, kwargs);
425
431
  }
426
432
  static fromProto(proto) {
427
- let m = new FormSubmission();
433
+ let m = new ListFormSubmissionResponseFormSubmission();
428
434
  m = Object.assign(m, proto);
435
+ if (proto.values) {
436
+ m.values = proto.values.map(ListFormSubmissionResponseFormSubmissionSubmittedValue.fromProto);
437
+ }
429
438
  return m;
430
439
  }
431
440
  toApiJson() {
432
441
  const toReturn = {};
433
- if (typeof this.formId !== 'undefined') {
434
- toReturn['formId'] = this.formId;
442
+ if (typeof this.formSubmissionId !== 'undefined') {
443
+ toReturn['formSubmissionId'] = this.formSubmissionId;
435
444
  }
436
- if (typeof this.version !== 'undefined') {
437
- toReturn['version'] = this.version;
445
+ if (typeof this.formVersion !== 'undefined') {
446
+ toReturn['formVersion'] = this.formVersion;
438
447
  }
439
- if (typeof this.values !== 'undefined') {
440
- toReturn['values'] = this.values;
448
+ if (typeof this.values !== 'undefined' && this.values !== null) {
449
+ toReturn['values'] = 'toApiJson' in this.values ? this.values.toApiJson() : this.values;
441
450
  }
442
451
  return toReturn;
443
452
  }
444
453
  }
445
- class ListFormSubmissionResponseFormSubmission {
454
+ class FormSubmission {
446
455
  constructor(kwargs) {
447
456
  if (!kwargs) {
448
457
  return;
@@ -450,23 +459,20 @@ class ListFormSubmissionResponseFormSubmission {
450
459
  Object.assign(this, kwargs);
451
460
  }
452
461
  static fromProto(proto) {
453
- let m = new ListFormSubmissionResponseFormSubmission();
462
+ let m = new FormSubmission();
454
463
  m = Object.assign(m, proto);
455
- if (proto.values) {
456
- m.values = proto.values.map(ListFormSubmissionResponseFormSubmissionSubmittedValue.fromProto);
457
- }
458
464
  return m;
459
465
  }
460
466
  toApiJson() {
461
467
  const toReturn = {};
462
- if (typeof this.formSubmissionId !== 'undefined') {
463
- toReturn['formSubmissionId'] = this.formSubmissionId;
468
+ if (typeof this.formId !== 'undefined') {
469
+ toReturn['formId'] = this.formId;
464
470
  }
465
- if (typeof this.formVersion !== 'undefined') {
466
- toReturn['formVersion'] = this.formVersion;
471
+ if (typeof this.version !== 'undefined') {
472
+ toReturn['version'] = this.version;
467
473
  }
468
- if (typeof this.values !== 'undefined' && this.values !== null) {
469
- toReturn['values'] = 'toApiJson' in this.values ? this.values.toApiJson() : this.values;
474
+ if (typeof this.values !== 'undefined') {
475
+ toReturn['values'] = this.values;
470
476
  }
471
477
  return toReturn;
472
478
  }
@@ -779,6 +785,29 @@ class FormConfigFieldUnmappedFieldOption {
779
785
  return toReturn;
780
786
  }
781
787
  }
788
+ class RenderFormResponsePreFillByUrlQueryParameter {
789
+ constructor(kwargs) {
790
+ if (!kwargs) {
791
+ return;
792
+ }
793
+ Object.assign(this, kwargs);
794
+ }
795
+ static fromProto(proto) {
796
+ let m = new RenderFormResponsePreFillByUrlQueryParameter();
797
+ m = Object.assign(m, proto);
798
+ return m;
799
+ }
800
+ toApiJson() {
801
+ const toReturn = {};
802
+ if (typeof this.fieldId !== 'undefined') {
803
+ toReturn['fieldId'] = this.fieldId;
804
+ }
805
+ if (typeof this.queryParam !== 'undefined') {
806
+ toReturn['queryParam'] = this.queryParam;
807
+ }
808
+ return toReturn;
809
+ }
810
+ }
782
811
  class PreviewFormRequest {
783
812
  constructor(kwargs) {
784
813
  if (!kwargs) {
@@ -870,6 +899,9 @@ class RenderFormResponse {
870
899
  if (proto.styles) {
871
900
  m.styles = Styles.fromProto(proto.styles);
872
901
  }
902
+ if (proto.fieldQueryParams) {
903
+ m.fieldQueryParams = proto.fieldQueryParams.map(RenderFormResponsePreFillByUrlQueryParameter.fromProto);
904
+ }
873
905
  return m;
874
906
  }
875
907
  toApiJson() {
@@ -883,6 +915,12 @@ class RenderFormResponse {
883
915
  if (typeof this.styles !== 'undefined' && this.styles !== null) {
884
916
  toReturn['styles'] = 'toApiJson' in this.styles ? this.styles.toApiJson() : this.styles;
885
917
  }
918
+ if (typeof this.fieldQueryParams !== 'undefined' && this.fieldQueryParams !== null) {
919
+ toReturn['fieldQueryParams'] = 'toApiJson' in this.fieldQueryParams ? this.fieldQueryParams.toApiJson() : this.fieldQueryParams;
920
+ }
921
+ if (typeof this.recaptchaSiteKey !== 'undefined') {
922
+ toReturn['recaptchaSiteKey'] = this.recaptchaSiteKey;
923
+ }
886
924
  return toReturn;
887
925
  }
888
926
  }
@@ -1247,5 +1285,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
1247
1285
  * Generated bundle index. Do not edit.
1248
1286
  */
1249
1287
 
1250
- export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FieldType, FieldValue, FormConfig, FormConfigField, FormConfigFieldSchema, FormConfigFieldUnmappedField, FormConfigFieldUnmappedFieldOption, FormSubmission, FormSubmissionApiService, FormSubmissionsExportService, FormsApiService, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiFormVersionsListResponseVersions, GetMultiRequest, GetMultiRequestFormConfigIdentifier, GetMultiResponse, HostService, JsonSchemaLibrary, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormSubmissionResponseFormSubmission, ListFormSubmissionResponseFormSubmissionSubmittedValue, ListFormsRequest, ListFormsRequestFilters, ListFormsResponse, ListFormsResponseFormRow, PagedRequestOptions, PagedResponseMetadata, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, Styles, UpdateFormRequest, UpdateFormResponse };
1288
+ export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FieldType, FieldValue, FormConfig, FormConfigField, FormConfigFieldSchema, FormConfigFieldUnmappedField, FormConfigFieldUnmappedFieldOption, FormSubmission, FormSubmissionApiService, FormSubmissionsExportService, FormsApiService, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiFormVersionsListResponseVersions, GetMultiRequest, GetMultiRequestFormConfigIdentifier, GetMultiResponse, HostService, JsonSchemaLibrary, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormSubmissionResponseFormSubmission, ListFormSubmissionResponseFormSubmissionSubmittedValue, ListFormsRequest, ListFormsRequestFilters, ListFormsResponse, ListFormsResponseFormRow, PagedRequestOptions, PagedResponseMetadata, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, RenderFormResponsePreFillByUrlQueryParameter, Styles, UpdateFormRequest, UpdateFormResponse };
1251
1289
  //# sourceMappingURL=vendasta-forms_microservice.mjs.map