@vendasta/forms_microservice 0.0.20 → 0.0.22
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/enums/api.enum.mjs +2 -1
- 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 +58 -20
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-forms_microservice.mjs +59 -20
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +59 -20
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/enums/api.enum.d.ts +2 -1
- package/lib/_internal/interfaces/api.interface.d.ts +13 -5
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +19 -8
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -20,6 +20,7 @@ var FieldType;
|
|
|
20
20
|
FieldType[FieldType["FIELD_TYPE_CURRENCY"] = 5] = "FIELD_TYPE_CURRENCY";
|
|
21
21
|
FieldType[FieldType["FIELD_TYPE_BOOLEAN"] = 6] = "FIELD_TYPE_BOOLEAN";
|
|
22
22
|
FieldType[FieldType["FIELD_TYPE_RADIO"] = 7] = "FIELD_TYPE_RADIO";
|
|
23
|
+
FieldType[FieldType["FIELD_TYPE_RICH_TEXT_ELEMENT"] = 8] = "FIELD_TYPE_RICH_TEXT_ELEMENT";
|
|
23
24
|
})(FieldType || (FieldType = {}));
|
|
24
25
|
var JsonSchemaLibrary;
|
|
25
26
|
(function (JsonSchemaLibrary) {
|
|
@@ -361,6 +362,12 @@ class FormConfig {
|
|
|
361
362
|
if (typeof this.redirectUrl !== 'undefined') {
|
|
362
363
|
toReturn['redirectUrl'] = this.redirectUrl;
|
|
363
364
|
}
|
|
365
|
+
if (typeof this.recaptchaSiteKey !== 'undefined') {
|
|
366
|
+
toReturn['recaptchaSiteKey'] = this.recaptchaSiteKey;
|
|
367
|
+
}
|
|
368
|
+
if (typeof this.recaptchaSecretKey !== 'undefined') {
|
|
369
|
+
toReturn['recaptchaSecretKey'] = this.recaptchaSecretKey;
|
|
370
|
+
}
|
|
364
371
|
return toReturn;
|
|
365
372
|
}
|
|
366
373
|
}
|
|
@@ -416,7 +423,7 @@ class ListFormsResponseFormRow {
|
|
|
416
423
|
return toReturn;
|
|
417
424
|
}
|
|
418
425
|
}
|
|
419
|
-
class
|
|
426
|
+
class ListFormSubmissionResponseFormSubmission {
|
|
420
427
|
constructor(kwargs) {
|
|
421
428
|
if (!kwargs) {
|
|
422
429
|
return;
|
|
@@ -424,25 +431,28 @@ class FormSubmission {
|
|
|
424
431
|
Object.assign(this, kwargs);
|
|
425
432
|
}
|
|
426
433
|
static fromProto(proto) {
|
|
427
|
-
let m = new
|
|
434
|
+
let m = new ListFormSubmissionResponseFormSubmission();
|
|
428
435
|
m = Object.assign(m, proto);
|
|
436
|
+
if (proto.values) {
|
|
437
|
+
m.values = proto.values.map(ListFormSubmissionResponseFormSubmissionSubmittedValue.fromProto);
|
|
438
|
+
}
|
|
429
439
|
return m;
|
|
430
440
|
}
|
|
431
441
|
toApiJson() {
|
|
432
442
|
const toReturn = {};
|
|
433
|
-
if (typeof this.
|
|
434
|
-
toReturn['
|
|
443
|
+
if (typeof this.formSubmissionId !== 'undefined') {
|
|
444
|
+
toReturn['formSubmissionId'] = this.formSubmissionId;
|
|
435
445
|
}
|
|
436
|
-
if (typeof this.
|
|
437
|
-
toReturn['
|
|
446
|
+
if (typeof this.formVersion !== 'undefined') {
|
|
447
|
+
toReturn['formVersion'] = this.formVersion;
|
|
438
448
|
}
|
|
439
|
-
if (typeof this.values !== 'undefined') {
|
|
440
|
-
toReturn['values'] = this.values;
|
|
449
|
+
if (typeof this.values !== 'undefined' && this.values !== null) {
|
|
450
|
+
toReturn['values'] = 'toApiJson' in this.values ? this.values.toApiJson() : this.values;
|
|
441
451
|
}
|
|
442
452
|
return toReturn;
|
|
443
453
|
}
|
|
444
454
|
}
|
|
445
|
-
class
|
|
455
|
+
class FormSubmission {
|
|
446
456
|
constructor(kwargs) {
|
|
447
457
|
if (!kwargs) {
|
|
448
458
|
return;
|
|
@@ -450,23 +460,20 @@ class ListFormSubmissionResponseFormSubmission {
|
|
|
450
460
|
Object.assign(this, kwargs);
|
|
451
461
|
}
|
|
452
462
|
static fromProto(proto) {
|
|
453
|
-
let m = new
|
|
463
|
+
let m = new FormSubmission();
|
|
454
464
|
m = Object.assign(m, proto);
|
|
455
|
-
if (proto.values) {
|
|
456
|
-
m.values = proto.values.map(ListFormSubmissionResponseFormSubmissionSubmittedValue.fromProto);
|
|
457
|
-
}
|
|
458
465
|
return m;
|
|
459
466
|
}
|
|
460
467
|
toApiJson() {
|
|
461
468
|
const toReturn = {};
|
|
462
|
-
if (typeof this.
|
|
463
|
-
toReturn['
|
|
469
|
+
if (typeof this.formId !== 'undefined') {
|
|
470
|
+
toReturn['formId'] = this.formId;
|
|
464
471
|
}
|
|
465
|
-
if (typeof this.
|
|
466
|
-
toReturn['
|
|
472
|
+
if (typeof this.version !== 'undefined') {
|
|
473
|
+
toReturn['version'] = this.version;
|
|
467
474
|
}
|
|
468
|
-
if (typeof this.values !== 'undefined'
|
|
469
|
-
toReturn['values'] =
|
|
475
|
+
if (typeof this.values !== 'undefined') {
|
|
476
|
+
toReturn['values'] = this.values;
|
|
470
477
|
}
|
|
471
478
|
return toReturn;
|
|
472
479
|
}
|
|
@@ -779,6 +786,29 @@ class FormConfigFieldUnmappedFieldOption {
|
|
|
779
786
|
return toReturn;
|
|
780
787
|
}
|
|
781
788
|
}
|
|
789
|
+
class RenderFormResponsePreFillByUrlQueryParameter {
|
|
790
|
+
constructor(kwargs) {
|
|
791
|
+
if (!kwargs) {
|
|
792
|
+
return;
|
|
793
|
+
}
|
|
794
|
+
Object.assign(this, kwargs);
|
|
795
|
+
}
|
|
796
|
+
static fromProto(proto) {
|
|
797
|
+
let m = new RenderFormResponsePreFillByUrlQueryParameter();
|
|
798
|
+
m = Object.assign(m, proto);
|
|
799
|
+
return m;
|
|
800
|
+
}
|
|
801
|
+
toApiJson() {
|
|
802
|
+
const toReturn = {};
|
|
803
|
+
if (typeof this.fieldId !== 'undefined') {
|
|
804
|
+
toReturn['fieldId'] = this.fieldId;
|
|
805
|
+
}
|
|
806
|
+
if (typeof this.queryParam !== 'undefined') {
|
|
807
|
+
toReturn['queryParam'] = this.queryParam;
|
|
808
|
+
}
|
|
809
|
+
return toReturn;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
782
812
|
class PreviewFormRequest {
|
|
783
813
|
constructor(kwargs) {
|
|
784
814
|
if (!kwargs) {
|
|
@@ -870,6 +900,9 @@ class RenderFormResponse {
|
|
|
870
900
|
if (proto.styles) {
|
|
871
901
|
m.styles = Styles.fromProto(proto.styles);
|
|
872
902
|
}
|
|
903
|
+
if (proto.fieldQueryParams) {
|
|
904
|
+
m.fieldQueryParams = proto.fieldQueryParams.map(RenderFormResponsePreFillByUrlQueryParameter.fromProto);
|
|
905
|
+
}
|
|
873
906
|
return m;
|
|
874
907
|
}
|
|
875
908
|
toApiJson() {
|
|
@@ -883,6 +916,12 @@ class RenderFormResponse {
|
|
|
883
916
|
if (typeof this.styles !== 'undefined' && this.styles !== null) {
|
|
884
917
|
toReturn['styles'] = 'toApiJson' in this.styles ? this.styles.toApiJson() : this.styles;
|
|
885
918
|
}
|
|
919
|
+
if (typeof this.fieldQueryParams !== 'undefined' && this.fieldQueryParams !== null) {
|
|
920
|
+
toReturn['fieldQueryParams'] = 'toApiJson' in this.fieldQueryParams ? this.fieldQueryParams.toApiJson() : this.fieldQueryParams;
|
|
921
|
+
}
|
|
922
|
+
if (typeof this.recaptchaSiteKey !== 'undefined') {
|
|
923
|
+
toReturn['recaptchaSiteKey'] = this.recaptchaSiteKey;
|
|
924
|
+
}
|
|
886
925
|
return toReturn;
|
|
887
926
|
}
|
|
888
927
|
}
|
|
@@ -1247,5 +1286,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
1247
1286
|
* Generated bundle index. Do not edit.
|
|
1248
1287
|
*/
|
|
1249
1288
|
|
|
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 };
|
|
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 };
|
|
1251
1290
|
//# sourceMappingURL=vendasta-forms_microservice.mjs.map
|