@vendasta/forms_microservice 0.23.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 +44 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-forms_microservice.mjs +57 -1
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +57 -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 +6 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +12 -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";
|
|
@@ -1637,6 +1645,49 @@ class RenderFormResponse {
|
|
|
1637
1645
|
return toReturn;
|
|
1638
1646
|
}
|
|
1639
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
|
+
}
|
|
1640
1691
|
class FormConfigFieldSchema {
|
|
1641
1692
|
static fromProto(proto) {
|
|
1642
1693
|
let m = new FormConfigFieldSchema();
|
|
@@ -2115,6 +2166,11 @@ class FormSubmissionApiService {
|
|
|
2115
2166
|
return this.http.post(this._host + "/forms.v1.FormSubmissionService/GetMultiFormSubmission", request.toApiJson(), this.apiOptions())
|
|
2116
2167
|
.pipe(map(resp => GetMultiFormSubmissionResponse.fromProto(resp)));
|
|
2117
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
|
+
}
|
|
2118
2174
|
}
|
|
2119
2175
|
FormSubmissionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormSubmissionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2120
2176
|
FormSubmissionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormSubmissionApiService, providedIn: 'root' });
|
|
@@ -2298,5 +2354,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2298
2354
|
* Generated bundle index. Do not edit.
|
|
2299
2355
|
*/
|
|
2300
2356
|
|
|
2301
|
-
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 };
|
|
2302
2358
|
//# sourceMappingURL=vendasta-forms_microservice.mjs.map
|