@vendasta/forms_microservice 0.17.0 → 0.19.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/forms.api.service.mjs +12 -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 +108 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-forms_microservice.mjs +118 -1
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +118 -1
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/forms.api.service.d.ts +4 -2
- package/lib/_internal/interfaces/api.interface.d.ts +19 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +31 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -585,6 +585,64 @@ class FormSubmission {
|
|
|
585
585
|
return toReturn;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
+
class GenerateCustomCSSRequest {
|
|
589
|
+
static fromProto(proto) {
|
|
590
|
+
let m = new GenerateCustomCSSRequest();
|
|
591
|
+
m = Object.assign(m, proto);
|
|
592
|
+
if (proto.currentCss) {
|
|
593
|
+
m.currentCss = Styles.fromProto(proto.currentCss);
|
|
594
|
+
}
|
|
595
|
+
return m;
|
|
596
|
+
}
|
|
597
|
+
constructor(kwargs) {
|
|
598
|
+
if (!kwargs) {
|
|
599
|
+
return;
|
|
600
|
+
}
|
|
601
|
+
Object.assign(this, kwargs);
|
|
602
|
+
}
|
|
603
|
+
toApiJson() {
|
|
604
|
+
const toReturn = {};
|
|
605
|
+
if (typeof this.namespace !== 'undefined') {
|
|
606
|
+
toReturn['namespace'] = this.namespace;
|
|
607
|
+
}
|
|
608
|
+
if (typeof this.currentCss !== 'undefined' && this.currentCss !== null) {
|
|
609
|
+
toReturn['currentCss'] = 'toApiJson' in this.currentCss ? this.currentCss.toApiJson() : this.currentCss;
|
|
610
|
+
}
|
|
611
|
+
if (typeof this.prompt !== 'undefined') {
|
|
612
|
+
toReturn['prompt'] = this.prompt;
|
|
613
|
+
}
|
|
614
|
+
if (typeof this.imageUrls !== 'undefined') {
|
|
615
|
+
toReturn['imageUrls'] = this.imageUrls;
|
|
616
|
+
}
|
|
617
|
+
if (typeof this.htmlTemplate !== 'undefined') {
|
|
618
|
+
toReturn['htmlTemplate'] = this.htmlTemplate;
|
|
619
|
+
}
|
|
620
|
+
return toReturn;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
class GenerateCustomCSSResponse {
|
|
624
|
+
static fromProto(proto) {
|
|
625
|
+
let m = new GenerateCustomCSSResponse();
|
|
626
|
+
m = Object.assign(m, proto);
|
|
627
|
+
if (proto.generatedCss) {
|
|
628
|
+
m.generatedCss = Styles.fromProto(proto.generatedCss);
|
|
629
|
+
}
|
|
630
|
+
return m;
|
|
631
|
+
}
|
|
632
|
+
constructor(kwargs) {
|
|
633
|
+
if (!kwargs) {
|
|
634
|
+
return;
|
|
635
|
+
}
|
|
636
|
+
Object.assign(this, kwargs);
|
|
637
|
+
}
|
|
638
|
+
toApiJson() {
|
|
639
|
+
const toReturn = {};
|
|
640
|
+
if (typeof this.generatedCss !== 'undefined' && this.generatedCss !== null) {
|
|
641
|
+
toReturn['generatedCss'] = 'toApiJson' in this.generatedCss ? this.generatedCss.toApiJson() : this.generatedCss;
|
|
642
|
+
}
|
|
643
|
+
return toReturn;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
588
646
|
class GetEmbedCodeRequest {
|
|
589
647
|
static fromProto(proto) {
|
|
590
648
|
let m = new GetEmbedCodeRequest();
|
|
@@ -945,6 +1003,9 @@ class ListMappedFieldSchemaRequest {
|
|
|
945
1003
|
if (typeof this.mappedToResource !== 'undefined') {
|
|
946
1004
|
toReturn['mappedToResource'] = this.mappedToResource;
|
|
947
1005
|
}
|
|
1006
|
+
if (typeof this.locale !== 'undefined') {
|
|
1007
|
+
toReturn['locale'] = this.locale;
|
|
1008
|
+
}
|
|
948
1009
|
return toReturn;
|
|
949
1010
|
}
|
|
950
1011
|
}
|
|
@@ -1119,6 +1180,49 @@ class PreviewFormResponse {
|
|
|
1119
1180
|
return toReturn;
|
|
1120
1181
|
}
|
|
1121
1182
|
}
|
|
1183
|
+
class RecoverFormRequest {
|
|
1184
|
+
static fromProto(proto) {
|
|
1185
|
+
let m = new RecoverFormRequest();
|
|
1186
|
+
m = Object.assign(m, proto);
|
|
1187
|
+
return m;
|
|
1188
|
+
}
|
|
1189
|
+
constructor(kwargs) {
|
|
1190
|
+
if (!kwargs) {
|
|
1191
|
+
return;
|
|
1192
|
+
}
|
|
1193
|
+
Object.assign(this, kwargs);
|
|
1194
|
+
}
|
|
1195
|
+
toApiJson() {
|
|
1196
|
+
const toReturn = {};
|
|
1197
|
+
if (typeof this.formId !== 'undefined') {
|
|
1198
|
+
toReturn['formId'] = this.formId;
|
|
1199
|
+
}
|
|
1200
|
+
return toReturn;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
class RecoverFormResponse {
|
|
1204
|
+
static fromProto(proto) {
|
|
1205
|
+
let m = new RecoverFormResponse();
|
|
1206
|
+
m = Object.assign(m, proto);
|
|
1207
|
+
return m;
|
|
1208
|
+
}
|
|
1209
|
+
constructor(kwargs) {
|
|
1210
|
+
if (!kwargs) {
|
|
1211
|
+
return;
|
|
1212
|
+
}
|
|
1213
|
+
Object.assign(this, kwargs);
|
|
1214
|
+
}
|
|
1215
|
+
toApiJson() {
|
|
1216
|
+
const toReturn = {};
|
|
1217
|
+
if (typeof this.formId !== 'undefined') {
|
|
1218
|
+
toReturn['formId'] = this.formId;
|
|
1219
|
+
}
|
|
1220
|
+
if (typeof this.version !== 'undefined') {
|
|
1221
|
+
toReturn['version'] = this.version;
|
|
1222
|
+
}
|
|
1223
|
+
return toReturn;
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1122
1226
|
class RenderFormRequest {
|
|
1123
1227
|
static fromProto(proto) {
|
|
1124
1228
|
let m = new RenderFormRequest();
|
|
@@ -1314,6 +1418,9 @@ class Styles {
|
|
|
1314
1418
|
if (typeof this.onPrimaryColor !== 'undefined') {
|
|
1315
1419
|
toReturn['onPrimaryColor'] = this.onPrimaryColor;
|
|
1316
1420
|
}
|
|
1421
|
+
if (typeof this.customCss !== 'undefined') {
|
|
1422
|
+
toReturn['customCss'] = this.customCss;
|
|
1423
|
+
}
|
|
1317
1424
|
return toReturn;
|
|
1318
1425
|
}
|
|
1319
1426
|
}
|
|
@@ -1726,6 +1833,16 @@ class FormsApiService {
|
|
|
1726
1833
|
return this.http.post(this._host + "/forms.v1.Forms/ListMappedFieldSchema", request.toApiJson(), this.apiOptions())
|
|
1727
1834
|
.pipe(map(resp => ListMappedFieldSchemaResponse.fromProto(resp)));
|
|
1728
1835
|
}
|
|
1836
|
+
recoverForm(r) {
|
|
1837
|
+
const request = (r.toApiJson) ? r : new RecoverFormRequest(r);
|
|
1838
|
+
return this.http.post(this._host + "/forms.v1.Forms/RecoverForm", request.toApiJson(), this.apiOptions())
|
|
1839
|
+
.pipe(map(resp => RecoverFormResponse.fromProto(resp)));
|
|
1840
|
+
}
|
|
1841
|
+
generateCustomCss(r) {
|
|
1842
|
+
const request = (r.toApiJson) ? r : new GenerateCustomCSSRequest(r);
|
|
1843
|
+
return this.http.post(this._host + "/forms.v1.Forms/GenerateCustomCSS", request.toApiJson(), this.apiOptions())
|
|
1844
|
+
.pipe(map(resp => GenerateCustomCSSResponse.fromProto(resp)));
|
|
1845
|
+
}
|
|
1729
1846
|
}
|
|
1730
1847
|
FormsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1731
1848
|
FormsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, providedIn: 'root' });
|
|
@@ -1779,5 +1896,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1779
1896
|
* Generated bundle index. Do not edit.
|
|
1780
1897
|
*/
|
|
1781
1898
|
|
|
1782
|
-
export { ActionParameters, CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FieldOption, FieldType, FieldValue, FormConfig, FormConfigField, FormConfigFieldSchema, FormSubmission, FormSubmissionApiService, FormSubmissionSubmittedValue, FormSubmissionsExportService, FormsApiService, 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, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, RenderFormResponseDefaultValues, RenderFormResponsePreFillByUrlQueryParameter, SectionAction, SectionConfig, StringList, Styles, SubmitConditionParameters, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError };
|
|
1899
|
+
export { ActionParameters, CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FieldOption, FieldType, FieldValue, FormConfig, FormConfigField, FormConfigFieldSchema, 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, PreviewFormRequest, PreviewFormResponse, RecoverFormRequest, RecoverFormResponse, RenderFormRequest, RenderFormResponse, RenderFormResponseDefaultValues, RenderFormResponsePreFillByUrlQueryParameter, SectionAction, SectionConfig, StringList, Styles, SubmitConditionParameters, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError };
|
|
1783
1900
|
//# sourceMappingURL=vendasta-forms_microservice.mjs.map
|