@vendasta/forms_microservice 0.24.0 → 0.26.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.
@@ -112,6 +112,29 @@ 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 ListFormsResponseProcessResultStatus;
123
+ (function (ListFormsResponseProcessResultStatus) {
124
+ ListFormsResponseProcessResultStatus[ListFormsResponseProcessResultStatus["PROCESS_RESULT_STATUS_UNSPECIFIED"] = 0] = "PROCESS_RESULT_STATUS_UNSPECIFIED";
125
+ ListFormsResponseProcessResultStatus[ListFormsResponseProcessResultStatus["PROCESS_RESULT_STATUS_IN_PROGRESS"] = 1] = "PROCESS_RESULT_STATUS_IN_PROGRESS";
126
+ ListFormsResponseProcessResultStatus[ListFormsResponseProcessResultStatus["PROCESS_RESULT_STATUS_COMPLETED"] = 2] = "PROCESS_RESULT_STATUS_COMPLETED";
127
+ ListFormsResponseProcessResultStatus[ListFormsResponseProcessResultStatus["PROCESS_RESULT_STATUS_COMPLETED_WITH_WARNINGS"] = 3] = "PROCESS_RESULT_STATUS_COMPLETED_WITH_WARNINGS";
128
+ ListFormsResponseProcessResultStatus[ListFormsResponseProcessResultStatus["PROCESS_RESULT_STATUS_FAILED"] = 4] = "PROCESS_RESULT_STATUS_FAILED";
129
+ })(ListFormsResponseProcessResultStatus || (ListFormsResponseProcessResultStatus = {}));
130
+ var FormSubmissionProcessResultStatus;
131
+ (function (FormSubmissionProcessResultStatus) {
132
+ FormSubmissionProcessResultStatus[FormSubmissionProcessResultStatus["PROCESS_RESULT_STATUS_UNSPECIFIED"] = 0] = "PROCESS_RESULT_STATUS_UNSPECIFIED";
133
+ FormSubmissionProcessResultStatus[FormSubmissionProcessResultStatus["PROCESS_RESULT_STATUS_IN_PROGRESS"] = 1] = "PROCESS_RESULT_STATUS_IN_PROGRESS";
134
+ FormSubmissionProcessResultStatus[FormSubmissionProcessResultStatus["PROCESS_RESULT_STATUS_COMPLETED"] = 2] = "PROCESS_RESULT_STATUS_COMPLETED";
135
+ FormSubmissionProcessResultStatus[FormSubmissionProcessResultStatus["PROCESS_RESULT_STATUS_COMPLETED_WITH_WARNINGS"] = 3] = "PROCESS_RESULT_STATUS_COMPLETED_WITH_WARNINGS";
136
+ FormSubmissionProcessResultStatus[FormSubmissionProcessResultStatus["PROCESS_RESULT_STATUS_FAILED"] = 4] = "PROCESS_RESULT_STATUS_FAILED";
137
+ })(FormSubmissionProcessResultStatus || (FormSubmissionProcessResultStatus = {}));
115
138
  var ReprocessStatus;
