@wix/forms 1.0.131 → 1.0.132
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.
|
@@ -1808,6 +1808,11 @@ interface RadioGroup$1 {
|
|
|
1808
1808
|
showLabel?: boolean | null;
|
|
1809
1809
|
/** Option which can be specified by UoU, enabled when this object is specified. */
|
|
1810
1810
|
customOption?: RadioGroupCustomOption$1;
|
|
1811
|
+
/**
|
|
1812
|
+
* Specifies the number of columns used to display the selections within the component.
|
|
1813
|
+
* Default: ONE
|
|
1814
|
+
*/
|
|
1815
|
+
numberOfColumns?: NumberOfColumns$1;
|
|
1811
1816
|
}
|
|
1812
1817
|
interface RadioGroupOption$1 {
|
|
1813
1818
|
/** Selectable option label */
|
|
@@ -1825,6 +1830,12 @@ interface RadioGroupCustomOption$1 {
|
|
|
1825
1830
|
/** Placeholder of custom option input */
|
|
1826
1831
|
placeholder?: string | null;
|
|
1827
1832
|
}
|
|
1833
|
+
declare enum NumberOfColumns$1 {
|
|
1834
|
+
UNKNOWN = "UNKNOWN",
|
|
1835
|
+
ONE = "ONE",
|
|
1836
|
+
TWO = "TWO",
|
|
1837
|
+
THREE = "THREE"
|
|
1838
|
+
}
|
|
1828
1839
|
interface Dropdown$1 {
|
|
1829
1840
|
/** Label of the field */
|
|
1830
1841
|
label?: string | null;
|
|
@@ -1861,8 +1872,6 @@ interface DropdownCustomOption$1 {
|
|
|
1861
1872
|
interface DateTimeInput$1 extends DateTimeInputDateTimeInputTypeOptionsOneOf$1 {
|
|
1862
1873
|
/** Options specific to the combined Date and Time input type. */
|
|
1863
1874
|
dateTimeOptions?: DateTimeOptions$1;
|
|
1864
|
-
/** Options specific to the Date-only input type. */
|
|
1865
|
-
dateOptions?: DateOptions$1;
|
|
1866
1875
|
/** Options specific to the Time-only input type. */
|
|
1867
1876
|
timeOptions?: TimeOptions$1;
|
|
1868
1877
|
/** Options specific to date picker type. */
|
|
@@ -1886,23 +1895,18 @@ interface DateTimeInput$1 extends DateTimeInputDateTimeInputTypeOptionsOneOf$1 {
|
|
|
1886
1895
|
* @readonly
|
|
1887
1896
|
*/
|
|
1888
1897
|
dateTimeInputType?: DateTimeInputType$1;
|
|
1898
|
+
/** Placeholder of date picker input */
|
|
1899
|
+
placeholder?: string | null;
|
|
1889
1900
|
}
|
|
1890
1901
|
/** @oneof */
|
|
1891
1902
|
interface DateTimeInputDateTimeInputTypeOptionsOneOf$1 {
|
|
1892
1903
|
/** Options specific to the combined Date and Time input type. */
|
|
1893
1904
|
dateTimeOptions?: DateTimeOptions$1;
|
|
1894
|
-
/** Options specific to the Date-only input type. */
|
|
1895
|
-
dateOptions?: DateOptions$1;
|
|
1896
1905
|
/** Options specific to the Time-only input type. */
|
|
1897
1906
|
timeOptions?: TimeOptions$1;
|
|
1898
1907
|
/** Options specific to date picker type. */
|
|
1899
1908
|
datePickerOptions?: DatePickerOptions$1;
|
|
1900
1909
|
}
|
|
1901
|
-
declare enum DateFormatPart$1 {
|
|
1902
|
-
YEAR = "YEAR",
|
|
1903
|
-
MONTH = "MONTH",
|
|
1904
|
-
DAY = "DAY"
|
|
1905
|
-
}
|
|
1906
1910
|
declare enum FirstDayOfWeek$1 {
|
|
1907
1911
|
MONDAY = "MONDAY",
|
|
1908
1912
|
SUNDAY = "SUNDAY"
|
|
@@ -1919,18 +1923,12 @@ declare enum DateTimeInputType$1 {
|
|
|
1919
1923
|
DATE_PICKER = "DATE_PICKER"
|
|
1920
1924
|
}
|
|
1921
1925
|
interface DateTimeOptions$1 {
|
|
1922
|
-
/** Order of date picking component parts (e.g., YEAR, MONTH, DAY). */
|
|
1923
|
-
dateFormatParts?: DateFormatPart$1[];
|
|
1924
1926
|
/**
|
|
1925
1927
|
* Flag indicating whether to use the 24-hour time format.
|
|
1926
1928
|
* Default: false.
|
|
1927
1929
|
*/
|
|
1928
1930
|
use24HourFormat?: boolean;
|
|
1929
1931
|
}
|
|
1930
|
-
interface DateOptions$1 {
|
|
1931
|
-
/** Order of date picking component parts (e.g., YEAR, MONTH, DAY). */
|
|
1932
|
-
dateFormatParts?: DateFormatPart$1[];
|
|
1933
|
-
}
|
|
1934
1932
|
interface TimeOptions$1 {
|
|
1935
1933
|
/**
|
|
1936
1934
|
* Flag indicating whether to use the 24-hour time format.
|
|
@@ -2021,6 +2019,11 @@ declare enum BooleanComponentType$1 {
|
|
|
2021
2019
|
interface Checkbox$1 {
|
|
2022
2020
|
/** Label of the field */
|
|
2023
2021
|
label?: RichContent$1;
|
|
2022
|
+
/**
|
|
2023
|
+
* Flag identifying if checked by default
|
|
2024
|
+
* Default: false
|
|
2025
|
+
*/
|
|
2026
|
+
checked?: boolean;
|
|
2024
2027
|
}
|
|
2025
2028
|
interface InputFieldArrayType$1 {
|
|
2026
2029
|
/** Maximum amount of array elements. */
|
|
@@ -2058,7 +2061,7 @@ interface InputFieldObjectType$1 {
|
|
|
2058
2061
|
/** Custom error message when validation fails. */
|
|
2059
2062
|
errorMessages?: InputFieldObjectErrorMessages$1;
|
|
2060
2063
|
}
|
|
2061
|
-
declare enum
|
|
2064
|
+
declare enum PropertiesTypeEnum$1 {
|
|
2062
2065
|
UNKNOWN = "UNKNOWN",
|
|
2063
2066
|
STRING = "STRING",
|
|
2064
2067
|
NUMBER = "NUMBER",
|
|
@@ -2081,7 +2084,7 @@ interface ObjectTypePropertiesType$1 extends ObjectTypePropertiesTypePropertiesT
|
|
|
2081
2084
|
* Type of object properties
|
|
2082
2085
|
* @readonly
|
|
2083
2086
|
*/
|
|
2084
|
-
propertiesType?:
|
|
2087
|
+
propertiesType?: PropertiesTypeEnum$1;
|
|
2085
2088
|
/** Whether the property is required. */
|
|
2086
2089
|
required?: boolean;
|
|
2087
2090
|
}
|
|
@@ -2154,6 +2157,11 @@ interface CheckboxGroup$1 {
|
|
|
2154
2157
|
showLabel?: boolean | null;
|
|
2155
2158
|
/** Option which can be specified by UoU, enabled when this object is specified. */
|
|
2156
2159
|
customOption?: CustomOption$1;
|
|
2160
|
+
/**
|
|
2161
|
+
* Specifies the number of columns used to display the selections within the component.
|
|
2162
|
+
* Default: ONE
|
|
2163
|
+
*/
|
|
2164
|
+
numberOfColumns?: NumberOfColumns$1;
|
|
2157
2165
|
}
|
|
2158
2166
|
interface MediaItem$1 extends MediaItemMediaOneOf$1 {
|
|
2159
2167
|
/** WixMedia image. */
|
|
@@ -2315,12 +2323,6 @@ interface CommonCustomOption$1 {
|
|
|
2315
2323
|
/** Placeholder of custom option input */
|
|
2316
2324
|
placeholder?: string | null;
|
|
2317
2325
|
}
|
|
2318
|
-
declare enum NumberOfColumns$1 {
|
|
2319
|
-
UNKNOWN = "UNKNOWN",
|
|
2320
|
-
ONE = "ONE",
|
|
2321
|
-
TWO = "TWO",
|
|
2322
|
-
THREE = "THREE"
|
|
2323
|
-
}
|
|
2324
2326
|
declare enum MultilineAddressComponentType$1 {
|
|
2325
2327
|
UNKNOWN = "UNKNOWN",
|
|
2326
2328
|
MULTILINE_ADDRESS = "MULTILINE_ADDRESS"
|
|
@@ -3620,6 +3622,7 @@ interface RadioGroupOptionNonNullableFields$1 {
|
|
|
3620
3622
|
interface RadioGroupNonNullableFields$1 {
|
|
3621
3623
|
description?: RichContentNonNullableFields$1;
|
|
3622
3624
|
options: RadioGroupOptionNonNullableFields$1[];
|
|
3625
|
+
numberOfColumns: NumberOfColumns$1;
|
|
3623
3626
|
}
|
|
3624
3627
|
interface DropdownOptionNonNullableFields$1 {
|
|
3625
3628
|
default: boolean;
|
|
@@ -3630,12 +3633,8 @@ interface DropdownNonNullableFields$1 {
|
|
|
3630
3633
|
options: DropdownOptionNonNullableFields$1[];
|
|
3631
3634
|
}
|
|
3632
3635
|
interface DateTimeOptionsNonNullableFields$1 {
|
|
3633
|
-
dateFormatParts: DateFormatPart$1[];
|
|
3634
3636
|
use24HourFormat: boolean;
|
|
3635
3637
|
}
|
|
3636
|
-
interface DateOptionsNonNullableFields$1 {
|
|
3637
|
-
dateFormatParts: DateFormatPart$1[];
|
|
3638
|
-
}
|
|
3639
3638
|
interface TimeOptionsNonNullableFields$1 {
|
|
3640
3639
|
use24HourFormat: boolean;
|
|
3641
3640
|
}
|
|
@@ -3644,7 +3643,6 @@ interface DatePickerOptionsNonNullableFields$1 {
|
|
|
3644
3643
|
}
|
|
3645
3644
|
interface DateTimeInputNonNullableFields$1 {
|
|
3646
3645
|
dateTimeOptions?: DateTimeOptionsNonNullableFields$1;
|
|
3647
|
-
dateOptions?: DateOptionsNonNullableFields$1;
|
|
3648
3646
|
timeOptions?: TimeOptionsNonNullableFields$1;
|
|
3649
3647
|
datePickerOptions?: DatePickerOptionsNonNullableFields$1;
|
|
3650
3648
|
description?: RichContentNonNullableFields$1;
|
|
@@ -3682,6 +3680,7 @@ interface _NumberNonNullableFields$1 {
|
|
|
3682
3680
|
}
|
|
3683
3681
|
interface CheckboxNonNullableFields$1 {
|
|
3684
3682
|
label?: RichContentNonNullableFields$1;
|
|
3683
|
+
checked: boolean;
|
|
3685
3684
|
}
|
|
3686
3685
|
interface InputFieldBooleanTypeNonNullableFields$1 {
|
|
3687
3686
|
enum: boolean[];
|
|
@@ -3708,6 +3707,7 @@ interface OptionNonNullableFields$1 {
|
|
|
3708
3707
|
interface CheckboxGroupNonNullableFields$1 {
|
|
3709
3708
|
description?: RichContentNonNullableFields$1;
|
|
3710
3709
|
options: OptionNonNullableFields$1[];
|
|
3710
|
+
numberOfColumns: NumberOfColumns$1;
|
|
3711
3711
|
}
|
|
3712
3712
|
interface ArrayTypeArrayItemsNonNullableFields$1 {
|
|
3713
3713
|
stringOptions?: InputFieldStringTypeNonNullableFields$1;
|
|
@@ -5798,6 +5798,11 @@ interface RadioGroup {
|
|
|
5798
5798
|
showLabel?: boolean | null;
|
|
5799
5799
|
/** Option which can be specified by UoU, enabled when this object is specified. */
|
|
5800
5800
|
customOption?: RadioGroupCustomOption;
|
|
5801
|
+
/**
|
|
5802
|
+
* Specifies the number of columns used to display the selections within the component.
|
|
5803
|
+
* Default: ONE
|
|
5804
|
+
*/
|
|
5805
|
+
numberOfColumns?: NumberOfColumns;
|
|
5801
5806
|
}
|
|
5802
5807
|
interface RadioGroupOption {
|
|
5803
5808
|
/** Selectable option label */
|
|
@@ -5815,6 +5820,12 @@ interface RadioGroupCustomOption {
|
|
|
5815
5820
|
/** Placeholder of custom option input */
|
|
5816
5821
|
placeholder?: string | null;
|
|
5817
5822
|
}
|
|
5823
|
+
declare enum NumberOfColumns {
|
|
5824
|
+
UNKNOWN = "UNKNOWN",
|
|
5825
|
+
ONE = "ONE",
|
|
5826
|
+
TWO = "TWO",
|
|
5827
|
+
THREE = "THREE"
|
|
5828
|
+
}
|
|
5818
5829
|
interface Dropdown {
|
|
5819
5830
|
/** Label of the field */
|
|
5820
5831
|
label?: string | null;
|
|
@@ -5851,8 +5862,6 @@ interface DropdownCustomOption {
|
|
|
5851
5862
|
interface DateTimeInput extends DateTimeInputDateTimeInputTypeOptionsOneOf {
|
|
5852
5863
|
/** Options specific to the combined Date and Time input type. */
|
|
5853
5864
|
dateTimeOptions?: DateTimeOptions;
|
|
5854
|
-
/** Options specific to the Date-only input type. */
|
|
5855
|
-
dateOptions?: DateOptions;
|
|
5856
5865
|
/** Options specific to the Time-only input type. */
|
|
5857
5866
|
timeOptions?: TimeOptions;
|
|
5858
5867
|
/** Options specific to date picker type. */
|
|
@@ -5876,23 +5885,18 @@ interface DateTimeInput extends DateTimeInputDateTimeInputTypeOptionsOneOf {
|
|
|
5876
5885
|
* @readonly
|
|
5877
5886
|
*/
|
|
5878
5887
|
dateTimeInputType?: DateTimeInputType;
|
|
5888
|
+
/** Placeholder of date picker input */
|
|
5889
|
+
placeholder?: string | null;
|
|
5879
5890
|
}
|
|
5880
5891
|
/** @oneof */
|
|
5881
5892
|
interface DateTimeInputDateTimeInputTypeOptionsOneOf {
|
|
5882
5893
|
/** Options specific to the combined Date and Time input type. */
|
|
5883
5894
|
dateTimeOptions?: DateTimeOptions;
|
|
5884
|
-
/** Options specific to the Date-only input type. */
|
|
5885
|
-
dateOptions?: DateOptions;
|
|
5886
5895
|
/** Options specific to the Time-only input type. */
|
|
5887
5896
|
timeOptions?: TimeOptions;
|
|
5888
5897
|
/** Options specific to date picker type. */
|
|
5889
5898
|
datePickerOptions?: DatePickerOptions;
|
|
5890
5899
|
}
|
|
5891
|
-
declare enum DateFormatPart {
|
|
5892
|
-
YEAR = "YEAR",
|
|
5893
|
-
MONTH = "MONTH",
|
|
5894
|
-
DAY = "DAY"
|
|
5895
|
-
}
|
|
5896
5900
|
declare enum FirstDayOfWeek {
|
|
5897
5901
|
MONDAY = "MONDAY",
|
|
5898
5902
|
SUNDAY = "SUNDAY"
|
|
@@ -5909,18 +5913,12 @@ declare enum DateTimeInputType {
|
|
|
5909
5913
|
DATE_PICKER = "DATE_PICKER"
|
|
5910
5914
|
}
|
|
5911
5915
|
interface DateTimeOptions {
|
|
5912
|
-
/** Order of date picking component parts (e.g., YEAR, MONTH, DAY). */
|
|
5913
|
-
dateFormatParts?: DateFormatPart[];
|
|
5914
5916
|
/**
|
|
5915
5917
|
* Flag indicating whether to use the 24-hour time format.
|
|
5916
5918
|
* Default: false.
|
|
5917
5919
|
*/
|
|
5918
5920
|
use24HourFormat?: boolean;
|
|
5919
5921
|
}
|
|
5920
|
-
interface DateOptions {
|
|
5921
|
-
/** Order of date picking component parts (e.g., YEAR, MONTH, DAY). */
|
|
5922
|
-
dateFormatParts?: DateFormatPart[];
|
|
5923
|
-
}
|
|
5924
5922
|
interface TimeOptions {
|
|
5925
5923
|
/**
|
|
5926
5924
|
* Flag indicating whether to use the 24-hour time format.
|
|
@@ -6011,6 +6009,11 @@ declare enum BooleanComponentType {
|
|
|
6011
6009
|
interface Checkbox {
|
|
6012
6010
|
/** Label of the field */
|
|
6013
6011
|
label?: RichContent;
|
|
6012
|
+
/**
|
|
6013
|
+
* Flag identifying if checked by default
|
|
6014
|
+
* Default: false
|
|
6015
|
+
*/
|
|
6016
|
+
checked?: boolean;
|
|
6014
6017
|
}
|
|
6015
6018
|
interface InputFieldArrayType {
|
|
6016
6019
|
/** Maximum amount of array elements. */
|
|
@@ -6048,7 +6051,7 @@ interface InputFieldObjectType {
|
|
|
6048
6051
|
/** Custom error message when validation fails. */
|
|
6049
6052
|
errorMessages?: InputFieldObjectErrorMessages;
|
|
6050
6053
|
}
|
|
6051
|
-
declare enum
|
|
6054
|
+
declare enum PropertiesTypeEnum {
|
|
6052
6055
|
UNKNOWN = "UNKNOWN",
|
|
6053
6056
|
STRING = "STRING",
|
|
6054
6057
|
NUMBER = "NUMBER",
|
|
@@ -6071,7 +6074,7 @@ interface ObjectTypePropertiesType extends ObjectTypePropertiesTypePropertiesTyp
|
|
|
6071
6074
|
* Type of object properties
|
|
6072
6075
|
* @readonly
|
|
6073
6076
|
*/
|
|
6074
|
-
propertiesType?:
|
|
6077
|
+
propertiesType?: PropertiesTypeEnum;
|
|
6075
6078
|
/** Whether the property is required. */
|
|
6076
6079
|
required?: boolean;
|
|
6077
6080
|
}
|
|
@@ -6144,6 +6147,11 @@ interface CheckboxGroup {
|
|
|
6144
6147
|
showLabel?: boolean | null;
|
|
6145
6148
|
/** Option which can be specified by UoU, enabled when this object is specified. */
|
|
6146
6149
|
customOption?: CustomOption;
|
|
6150
|
+
/**
|
|
6151
|
+
* Specifies the number of columns used to display the selections within the component.
|
|
6152
|
+
* Default: ONE
|
|
6153
|
+
*/
|
|
6154
|
+
numberOfColumns?: NumberOfColumns;
|
|
6147
6155
|
}
|
|
6148
6156
|
interface MediaItem extends MediaItemMediaOneOf {
|
|
6149
6157
|
/** WixMedia image. */
|
|
@@ -6282,12 +6290,6 @@ interface CommonCustomOption {
|
|
|
6282
6290
|
/** Placeholder of custom option input */
|
|
6283
6291
|
placeholder?: string | null;
|
|
6284
6292
|
}
|
|
6285
|
-
declare enum NumberOfColumns {
|
|
6286
|
-
UNKNOWN = "UNKNOWN",
|
|
6287
|
-
ONE = "ONE",
|
|
6288
|
-
TWO = "TWO",
|
|
6289
|
-
THREE = "THREE"
|
|
6290
|
-
}
|
|
6291
6293
|
declare enum MultilineAddressComponentType {
|
|
6292
6294
|
UNKNOWN = "UNKNOWN",
|
|
6293
6295
|
MULTILINE_ADDRESS = "MULTILINE_ADDRESS"
|
|
@@ -7587,6 +7589,7 @@ interface RadioGroupOptionNonNullableFields {
|
|
|
7587
7589
|
interface RadioGroupNonNullableFields {
|
|
7588
7590
|
description?: RichContentNonNullableFields;
|
|
7589
7591
|
options: RadioGroupOptionNonNullableFields[];
|
|
7592
|
+
numberOfColumns: NumberOfColumns;
|
|
7590
7593
|
}
|
|
7591
7594
|
interface DropdownOptionNonNullableFields {
|
|
7592
7595
|
default: boolean;
|
|
@@ -7597,12 +7600,8 @@ interface DropdownNonNullableFields {
|
|
|
7597
7600
|
options: DropdownOptionNonNullableFields[];
|
|
7598
7601
|
}
|
|
7599
7602
|
interface DateTimeOptionsNonNullableFields {
|
|
7600
|
-
dateFormatParts: DateFormatPart[];
|
|
7601
7603
|
use24HourFormat: boolean;
|
|
7602
7604
|
}
|
|
7603
|
-
interface DateOptionsNonNullableFields {
|
|
7604
|
-
dateFormatParts: DateFormatPart[];
|
|
7605
|
-
}
|
|
7606
7605
|
interface TimeOptionsNonNullableFields {
|
|
7607
7606
|
use24HourFormat: boolean;
|
|
7608
7607
|
}
|
|
@@ -7611,7 +7610,6 @@ interface DatePickerOptionsNonNullableFields {
|
|
|
7611
7610
|
}
|
|
7612
7611
|
interface DateTimeInputNonNullableFields {
|
|
7613
7612
|
dateTimeOptions?: DateTimeOptionsNonNullableFields;
|
|
7614
|
-
dateOptions?: DateOptionsNonNullableFields;
|
|
7615
7613
|
timeOptions?: TimeOptionsNonNullableFields;
|
|
7616
7614
|
datePickerOptions?: DatePickerOptionsNonNullableFields;
|
|
7617
7615
|
description?: RichContentNonNullableFields;
|
|
@@ -7649,6 +7647,7 @@ interface _NumberNonNullableFields {
|
|
|
7649
7647
|
}
|
|
7650
7648
|
interface CheckboxNonNullableFields {
|
|
7651
7649
|
label?: RichContentNonNullableFields;
|
|
7650
|
+
checked: boolean;
|
|
7652
7651
|
}
|
|
7653
7652
|
interface InputFieldBooleanTypeNonNullableFields {
|
|
7654
7653
|
enum: boolean[];
|
|
@@ -7669,6 +7668,7 @@ interface OptionNonNullableFields {
|
|
|
7669
7668
|
interface CheckboxGroupNonNullableFields {
|
|
7670
7669
|
description?: RichContentNonNullableFields;
|
|
7671
7670
|
options: OptionNonNullableFields[];
|
|
7671
|
+
numberOfColumns: NumberOfColumns;
|
|
7672
7672
|
}
|
|
7673
7673
|
interface ArrayTypeArrayItemsNonNullableFields {
|
|
7674
7674
|
stringOptions?: InputFieldStringTypeNonNullableFields;
|
|
@@ -471,6 +471,13 @@ interface ValidateSubmissionEnvelope {
|
|
|
471
471
|
metadata: Context;
|
|
472
472
|
}
|
|
473
473
|
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
474
|
+
/**
|
|
475
|
+
*
|
|
476
|
+
* > **Note:** The Form Submission service plugin only works with the Wix Forms app.
|
|
477
|
+
*
|
|
478
|
+
* Validates a submission.
|
|
479
|
+
*
|
|
480
|
+
* Validates a site visitor's form submission and returns any validation violations. Site visitors can see the validation violations on their forms. For example, invalid fields are highlighted in red. */
|
|
474
481
|
validateSubmission(payload: ValidateSubmissionEnvelope): ValidateSubmissionResponse | Promise<ValidateSubmissionResponse>;
|
|
475
482
|
}>;
|
|
476
483
|
|
|
@@ -457,6 +457,7 @@ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
|
457
457
|
__contract: Contract;
|
|
458
458
|
};
|
|
459
459
|
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
460
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
460
461
|
|
|
461
462
|
declare global {
|
|
462
463
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -469,10 +470,22 @@ interface ValidateSubmissionEnvelope {
|
|
|
469
470
|
request: ValidateSubmissionRequest;
|
|
470
471
|
metadata: Context;
|
|
471
472
|
}
|
|
472
|
-
declare const provideHandlers: ServicePluginDefinition<{
|
|
473
|
+
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
474
|
+
/**
|
|
475
|
+
*
|
|
476
|
+
* > **Note:** The Form Submission service plugin only works with the Wix Forms app.
|
|
477
|
+
*
|
|
478
|
+
* Validates a submission.
|
|
479
|
+
*
|
|
480
|
+
* Validates a site visitor's form submission and returns any validation violations. Site visitors can see the validation violations on their forms. For example, invalid fields are highlighted in red. */
|
|
473
481
|
validateSubmission(payload: ValidateSubmissionEnvelope): ValidateSubmissionResponse | Promise<ValidateSubmissionResponse>;
|
|
474
482
|
}>;
|
|
475
483
|
|
|
484
|
+
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
485
|
+
|
|
486
|
+
type _publicProvideHandlersType = typeof provideHandlers$1;
|
|
487
|
+
declare const provideHandlers: ReturnType<typeof createServicePluginModule<_publicProvideHandlersType>>;
|
|
488
|
+
|
|
476
489
|
type index_d_ActionEvent = ActionEvent;
|
|
477
490
|
type index_d_ActionType = ActionType;
|
|
478
491
|
declare const index_d_ActionType: typeof ActionType;
|
|
@@ -511,15 +524,15 @@ type index_d_SubmissionValidationErrorErrorMessageOneOf = SubmissionValidationEr
|
|
|
511
524
|
type index_d_Submitter = Submitter;
|
|
512
525
|
type index_d_SubmitterSubmitterOneOf = SubmitterSubmitterOneOf;
|
|
513
526
|
type index_d_UpdateOptions = UpdateOptions;
|
|
514
|
-
type index_d_ValidateSubmissionEnvelope = ValidateSubmissionEnvelope;
|
|
515
527
|
type index_d_ValidateSubmissionRequest = ValidateSubmissionRequest;
|
|
516
528
|
type index_d_ValidateSubmissionRequestActionsOneOf = ValidateSubmissionRequestActionsOneOf;
|
|
517
529
|
type index_d_ValidateSubmissionResponse = ValidateSubmissionResponse;
|
|
518
530
|
type index_d_WebhookIdentityType = WebhookIdentityType;
|
|
519
531
|
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
|
532
|
+
type index_d__publicProvideHandlersType = _publicProvideHandlersType;
|
|
520
533
|
declare const index_d_provideHandlers: typeof provideHandlers;
|
|
521
534
|
declare namespace index_d {
|
|
522
|
-
export { type index_d_ActionEvent as ActionEvent, index_d_ActionType as ActionType, type index_d_AlternativeUri as AlternativeUri, type index_d_Context as Context, type index_d_ContextIdentificationData as ContextIdentificationData, type index_d_ContextIdentificationDataIdOneOf as ContextIdentificationDataIdOneOf, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_ExtendedFields as ExtendedFields, type index_d_FormSubmission as FormSubmission, type index_d_FormSubmissionSpiExtensionConfig as FormSubmissionSpiExtensionConfig, type index_d_FormsSubmissionsExtensionNamespaceConfig as FormsSubmissionsExtensionNamespaceConfig, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_IdentityType as IdentityType, type index_d_MarketingSubscriptionDetails as MarketingSubscriptionDetails, type index_d_MessageEnvelope as MessageEnvelope, index_d_OptInLevel as OptInLevel, type index_d_OrderDetails as OrderDetails, type index_d_RestoreInfo as RestoreInfo, type index_d_SpiBaseUri as SpiBaseUri, type index_d_SubmissionContactMapped as SubmissionContactMapped, type index_d_SubmissionContactMappingSkipped as SubmissionContactMappingSkipped, index_d_SubmissionErrorType as SubmissionErrorType, index_d_SubmissionStatus as SubmissionStatus, type index_d_SubmissionValidationError as SubmissionValidationError, type index_d_SubmissionValidationErrorErrorMessageOneOf as SubmissionValidationErrorErrorMessageOneOf, type index_d_Submitter as Submitter, type index_d_SubmitterSubmitterOneOf as SubmitterSubmitterOneOf, type index_d_UpdateOptions as UpdateOptions, type
|
|
535
|
+
export { type index_d_ActionEvent as ActionEvent, index_d_ActionType as ActionType, type index_d_AlternativeUri as AlternativeUri, type index_d_Context as Context, type index_d_ContextIdentificationData as ContextIdentificationData, type index_d_ContextIdentificationDataIdOneOf as ContextIdentificationDataIdOneOf, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_ExtendedFields as ExtendedFields, type index_d_FormSubmission as FormSubmission, type index_d_FormSubmissionSpiExtensionConfig as FormSubmissionSpiExtensionConfig, type index_d_FormsSubmissionsExtensionNamespaceConfig as FormsSubmissionsExtensionNamespaceConfig, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_IdentityType as IdentityType, type index_d_MarketingSubscriptionDetails as MarketingSubscriptionDetails, type index_d_MessageEnvelope as MessageEnvelope, index_d_OptInLevel as OptInLevel, type index_d_OrderDetails as OrderDetails, type index_d_RestoreInfo as RestoreInfo, type index_d_SpiBaseUri as SpiBaseUri, type index_d_SubmissionContactMapped as SubmissionContactMapped, type index_d_SubmissionContactMappingSkipped as SubmissionContactMappingSkipped, index_d_SubmissionErrorType as SubmissionErrorType, index_d_SubmissionStatus as SubmissionStatus, type index_d_SubmissionValidationError as SubmissionValidationError, type index_d_SubmissionValidationErrorErrorMessageOneOf as SubmissionValidationErrorErrorMessageOneOf, type index_d_Submitter as Submitter, type index_d_SubmitterSubmitterOneOf as SubmitterSubmitterOneOf, type index_d_UpdateOptions as UpdateOptions, type index_d_ValidateSubmissionRequest as ValidateSubmissionRequest, type index_d_ValidateSubmissionRequestActionsOneOf as ValidateSubmissionRequestActionsOneOf, type index_d_ValidateSubmissionResponse as ValidateSubmissionResponse, index_d_WebhookIdentityType as WebhookIdentityType, type index_d__publicProvideHandlersType as _publicProvideHandlersType, index_d_provideHandlers as provideHandlers, provideHandlers$1 as publicProvideHandlers };
|
|
523
536
|
}
|
|
524
537
|
|
|
525
538
|
export { index_d as formSubmissions };
|