@vendasta/forms_microservice 0.1.0 → 0.1.1
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 +105 -29
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-forms_microservice.mjs +105 -29
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +105 -29
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +20 -7
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +31 -12
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
// Objects Index.
|
|
6
6
|
// *********************************
|
|
7
7
|
export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
|
|
8
|
-
export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FormConfigField, FieldValue, ListFormsRequestFilters, FormConfig, GetMultiRequestFormConfigIdentifier, ListFormsResponseFormRow,
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
8
|
+
export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FormConfigField, FieldValue, ListFormsRequestFilters, FormConfig, GetMultiRequestFormConfigIdentifier, ListFormsResponseFormRow, FormSubmission, ListFormSubmissionResponseFormSubmission, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiRequest, GetMultiResponse, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsResponse, FormConfigFieldMappedField, FormConfigFieldOption, RenderFormResponsePreFillByUrlQueryParameter, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, FormConfigFieldSchema, Styles, ListFormSubmissionResponseFormSubmissionSubmittedValue, FormConfigFieldUnmappedField, UpdateFormRequest, UpdateFormResponse, ValidationError, GetMultiFormVersionsListResponseVersions, } from './api';
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9mb3Jtc19zZGsvc3JjL2xpYi9faW50ZXJuYWwvb2JqZWN0cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvQ0FBb0M7QUFDcEMsMkJBQTJCO0FBQzNCLGdCQUFnQjtBQUNoQixFQUFFO0FBQ0YsaUJBQWlCO0FBQ2pCLG9DQUFvQztBQUNwQyxPQUFPLEVBQ0gsbUJBQW1CLEVBQ25CLHFCQUFxQixHQUN4QixNQUFNLFVBQVUsQ0FBQztBQUVsQixPQUFPLEVBQ0gsaUJBQWlCLEVBQ2pCLGtCQUFrQixFQUNsQiwyQkFBMkIsRUFDM0IsNEJBQTRCLEVBQzVCLGlCQUFpQixFQUNqQixlQUFlLEVBQ2YsVUFBVSxFQUNWLHVCQUF1QixFQUN2QixVQUFVLEVBQ1YsbUNBQW1DLEVBQ25DLHdCQUF3QixFQUN4QixjQUFjLEVBQ2Qsd0NBQXdDLEVBQ3hDLG1CQUFtQixFQUNuQixvQkFBb0IsRUFDcEIsY0FBYyxFQUNkLGVBQWUsRUFDZiwrQkFBK0IsRUFDL0IsZ0NBQWdDLEVBQ2hDLGVBQWUsRUFDZixnQkFBZ0IsRUFDaEIseUJBQXlCLEVBQ3pCLDBCQUEwQixFQUMxQixnQkFBZ0IsRUFDaEIsaUJBQWlCLEVBQ2pCLDBCQUEwQixFQUMxQixxQkFBcUIsR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W9ucyxcbn0gZnJvbSAnLi9hcGknO1xuXG4iXX0=
|
|
@@ -125,6 +125,9 @@ class CreateFormResponse {
|
|
|
125
125
|
static fromProto(proto) {
|
|
126
126
|
let m = new CreateFormResponse();
|
|
127
127
|
m = Object.assign(m, proto);
|
|
128
|
+
if (proto.errors) {
|
|
129
|
+
m.errors = proto.errors.map(ValidationError.fromProto);
|
|
130
|
+
}
|
|
128
131
|
return m;
|
|
129
132
|
}
|
|
130
133
|
constructor(kwargs) {
|
|
@@ -141,6 +144,9 @@ class CreateFormResponse {
|
|
|
141
144
|
if (typeof this.version !== 'undefined') {
|
|
142
145
|
toReturn['version'] = this.version;
|
|
143
146
|
}
|
|
147
|
+
if (typeof this.errors !== 'undefined' && this.errors !== null) {
|
|
148
|
+
toReturn['errors'] = 'toApiJson' in this.errors ? this.errors.toApiJson() : this.errors;
|
|
149
|
+
}
|
|
144
150
|
return toReturn;
|
|
145
151
|
}
|
|
146
152
|
}
|
|
@@ -432,16 +438,10 @@ class ListFormsResponseFormRow {
|
|
|
432
438
|
return toReturn;
|
|
433
439
|
}
|
|
434
440
|
}
|
|
435
|
-
class
|
|
441
|
+
class FormSubmission {
|
|
436
442
|
static fromProto(proto) {
|
|
437
|
-
let m = new
|
|
443
|
+
let m = new FormSubmission();
|
|
438
444
|
m = Object.assign(m, proto);
|
|
439
|
-
if (proto.values) {
|
|
440
|
-
m.values = proto.values.map(ListFormSubmissionResponseFormSubmissionSubmittedValue.fromProto);
|
|
441
|
-
}
|
|
442
|
-
if (proto.created) {
|
|
443
|
-
m.created = new Date(proto.created);
|
|
444
|
-
}
|
|
445
445
|
return m;
|
|
446
446
|
}
|
|
447
447
|
constructor(kwargs) {
|
|
@@ -452,25 +452,28 @@ class ListFormSubmissionResponseFormSubmission {
|
|
|
452
452
|
}
|
|
453
453
|
toApiJson() {
|
|
454
454
|
const toReturn = {};
|
|
455
|
-
if (typeof this.
|
|
456
|
-
toReturn['
|
|
457
|
-
}
|
|
458
|
-
if (typeof this.formVersion !== 'undefined') {
|
|
459
|
-
toReturn['formVersion'] = this.formVersion;
|
|
455
|
+
if (typeof this.formId !== 'undefined') {
|
|
456
|
+
toReturn['formId'] = this.formId;
|
|
460
457
|
}
|
|
461
|
-
if (typeof this.
|
|
462
|
-
toReturn['
|
|
458
|
+
if (typeof this.version !== 'undefined') {
|
|
459
|
+
toReturn['version'] = this.version;
|
|
463
460
|
}
|
|
464
|
-
if (typeof this.
|
|
465
|
-
toReturn['
|
|
461
|
+
if (typeof this.values !== 'undefined') {
|
|
462
|
+
toReturn['values'] = this.values;
|
|
466
463
|
}
|
|
467
464
|
return toReturn;
|
|
468
465
|
}
|
|
469
466
|
}
|
|
470
|
-
class
|
|
467
|
+
class ListFormSubmissionResponseFormSubmission {
|
|
471
468
|
static fromProto(proto) {
|
|
472
|
-
let m = new
|
|
469
|
+
let m = new ListFormSubmissionResponseFormSubmission();
|
|
473
470
|
m = Object.assign(m, proto);
|
|
471
|
+
if (proto.values) {
|
|
472
|
+
m.values = proto.values.map(ListFormSubmissionResponseFormSubmissionSubmittedValue.fromProto);
|
|
473
|
+
}
|
|
474
|
+
if (proto.created) {
|
|
475
|
+
m.created = new Date(proto.created);
|
|
476
|
+
}
|
|
474
477
|
return m;
|
|
475
478
|
}
|
|
476
479
|
constructor(kwargs) {
|
|
@@ -481,14 +484,17 @@ class FormSubmission {
|
|
|
481
484
|
}
|
|
482
485
|
toApiJson() {
|
|
483
486
|
const toReturn = {};
|
|
484
|
-
if (typeof this.
|
|
485
|
-
toReturn['
|
|
487
|
+
if (typeof this.formSubmissionId !== 'undefined') {
|
|
488
|
+
toReturn['formSubmissionId'] = this.formSubmissionId;
|
|
486
489
|
}
|
|
487
|
-
if (typeof this.
|
|
488
|
-
toReturn['
|
|
490
|
+
if (typeof this.formVersion !== 'undefined') {
|
|
491
|
+
toReturn['formVersion'] = this.formVersion;
|
|
489
492
|
}
|
|
490
|
-
if (typeof this.values !== 'undefined') {
|
|
491
|
-
toReturn['values'] = this.values;
|
|
493
|
+
if (typeof this.values !== 'undefined' && this.values !== null) {
|
|
494
|
+
toReturn['values'] = 'toApiJson' in this.values ? this.values.toApiJson() : this.values;
|
|
495
|
+
}
|
|
496
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
497
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
492
498
|
}
|
|
493
499
|
return toReturn;
|
|
494
500
|
}
|
|
@@ -778,9 +784,44 @@ class ListFormsResponse {
|
|
|
778
784
|
return toReturn;
|
|
779
785
|
}
|
|
780
786
|
}
|
|
781
|
-
class
|
|
787
|
+
class FormConfigFieldMappedField {
|
|
782
788
|
static fromProto(proto) {
|
|
783
|
-
let m = new
|
|
789
|
+
let m = new FormConfigFieldMappedField();
|
|
790
|
+
m = Object.assign(m, proto);
|
|
791
|
+
if (proto.type) {
|
|
792
|
+
m.type = enumStringToValue(FieldType, proto.type);
|
|
793
|
+
}
|
|
794
|
+
if (proto.options) {
|
|
795
|
+
m.options = proto.options.map(FormConfigFieldOption.fromProto);
|
|
796
|
+
}
|
|
797
|
+
return m;
|
|
798
|
+
}
|
|
799
|
+
constructor(kwargs) {
|
|
800
|
+
if (!kwargs) {
|
|
801
|
+
return;
|
|
802
|
+
}
|
|
803
|
+
Object.assign(this, kwargs);
|
|
804
|
+
}
|
|
805
|
+
toApiJson() {
|
|
806
|
+
const toReturn = {};
|
|
807
|
+
if (typeof this.id !== 'undefined') {
|
|
808
|
+
toReturn['id'] = this.id;
|
|
809
|
+
}
|
|
810
|
+
if (typeof this.type !== 'undefined') {
|
|
811
|
+
toReturn['type'] = this.type;
|
|
812
|
+
}
|
|
813
|
+
if (typeof this.options !== 'undefined' && this.options !== null) {
|
|
814
|
+
toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
|
|
815
|
+
}
|
|
816
|
+
if (typeof this.mappedTo !== 'undefined') {
|
|
817
|
+
toReturn['mappedTo'] = this.mappedTo;
|
|
818
|
+
}
|
|
819
|
+
return toReturn;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
class FormConfigFieldOption {
|
|
823
|
+
static fromProto(proto) {
|
|
824
|
+
let m = new FormConfigFieldOption();
|
|
784
825
|
m = Object.assign(m, proto);
|
|
785
826
|
return m;
|
|
786
827
|
}
|
|
@@ -947,6 +988,9 @@ class FormConfigFieldSchema {
|
|
|
947
988
|
if (proto.unmappedField) {
|
|
948
989
|
m.unmappedField = FormConfigFieldUnmappedField.fromProto(proto.unmappedField);
|
|
949
990
|
}
|
|
991
|
+
if (proto.mappedField) {
|
|
992
|
+
m.mappedField = FormConfigFieldMappedField.fromProto(proto.mappedField);
|
|
993
|
+
}
|
|
950
994
|
return m;
|
|
951
995
|
}
|
|
952
996
|
constructor(kwargs) {
|
|
@@ -960,6 +1004,9 @@ class FormConfigFieldSchema {
|
|
|
960
1004
|
if (typeof this.unmappedField !== 'undefined' && this.unmappedField !== null) {
|
|
961
1005
|
toReturn['unmappedField'] = 'toApiJson' in this.unmappedField ? this.unmappedField.toApiJson() : this.unmappedField;
|
|
962
1006
|
}
|
|
1007
|
+
if (typeof this.mappedField !== 'undefined' && this.mappedField !== null) {
|
|
1008
|
+
toReturn['mappedField'] = 'toApiJson' in this.mappedField ? this.mappedField.toApiJson() : this.mappedField;
|
|
1009
|
+
}
|
|
963
1010
|
return toReturn;
|
|
964
1011
|
}
|
|
965
1012
|
}
|
|
@@ -1044,7 +1091,7 @@ class FormConfigFieldUnmappedField {
|
|
|
1044
1091
|
m.type = enumStringToValue(FieldType, proto.type);
|
|
1045
1092
|
}
|
|
1046
1093
|
if (proto.options) {
|
|
1047
|
-
m.options = proto.options.map(
|
|
1094
|
+
m.options = proto.options.map(FormConfigFieldOption.fromProto);
|
|
1048
1095
|
}
|
|
1049
1096
|
return m;
|
|
1050
1097
|
}
|
|
@@ -1098,6 +1145,9 @@ class UpdateFormResponse {
|
|
|
1098
1145
|
static fromProto(proto) {
|
|
1099
1146
|
let m = new UpdateFormResponse();
|
|
1100
1147
|
m = Object.assign(m, proto);
|
|
1148
|
+
if (proto.errors) {
|
|
1149
|
+
m.errors = proto.errors.map(ValidationError.fromProto);
|
|
1150
|
+
}
|
|
1101
1151
|
return m;
|
|
1102
1152
|
}
|
|
1103
1153
|
constructor(kwargs) {
|
|
@@ -1111,6 +1161,32 @@ class UpdateFormResponse {
|
|
|
1111
1161
|
if (typeof this.version !== 'undefined') {
|
|
1112
1162
|
toReturn['version'] = this.version;
|
|
1113
1163
|
}
|
|
1164
|
+
if (typeof this.errors !== 'undefined' && this.errors !== null) {
|
|
1165
|
+
toReturn['errors'] = 'toApiJson' in this.errors ? this.errors.toApiJson() : this.errors;
|
|
1166
|
+
}
|
|
1167
|
+
return toReturn;
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
class ValidationError {
|
|
1171
|
+
static fromProto(proto) {
|
|
1172
|
+
let m = new ValidationError();
|
|
1173
|
+
m = Object.assign(m, proto);
|
|
1174
|
+
return m;
|
|
1175
|
+
}
|
|
1176
|
+
constructor(kwargs) {
|
|
1177
|
+
if (!kwargs) {
|
|
1178
|
+
return;
|
|
1179
|
+
}
|
|
1180
|
+
Object.assign(this, kwargs);
|
|
1181
|
+
}
|
|
1182
|
+
toApiJson() {
|
|
1183
|
+
const toReturn = {};
|
|
1184
|
+
if (typeof this.ruleId !== 'undefined') {
|
|
1185
|
+
toReturn['ruleId'] = this.ruleId;
|
|
1186
|
+
}
|
|
1187
|
+
if (typeof this.message !== 'undefined') {
|
|
1188
|
+
toReturn['message'] = this.message;
|
|
1189
|
+
}
|
|
1114
1190
|
return toReturn;
|
|
1115
1191
|
}
|
|
1116
1192
|
}
|
|
@@ -1308,5 +1384,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
1308
1384
|
* Generated bundle index. Do not edit.
|
|
1309
1385
|
*/
|
|
1310
1386
|
|
|
1311
|
-
export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FieldType, FieldValue, FormConfig, FormConfigField, FormConfigFieldSchema, FormConfigFieldUnmappedField,
|
|
1387
|
+
export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FieldType, FieldValue, FormConfig, FormConfigField, FormConfigFieldMappedField, FormConfigFieldOption, FormConfigFieldSchema, FormConfigFieldUnmappedField, 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, ValidationError };
|
|
1312
1388
|
//# sourceMappingURL=vendasta-forms_microservice.mjs.map
|