@vendasta/forms_microservice 0.0.25 → 0.1.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.
@@ -37,12 +37,6 @@ function enumStringToValue$1(enumRef, value) {
37
37
  return enumRef[value];
38
38
  }
39
39
  class PagedRequestOptions {
40
- constructor(kwargs) {
41
- if (!kwargs) {
42
- return;
43
- }
44
- Object.assign(this, kwargs);
45
- }
46
40
  static fromProto(proto) {
47
41
  let m = new PagedRequestOptions();
48
42
  m = Object.assign(m, proto);
@@ -51,6 +45,12 @@ class PagedRequestOptions {
51
45
  }
52
46
  return m;
53
47
  }
48
+ constructor(kwargs) {
49
+ if (!kwargs) {
50
+ return;
51
+ }
52
+ Object.assign(this, kwargs);
53
+ }
54
54
  toApiJson() {
55
55
  const toReturn = {};
56
56
  if (typeof this.cursor !== 'undefined') {
@@ -63,12 +63,6 @@ class PagedRequestOptions {
63
63
  }
64
64
  }
65
65
  class PagedResponseMetadata {
66
- constructor(kwargs) {
67
- if (!kwargs) {
68
- return;
69
- }
70
- Object.assign(this, kwargs);
71
- }
72
66
  static fromProto(proto) {
73
67
  let m = new PagedResponseMetadata();
74
68
  m = Object.assign(m, proto);
@@ -77,6 +71,12 @@ class PagedResponseMetadata {
77
71
  }
78
72
  return m;
79
73
  }
74
+ constructor(kwargs) {
75
+ if (!kwargs) {
76
+ return;
77
+ }
78
+ Object.assign(this, kwargs);
79
+ }
80
80
  toApiJson() {
81
81
  const toReturn = {};
82
82
  if (typeof this.nextCursor !== 'undefined') {
@@ -99,12 +99,6 @@ function enumStringToValue(enumRef, value) {
99
99
  return enumRef[value];
100
100
  }
101
101
  class CreateFormRequest {
102
- constructor(kwargs) {
103
- if (!kwargs) {
104
- return;
105
- }
106
- Object.assign(this, kwargs);
107
- }
108
102
  static fromProto(proto) {
109
103
  let m = new CreateFormRequest();
110
104
  m = Object.assign(m, proto);
@@ -113,6 +107,12 @@ class CreateFormRequest {
113
107
  }
114
108
  return m;
115
109
  }
110
+ constructor(kwargs) {
111
+ if (!kwargs) {
112
+ return;
113
+ }
114
+ Object.assign(this, kwargs);
115
+ }
116
116
  toApiJson() {
117
117
  const toReturn = {};
118
118
  if (typeof this.formConfig !== 'undefined' && this.formConfig !== null) {
@@ -122,17 +122,17 @@ class CreateFormRequest {
122
122
  }
123
123
  }
124
124
  class CreateFormResponse {
125
+ static fromProto(proto) {
126
+ let m = new CreateFormResponse();
127
+ m = Object.assign(m, proto);
128
+ return m;
129
+ }
125
130
  constructor(kwargs) {
126
131
  if (!kwargs) {
127
132
  return;
128
133
  }
129
134
  Object.assign(this, kwargs);
130
135
  }
131
- static fromProto(proto) {
132
- let m = new CreateFormResponse();
133
- m = Object.assign(m, proto);
134
- return m;
135
- }
136
136
  toApiJson() {
137
137
  const toReturn = {};
138
138
  if (typeof this.formId !== 'undefined') {
@@ -145,12 +145,6 @@ class CreateFormResponse {
145
145
  }
146
146
  }
147
147
  class CreateFormSubmissionRequest {
148
- constructor(kwargs) {
149
- if (!kwargs) {
150
- return;
151
- }
152
- Object.assign(this, kwargs);
153
- }
154
148
  static fromProto(proto) {
155
149
  let m = new CreateFormSubmissionRequest();
156
150
  m = Object.assign(m, proto);
@@ -159,6 +153,12 @@ class CreateFormSubmissionRequest {
159
153
  }
160
154
  return m;
161
155
  }
156
+ constructor(kwargs) {
157
+ if (!kwargs) {
158
+ return;
159
+ }
160
+ Object.assign(this, kwargs);
161
+ }
162
162
  toApiJson() {
163
163
  const toReturn = {};
164
164
  if (typeof this.submission !== 'undefined' && this.submission !== null) {
@@ -171,17 +171,17 @@ class CreateFormSubmissionRequest {
171
171
  }
172
172
  }
173
173
  class CreateFormSubmissionResponse {
174
+ static fromProto(proto) {
175
+ let m = new CreateFormSubmissionResponse();
176
+ m = Object.assign(m, proto);
177
+ return m;
178
+ }
174
179
  constructor(kwargs) {
175
180
  if (!kwargs) {
176
181
  return;
177
182
  }
178
183
  Object.assign(this, kwargs);
179
184
  }
180
- static fromProto(proto) {
181
- let m = new CreateFormSubmissionResponse();
182
- m = Object.assign(m, proto);
183
- return m;
184
- }
185
185
  toApiJson() {
186
186
  const toReturn = {};
187
187
  if (typeof this.redirectUrl !== 'undefined') {
@@ -191,17 +191,17 @@ class CreateFormSubmissionResponse {
191
191
  }
192
192
  }
193
193
  class DeleteFormRequest {
194
+ static fromProto(proto) {
195
+ let m = new DeleteFormRequest();
196
+ m = Object.assign(m, proto);
197
+ return m;
198
+ }
194
199
  constructor(kwargs) {
195
200
  if (!kwargs) {
196
201
  return;
197
202
  }
198
203
  Object.assign(this, kwargs);
199
204
  }
200
- static fromProto(proto) {
201
- let m = new DeleteFormRequest();
202
- m = Object.assign(m, proto);
203
- return m;
204
- }
205
205
  toApiJson() {
206
206
  const toReturn = {};
207
207
  if (typeof this.formId !== 'undefined') {
@@ -214,12 +214,6 @@ class DeleteFormRequest {
214
214
  }
215
215
  }
216
216
  class FormConfigField {
217
- constructor(kwargs) {
218
- if (!kwargs) {
219
- return;
220
- }
221
- Object.assign(this, kwargs);
222
- }
223
217
  static fromProto(proto) {
224
218
  let m = new FormConfigField();
225
219
  m = Object.assign(m, proto);
@@ -231,6 +225,12 @@ class FormConfigField {
231
225
  }
232
226
  return m;
233
227
  }
228
+ constructor(kwargs) {
229
+ if (!kwargs) {
230
+ return;
231
+ }
232
+ Object.assign(this, kwargs);
233
+ }
234
234
  toApiJson() {
235
235
  const toReturn = {};
236
236
  if (typeof this.schema !== 'undefined' && this.schema !== null) {
@@ -258,12 +258,6 @@ class FormConfigField {
258
258
  }
259
259
  }
260
260
  class FieldValue {
261
- constructor(kwargs) {
262
- if (!kwargs) {
263
- return;
264
- }
265
- Object.assign(this, kwargs);
266
- }
267
261
  static fromProto(proto) {
268
262
  let m = new FieldValue();
269
263
  m = Object.assign(m, proto);
@@ -272,6 +266,12 @@ class FieldValue {
272
266
  }
273
267
  return m;
274
268
  }
269
+ constructor(kwargs) {
270
+ if (!kwargs) {
271
+ return;
272
+ }
273
+ Object.assign(this, kwargs);
274
+ }
275
275
  toApiJson() {
276
276
  const toReturn = {};
277
277
  if (typeof this.invalid !== 'undefined') {
@@ -290,17 +290,17 @@ class FieldValue {
290
290
  }
291
291
  }
292
292
  class ListFormsRequestFilters {
293
+ static fromProto(proto) {
294
+ let m = new ListFormsRequestFilters();
295
+ m = Object.assign(m, proto);
296
+ return m;
297
+ }
293
298
  constructor(kwargs) {
294
299
  if (!kwargs) {
295
300
  return;
296
301
  }
297
302
  Object.assign(this, kwargs);
298
303
  }
299
- static fromProto(proto) {
300
- let m = new ListFormsRequestFilters();
301
- m = Object.assign(m, proto);
302
- return m;
303
- }
304
304
  toApiJson() {
305
305
  const toReturn = {};
306
306
  if (typeof this.partnerId !== 'undefined') {
@@ -310,12 +310,6 @@ class ListFormsRequestFilters {
310
310
  }
311
311
  }
312
312
  class FormConfig {
313
- constructor(kwargs) {
314
- if (!kwargs) {
315
- return;
316
- }
317
- Object.assign(this, kwargs);
318
- }
319
313
  static fromProto(proto) {
320
314
  let m = new FormConfig();
321
315
  m = Object.assign(m, proto);
@@ -333,6 +327,12 @@ class FormConfig {
333
327
  }
334
328
  return m;
335
329
  }
330
+ constructor(kwargs) {
331
+ if (!kwargs) {
332
+ return;
333
+ }
334
+ Object.assign(this, kwargs);
335
+ }
336
336
  toApiJson() {
337
337
  const toReturn = {};
338
338
  if (typeof this.formId !== 'undefined') {
@@ -381,17 +381,17 @@ class FormConfig {
381
381
  }
382
382
  }
383
383
  class GetMultiRequestFormConfigIdentifier {
384
+ static fromProto(proto) {
385
+ let m = new GetMultiRequestFormConfigIdentifier();
386
+ m = Object.assign(m, proto);
387
+ return m;
388
+ }
384
389
  constructor(kwargs) {
385
390
  if (!kwargs) {
386
391
  return;
387
392
  }
388
393
  Object.assign(this, kwargs);
389
394
  }
390
- static fromProto(proto) {
391
- let m = new GetMultiRequestFormConfigIdentifier();
392
- m = Object.assign(m, proto);
393
- return m;
394
- }
395
395
  toApiJson() {
396
396
  const toReturn = {};
397
397
  if (typeof this.formId !== 'undefined') {
@@ -404,12 +404,6 @@ class GetMultiRequestFormConfigIdentifier {
404
404
  }
405
405
  }
406
406
  class ListFormsResponseFormRow {
407
- constructor(kwargs) {
408
- if (!kwargs) {
409
- return;
410
- }
411
- Object.assign(this, kwargs);
412
- }
413
407
  static fromProto(proto) {
414
408
  let m = new ListFormsResponseFormRow();
415
409
  m = Object.assign(m, proto);
@@ -421,6 +415,12 @@ class ListFormsResponseFormRow {
421
415
  }
422
416
  return m;
423
417
  }
418
+ constructor(kwargs) {
419
+ if (!kwargs) {
420
+ return;
421
+ }
422
+ Object.assign(this, kwargs);
423
+ }
424
424
  toApiJson() {
425
425
  const toReturn = {};
426
426
  if (typeof this.form !== 'undefined' && this.form !== null) {
@@ -433,12 +433,6 @@ class ListFormsResponseFormRow {
433
433
  }
434
434
  }
435
435
  class ListFormSubmissionResponseFormSubmission {
436
- constructor(kwargs) {
437
- if (!kwargs) {
438
- return;
439
- }
440
- Object.assign(this, kwargs);
441
- }
442
436
  static fromProto(proto) {
443
437
  let m = new ListFormSubmissionResponseFormSubmission();
444
438
  m = Object.assign(m, proto);
@@ -450,6 +444,12 @@ class ListFormSubmissionResponseFormSubmission {
450
444
  }
451
445
  return m;
452
446
  }
447
+ constructor(kwargs) {
448
+ if (!kwargs) {
449
+ return;
450
+ }
451
+ Object.assign(this, kwargs);
452
+ }
453
453
  toApiJson() {
454
454
  const toReturn = {};
455
455
  if (typeof this.formSubmissionId !== 'undefined') {
@@ -468,17 +468,17 @@ class ListFormSubmissionResponseFormSubmission {
468
468
  }
469
469
  }
470
470
  class FormSubmission {
471
+ static fromProto(proto) {
472
+ let m = new FormSubmission();
473
+ m = Object.assign(m, proto);
474
+ return m;
475
+ }
471
476
  constructor(kwargs) {
472
477
  if (!kwargs) {
473
478
  return;
474
479
  }
475
480
  Object.assign(this, kwargs);
476
481
  }
477
- static fromProto(proto) {
478
- let m = new FormSubmission();
479
- m = Object.assign(m, proto);
480
- return m;
481
- }
482
482
  toApiJson() {
483
483
  const toReturn = {};
484
484
  if (typeof this.formId !== 'undefined') {
@@ -494,17 +494,17 @@ class FormSubmission {
494
494
  }
495
495
  }
496
496
  class GetEmbedCodeRequest {
497
+ static fromProto(proto) {
498
+ let m = new GetEmbedCodeRequest();
499
+ m = Object.assign(m, proto);
500
+ return m;
501
+ }
497
502
  constructor(kwargs) {
498
503
  if (!kwargs) {
499
504
  return;
500
505
  }
501
506
  Object.assign(this, kwargs);
502
507
  }
503
- static fromProto(proto) {
504
- let m = new GetEmbedCodeRequest();
505
- m = Object.assign(m, proto);
506
- return m;
507
- }
508
508
  toApiJson() {
509
509
  const toReturn = {};
510
510
  if (typeof this.formId !== 'undefined') {
@@ -514,17 +514,17 @@ class GetEmbedCodeRequest {
514
514
  }
515
515
  }
516
516
  class GetEmbedCodeResponse {
517
+ static fromProto(proto) {
518
+ let m = new GetEmbedCodeResponse();
519
+ m = Object.assign(m, proto);
520
+ return m;
521
+ }
517
522
  constructor(kwargs) {
518
523
  if (!kwargs) {
519
524
  return;
520
525
  }
521
526
  Object.assign(this, kwargs);
522
527
  }
523
- static fromProto(proto) {
524
- let m = new GetEmbedCodeResponse();
525
- m = Object.assign(m, proto);
526
- return m;
527
- }
528
528
  toApiJson() {
529
529
  const toReturn = {};
530
530
  if (typeof this.embedCode !== 'undefined') {
@@ -534,17 +534,17 @@ class GetEmbedCodeResponse {
534
534
  }
535
535
  }
536
536
  class GetFormRequest {
537
+ static fromProto(proto) {
538
+ let m = new GetFormRequest();
539
+ m = Object.assign(m, proto);
540
+ return m;
541
+ }
537
542
  constructor(kwargs) {
538
543
  if (!kwargs) {
539
544
  return;
540
545
  }
541
546
  Object.assign(this, kwargs);
542
547
  }
543
- static fromProto(proto) {
544
- let m = new GetFormRequest();
545
- m = Object.assign(m, proto);
546
- return m;
547
- }
548
548
  toApiJson() {
549
549
  const toReturn = {};
550
550
  if (typeof this.formId !== 'undefined') {
@@ -554,12 +554,6 @@ class GetFormRequest {
554
554
  }
555
555
  }
556
556
  class GetFormResponse {
557
- constructor(kwargs) {
558
- if (!kwargs) {
559
- return;
560
- }
561
- Object.assign(this, kwargs);
562
- }
563
557
  static fromProto(proto) {
564
558
  let m = new GetFormResponse();
565
559
  m = Object.assign(m, proto);
@@ -568,6 +562,12 @@ class GetFormResponse {
568
562
  }
569
563
  return m;
570
564
  }
565
+ constructor(kwargs) {
566
+ if (!kwargs) {
567
+ return;
568
+ }
569
+ Object.assign(this, kwargs);
570
+ }
571
571
  toApiJson() {
572
572
  const toReturn = {};
573
573
  if (typeof this.formConfig !== 'undefined' && this.formConfig !== null) {
@@ -577,17 +577,17 @@ class GetFormResponse {
577
577
  }
578
578
  }
579
579
  class GetMultiFormVersionsListRequest {
580
+ static fromProto(proto) {
581
+ let m = new GetMultiFormVersionsListRequest();
582
+ m = Object.assign(m, proto);
583
+ return m;
584
+ }
580
585
  constructor(kwargs) {
581
586
  if (!kwargs) {
582
587
  return;
583
588
  }
584
589
  Object.assign(this, kwargs);
585
590
  }
586
- static fromProto(proto) {
587
- let m = new GetMultiFormVersionsListRequest();
588
- m = Object.assign(m, proto);
589
- return m;
590
- }
591
591
  toApiJson() {
592
592
  const toReturn = {};
593
593
  if (typeof this.formIds !== 'undefined') {
@@ -597,12 +597,6 @@ class GetMultiFormVersionsListRequest {
597
597
  }
598
598
  }
599
599
  class GetMultiFormVersionsListResponse {
600
- constructor(kwargs) {
601
- if (!kwargs) {
602
- return;
603
- }
604
- Object.assign(this, kwargs);
605
- }
606
600
  static fromProto(proto) {
607
601
  let m = new GetMultiFormVersionsListResponse();
608
602
  m = Object.assign(m, proto);
@@ -611,6 +605,12 @@ class GetMultiFormVersionsListResponse {
611
605
  }
612
606
  return m;
613
607
  }
608
+ constructor(kwargs) {
609
+ if (!kwargs) {
610
+ return;
611
+ }
612
+ Object.assign(this, kwargs);
613
+ }
614
614
  toApiJson() {
615
615
  const toReturn = {};
616
616
  if (typeof this.versions !== 'undefined' && this.versions !== null) {
@@ -620,12 +620,6 @@ class GetMultiFormVersionsListResponse {
620
620
  }
621
621
  }
622
622
  class GetMultiRequest {
623
- constructor(kwargs) {
624
- if (!kwargs) {
625
- return;
626
- }
627
- Object.assign(this, kwargs);
628
- }
629
623
  static fromProto(proto) {
630
624
  let m = new GetMultiRequest();
631
625
  m = Object.assign(m, proto);
@@ -634,6 +628,12 @@ class GetMultiRequest {
634
628
  }
635
629
  return m;
636
630
  }
631
+ constructor(kwargs) {
632
+ if (!kwargs) {
633
+ return;
634
+ }
635
+ Object.assign(this, kwargs);
636
+ }
637
637
  toApiJson() {
638
638
  const toReturn = {};
639
639
  if (typeof this.formConfigIdentifiers !== 'undefined' && this.formConfigIdentifiers !== null) {
@@ -643,12 +643,6 @@ class GetMultiRequest {
643
643
  }
644
644
  }
645
645
  class GetMultiResponse {
646
- constructor(kwargs) {
647
- if (!kwargs) {
648
- return;
649
- }
650
- Object.assign(this, kwargs);
651
- }
652
646
  static fromProto(proto) {
653
647
  let m = new GetMultiResponse();
654
648
  m = Object.assign(m, proto);
@@ -657,6 +651,12 @@ class GetMultiResponse {
657
651
  }
658
652
  return m;
659
653
  }
654
+ constructor(kwargs) {
655
+ if (!kwargs) {
656
+ return;
657
+ }
658
+ Object.assign(this, kwargs);
659
+ }
660
660
  toApiJson() {
661
661
  const toReturn = {};
662
662
  if (typeof this.formConfigs !== 'undefined' && this.formConfigs !== null) {
@@ -666,12 +666,6 @@ class GetMultiResponse {
666
666
  }
667
667
  }
668
668
  class ListFormSubmissionRequest {
669
- constructor(kwargs) {
670
- if (!kwargs) {
671
- return;
672
- }
673
- Object.assign(this, kwargs);
674
- }
675
669
  static fromProto(proto) {
676
670
  let m = new ListFormSubmissionRequest();
677
671
  m = Object.assign(m, proto);
@@ -680,6 +674,12 @@ class ListFormSubmissionRequest {
680
674
  }
681
675
  return m;
682
676
  }
677
+ constructor(kwargs) {
678
+ if (!kwargs) {
679
+ return;
680
+ }
681
+ Object.assign(this, kwargs);
682
+ }
683
683
  toApiJson() {
684
684
  const toReturn = {};
685
685
  if (typeof this.formId !== 'undefined') {
@@ -692,12 +692,6 @@ class ListFormSubmissionRequest {
692
692
  }
693
693
  }
694
694
  class ListFormSubmissionResponse {
695
- constructor(kwargs) {
696
- if (!kwargs) {
697
- return;
698
- }
699
- Object.assign(this, kwargs);
700
- }
701
695
  static fromProto(proto) {
702
696
  let m = new ListFormSubmissionResponse();
703
697
  m = Object.assign(m, proto);
@@ -709,6 +703,12 @@ class ListFormSubmissionResponse {
709
703
  }
710
704
  return m;
711
705
  }
706
+ constructor(kwargs) {
707
+ if (!kwargs) {
708
+ return;
709
+ }
710
+ Object.assign(this, kwargs);
711
+ }
712
712
  toApiJson() {
713
713
  const toReturn = {};
714
714
  if (typeof this.submissions !== 'undefined' && this.submissions !== null) {
@@ -721,12 +721,6 @@ class ListFormSubmissionResponse {
721
721
  }
722
722
  }
723
723
  class ListFormsRequest {
724
- constructor(kwargs) {
725
- if (!kwargs) {
726
- return;
727
- }
728
- Object.assign(this, kwargs);
729
- }
730
724
  static fromProto(proto) {
731
725
  let m = new ListFormsRequest();
732
726
  m = Object.assign(m, proto);
@@ -738,6 +732,12 @@ class ListFormsRequest {
738
732
  }
739
733
  return m;
740
734
  }
735
+ constructor(kwargs) {
736
+ if (!kwargs) {
737
+ return;
738
+ }
739
+ Object.assign(this, kwargs);
740
+ }
741
741
  toApiJson() {
742
742
  const toReturn = {};
743
743
  if (typeof this.filters !== 'undefined' && this.filters !== null) {
@@ -750,12 +750,6 @@ class ListFormsRequest {
750
750
  }
751
751
  }
752
752
  class ListFormsResponse {
753
- constructor(kwargs) {
754
- if (!kwargs) {
755
- return;
756
- }
757
- Object.assign(this, kwargs);
758
- }
759
753
  static fromProto(proto) {
760
754
  let m = new ListFormsResponse();
761
755
  m = Object.assign(m, proto);
@@ -767,6 +761,12 @@ class ListFormsResponse {
767
761
  }
768
762
  return m;
769
763
  }
764
+ constructor(kwargs) {
765
+ if (!kwargs) {
766
+ return;
767
+ }
768
+ Object.assign(this, kwargs);
769
+ }
770
770
  toApiJson() {
771
771
  const toReturn = {};
772
772
  if (typeof this.formRows !== 'undefined' && this.formRows !== null) {
@@ -779,17 +779,17 @@ class ListFormsResponse {
779
779
  }
780
780
  }
781
781
  class FormConfigFieldUnmappedFieldOption {
782
+ static fromProto(proto) {
783
+ let m = new FormConfigFieldUnmappedFieldOption();
784
+ m = Object.assign(m, proto);
785
+ return m;
786
+ }
782
787
  constructor(kwargs) {
783
788
  if (!kwargs) {
784
789
  return;
785
790
  }
786
791
  Object.assign(this, kwargs);
787
792
  }
788
- static fromProto(proto) {
789
- let m = new FormConfigFieldUnmappedFieldOption();
790
- m = Object.assign(m, proto);
791
- return m;
792
- }
793
793
  toApiJson() {
794
794
  const toReturn = {};
795
795
  if (typeof this.value !== 'undefined') {
@@ -802,17 +802,17 @@ class FormConfigFieldUnmappedFieldOption {
802
802
  }
803
803
  }
804
804
  class RenderFormResponsePreFillByUrlQueryParameter {
805
+ static fromProto(proto) {
806
+ let m = new RenderFormResponsePreFillByUrlQueryParameter();
807
+ m = Object.assign(m, proto);
808
+ return m;
809
+ }
805
810
  constructor(kwargs) {
806
811
  if (!kwargs) {
807
812
  return;
808
813
  }
809
814
  Object.assign(this, kwargs);
810
815
  }
811
- static fromProto(proto) {
812
- let m = new RenderFormResponsePreFillByUrlQueryParameter();
813
- m = Object.assign(m, proto);
814
- return m;
815
- }
816
816
  toApiJson() {
817
817
  const toReturn = {};
818
818
  if (typeof this.fieldId !== 'undefined') {
@@ -825,12 +825,6 @@ class RenderFormResponsePreFillByUrlQueryParameter {
825
825
  }
826
826
  }
827
827
  class PreviewFormRequest {
828
- constructor(kwargs) {
829
- if (!kwargs) {
830
- return;
831
- }
832
- Object.assign(this, kwargs);
833
- }
834
828
  static fromProto(proto) {
835
829
  let m = new PreviewFormRequest();
836
830
  m = Object.assign(m, proto);
@@ -842,6 +836,12 @@ class PreviewFormRequest {
842
836
  }
843
837
  return m;
844
838
  }
839
+ constructor(kwargs) {
840
+ if (!kwargs) {
841
+ return;
842
+ }
843
+ Object.assign(this, kwargs);
844
+ }
845
845
  toApiJson() {
846
846
  const toReturn = {};
847
847
  if (typeof this.formConfig !== 'undefined' && this.formConfig !== null) {
@@ -854,17 +854,17 @@ class PreviewFormRequest {
854
854
  }
855
855
  }
856
856
  class PreviewFormResponse {
857
+ static fromProto(proto) {
858
+ let m = new PreviewFormResponse();
859
+ m = Object.assign(m, proto);
860
+ return m;
861
+ }
857
862
  constructor(kwargs) {
858
863
  if (!kwargs) {
859
864
  return;
860
865
  }
861
866
  Object.assign(this, kwargs);
862
867
  }
863
- static fromProto(proto) {
864
- let m = new PreviewFormResponse();
865
- m = Object.assign(m, proto);
866
- return m;
867
- }
868
868
  toApiJson() {
869
869
  const toReturn = {};
870
870
  if (typeof this.jsonSchema !== 'undefined') {
@@ -877,12 +877,6 @@ class PreviewFormResponse {
877
877
  }
878
878
  }
879
879
  class RenderFormRequest {
880
- constructor(kwargs) {
881
- if (!kwargs) {
882
- return;
883
- }
884
- Object.assign(this, kwargs);
885
- }
886
880
  static fromProto(proto) {
887
881
  let m = new RenderFormRequest();
888
882
  m = Object.assign(m, proto);
@@ -891,6 +885,12 @@ class RenderFormRequest {
891
885
  }
892
886
  return m;
893
887
  }
888
+ constructor(kwargs) {
889
+ if (!kwargs) {
890
+ return;
891
+ }
892
+ Object.assign(this, kwargs);
893
+ }
894
894
  toApiJson() {
895
895
  const toReturn = {};
896
896
  if (typeof this.formId !== 'undefined') {
@@ -903,12 +903,6 @@ class RenderFormRequest {
903
903
  }
904
904
  }
905
905
  class RenderFormResponse {
906
- constructor(kwargs) {
907
- if (!kwargs) {
908
- return;
909
- }
910
- Object.assign(this, kwargs);
911
- }
912
906
  static fromProto(proto) {
913
907
  let m = new RenderFormResponse();
914
908
  m = Object.assign(m, proto);
@@ -920,6 +914,12 @@ class RenderFormResponse {
920
914
  }
921
915
  return m;
922
916
  }
917
+ constructor(kwargs) {
918
+ if (!kwargs) {
919
+ return;
920
+ }
921
+ Object.assign(this, kwargs);
922
+ }
923
923
  toApiJson() {
924
924
  const toReturn = {};
925
925
  if (typeof this.jsonSchema !== 'undefined') {
@@ -941,12 +941,6 @@ class RenderFormResponse {
941
941
  }
942
942
  }
943
943
  class FormConfigFieldSchema {
944
- constructor(kwargs) {
945
- if (!kwargs) {
946
- return;
947
- }
948
- Object.assign(this, kwargs);
949
- }
950
944
  static fromProto(proto) {
951
945
  let m = new FormConfigFieldSchema();
952
946
  m = Object.assign(m, proto);
@@ -955,6 +949,12 @@ class FormConfigFieldSchema {
955
949
  }
956
950
  return m;
957
951
  }
952
+ constructor(kwargs) {
953
+ if (!kwargs) {
954
+ return;
955
+ }
956
+ Object.assign(this, kwargs);
957
+ }
958
958
  toApiJson() {
959
959
  const toReturn = {};
960
960
  if (typeof this.unmappedField !== 'undefined' && this.unmappedField !== null) {
@@ -964,17 +964,17 @@ class FormConfigFieldSchema {
964
964
  }
965
965
  }
966
966
  class Styles {
967
+ static fromProto(proto) {
968
+ let m = new Styles();
969
+ m = Object.assign(m, proto);
970
+ return m;
971
+ }
967
972
  constructor(kwargs) {
968
973
  if (!kwargs) {
969
974
  return;
970
975
  }
971
976
  Object.assign(this, kwargs);
972
977
  }
973
- static fromProto(proto) {
974
- let m = new Styles();
975
- m = Object.assign(m, proto);
976
- return m;
977
- }
978
978
  toApiJson() {
979
979
  const toReturn = {};
980
980
  if (typeof this.width !== 'undefined') {
@@ -1011,12 +1011,6 @@ class Styles {
1011
1011
  }
1012
1012
  }
1013
1013
  class ListFormSubmissionResponseFormSubmissionSubmittedValue {
1014
- constructor(kwargs) {
1015
- if (!kwargs) {
1016
- return;
1017
- }
1018
- Object.assign(this, kwargs);
1019
- }
1020
1014
  static fromProto(proto) {
1021
1015
  let m = new ListFormSubmissionResponseFormSubmissionSubmittedValue();
1022
1016
  m = Object.assign(m, proto);
@@ -1025,6 +1019,12 @@ class ListFormSubmissionResponseFormSubmissionSubmittedValue {
1025
1019
  }
1026
1020
  return m;
1027
1021
  }
1022
+ constructor(kwargs) {
1023
+ if (!kwargs) {
1024
+ return;
1025
+ }
1026
+ Object.assign(this, kwargs);
1027
+ }
1028
1028
  toApiJson() {
1029
1029
  const toReturn = {};
1030
1030
  if (typeof this.fieldId !== 'undefined') {
@@ -1037,12 +1037,6 @@ class ListFormSubmissionResponseFormSubmissionSubmittedValue {
1037
1037
  }
1038
1038
  }
1039
1039
  class FormConfigFieldUnmappedField {
1040
- constructor(kwargs) {
1041
- if (!kwargs) {
1042
- return;
1043
- }
1044
- Object.assign(this, kwargs);
1045
- }
1046
1040
  static fromProto(proto) {
1047
1041
  let m = new FormConfigFieldUnmappedField();
1048
1042
  m = Object.assign(m, proto);
@@ -1054,6 +1048,12 @@ class FormConfigFieldUnmappedField {
1054
1048
  }
1055
1049
  return m;
1056
1050
  }
1051
+ constructor(kwargs) {
1052
+ if (!kwargs) {
1053
+ return;
1054
+ }
1055
+ Object.assign(this, kwargs);
1056
+ }
1057
1057
  toApiJson() {
1058
1058
  const toReturn = {};
1059
1059
  if (typeof this.id !== 'undefined') {
@@ -1072,12 +1072,6 @@ class FormConfigFieldUnmappedField {
1072
1072
  }
1073
1073
  }
1074
1074
  class UpdateFormRequest {
1075
- constructor(kwargs) {
1076
- if (!kwargs) {
1077
- return;
1078
- }
1079
- Object.assign(this, kwargs);
1080
- }
1081
1075
  static fromProto(proto) {
1082
1076
  let m = new UpdateFormRequest();
1083
1077
  m = Object.assign(m, proto);
@@ -1086,6 +1080,12 @@ class UpdateFormRequest {
1086
1080
  }
1087
1081
  return m;
1088
1082
  }
1083
+ constructor(kwargs) {
1084
+ if (!kwargs) {
1085
+ return;
1086
+ }
1087
+ Object.assign(this, kwargs);
1088
+ }
1089
1089
  toApiJson() {
1090
1090
  const toReturn = {};
1091
1091
  if (typeof this.formConfig !== 'undefined' && this.formConfig !== null) {
@@ -1095,17 +1095,17 @@ class UpdateFormRequest {
1095
1095
  }
1096
1096
  }
1097
1097
  class UpdateFormResponse {
1098
+ static fromProto(proto) {
1099
+ let m = new UpdateFormResponse();
1100
+ m = Object.assign(m, proto);
1101
+ return m;
1102
+ }
1098
1103
  constructor(kwargs) {
1099
1104
  if (!kwargs) {
1100
1105
  return;
1101
1106
  }
1102
1107
  Object.assign(this, kwargs);
1103
1108
  }
1104
- static fromProto(proto) {
1105
- let m = new UpdateFormResponse();
1106
- m = Object.assign(m, proto);
1107
- return m;
1108
- }
1109
1109
  toApiJson() {
1110
1110
  const toReturn = {};
1111
1111
  if (typeof this.version !== 'undefined') {
@@ -1115,17 +1115,17 @@ class UpdateFormResponse {
1115
1115
  }
1116
1116
  }
1117
1117
  class GetMultiFormVersionsListResponseVersions {
1118
+ static fromProto(proto) {
1119
+ let m = new GetMultiFormVersionsListResponseVersions();
1120
+ m = Object.assign(m, proto);
1121
+ return m;
1122
+ }
1118
1123
  constructor(kwargs) {
1119
1124
  if (!kwargs) {
1120
1125
  return;
1121
1126
  }
1122
1127
  Object.assign(this, kwargs);
1123
1128
  }
1124
- static fromProto(proto) {
1125
- let m = new GetMultiFormVersionsListResponseVersions();
1126
- m = Object.assign(m, proto);
1127
- return m;
1128
- }
1129
1129
  toApiJson() {
1130
1130
  const toReturn = {};
1131
1131
  if (typeof this.formId !== 'undefined') {
@@ -1156,9 +1156,9 @@ class HostService {
1156
1156
  return 'https://' + this.host;
1157
1157
  }
1158
1158
  }
1159
- HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1160
- HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HostService, providedIn: 'root' });
1161
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HostService, decorators: [{
1159
+ HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1160
+ HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, providedIn: 'root' });
1161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, decorators: [{
1162
1162
  type: Injectable,
1163
1163
  args: [{ providedIn: 'root' }]
1164
1164
  }] });
@@ -1189,9 +1189,9 @@ class FormSubmissionApiService {
1189
1189
  .pipe(map(resp => ListFormSubmissionResponse.fromProto(resp)));
1190
1190
  }
1191
1191
  }
1192
- FormSubmissionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FormSubmissionApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
1193
- FormSubmissionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FormSubmissionApiService, providedIn: 'root' });
1194
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FormSubmissionApiService, decorators: [{
1192
+ FormSubmissionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: FormSubmissionApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
1193
+ FormSubmissionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: FormSubmissionApiService, providedIn: 'root' });
1194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: FormSubmissionApiService, decorators: [{
1195
1195
  type: Injectable,
1196
1196
  args: [{ providedIn: 'root' }]
1197
1197
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -1261,9 +1261,9 @@ class FormsApiService {
1261
1261
  .pipe(map(resp => PreviewFormResponse.fromProto(resp)));
1262
1262
  }
1263
1263
  }
1264
- FormsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FormsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
1265
- FormsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FormsApiService, providedIn: 'root' });
1266
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FormsApiService, decorators: [{
1264
+ FormsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: FormsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
1265
+ FormsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: FormsApiService, providedIn: 'root' });
1266
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: FormsApiService, decorators: [{
1267
1267
  type: Injectable,
1268
1268
  args: [{ providedIn: 'root' }]
1269
1269
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -1294,9 +1294,9 @@ class FormSubmissionsExportService {
1294
1294
  }));
1295
1295
  }
1296
1296
  }
1297
- FormSubmissionsExportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FormSubmissionsExportService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
1298
- FormSubmissionsExportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FormSubmissionsExportService, providedIn: 'root' });
1299
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FormSubmissionsExportService, decorators: [{
1297
+ FormSubmissionsExportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: FormSubmissionsExportService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
1298
+ FormSubmissionsExportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: FormSubmissionsExportService, providedIn: 'root' });
1299
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: FormSubmissionsExportService, decorators: [{
1300
1300
  type: Injectable,
1301
1301
  args: [{ providedIn: 'root' }]
1302
1302
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });