@vendasta/forms_microservice 0.21.0 → 0.23.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 +8 -1
- package/esm2020/lib/_internal/enums/index.mjs +2 -2
- package/esm2020/lib/_internal/form-template.api.service.mjs +45 -0
- package/esm2020/lib/_internal/index.mjs +2 -1
- 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 +99 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-forms_microservice.mjs +144 -1
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +144 -1
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/enums/api.enum.d.ts +6 -0
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/form-template.api.service.d.ts +14 -0
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/api.interface.d.ts +17 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +29 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -99,6 +99,13 @@ var FieldType;
|
|
|
99
99
|
FieldType[FieldType["FIELD_TYPE_TAG"] = 13] = "FIELD_TYPE_TAG";
|
|
100
100
|
FieldType[FieldType["FIELD_TYPE_SECTION"] = 14] = "FIELD_TYPE_SECTION";
|
|
101
101
|
})(FieldType || (FieldType = {}));
|
|
102
|
+
var FormCreationStatus;
|
|
103
|
+
(function (FormCreationStatus) {
|
|
104
|
+
FormCreationStatus[FormCreationStatus["FORM_CREATION_STATUS_UNSPECIFIED"] = 0] = "FORM_CREATION_STATUS_UNSPECIFIED";
|
|
105
|
+
FormCreationStatus[FormCreationStatus["FORM_CREATION_STATUS_IN_PROGRESS"] = 1] = "FORM_CREATION_STATUS_IN_PROGRESS";
|
|
106
|
+
FormCreationStatus[FormCreationStatus["FORM_CREATION_STATUS_COMPLETED"] = 2] = "FORM_CREATION_STATUS_COMPLETED";
|
|
107
|
+
FormCreationStatus[FormCreationStatus["FORM_CREATION_STATUS_FAILED"] = 3] = "FORM_CREATION_STATUS_FAILED";
|
|
108
|
+
})(FormCreationStatus || (FormCreationStatus = {}));
|
|
102
109
|
var JsonSchemaLibrary;
|
|
103
110
|
(function (JsonSchemaLibrary) {
|
|
104
111
|
JsonSchemaLibrary[JsonSchemaLibrary["JSON_SCHEMA_LIBRARY_UNDEFINED"] = 0] = "JSON_SCHEMA_LIBRARY_UNDEFINED";
|
|
@@ -364,6 +371,49 @@ class ActionParameters {
|
|
|
364
371
|
return toReturn;
|
|
365
372
|
}
|
|
366
373
|
}
|
|
374
|
+
class CreateFormFromTemplateRequest {
|
|
375
|
+
static fromProto(proto) {
|
|
376
|
+
let m = new CreateFormFromTemplateRequest();
|
|
377
|
+
m = Object.assign(m, proto);
|
|
378
|
+
return m;
|
|
379
|
+
}
|
|
380
|
+
constructor(kwargs) {
|
|
381
|
+
if (!kwargs) {
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
Object.assign(this, kwargs);
|
|
385
|
+
}
|
|
386
|
+
toApiJson() {
|
|
387
|
+
const toReturn = {};
|
|
388
|
+
if (typeof this.namespace !== 'undefined') {
|
|
389
|
+
toReturn['namespace'] = this.namespace;
|
|
390
|
+
}
|
|
391
|
+
if (typeof this.templateId !== 'undefined') {
|
|
392
|
+
toReturn['templateId'] = this.templateId;
|
|
393
|
+
}
|
|
394
|
+
return toReturn;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
class CreateFormFromTemplateResponse {
|
|
398
|
+
static fromProto(proto) {
|
|
399
|
+
let m = new CreateFormFromTemplateResponse();
|
|
400
|
+
m = Object.assign(m, proto);
|
|
401
|
+
return m;
|
|
402
|
+
}
|
|
403
|
+
constructor(kwargs) {
|
|
404
|
+
if (!kwargs) {
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
Object.assign(this, kwargs);
|
|
408
|
+
}
|
|
409
|
+
toApiJson() {
|
|
410
|
+
const toReturn = {};
|
|
411
|
+
if (typeof this.workflowId !== 'undefined') {
|
|
412
|
+
toReturn['workflowId'] = this.workflowId;
|
|
413
|
+
}
|
|
414
|
+
return toReturn;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
367
417
|
class CreateFormRequest {
|
|
368
418
|
static fromProto(proto) {
|
|
369
419
|
let m = new CreateFormRequest();
|
|
@@ -847,6 +897,9 @@ class GenerateCustomCSSRequest {
|
|
|
847
897
|
if (typeof this.htmlTemplate !== 'undefined') {
|
|
848
898
|
toReturn['htmlTemplate'] = this.htmlTemplate;
|
|
849
899
|
}
|
|
900
|
+
if (typeof this.formId !== 'undefined') {
|
|
901
|
+
toReturn['formId'] = this.formId;
|
|
902
|
+
}
|
|
850
903
|
return toReturn;
|
|
851
904
|
}
|
|
852
905
|
}
|
|
@@ -873,6 +926,58 @@ class GenerateCustomCSSResponse {
|
|
|
873
926
|
return toReturn;
|
|
874
927
|
}
|
|
875
928
|
}
|
|
929
|
+
class GetCreateFormFromTemplateStatusRequest {
|
|
930
|
+
static fromProto(proto) {
|
|
931
|
+
let m = new GetCreateFormFromTemplateStatusRequest();
|
|
932
|
+
m = Object.assign(m, proto);
|
|
933
|
+
return m;
|
|
934
|
+
}
|
|
935
|
+
constructor(kwargs) {
|
|
936
|
+
if (!kwargs) {
|
|
937
|
+
return;
|
|
938
|
+
}
|
|
939
|
+
Object.assign(this, kwargs);
|
|
940
|
+
}
|
|
941
|
+
toApiJson() {
|
|
942
|
+
const toReturn = {};
|
|
943
|
+
if (typeof this.namespace !== 'undefined') {
|
|
944
|
+
toReturn['namespace'] = this.namespace;
|
|
945
|
+
}
|
|
946
|
+
if (typeof this.workflowId !== 'undefined') {
|
|
947
|
+
toReturn['workflowId'] = this.workflowId;
|
|
948
|
+
}
|
|
949
|
+
return toReturn;
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
class GetCreateFormFromTemplateStatusResponse {
|
|
953
|
+
static fromProto(proto) {
|
|
954
|
+
let m = new GetCreateFormFromTemplateStatusResponse();
|
|
955
|
+
m = Object.assign(m, proto);
|
|
956
|
+
if (proto.status) {
|
|
957
|
+
m.status = enumStringToValue(FormCreationStatus, proto.status);
|
|
958
|
+
}
|
|
959
|
+
return m;
|
|
960
|
+
}
|
|
961
|
+
constructor(kwargs) {
|
|
962
|
+
if (!kwargs) {
|
|
963
|
+
return;
|
|
964
|
+
}
|
|
965
|
+
Object.assign(this, kwargs);
|
|
966
|
+
}
|
|
967
|
+
toApiJson() {
|
|
968
|
+
const toReturn = {};
|
|
969
|
+
if (typeof this.status !== 'undefined') {
|
|
970
|
+
toReturn['status'] = this.status;
|
|
971
|
+
}
|
|
972
|
+
if (typeof this.formId !== 'undefined') {
|
|
973
|
+
toReturn['formId'] = this.formId;
|
|
974
|
+
}
|
|
975
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
976
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
977
|
+
}
|
|
978
|
+
return toReturn;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
876
981
|
class GetEmbedCodeRequest {
|
|
877
982
|
static fromProto(proto) {
|
|
878
983
|
let m = new GetEmbedCodeRequest();
|
|
@@ -2018,6 +2123,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2018
2123
|
args: [{ providedIn: 'root' }]
|
|
2019
2124
|
}] });
|
|
2020
2125
|
|
|
2126
|
+
// *********************************
|
|
2127
|
+
// Code generated by sdkgen
|
|
2128
|
+
// DO NOT EDIT!.
|
|
2129
|
+
//
|
|
2130
|
+
// API Service.
|
|
2131
|
+
// *********************************
|
|
2132
|
+
class FormTemplateApiService {
|
|
2133
|
+
constructor() {
|
|
2134
|
+
this.hostService = inject(HostService);
|
|
2135
|
+
this.http = inject(HttpClient);
|
|
2136
|
+
this._host = this.hostService.hostWithScheme;
|
|
2137
|
+
}
|
|
2138
|
+
apiOptions() {
|
|
2139
|
+
return {
|
|
2140
|
+
headers: new HttpHeaders({
|
|
2141
|
+
'Content-Type': 'application/json'
|
|
2142
|
+
}),
|
|
2143
|
+
withCredentials: true
|
|
2144
|
+
};
|
|
2145
|
+
}
|
|
2146
|
+
createFormFromTemplate(r) {
|
|
2147
|
+
const request = (r.toApiJson) ? r : new CreateFormFromTemplateRequest(r);
|
|
2148
|
+
return this.http.post(this._host + "/forms.v1.FormTemplateService/CreateFormFromTemplate", request.toApiJson(), this.apiOptions())
|
|
2149
|
+
.pipe(map(resp => CreateFormFromTemplateResponse.fromProto(resp)));
|
|
2150
|
+
}
|
|
2151
|
+
getCreateFormFromTemplateStatus(r) {
|
|
2152
|
+
const request = (r.toApiJson) ? r : new GetCreateFormFromTemplateStatusRequest(r);
|
|
2153
|
+
return this.http.post(this._host + "/forms.v1.FormTemplateService/GetCreateFormFromTemplateStatus", request.toApiJson(), this.apiOptions())
|
|
2154
|
+
.pipe(map(resp => GetCreateFormFromTemplateStatusResponse.fromProto(resp)));
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
FormTemplateApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormTemplateApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2158
|
+
FormTemplateApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormTemplateApiService, providedIn: 'root' });
|
|
2159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormTemplateApiService, decorators: [{
|
|
2160
|
+
type: Injectable,
|
|
2161
|
+
args: [{ providedIn: 'root' }]
|
|
2162
|
+
}] });
|
|
2163
|
+
|
|
2021
2164
|
// *********************************
|
|
2022
2165
|
// Code generated by sdkgen
|
|
2023
2166
|
// DO NOT EDIT!.
|
|
@@ -2155,5 +2298,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2155
2298
|
* Generated bundle index. Do not edit.
|
|
2156
2299
|
*/
|
|
2157
2300
|
|
|
2158
|
-
export { ActionParameters, CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DateDefault, DeleteFormRequest, FieldOption, FieldType, FieldValue, Filter, FilterGroup, FilterGroupOperator, FilterOperator, FilterType, FilterValue, FormConfig, FormConfigField, FormConfigFieldSchema, FormConfigTemplateSetupSettings, FormSubmission, FormSubmissionApiService, FormSubmissionSubmittedValue, FormSubmissionsExportService, FormsApiService, GenerateCustomCSSRequest, GenerateCustomCSSResponse, 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 };
|
|
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 };
|
|
2159
2302
|
//# sourceMappingURL=vendasta-forms_microservice.mjs.map
|