@vendasta/forms_microservice 0.18.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 +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 +62 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-forms_microservice.mjs +67 -1
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +67 -1
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/forms.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/api.interface.d.ts +11 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +17 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
// Objects Index.
|
|
6
6
|
// *********************************
|
|
7
7
|
export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
|
|
8
|
-
export { ActionParameters, CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, RenderFormResponseDefaultValues, DeleteFormRequest, FormConfigField, FieldOption, FieldValue, ListFormsRequestFilters, FormConfig, GetMultiRequestFormConfigIdentifier, ListFormsResponseFormRow, FormSubmission, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormSubmissionRequest, GetMultiFormSubmissionResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiRequest, GetMultiResponse, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsResponse, ListMappedFieldSchemaRequest, ListMappedFieldSchemaResponse, MappedField, NextParameters, RenderFormResponsePreFillByUrlQueryParameter, PreviewFormRequest, PreviewFormResponse, RecoverFormRequest, RecoverFormResponse, RenderFormRequest, RenderFormResponse, FormConfigFieldSchema, SectionConfig, StringList, Styles, SubmitConditionParameters, FormSubmissionSubmittedValue, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError, GetMultiFormVersionsListResponseVersions, } from './api';
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
8
|
+
export { ActionParameters, CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, RenderFormResponseDefaultValues, DeleteFormRequest, FormConfigField, FieldOption, FieldValue, ListFormsRequestFilters, FormConfig, GetMultiRequestFormConfigIdentifier, ListFormsResponseFormRow, FormSubmission, GenerateCustomCSSRequest, GenerateCustomCSSResponse, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormSubmissionRequest, GetMultiFormSubmissionResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiRequest, GetMultiResponse, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsResponse, ListMappedFieldSchemaRequest, ListMappedFieldSchemaResponse, MappedField, NextParameters, RenderFormResponsePreFillByUrlQueryParameter, PreviewFormRequest, PreviewFormResponse, RecoverFormRequest, RecoverFormResponse, RenderFormRequest, RenderFormResponse, FormConfigFieldSchema, SectionConfig, StringList, Styles, SubmitConditionParameters, FormSubmissionSubmittedValue, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError, GetMultiFormVersionsListResponseVersions, } from './api';
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9mb3Jtc19zZGsvc3JjL2xpYi9faW50ZXJuYWwvb2JqZWN0cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hc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yxcbiAgICBGb3JtU3VibWlzc2lvblN1Ym1pdHRlZFZhbHVlLFxuICAgIFN5c3RlbURlZmluZWQsXG4gICAgVW5tYXBwZWRGaWVsZCxcbiAgICBVcGRhdGVGb3JtUmVxdWVzdCxcbiAgICBVcGRhdGVGb3JtUmVzcG9uc2UsXG4gICAgVXNlckZvcm1TdWJtaXNzaW9uLFxuICAgIFZhbGlkYXRpb25FcnJvcixcbiAgICBHZXRNdWx0aUZvcm1WZXJzaW9uc0xpc3RSZXNwb25zZVZlcnNpb25zLFxufSBmcm9tICcuL2FwaSc7XG5cbiJdfQ==
|
|
@@ -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
|
}
|
|
@@ -1778,6 +1839,11 @@ class FormsApiService {
|
|
|
1778
1839
|
return this.http.post(this._host + "/forms.v1.Forms/RecoverForm", request.toApiJson(), this.apiOptions())
|
|
1779
1840
|
.pipe(map(resp => RecoverFormResponse.fromProto(resp)));
|
|
1780
1841
|
}
|
|
1842
|
+
generateCustomCss(r) {
|
|
1843
|
+
const request = (r.toApiJson) ? r : new GenerateCustomCSSRequest(r);
|
|
1844
|
+
return this.http.post(this._host + "/forms.v1.Forms/GenerateCustomCSS", request.toApiJson(), this.apiOptions())
|
|
1845
|
+
.pipe(map(resp => GenerateCustomCSSResponse.fromProto(resp)));
|
|
1846
|
+
}
|
|
1781
1847
|
}
|
|
1782
1848
|
FormsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1783
1849
|
FormsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, providedIn: 'root' });
|
|
@@ -1831,5 +1897,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1831
1897
|
* Generated bundle index. Do not edit.
|
|
1832
1898
|
*/
|
|
1833
1899
|
|
|
1834
|
-
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, RecoverFormRequest, RecoverFormResponse, RenderFormRequest, RenderFormResponse, RenderFormResponseDefaultValues, RenderFormResponsePreFillByUrlQueryParameter, SectionAction, SectionConfig, StringList, Styles, SubmitConditionParameters, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError };
|
|
1900
|
+
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 };
|
|
1835
1901
|
//# sourceMappingURL=vendasta-forms_microservice.mjs.map
|