@vendasta/forms_microservice 0.0.19 → 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.
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +61 -20
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-forms_microservice.mjs +61 -20
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +61 -20
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +14 -5
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +20 -8
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -244,6 +244,9 @@ class FormConfigField {
|
|
|
244
244
|
if (typeof this.defaultValue !== 'undefined' && this.defaultValue !== null) {
|
|
245
245
|
toReturn['defaultValue'] = 'toApiJson' in this.defaultValue ? this.defaultValue.toApiJson() : this.defaultValue;
|
|
246
246
|
}
|
|
247
|
+
if (typeof this.preFillByUrlQueryParameter !== 'undefined') {
|
|
248
|
+
toReturn['preFillByUrlQueryParameter'] = this.preFillByUrlQueryParameter;
|
|
249
|
+
}
|
|
247
250
|
return toReturn;
|
|
248
251
|
}
|
|
249
252
|
}
|
|
@@ -358,6 +361,12 @@ class FormConfig {
|
|
|
358
361
|
if (typeof this.redirectUrl !== 'undefined') {
|
|
359
362
|
toReturn['redirectUrl'] = this.redirectUrl;
|
|
360
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
|
+
}
|
|
361
370
|
return toReturn;
|
|
362
371
|
}
|
|
363
372
|
}
|
|
@@ -413,7 +422,7 @@ class ListFormsResponseFormRow {
|
|
|
413
422
|
return toReturn;
|
|
414
423
|
}
|
|
415
424
|
}
|
|
416
|
-
class
|
|
425
|
+
class ListFormSubmissionResponseFormSubmission {
|
|
417
426
|
constructor(kwargs) {
|
|
418
427
|
if (!kwargs) {
|
|
419
428
|
return;
|
|
@@ -421,25 +430,28 @@ class FormSubmission {
|
|
|
421
430
|
Object.assign(this, kwargs);
|
|
422
431
|
}
|
|
423
432
|
static fromProto(proto) {
|
|
424
|
-
let m = new
|
|
433
|
+
let m = new ListFormSubmissionResponseFormSubmission();
|
|
425
434
|
m = Object.assign(m, proto);
|
|
435
|
+
if (proto.values) {
|
|
436
|
+
m.values = proto.values.map(ListFormSubmissionResponseFormSubmissionSubmittedValue.fromProto);
|
|
437
|
+
}
|
|
426
438
|
return m;
|
|
427
439
|
}
|
|
428
440
|
toApiJson() {
|
|
429
441
|
const toReturn = {};
|
|
430
|
-
if (typeof this.
|
|
431
|
-
toReturn['
|
|
442
|
+
if (typeof this.formSubmissionId !== 'undefined') {
|
|
443
|
+
toReturn['formSubmissionId'] = this.formSubmissionId;
|
|
432
444
|
}
|
|
433
|
-
if (typeof this.
|
|
434
|
-
toReturn['
|
|
445
|
+
if (typeof this.formVersion !== 'undefined') {
|
|
446
|
+
toReturn['formVersion'] = this.formVersion;
|
|
435
447
|
}
|
|
436
|
-
if (typeof this.values !== 'undefined') {
|
|
437
|
-
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;
|
|
438
450
|
}
|
|
439
451
|
return toReturn;
|
|
440
452
|
}
|
|
441
453
|
}
|
|
442
|
-
class
|
|
454
|
+
class FormSubmission {
|
|
443
455
|
constructor(kwargs) {
|
|
444
456
|
if (!kwargs) {
|
|
445
457
|
return;
|
|
@@ -447,23 +459,20 @@ class ListFormSubmissionResponseFormSubmission {
|
|
|
447
459
|
Object.assign(this, kwargs);
|
|
448
460
|
}
|
|
449
461
|
static fromProto(proto) {
|
|
450
|
-
let m = new
|
|
462
|
+
let m = new FormSubmission();
|
|
451
463
|
m = Object.assign(m, proto);
|
|
452
|
-
if (proto.values) {
|
|
453
|
-
m.values = proto.values.map(ListFormSubmissionResponseFormSubmissionSubmittedValue.fromProto);
|
|
454
|
-
}
|
|
455
464
|
return m;
|
|
456
465
|
}
|
|
457
466
|
toApiJson() {
|
|
458
467
|
const toReturn = {};
|
|
459
|
-
if (typeof this.
|
|
460
|
-
toReturn['
|
|
468
|
+
if (typeof this.formId !== 'undefined') {
|
|
469
|
+
toReturn['formId'] = this.formId;
|
|
461
470
|
}
|
|
462
|
-
if (typeof this.
|
|
463
|
-
toReturn['
|
|
471
|
+
if (typeof this.version !== 'undefined') {
|
|
472
|
+
toReturn['version'] = this.version;
|
|
464
473
|
}
|
|
465
|
-
if (typeof this.values !== 'undefined'
|
|
466
|
-
toReturn['values'] =
|
|
474
|
+
if (typeof this.values !== 'undefined') {
|
|
475
|
+
toReturn['values'] = this.values;
|
|
467
476
|
}
|
|
468
477
|
return toReturn;
|
|
469
478
|
}
|
|
@@ -776,6 +785,29 @@ class FormConfigFieldUnmappedFieldOption {
|
|
|
776
785
|
return toReturn;
|
|
777
786
|
}
|
|
778
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
|
+
}
|
|
779
811
|
class PreviewFormRequest {
|
|
780
812
|
constructor(kwargs) {
|
|
781
813
|
if (!kwargs) {
|
|
@@ -867,6 +899,9 @@ class RenderFormResponse {
|
|
|
867
899
|
if (proto.styles) {
|
|
868
900
|
m.styles = Styles.fromProto(proto.styles);
|
|
869
901
|
}
|
|
902
|
+
if (proto.fieldQueryParams) {
|
|
903
|
+
m.fieldQueryParams = proto.fieldQueryParams.map(RenderFormResponsePreFillByUrlQueryParameter.fromProto);
|
|
904
|
+
}
|
|
870
905
|
return m;
|
|
871
906
|
}
|
|
872
907
|
toApiJson() {
|
|
@@ -880,6 +915,12 @@ class RenderFormResponse {
|
|
|
880
915
|
if (typeof this.styles !== 'undefined' && this.styles !== null) {
|
|
881
916
|
toReturn['styles'] = 'toApiJson' in this.styles ? this.styles.toApiJson() : this.styles;
|
|
882
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
|
+
}
|
|
883
924
|
return toReturn;
|
|
884
925
|
}
|
|
885
926
|
}
|
|
@@ -1245,5 +1286,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
1245
1286
|
* Generated bundle index. Do not edit.
|
|
1246
1287
|
*/
|
|
1247
1288
|
|
|
1248
|
-
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 };
|
|
1289
|
+
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 };
|
|
1249
1290
|
//# sourceMappingURL=vendasta-forms_microservice.mjs.map
|