116
139
  (function (ReprocessStatus) {
117
140
  ReprocessStatus[ReprocessStatus["REPROCESS_STATUS_UNSPECIFIED"] = 0] = "REPROCESS_STATUS_UNSPECIFIED";
@@ -819,6 +842,9 @@ class ListFormsResponseFormRow {
819
842
  if (proto.numberOfSubmissions) {
820
843
  m.numberOfSubmissions = parseInt(proto.numberOfSubmissions, 10);
821
844
  }
845
+ if (proto.recentProcessingStatus) {
846
+ m.recentProcessingStatus = enumStringToValue(ListFormsResponseProcessResultStatus, proto.recentProcessingStatus);
847
+ }
822
848
  return m;
823
849
  }
824
850
  constructor(kwargs) {
@@ -835,6 +861,9 @@ class ListFormsResponseFormRow {
835
861
  if (typeof this.numberOfSubmissions !== 'undefined') {
836
862
  toReturn['numberOfSubmissions'] = this.numberOfSubmissions;
837
863
  }
864
+ if (typeof this.recentProcessingStatus !== 'undefined') {
865
+ toReturn['recentProcessingStatus'] = this.recentProcessingStatus;
866
+ }
838
867
  return toReturn;
839
868
  }
840
869
  }
@@ -848,6 +877,9 @@ class FormSubmission {
848
877
  if (proto.created) {
849
878
  m.created = new Date(proto.created);
850
879
  }
880
+ if (proto.processResult) {
881
+ m.processResult = FormSubmissionProcessResult.fromProto(proto.processResult);
882
+ }
851
883
  return m;
852
884
  }
853
885
  constructor(kwargs) {
@@ -870,6 +902,9 @@ class FormSubmission {
870
902
  if (typeof this.created !== 'undefined' && this.created !== null) {
871
903
  toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
872
904
  }
905
+ if (typeof this.processResult !== 'undefined' && this.processResult !== null) {
906
+ toReturn['processResult'] = 'toApiJson' in this.processResult ? this.processResult.toApiJson() : this.processResult;
907
+ }
873
908
  return toReturn;
874
909
  }
875
910
  }
@@ -1532,6 +1567,38 @@ class PreviewFormResponse {
1532
1567
  return toReturn;
1533
1568
  }
1534
1569
  }
1570
+ class FormSubmissionProcessResult {
1571
+ static fromProto(proto) {
1572
+ let m = new FormSubmissionProcessResult();
1573
+ m = Object.assign(m, proto);
1574
+ if (proto.status) {
1575
+ m.status = enumStringToValue(FormSubmissionProcessResultStatus, proto.status);
1576
+ }
1577
+ if (proto.errors) {
1578
+ m.errors = proto.errors.map(FormSubmissionResultError.fromProto);
1579
+ }
1580
+ return m;
1581
+ }
1582
+ constructor(kwargs) {
1583
+ if (!kwargs) {
1584
+ return;
1585
+ }
1586
+ Object.assign(this, kwargs);
1587
+ }
1588
+ toApiJson() {
1589
+ const toReturn = {};
1590
+ if (typeof this.status !== 'undefined') {
1591
+ toReturn['status'] = this.status;
1592
+ }
1593
+ if (typeof this.entityIds !== 'undefined') {
1594
+ toReturn['entityIds'] = this.entityIds;
1595
+ }
1596
+ if (typeof this.errors !== 'undefined' && this.errors !== null) {
1597
+ toReturn['errors'] = 'toApiJson' in this.errors ? this.errors.toApiJson() : this.errors;
1598
+ }
1599
+ return toReturn;
1600
+ }
1601
+ }
1535
1602
  class RecoverFormRequest {
1536
1603
  static fromProto(proto) {
1537
1604
  let m = new RecoverFormRequest();
@@ -1688,6 +1755,32 @@ class ReprocessSubmissionResponse {
1688
1755
  return toReturn;
1689
1756
  }
1690
1757
  }
1758
+ class FormSubmissionResultError {
1759
+ static fromProto(proto) {
1760
+ let m = new FormSubmissionResultError();
1761
+ m = Object.assign(m, proto);
1762
+ if (proto.errorType) {
1763
+ m.errorType = enumStringToValue(FormSubmissionProcessResultErrorType, proto.errorType);
1764
+ }
1765
+ return m;
1766
+ }
1767
+ constructor(kwargs) {
1768
+ if (!kwargs) {
1769
+ return;
1770
+ }
1771
+ Object.assign(this, kwargs);
1772
+ }
1773
+ toApiJson() {
1774
+ const toReturn = {};
1775
+ if (typeof this.stepId !== 'undefined') {
1776
+ toReturn['stepId'] = this.stepId;
1777
+ }
1778
+ if (typeof this.errorType !== 'undefined') {
1779
+ toReturn['errorType'] = this.errorType;
1780
+ }
1781
+ return toReturn;
1782
+ }
1783
+ }
1691
1784
  class FormConfigFieldSchema {
1692
1785
  static fromProto(proto) {
1693
1786
  let m = new FormConfigFieldSchema();
@@ -2354,5 +2447,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2354
2447
  * Generated bundle index. Do not edit.
2355
2448
  */
2356
2449
 
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 };
2450
+ 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, ListFormsResponseProcessResultStatus, 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
2451
  //# sourceMappingURL=vendasta-forms_microservice.mjs.map