@vendasta/forms_microservice 0.24.0 → 0.25.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 +16 -1
- package/esm2020/lib/_internal/enums/index.mjs +2 -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 +65 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-forms_microservice.mjs +80 -1
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +80 -1
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/enums/api.enum.d.ts +13 -0
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +10 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +16 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -112,6 +112,21 @@ var JsonSchemaLibrary;
|
|
|
112
112
|
JsonSchemaLibrary[JsonSchemaLibrary["JSON_SCHEMA_LIBRARY_UNDEFINED"] = 0] = "JSON_SCHEMA_LIBRARY_UNDEFINED";
|
|
113
113
|
JsonSchemaLibrary[JsonSchemaLibrary["JSON_SCHEMA_LIBRARY_JSONFORM"] = 1] = "JSON_SCHEMA_LIBRARY_JSONFORM";
|
|
114
114
|
})(JsonSchemaLibrary || (JsonSchemaLibrary = {}));
|
|
115
|
+
var FormSubmissionProcessResultErrorType;
|
|
116
|
+
(function (FormSubmissionProcessResultErrorType) {
|
|
117
|
+
FormSubmissionProcessResultErrorType[FormSubmissionProcessResultErrorType["PROCESS_RESULT_ERROR_TYPE_UNSPECIFIED"] = 0] = "PROCESS_RESULT_ERROR_TYPE_UNSPECIFIED";
|
|
118
|
+
FormSubmissionProcessResultErrorType[FormSubmissionProcessResultErrorType["PROCESS_RESULT_ERROR_TYPE_NOT_FOUND"] = 1] = "PROCESS_RESULT_ERROR_TYPE_NOT_FOUND";
|
|
119
|
+
FormSubmissionProcessResultErrorType[FormSubmissionProcessResultErrorType["PROCESS_RESULT_ERROR_TYPE_ALREADY_EXISTS"] = 2] = "PROCESS_RESULT_ERROR_TYPE_ALREADY_EXISTS";
|
|
120
|
+
FormSubmissionProcessResultErrorType[FormSubmissionProcessResultErrorType["PROCESS_RESULT_ERROR_TYPE_INVALID_ARGUMENT"] = 3] = "PROCESS_RESULT_ERROR_TYPE_INVALID_ARGUMENT";
|
|
121
|
+
})(FormSubmissionProcessResultErrorType || (FormSubmissionProcessResultErrorType = {}));
|
|
122
|
+
var FormSubmissionProcessResultStatus;
|
|
123
|
+
(function (FormSubmissionProcessResultStatus) {
|
|
124
|
+
FormSubmissionProcessResultStatus[FormSubmissionProcessResultStatus["PROCESS_RESULT_STATUS_UNSPECIFIED"] = 0] = "PROCESS_RESULT_STATUS_UNSPECIFIED";
|
|
125
|
+
FormSubmissionProcessResultStatus[FormSubmissionProcessResultStatus["PROCESS_RESULT_STATUS_IN_PROGRESS"] = 1] = "PROCESS_RESULT_STATUS_IN_PROGRESS";
|
|
126
|
+
FormSubmissionProcessResultStatus[FormSubmissionProcessResultStatus["PROCESS_RESULT_STATUS_COMPLETED"] = 2] = "PROCESS_RESULT_STATUS_COMPLETED";
|
|
127
|
+
FormSubmissionProcessResultStatus[FormSubmissionProcessResultStatus["PROCESS_RESULT_STATUS_COMPLETED_WITH_WARNINGS"] = 3] = "PROCESS_RESULT_STATUS_COMPLETED_WITH_WARNINGS";
|
|
128
|
+
FormSubmissionProcessResultStatus[FormSubmissionProcessResultStatus["PROCESS_RESULT_STATUS_FAILED"] = 4] = "PROCESS_RESULT_STATUS_FAILED";
|
|
129
|
+
})(FormSubmissionProcessResultStatus || (FormSubmissionProcessResultStatus = {}));
|
|
115
130
|
var ReprocessStatus;
|
|
116
131
|
(function (ReprocessStatus) {
|
|
117
132
|
ReprocessStatus[ReprocessStatus["REPROCESS_STATUS_UNSPECIFIED"] = 0] = "REPROCESS_STATUS_UNSPECIFIED";
|
|
@@ -848,6 +863,9 @@ class FormSubmission {
|
|
|
848
863
|
if (proto.created) {
|
|
849
864
|
m.created = new Date(proto.created);
|
|
850
865
|
}
|
|
866
|
+
if (proto.processResult) {
|
|
867
|
+
m.processResult = FormSubmissionProcessResult.fromProto(proto.processResult);
|
|
868
|
+
}
|
|
851
869
|
return m;
|
|
852
870
|
}
|
|
853
871
|
constructor(kwargs) {
|
|
@@ -870,6 +888,9 @@ class FormSubmission {
|
|
|
870
888
|
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
871
889
|
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
872
890
|
}
|
|
891
|
+
if (typeof this.processResult !== 'undefined' && this.processResult !== null) {
|
|
892
|
+
toReturn['processResult'] = 'toApiJson' in this.processResult ? this.processResult.toApiJson() : this.processResult;
|
|
893
|
+
}
|
|
873
894
|
return toReturn;
|
|
874
895
|
}
|
|
875
896
|
}
|
|
@@ -1532,6 +1553,38 @@ class PreviewFormResponse {
|
|
|
1532
1553
|
return toReturn;
|
|
1533
1554
|
}
|
|
1534
1555
|
}
|
|
1556
|
+
class FormSubmissionProcessResult {
|
|
1557
|
+
static fromProto(proto) {
|
|
1558
|
+
let m = new FormSubmissionProcessResult();
|
|
1559
|
+
m = Object.assign(m, proto);
|
|
1560
|
+
if (proto.status) {
|
|
1561
|
+
m.status = enumStringToValue(FormSubmissionProcessResultStatus, proto.status);
|
|
1562
|
+
}
|
|
1563
|
+
if (proto.errors) {
|
|
1564
|
+
m.errors = proto.errors.map(FormSubmissionResultError.fromProto);
|
|
1565
|
+
}
|
|
1566
|
+
return m;
|
|
1567
|
+
}
|
|
1568
|
+
constructor(kwargs) {
|
|
1569
|
+
if (!kwargs) {
|
|
1570
|
+
return;
|
|
1571
|
+
}
|
|
1572
|
+
Object.assign(this, kwargs);
|
|
1573
|
+
}
|
|
1574
|
+
toApiJson() {
|
|
1575
|
+
const toReturn = {};
|
|
1576
|
+
if (typeof this.status !== 'undefined') {
|
|
1577
|
+
toReturn['status'] = this.status;
|
|
1578
|
+
}
|
|
1579
|
+
if (typeof this.entityIds !== 'undefined') {
|
|
1580
|
+
toReturn['entityIds'] = this.entityIds;
|
|
1581
|
+
}
|
|
1582
|
+
if (typeof this.errors !== 'undefined' && this.errors !== null) {
|
|
1583
|
+
toReturn['errors'] = 'toApiJson' in this.errors ? this.errors.toApiJson() : this.errors;
|
|
1584
|
+
}
|
|
1585
|
+
return toReturn;
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1535
1588
|
class RecoverFormRequest {
|
|
1536
1589
|
static fromProto(proto) {
|
|
1537
1590
|
let m = new RecoverFormRequest();
|
|
@@ -1688,6 +1741,32 @@ class ReprocessSubmissionResponse {
|
|
|
1688
1741
|
return toReturn;
|
|
1689
1742
|
}
|
|
1690
1743
|
}
|
|
1744
|
+
class FormSubmissionResultError {
|
|
1745
|
+
static fromProto(proto) {
|
|
1746
|
+
let m = new FormSubmissionResultError();
|
|
1747
|
+
m = Object.assign(m, proto);
|
|
1748
|
+
if (proto.errorType) {
|
|
1749
|
+
m.errorType = enumStringToValue(FormSubmissionProcessResultErrorType, proto.errorType);
|
|
1750
|
+
}
|
|
1751
|
+
return m;
|
|
1752
|
+
}
|
|
1753
|
+
constructor(kwargs) {
|
|
1754
|
+
if (!kwargs) {
|
|
1755
|
+
return;
|
|
1756
|
+
}
|
|
1757
|
+
Object.assign(this, kwargs);
|
|
1758
|
+
}
|
|
1759
|
+
toApiJson() {
|
|
1760
|
+
const toReturn = {};
|
|
1761
|
+
if (typeof this.stepId !== 'undefined') {
|
|
1762
|
+
toReturn['stepId'] = this.stepId;
|
|
1763
|
+
}
|
|
1764
|
+
if (typeof this.errorType !== 'undefined') {
|
|
1765
|
+
toReturn['errorType'] = this.errorType;
|
|
1766
|
+
}
|
|
1767
|
+
return toReturn;
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1691
1770
|
class FormConfigFieldSchema {
|
|
1692
1771
|
static fromProto(proto) {
|
|
1693
1772
|
let m = new FormConfigFieldSchema();
|
|
@@ -2354,5 +2433,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2354
2433
|
* Generated bundle index. Do not edit.
|
|
2355
2434
|
*/
|
|
2356
2435
|
|
|
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 };
|
|
2436
|
+
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, FormSubmissionProcessResult, FormSubmissionProcessResultErrorType, FormSubmissionProcessResultStatus, FormSubmissionResultError, 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 };
|
|
2358
2437
|
//# sourceMappingURL=vendasta-forms_microservice.mjs.map
|