@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.
@@ -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
  }
@@ -1777,6 +1838,11 @@ class FormsApiService {
1777
1838
  return this.http.post(this._host + "/forms.v1.Forms/RecoverForm", request.toApiJson(), this.apiOptions())
1778
1839
  .pipe(map(resp => RecoverFormResponse.fromProto(resp)));
1779
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
+ }
1780
1846
  }
1781
1847
  FormsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1782
1848
  FormsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, providedIn: 'root' });
@@ -1830,5 +1896,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1830
1896
  * Generated bundle index. Do not edit.
1831
1897
  */
1832
1898
 
1833
- 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 };
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 };
1834
1900
  //# sourceMappingURL=vendasta-forms_microservice.mjs.map