@wix/forms 1.0.131 → 1.0.133
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,7 +1872,7 @@ 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
|
|
1875
|
+
/** Options specific to the combined Date input type. */
|
|
1865
1876
|
dateOptions?: DateOptions$1;
|
|
1866
1877
|
/** Options specific to the Time-only input type. */
|
|
1867
1878
|
timeOptions?: TimeOptions$1;
|
|
@@ -1886,23 +1897,20 @@ interface DateTimeInput$1 extends DateTimeInputDateTimeInputTypeOptionsOneOf$1 {
|
|
|
1886
1897
|
* @readonly
|
|
1887
1898
|
*/
|
|
1888
1899
|
dateTimeInputType?: DateTimeInputType$1;
|
|
1900
|
+
/** Placeholder of date picker input */
|
|
1901
|
+
placeholder?: string | null;
|
|
1889
1902
|
}
|
|
1890
1903
|
/** @oneof */
|
|
1891
1904
|
interface DateTimeInputDateTimeInputTypeOptionsOneOf$1 {
|
|
1892
1905
|
/** Options specific to the combined Date and Time input type. */
|
|
1893
1906
|
dateTimeOptions?: DateTimeOptions$1;
|
|
1894
|
-
/** Options specific to the Date
|
|
1907
|
+
/** Options specific to the combined Date input type. */
|
|
1895
1908
|
dateOptions?: DateOptions$1;
|
|
1896
1909
|
/** Options specific to the Time-only input type. */
|
|
1897
1910
|
timeOptions?: TimeOptions$1;
|
|
1898
1911
|
/** Options specific to date picker type. */
|
|
1899
1912
|
datePickerOptions?: DatePickerOptions$1;
|
|
1900
1913
|
}
|
|
1901
|
-
declare enum DateFormatPart$1 {
|
|
1902
|
-
YEAR = "YEAR",
|
|
1903
|
-
MONTH = "MONTH",
|
|
1904
|
-
DAY = "DAY"
|
|
1905
|
-
}
|
|
1906
1914
|
declare enum FirstDayOfWeek$1 {
|
|
1907
1915
|
MONDAY = "MONDAY",
|
|
1908
1916
|
SUNDAY = "SUNDAY"
|
|
@@ -1919,8 +1927,6 @@ declare enum DateTimeInputType$1 {
|
|
|
1919
1927
|
DATE_PICKER = "DATE_PICKER"
|
|
1920
1928
|
}
|
|
1921
1929
|
interface DateTimeOptions$1 {
|
|
1922
|
-
/** Order of date picking component parts (e.g., YEAR, MONTH, DAY). */
|
|
1923
|
-
dateFormatParts?: DateFormatPart$1[];
|
|
1924
1930
|
/**
|
|
1925
1931
|
* Flag indicating whether to use the 24-hour time format.
|
|
1926
1932
|
* Default: false.
|
|
@@ -1928,8 +1934,6 @@ interface DateTimeOptions$1 {
|
|
|
1928
1934
|
use24HourFormat?: boolean;
|
|
1929
1935
|
}
|
|
1930
1936
|
interface DateOptions$1 {
|
|
1931
|
-
/** Order of date picking component parts (e.g., YEAR, MONTH, DAY). */
|
|
1932
|
-
dateFormatParts?: DateFormatPart$1[];
|
|
1933
1937
|
}
|
|
1934
1938
|
interface TimeOptions$1 {
|
|
1935
1939
|
/**
|
|
@@ -2021,6 +2025,11 @@ declare enum BooleanComponentType$1 {
|
|
|
2021
2025
|
interface Checkbox$1 {
|
|
2022
2026
|
/** Label of the field */
|
|
2023
2027
|
label?: RichContent$1;
|
|
2028
|
+
/**
|
|
2029
|
+
* Flag identifying if checked by default
|
|
2030
|
+
* Default: false
|
|
2031
|
+
*/
|
|
2032
|
+
checked?: boolean;
|
|
2024
2033
|
}
|
|
2025
2034
|
interface InputFieldArrayType$1 {
|
|
2026
2035
|
/** Maximum amount of array elements. */
|
|
@@ -2058,7 +2067,7 @@ interface InputFieldObjectType$1 {
|
|
|
2058
2067
|
/** Custom error message when validation fails. */
|
|
2059
2068
|
errorMessages?: InputFieldObjectErrorMessages$1;
|
|
2060
2069
|
}
|
|
2061
|
-
declare enum
|
|
2070
|
+
declare enum PropertiesTypeEnum$1 {
|
|
2062
2071
|
UNKNOWN = "UNKNOWN",
|
|
2063
2072
|
STRING = "STRING",
|
|
2064
2073
|
NUMBER = "NUMBER",
|
|
@@ -2081,7 +2090,7 @@ interface ObjectTypePropertiesType$1 extends ObjectTypePropertiesTypePropertiesT
|
|
|
2081
2090
|
* Type of object properties
|
|
2082
2091
|
* @readonly
|
|
2083
2092
|
*/
|
|
2084
|
-
propertiesType?:
|
|
2093
|
+
propertiesType?: PropertiesTypeEnum$1;
|
|
2085
2094
|
/** Whether the property is required. */
|
|
2086
2095
|
required?: boolean;
|
|
2087
2096
|
}
|
|
@@ -2154,6 +2163,11 @@ interface CheckboxGroup$1 {
|
|
|
2154
2163
|
showLabel?: boolean | null;
|
|
2155
2164
|
/** Option which can be specified by UoU, enabled when this object is specified. */
|
|
2156
2165
|
customOption?: CustomOption$1;
|
|
2166
|
+
/**
|
|
2167
|
+
* Specifies the number of columns used to display the selections within the component.
|
|
2168
|
+
* Default: ONE
|
|
2169
|
+
*/
|
|
2170
|
+
numberOfColumns?: NumberOfColumns$1;
|
|
2157
2171
|
}
|
|
2158
2172
|
interface MediaItem$1 extends MediaItemMediaOneOf$1 {
|
|
2159
2173
|
/** WixMedia image. */
|
|
@@ -2315,12 +2329,6 @@ interface CommonCustomOption$1 {
|
|
|
2315
2329
|
/** Placeholder of custom option input */
|
|
2316
2330
|
placeholder?: string | null;
|
|
2317
2331
|
}
|
|
2318
|
-
declare enum NumberOfColumns$1 {
|
|
2319
|
-
UNKNOWN = "UNKNOWN",
|
|
2320
|
-
ONE = "ONE",
|
|
2321
|
-
TWO = "TWO",
|
|
2322
|
-
THREE = "THREE"
|
|
2323
|
-
}
|
|
2324
2332
|
declare enum MultilineAddressComponentType$1 {
|
|
2325
2333
|
UNKNOWN = "UNKNOWN",
|
|
2326
2334
|
MULTILINE_ADDRESS = "MULTILINE_ADDRESS"
|
|
@@ -3620,6 +3628,7 @@ interface RadioGroupOptionNonNullableFields$1 {
|
|
|
3620
3628
|
interface RadioGroupNonNullableFields$1 {
|
|
3621
3629
|
description?: RichContentNonNullableFields$1;
|
|
3622
3630
|
options: RadioGroupOptionNonNullableFields$1[];
|
|
3631
|
+
numberOfColumns: NumberOfColumns$1;
|
|
3623
3632
|
}
|
|
3624
3633
|
interface DropdownOptionNonNullableFields$1 {
|
|
3625
3634
|
default: boolean;
|
|
@@ -3630,12 +3639,8 @@ interface DropdownNonNullableFields$1 {
|
|
|
3630
3639
|
options: DropdownOptionNonNullableFields$1[];
|
|
3631
3640
|
}
|
|
3632
3641
|
interface DateTimeOptionsNonNullableFields$1 {
|
|
3633
|
-
dateFormatParts: DateFormatPart$1[];
|
|
3634
3642
|
use24HourFormat: boolean;
|
|
3635
3643
|
}
|
|
3636
|
-
interface DateOptionsNonNullableFields$1 {
|
|
3637
|
-
dateFormatParts: DateFormatPart$1[];
|
|
3638
|
-
}
|
|
3639
3644
|
interface TimeOptionsNonNullableFields$1 {
|
|
3640
3645
|
use24HourFormat: boolean;
|
|
3641
3646
|
}
|
|
@@ -3644,7 +3649,6 @@ interface DatePickerOptionsNonNullableFields$1 {
|
|
|
3644
3649
|
}
|
|
3645
3650
|
interface DateTimeInputNonNullableFields$1 {
|
|
3646
3651
|
dateTimeOptions?: DateTimeOptionsNonNullableFields$1;
|
|
3647
|
-
dateOptions?: DateOptionsNonNullableFields$1;
|
|
3648
3652
|
timeOptions?: TimeOptionsNonNullableFields$1;
|
|
3649
3653
|
datePickerOptions?: DatePickerOptionsNonNullableFields$1;
|
|
3650
3654
|
description?: RichContentNonNullableFields$1;
|
|
@@ -3682,6 +3686,7 @@ interface _NumberNonNullableFields$1 {
|
|
|
3682
3686
|
}
|
|
3683
3687
|
interface CheckboxNonNullableFields$1 {
|
|
3684
3688
|
label?: RichContentNonNullableFields$1;
|
|
3689
|
+
checked: boolean;
|
|
3685
3690
|
}
|
|
3686
3691
|
interface InputFieldBooleanTypeNonNullableFields$1 {
|
|
3687
3692
|
enum: boolean[];
|
|
@@ -3708,6 +3713,7 @@ interface OptionNonNullableFields$1 {
|
|
|
3708
3713
|
interface CheckboxGroupNonNullableFields$1 {
|
|
3709
3714
|
description?: RichContentNonNullableFields$1;
|
|
3710
3715
|
options: OptionNonNullableFields$1[];
|
|
3716
|
+
numberOfColumns: NumberOfColumns$1;
|
|
3711
3717
|
}
|
|
3712
3718
|
interface ArrayTypeArrayItemsNonNullableFields$1 {
|
|
3713
3719
|
stringOptions?: InputFieldStringTypeNonNullableFields$1;
|
|
@@ -5798,6 +5804,11 @@ interface RadioGroup {
|
|
|
5798
5804
|
showLabel?: boolean | null;
|
|
5799
5805
|
/** Option which can be specified by UoU, enabled when this object is specified. */
|
|
5800
5806
|
customOption?: RadioGroupCustomOption;
|
|
5807
|
+
/**
|
|
5808
|
+
* Specifies the number of columns used to display the selections within the component.
|
|
5809
|
+
* Default: ONE
|
|
5810
|
+
*/
|
|
5811
|
+
numberOfColumns?: NumberOfColumns;
|
|
5801
5812
|
}
|
|
5802
5813
|
interface RadioGroupOption {
|
|
5803
5814
|
/** Selectable option label */
|
|
@@ -5815,6 +5826,12 @@ interface RadioGroupCustomOption {
|
|
|
5815
5826
|
/** Placeholder of custom option input */
|
|
5816
5827
|
placeholder?: string | null;
|
|
5817
5828
|
}
|
|
5829
|
+
declare enum NumberOfColumns {
|
|
5830
|
+
UNKNOWN = "UNKNOWN",
|
|
5831
|
+
ONE = "ONE",
|
|
5832
|
+
TWO = "TWO",
|
|
5833
|
+
THREE = "THREE"
|
|
5834
|
+
}
|
|
5818
5835
|
interface Dropdown {
|
|
5819
5836
|
/** Label of the field */
|
|
5820
5837
|
label?: string | null;
|
|
@@ -5851,7 +5868,7 @@ interface DropdownCustomOption {
|
|
|
5851
5868
|
interface DateTimeInput extends DateTimeInputDateTimeInputTypeOptionsOneOf {
|
|
5852
5869
|
/** Options specific to the combined Date and Time input type. */
|
|
5853
5870
|
dateTimeOptions?: DateTimeOptions;
|
|
5854
|
-
/** Options specific to the Date
|
|
5871
|
+
/** Options specific to the combined Date input type. */
|
|
5855
5872
|
dateOptions?: DateOptions;
|
|
5856
5873
|
/** Options specific to the Time-only input type. */
|
|
5857
5874
|
timeOptions?: TimeOptions;
|
|
@@ -5876,23 +5893,20 @@ interface DateTimeInput extends DateTimeInputDateTimeInputTypeOptionsOneOf {
|
|
|
5876
5893
|
* @readonly
|
|
5877
5894
|
*/
|
|
5878
5895
|
dateTimeInputType?: DateTimeInputType;
|
|
5896
|
+
/** Placeholder of date picker input */
|
|
5897
|
+
placeholder?: string | null;
|
|
5879
5898
|
}
|
|
5880
5899
|
/** @oneof */
|
|
5881
5900
|
interface DateTimeInputDateTimeInputTypeOptionsOneOf {
|
|
5882
5901
|
/** Options specific to the combined Date and Time input type. */
|
|
5883
5902
|
dateTimeOptions?: DateTimeOptions;
|
|
5884
|
-
/** Options specific to the Date
|
|
5903
|
+
/** Options specific to the combined Date input type. */
|
|
5885
5904
|
dateOptions?: DateOptions;
|
|
5886
5905
|
/** Options specific to the Time-only input type. */
|
|
5887
5906
|
timeOptions?: TimeOptions;
|
|
5888
5907
|
/** Options specific to date picker type. */
|
|
5889
5908
|
datePickerOptions?: DatePickerOptions;
|
|
5890
5909
|
}
|
|
5891
|
-
declare enum DateFormatPart {
|
|
5892
|
-
YEAR = "YEAR",
|
|
5893
|
-
MONTH = "MONTH",
|
|
5894
|
-
DAY = "DAY"
|
|
5895
|
-
}
|
|
5896
5910
|
declare enum FirstDayOfWeek {
|
|
5897
5911
|
MONDAY = "MONDAY",
|
|
5898
5912
|
SUNDAY = "SUNDAY"
|
|
@@ -5909,8 +5923,6 @@ declare enum DateTimeInputType {
|
|
|
5909
5923
|
DATE_PICKER = "DATE_PICKER"
|
|
5910
5924
|
}
|
|
5911
5925
|
interface DateTimeOptions {
|
|
5912
|
-
/** Order of date picking component parts (e.g., YEAR, MONTH, DAY). */
|
|
5913
|
-
dateFormatParts?: DateFormatPart[];
|
|
5914
5926
|
/**
|
|
5915
5927
|
* Flag indicating whether to use the 24-hour time format.
|
|
5916
5928
|
* Default: false.
|
|
@@ -5918,8 +5930,6 @@ interface DateTimeOptions {
|
|
|
5918
5930
|
use24HourFormat?: boolean;
|
|
5919
5931
|
}
|
|
5920
5932
|
interface DateOptions {
|
|
5921
|
-
/** Order of date picking component parts (e.g., YEAR, MONTH, DAY). */
|
|
5922
|
-
dateFormatParts?: DateFormatPart[];
|
|
5923
5933
|
}
|
|
5924
5934
|
interface TimeOptions {
|
|
5925
5935
|
/**
|
|
@@ -6011,6 +6021,11 @@ declare enum BooleanComponentType {
|
|
|
6011
6021
|
interface Checkbox {
|
|
6012
6022
|
/** Label of the field */
|
|
6013
6023
|
label?: RichContent;
|
|
6024
|
+
/**
|
|
6025
|
+
* Flag identifying if checked by default
|
|
6026
|
+
* Default: false
|
|
6027
|
+
*/
|
|
6028
|
+
checked?: boolean;
|
|
6014
6029
|
}
|
|
6015
6030
|
interface InputFieldArrayType {
|
|
6016
6031
|
/** Maximum amount of array elements. */
|
|
@@ -6048,7 +6063,7 @@ interface InputFieldObjectType {
|
|
|
6048
6063
|
/** Custom error message when validation fails. */
|
|
6049
6064
|
errorMessages?: InputFieldObjectErrorMessages;
|
|
6050
6065
|
}
|
|
6051
|
-
declare enum
|
|
6066
|
+
declare enum PropertiesTypeEnum {
|
|
6052
6067
|
UNKNOWN = "UNKNOWN",
|
|
6053
6068
|
STRING = "STRING",
|
|
6054
6069
|
NUMBER = "NUMBER",
|
|
@@ -6071,7 +6086,7 @@ interface ObjectTypePropertiesType extends ObjectTypePropertiesTypePropertiesTyp
|
|
|
6071
6086
|
* Type of object properties
|
|
6072
6087
|
* @readonly
|
|
6073
6088
|
*/
|
|
6074
|
-
propertiesType?:
|
|
6089
|
+
propertiesType?: PropertiesTypeEnum;
|
|
6075
6090
|
/** Whether the property is required. */
|
|
6076
6091
|
required?: boolean;
|
|
6077
6092
|
}
|
|
@@ -6144,6 +6159,11 @@ interface CheckboxGroup {
|
|
|
6144
6159
|
showLabel?: boolean | null;
|
|
6145
6160
|
/** Option which can be specified by UoU, enabled when this object is specified. */
|
|
6146
6161
|
customOption?: CustomOption;
|
|
6162
|
+
/**
|
|
6163
|
+
* Specifies the number of columns used to display the selections within the component.
|
|
6164
|
+
* Default: ONE
|
|
6165
|
+
*/
|
|
6166
|
+
numberOfColumns?: NumberOfColumns;
|
|
6147
6167
|
}
|
|
6148
6168
|
interface MediaItem extends MediaItemMediaOneOf {
|
|
6149
6169
|
/** WixMedia image. */
|
|
@@ -6282,12 +6302,6 @@ interface CommonCustomOption {
|
|
|
6282
6302
|
/** Placeholder of custom option input */
|
|
6283
6303
|
placeholder?: string | null;
|
|
6284
6304
|
}
|
|
6285
|
-
declare enum NumberOfColumns {
|
|
6286
|
-
UNKNOWN = "UNKNOWN",
|
|
6287
|
-
ONE = "ONE",
|
|
6288
|
-
TWO = "TWO",
|
|
6289
|
-
THREE = "THREE"
|
|
6290
|
-
}
|
|
6291
6305
|
declare enum MultilineAddressComponentType {
|
|
6292
6306
|
UNKNOWN = "UNKNOWN",
|
|
6293
6307
|
MULTILINE_ADDRESS = "MULTILINE_ADDRESS"
|
|
@@ -7587,6 +7601,7 @@ interface RadioGroupOptionNonNullableFields {
|
|
|
7587
7601
|
interface RadioGroupNonNullableFields {
|
|
7588
7602
|
description?: RichContentNonNullableFields;
|
|
7589
7603
|
options: RadioGroupOptionNonNullableFields[];
|
|
7604
|
+
numberOfColumns: NumberOfColumns;
|
|
7590
7605
|
}
|
|
7591
7606
|
interface DropdownOptionNonNullableFields {
|
|
7592
7607
|
default: boolean;
|
|
@@ -7597,12 +7612,8 @@ interface DropdownNonNullableFields {
|
|
|
7597
7612
|
options: DropdownOptionNonNullableFields[];
|
|
7598
7613
|
}
|
|
7599
7614
|
interface DateTimeOptionsNonNullableFields {
|
|
7600
|
-
dateFormatParts: DateFormatPart[];
|
|
7601
7615
|
use24HourFormat: boolean;
|
|
7602
7616
|
}
|
|
7603
|
-
interface DateOptionsNonNullableFields {
|
|
7604
|
-
dateFormatParts: DateFormatPart[];
|
|
7605
|
-
}
|
|
7606
7617
|
interface TimeOptionsNonNullableFields {
|
|
7607
7618
|
use24HourFormat: boolean;
|
|
7608
7619
|
}
|
|
@@ -7611,7 +7622,6 @@ interface DatePickerOptionsNonNullableFields {
|
|
|
7611
7622
|
}
|
|
7612
7623
|
interface DateTimeInputNonNullableFields {
|
|
7613
7624
|
dateTimeOptions?: DateTimeOptionsNonNullableFields;
|
|
7614
|
-
dateOptions?: DateOptionsNonNullableFields;
|
|
7615
7625
|
timeOptions?: TimeOptionsNonNullableFields;
|
|
7616
7626
|
datePickerOptions?: DatePickerOptionsNonNullableFields;
|
|
7617
7627
|
description?: RichContentNonNullableFields;
|
|
@@ -7649,6 +7659,7 @@ interface _NumberNonNullableFields {
|
|
|
7649
7659
|
}
|
|
7650
7660
|
interface CheckboxNonNullableFields {
|
|
7651
7661
|
label?: RichContentNonNullableFields;
|
|
7662
|
+
checked: boolean;
|
|
7652
7663
|
}
|
|
7653
7664
|
interface InputFieldBooleanTypeNonNullableFields {
|
|
7654
7665
|
enum: boolean[];
|
|
@@ -7669,6 +7680,7 @@ interface OptionNonNullableFields {
|
|
|
7669
7680
|
interface CheckboxGroupNonNullableFields {
|
|
7670
7681
|
description?: RichContentNonNullableFields;
|
|
7671
7682
|
options: OptionNonNullableFields[];
|
|
7683
|
+
numberOfColumns: NumberOfColumns;
|
|
7672
7684
|
}
|
|
7673
7685
|
interface ArrayTypeArrayItemsNonNullableFields {
|
|
7674
7686
|
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 };
|