@vendasta/forms_microservice 0.22.0 → 0.24.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.
- package/esm2020/lib/_internal/enums/api.enum.mjs +9 -1
- package/esm2020/lib/_internal/enums/index.mjs +2 -2
- package/esm2020/lib/_internal/form-submission.api.service.mjs +7 -2
- 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 +47 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-forms_microservice.mjs +60 -1
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +60 -1
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/enums/api.enum.d.ts +8 -1
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/form-submission.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/api.interface.d.ts +7 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +13 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -98,6 +98,7 @@ var FieldType;
|
|
|
98
98
|
FieldType[FieldType["FIELD_TYPE_TEXT_AREA"] = 12] = "FIELD_TYPE_TEXT_AREA";
|
|
99
99
|
FieldType[FieldType["FIELD_TYPE_TAG"] = 13] = "FIELD_TYPE_TAG";
|
|
100
100
|
FieldType[FieldType["FIELD_TYPE_SECTION"] = 14] = "FIELD_TYPE_SECTION";
|
|
101
|
+
FieldType[FieldType["FIELD_TYPE_FILE"] = 15] = "FIELD_TYPE_FILE";
|
|
101
102
|
})(FieldType || (FieldType = {}));
|
|
102
103
|
var FormCreationStatus;
|
|
103
104
|
(function (FormCreationStatus) {
|
|
@@ -111,6 +112,13 @@ var JsonSchemaLibrary;
|
|
|
111
112
|
JsonSchemaLibrary[JsonSchemaLibrary["JSON_SCHEMA_LIBRARY_UNDEFINED"] = 0] = "JSON_SCHEMA_LIBRARY_UNDEFINED";
|
|
112
113
|
JsonSchemaLibrary[JsonSchemaLibrary["JSON_SCHEMA_LIBRARY_JSONFORM"] = 1] = "JSON_SCHEMA_LIBRARY_JSONFORM";
|
|
113
114
|
})(JsonSchemaLibrary || (JsonSchemaLibrary = {}));
|
|
115
|
+
var ReprocessStatus;
|
|
116
|
+
(function (ReprocessStatus) {
|
|
117
|
+
ReprocessStatus[ReprocessStatus["REPROCESS_STATUS_UNSPECIFIED"] = 0] = "REPROCESS_STATUS_UNSPECIFIED";
|
|
118
|
+
ReprocessStatus[ReprocessStatus["STARTED"] = 1] = "STARTED";
|
|
119
|
+
ReprocessStatus[ReprocessStatus["ALREADY_RUNNING"] = 2] = "ALREADY_RUNNING";
|
|
120
|
+
ReprocessStatus[ReprocessStatus["NO_MAPPABLE_FIELDS"] = 3] = "NO_MAPPABLE_FIELDS";
|
|
121
|
+
})(ReprocessStatus || (ReprocessStatus = {}));
|
|
114
122
|
var SectionAction;
|
|
115
123
|
(function (SectionAction) {
|
|
116
124
|
SectionAction[SectionAction["SECTION_ACTION_UNDEFINED"] = 0] = "SECTION_ACTION_UNDEFINED";
|
|
@@ -897,6 +905,9 @@ class GenerateCustomCSSRequest {
|
|
|
897
905
|
if (typeof this.htmlTemplate !== 'undefined') {
|
|
898
906
|
toReturn['htmlTemplate'] = this.htmlTemplate;
|
|
899
907
|
}
|
|
908
|
+
if (typeof this.formId !== 'undefined') {
|
|
909
|
+
toReturn['formId'] = this.formId;
|
|
910
|
+
}
|
|
900
911
|
return toReturn;
|
|
901
912
|
}
|
|
902
913
|
}
|
|
@@ -1634,6 +1645,49 @@ class RenderFormResponse {
|
|
|
1634
1645
|
return toReturn;
|
|
1635
1646
|
}
|
|
1636
1647
|
}
|
|
1648
|
+
class ReprocessSubmissionRequest {
|
|
1649
|
+
static fromProto(proto) {
|
|
1650
|
+
let m = new ReprocessSubmissionRequest();
|
|
1651
|
+
m = Object.assign(m, proto);
|
|
1652
|
+
return m;
|
|
1653
|
+
}
|
|
1654
|
+
constructor(kwargs) {
|
|
1655
|
+
if (!kwargs) {
|
|
1656
|
+
return;
|
|
1657
|
+
}
|
|
1658
|
+
Object.assign(this, kwargs);
|
|
1659
|
+
}
|
|
1660
|
+
toApiJson() {
|
|
1661
|
+
const toReturn = {};
|
|
1662
|
+
if (typeof this.formSubmissionId !== 'undefined') {
|
|
1663
|
+
toReturn['formSubmissionId'] = this.formSubmissionId;
|
|
1664
|
+
}
|
|
1665
|
+
return toReturn;
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
class ReprocessSubmissionResponse {
|
|
1669
|
+
static fromProto(proto) {
|
|
1670
|
+
let m = new ReprocessSubmissionResponse();
|
|
1671
|
+
m = Object.assign(m, proto);
|
|
1672
|
+
if (proto.status) {
|
|
1673
|
+
m.status = enumStringToValue(ReprocessStatus, proto.status);
|
|
1674
|
+
}
|
|
1675
|
+
return m;
|
|
1676
|
+
}
|
|
1677
|
+
constructor(kwargs) {
|
|
1678
|
+
if (!kwargs) {
|
|
1679
|
+
return;
|
|
1680
|
+
}
|
|
1681
|
+
Object.assign(this, kwargs);
|
|
1682
|
+
}
|
|
1683
|
+
toApiJson() {
|
|
1684
|
+
const toReturn = {};
|
|
1685
|
+
if (typeof this.status !== 'undefined') {
|
|
1686
|
+
toReturn['status'] = this.status;
|
|
1687
|
+
}
|
|
1688
|
+
return toReturn;
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1637
1691
|
class FormConfigFieldSchema {
|
|
1638
1692
|
static fromProto(proto) {
|
|
1639
1693
|
let m = new FormConfigFieldSchema();
|
|
@@ -2112,6 +2166,11 @@ class FormSubmissionApiService {
|
|
|
2112
2166
|
return this.http.post(this._host + "/forms.v1.FormSubmissionService/GetMultiFormSubmission", request.toApiJson(), this.apiOptions())
|
|
2113
2167
|
.pipe(map(resp => GetMultiFormSubmissionResponse.fromProto(resp)));
|
|
2114
2168
|
}
|
|
2169
|
+
reprocessSubmission(r) {
|
|
2170
|
+
const request = (r.toApiJson) ? r : new ReprocessSubmissionRequest(r);
|
|
2171
|
+
return this.http.post(this._host + "/forms.v1.FormSubmissionService/ReprocessSubmission", request.toApiJson(), this.apiOptions())
|
|
2172
|
+
.pipe(map(resp => ReprocessSubmissionResponse.fromProto(resp)));
|
|
2173
|
+
}
|
|
2115
2174
|
}
|
|
2116
2175
|
FormSubmissionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormSubmissionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2117
2176
|
FormSubmissionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormSubmissionApiService, providedIn: 'root' });
|
|
@@ -2295,5 +2354,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2295
2354
|
* Generated bundle index. Do not edit.
|
|
2296
2355
|
*/
|
|
2297
2356
|
|
|
2298
|
-
export { ActionParameters, CreateFormFromTemplateRequest, CreateFormFromTemplateResponse, CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DateDefault, DeleteFormRequest, FieldOption, FieldType, FieldValue, Filter, FilterGroup, FilterGroupOperator, FilterOperator, FilterType, FilterValue, FormConfig, FormConfigField, FormConfigFieldSchema, FormConfigTemplateSetupSettings, FormCreationStatus, FormSubmission, FormSubmissionApiService, FormSubmissionSubmittedValue, FormSubmissionsExportService, FormTemplateApiService, FormsApiService, GenerateCustomCSSRequest, GenerateCustomCSSResponse, GetCreateFormFromTemplateStatusRequest, GetCreateFormFromTemplateStatusResponse, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormSubmissionRequest, GetMultiFormSubmissionResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiFormVersionsListResponseVersions, GetMultiRequest, GetMultiRequestFormConfigIdentifier, GetMultiResponse, HostService, JsonSchemaLibrary, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsRequestFilters, ListFormsResponse, ListFormsResponseFormRow, ListMappedFieldSchemaRequest, ListMappedFieldSchemaResponse, MappedField, NextParameters, PagedRequestOptions, PagedResponseMetadata, Phone, PreviewFormRequest, PreviewFormResponse, RecoverFormRequest, RecoverFormResponse, RenderFormRequest, RenderFormResponse, RenderFormResponseDefaultValues, RenderFormResponsePreFillByUrlQueryParameter, SectionAction, SectionConfig, StringList, Styles, SubmitConditionParameters, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError };
|
|
2357
|
+
export { ActionParameters, CreateFormFromTemplateRequest, CreateFormFromTemplateResponse, CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DateDefault, DeleteFormRequest, FieldOption, FieldType, FieldValue, Filter, FilterGroup, FilterGroupOperator, FilterOperator, FilterType, FilterValue, FormConfig, FormConfigField, FormConfigFieldSchema, FormConfigTemplateSetupSettings, FormCreationStatus, FormSubmission, FormSubmissionApiService, FormSubmissionSubmittedValue, FormSubmissionsExportService, FormTemplateApiService, FormsApiService, GenerateCustomCSSRequest, GenerateCustomCSSResponse, GetCreateFormFromTemplateStatusRequest, GetCreateFormFromTemplateStatusResponse, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormSubmissionRequest, GetMultiFormSubmissionResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiFormVersionsListResponseVersions, GetMultiRequest, GetMultiRequestFormConfigIdentifier, GetMultiResponse, HostService, JsonSchemaLibrary, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsRequestFilters, ListFormsResponse, ListFormsResponseFormRow, ListMappedFieldSchemaRequest, ListMappedFieldSchemaResponse, MappedField, NextParameters, PagedRequestOptions, PagedResponseMetadata, Phone, PreviewFormRequest, PreviewFormResponse, RecoverFormRequest, RecoverFormResponse, RenderFormRequest, RenderFormResponse, RenderFormResponseDefaultValues, RenderFormResponsePreFillByUrlQueryParameter, ReprocessStatus, ReprocessSubmissionRequest, ReprocessSubmissionResponse, SectionAction, SectionConfig, StringList, Styles, SubmitConditionParameters, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError };
|
|
2299
2358
|
//# sourceMappingURL=vendasta-forms_microservice.mjs.map
|