@wix/forms 1.0.127 → 1.0.129
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/build/cjs/index.d.ts +4 -3
- package/build/cjs/index.js +6 -3
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.d.ts +4 -3
- package/build/es/index.js +4 -3
- package/build/es/index.js.map +1 -1
- package/package.json +5 -5
- package/type-bundles/context.bundle.d.ts +543 -88
- package/type-bundles/index.bundle.d.ts +543 -88
- package/type-bundles/meta.bundle.d.ts +49 -11
|
@@ -117,6 +117,8 @@ interface StringType$1 extends StringTypeFormatOptionsOneOf$1 {
|
|
|
117
117
|
timeOptions?: DateTimeConstraints$1;
|
|
118
118
|
/** DATE_OPTIONAL_TIME format options */
|
|
119
119
|
dateOptionalTimeOptions?: DateTimeConstraints$1;
|
|
120
|
+
/** PHONE format options */
|
|
121
|
+
phoneOptions?: PhoneConstraints$1;
|
|
120
122
|
/** Minimum length. */
|
|
121
123
|
minLength?: number | null;
|
|
122
124
|
/** Maximum length. */
|
|
@@ -140,6 +142,8 @@ interface StringTypeFormatOptionsOneOf$1 {
|
|
|
140
142
|
timeOptions?: DateTimeConstraints$1;
|
|
141
143
|
/** DATE_OPTIONAL_TIME format options */
|
|
142
144
|
dateOptionalTimeOptions?: DateTimeConstraints$1;
|
|
145
|
+
/** PHONE format options */
|
|
146
|
+
phoneOptions?: PhoneConstraints$1;
|
|
143
147
|
}
|
|
144
148
|
declare enum Format$1 {
|
|
145
149
|
UNDEFINED = "UNDEFINED",
|
|
@@ -177,6 +181,10 @@ interface DateTimeConstraints$1 {
|
|
|
177
181
|
*/
|
|
178
182
|
maximum?: string | null;
|
|
179
183
|
}
|
|
184
|
+
interface PhoneConstraints$1 {
|
|
185
|
+
/** Country codes for phone number that are allowed */
|
|
186
|
+
allowedCountryCodes?: string[];
|
|
187
|
+
}
|
|
180
188
|
interface NumberType$1 {
|
|
181
189
|
/** Inclusive maximum value. */
|
|
182
190
|
maximum?: number | null;
|
|
@@ -484,6 +492,8 @@ interface InputFieldStringType$1 extends InputFieldStringTypeFormatOptionsOneOf$
|
|
|
484
492
|
timeOptions?: StringTypeDateTimeConstraints$1;
|
|
485
493
|
/** DATE_OPTIONAL_TIME format options */
|
|
486
494
|
dateOptionalTimeOptions?: StringTypeDateTimeConstraints$1;
|
|
495
|
+
/** PHONE format options */
|
|
496
|
+
phoneOptions?: StringTypePhoneConstraints$1;
|
|
487
497
|
/** Minimum length. */
|
|
488
498
|
minLength?: number | null;
|
|
489
499
|
/** Maximum length. */
|
|
@@ -507,6 +517,8 @@ interface InputFieldStringTypeFormatOptionsOneOf$1 {
|
|
|
507
517
|
timeOptions?: StringTypeDateTimeConstraints$1;
|
|
508
518
|
/** DATE_OPTIONAL_TIME format options */
|
|
509
519
|
dateOptionalTimeOptions?: StringTypeDateTimeConstraints$1;
|
|
520
|
+
/** PHONE format options */
|
|
521
|
+
phoneOptions?: StringTypePhoneConstraints$1;
|
|
510
522
|
}
|
|
511
523
|
declare enum FormatEnumFormat$1 {
|
|
512
524
|
UNDEFINED = "UNDEFINED",
|
|
@@ -544,6 +556,10 @@ interface StringTypeDateTimeConstraints$1 {
|
|
|
544
556
|
*/
|
|
545
557
|
maximum?: string | null;
|
|
546
558
|
}
|
|
559
|
+
interface StringTypePhoneConstraints$1 {
|
|
560
|
+
/** Country codes for phone number that are allowed */
|
|
561
|
+
allowedCountryCodes?: string[];
|
|
562
|
+
}
|
|
547
563
|
declare enum StringComponentType$1 {
|
|
548
564
|
UNKNOWN = "UNKNOWN",
|
|
549
565
|
TEXT_INPUT = "TEXT_INPUT",
|
|
@@ -3279,7 +3295,11 @@ interface UpdateExtendedFieldsResponse$1 {
|
|
|
3279
3295
|
/** only data from UpdateExtendedFieldsRequest namespace_data */
|
|
3280
3296
|
namespaceData?: Record<string, any> | null;
|
|
3281
3297
|
}
|
|
3298
|
+
interface PhoneConstraintsNonNullableFields$1 {
|
|
3299
|
+
allowedCountryCodes: string[];
|
|
3300
|
+
}
|
|
3282
3301
|
interface StringTypeNonNullableFields$1 {
|
|
3302
|
+
phoneOptions?: PhoneConstraintsNonNullableFields$1;
|
|
3283
3303
|
format: Format$1;
|
|
3284
3304
|
}
|
|
3285
3305
|
interface BooleanTypeNonNullableFields$1 {
|
|
@@ -3633,7 +3653,11 @@ interface DateTimeInputNonNullableFields$1 {
|
|
|
3633
3653
|
interface PhoneInputNonNullableFields$1 {
|
|
3634
3654
|
description?: RichContentNonNullableFields$1;
|
|
3635
3655
|
}
|
|
3656
|
+
interface StringTypePhoneConstraintsNonNullableFields$1 {
|
|
3657
|
+
allowedCountryCodes: string[];
|
|
3658
|
+
}
|
|
3636
3659
|
interface InputFieldStringTypeNonNullableFields$1 {
|
|
3660
|
+
phoneOptions?: StringTypePhoneConstraintsNonNullableFields$1;
|
|
3637
3661
|
format: FormatEnumFormat$1;
|
|
3638
3662
|
}
|
|
3639
3663
|
interface _StringNonNullableFields$1 {
|
|
@@ -4083,6 +4107,8 @@ interface StringType extends StringTypeFormatOptionsOneOf {
|
|
|
4083
4107
|
timeOptions?: DateTimeConstraints;
|
|
4084
4108
|
/** DATE_OPTIONAL_TIME format options */
|
|
4085
4109
|
dateOptionalTimeOptions?: DateTimeConstraints;
|
|
4110
|
+
/** PHONE format options */
|
|
4111
|
+
phoneOptions?: PhoneConstraints;
|
|
4086
4112
|
/** Minimum length. */
|
|
4087
4113
|
minLength?: number | null;
|
|
4088
4114
|
/** Maximum length. */
|
|
@@ -4106,6 +4132,8 @@ interface StringTypeFormatOptionsOneOf {
|
|
|
4106
4132
|
timeOptions?: DateTimeConstraints;
|
|
4107
4133
|
/** DATE_OPTIONAL_TIME format options */
|
|
4108
4134
|
dateOptionalTimeOptions?: DateTimeConstraints;
|
|
4135
|
+
/** PHONE format options */
|
|
4136
|
+
phoneOptions?: PhoneConstraints;
|
|
4109
4137
|
}
|
|
4110
4138
|
declare enum Format {
|
|
4111
4139
|
UNDEFINED = "UNDEFINED",
|
|
@@ -4143,6 +4171,10 @@ interface DateTimeConstraints {
|
|
|
4143
4171
|
*/
|
|
4144
4172
|
maximum?: string | null;
|
|
4145
4173
|
}
|
|
4174
|
+
interface PhoneConstraints {
|
|
4175
|
+
/** Country codes for phone number that are allowed */
|
|
4176
|
+
allowedCountryCodes?: string[];
|
|
4177
|
+
}
|
|
4146
4178
|
interface NumberType {
|
|
4147
4179
|
/** Inclusive maximum value. */
|
|
4148
4180
|
maximum?: number | null;
|
|
@@ -4450,6 +4482,8 @@ interface InputFieldStringType extends InputFieldStringTypeFormatOptionsOneOf {
|
|
|
4450
4482
|
timeOptions?: StringTypeDateTimeConstraints;
|
|
4451
4483
|
/** DATE_OPTIONAL_TIME format options */
|
|
4452
4484
|
dateOptionalTimeOptions?: StringTypeDateTimeConstraints;
|
|
4485
|
+
/** PHONE format options */
|
|
4486
|
+
phoneOptions?: StringTypePhoneConstraints;
|
|
4453
4487
|
/** Minimum length. */
|
|
4454
4488
|
minLength?: number | null;
|
|
4455
4489
|
/** Maximum length. */
|
|
@@ -4473,6 +4507,8 @@ interface InputFieldStringTypeFormatOptionsOneOf {
|
|
|
4473
4507
|
timeOptions?: StringTypeDateTimeConstraints;
|
|
4474
4508
|
/** DATE_OPTIONAL_TIME format options */
|
|
4475
4509
|
dateOptionalTimeOptions?: StringTypeDateTimeConstraints;
|
|
4510
|
+
/** PHONE format options */
|
|
4511
|
+
phoneOptions?: StringTypePhoneConstraints;
|
|
4476
4512
|
}
|
|
4477
4513
|
declare enum FormatEnumFormat {
|
|
4478
4514
|
UNDEFINED = "UNDEFINED",
|
|
@@ -4510,6 +4546,10 @@ interface StringTypeDateTimeConstraints {
|
|
|
4510
4546
|
*/
|
|
4511
4547
|
maximum?: string | null;
|
|
4512
4548
|
}
|
|
4549
|
+
interface StringTypePhoneConstraints {
|
|
4550
|
+
/** Country codes for phone number that are allowed */
|
|
4551
|
+
allowedCountryCodes?: string[];
|
|
4552
|
+
}
|
|
4513
4553
|
declare enum StringComponentType {
|
|
4514
4554
|
UNKNOWN = "UNKNOWN",
|
|
4515
4555
|
TEXT_INPUT = "TEXT_INPUT",
|
|
@@ -7222,7 +7262,11 @@ interface UpdateExtendedFieldsResponse {
|
|
|
7222
7262
|
/** only data from UpdateExtendedFieldsRequest namespace_data */
|
|
7223
7263
|
namespaceData?: Record<string, any> | null;
|
|
7224
7264
|
}
|
|
7265
|
+
interface PhoneConstraintsNonNullableFields {
|
|
7266
|
+
allowedCountryCodes: string[];
|
|
7267
|
+
}
|
|
7225
7268
|
interface StringTypeNonNullableFields {
|
|
7269
|
+
phoneOptions?: PhoneConstraintsNonNullableFields;
|
|
7226
7270
|
format: Format;
|
|
7227
7271
|
}
|
|
7228
7272
|
interface BooleanTypeNonNullableFields {
|
|
@@ -7576,7 +7620,11 @@ interface DateTimeInputNonNullableFields {
|
|
|
7576
7620
|
interface PhoneInputNonNullableFields {
|
|
7577
7621
|
description?: RichContentNonNullableFields;
|
|
7578
7622
|
}
|
|
7623
|
+
interface StringTypePhoneConstraintsNonNullableFields {
|
|
7624
|
+
allowedCountryCodes: string[];
|
|
7625
|
+
}
|
|
7579
7626
|
interface InputFieldStringTypeNonNullableFields {
|
|
7627
|
+
phoneOptions?: StringTypePhoneConstraintsNonNullableFields;
|
|
7580
7628
|
format: FormatEnumFormat;
|
|
7581
7629
|
}
|
|
7582
7630
|
interface _StringNonNullableFields {
|
|
@@ -9177,10 +9225,6 @@ interface OrderDetails$1 {
|
|
|
9177
9225
|
*/
|
|
9178
9226
|
checkoutId?: string;
|
|
9179
9227
|
}
|
|
9180
|
-
interface IsFormSubmittableRequest$1 {
|
|
9181
|
-
}
|
|
9182
|
-
interface IsFormSubmittableResponse$1 {
|
|
9183
|
-
}
|
|
9184
9228
|
interface CreateSubmissionRequest$1 {
|
|
9185
9229
|
/** Submission to create. */
|
|
9186
9230
|
submission: FormSubmission$1;
|
|
@@ -9848,10 +9892,6 @@ interface OrderDetails {
|
|
|
9848
9892
|
*/
|
|
9849
9893
|
checkoutId?: string;
|
|
9850
9894
|
}
|
|
9851
|
-
interface IsFormSubmittableRequest {
|
|
9852
|
-
}
|
|
9853
|
-
interface IsFormSubmittableResponse {
|
|
9854
|
-
}
|
|
9855
9895
|
interface CreateSubmissionRequest {
|
|
9856
9896
|
/** Submission to create. */
|
|
9857
9897
|
submission: FormSubmission;
|
|
@@ -10411,7 +10451,6 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
10411
10451
|
__responseType: Q;
|
|
10412
10452
|
__originalResponseType: R;
|
|
10413
10453
|
};
|
|
10414
|
-
declare function isFormSubmittable(): __PublicMethodMetaInfo<'POST', {}, IsFormSubmittableRequest, IsFormSubmittableRequest$1, IsFormSubmittableResponse, IsFormSubmittableResponse$1>;
|
|
10415
10454
|
declare function createSubmission(): __PublicMethodMetaInfo<'POST', {}, CreateSubmissionRequest, CreateSubmissionRequest$1, CreateSubmissionResponse & CreateSubmissionResponseNonNullableFields, CreateSubmissionResponse$1 & CreateSubmissionResponseNonNullableFields$1>;
|
|
10416
10455
|
declare function bulkCreateSubmissionBySubmitter(): __PublicMethodMetaInfo<'POST', {}, BulkCreateSubmissionBySubmitterRequest, BulkCreateSubmissionBySubmitterRequest$1, BulkCreateSubmissionBySubmitterResponse & BulkCreateSubmissionBySubmitterResponseNonNullableFields, BulkCreateSubmissionBySubmitterResponse$1 & BulkCreateSubmissionBySubmitterResponseNonNullableFields$1>;
|
|
10417
10456
|
declare function getSubmission(): __PublicMethodMetaInfo<'GET', {
|
|
@@ -10462,7 +10501,6 @@ declare const meta_deleteSubmission: typeof deleteSubmission;
|
|
|
10462
10501
|
declare const meta_getDeletedSubmission: typeof getDeletedSubmission;
|
|
10463
10502
|
declare const meta_getMediaUploadUrl: typeof getMediaUploadUrl;
|
|
10464
10503
|
declare const meta_getSubmission: typeof getSubmission;
|
|
10465
|
-
declare const meta_isFormSubmittable: typeof isFormSubmittable;
|
|
10466
10504
|
declare const meta_listDeletedSubmissions: typeof listDeletedSubmissions;
|
|
10467
10505
|
declare const meta_querySubmission: typeof querySubmission;
|
|
10468
10506
|
declare const meta_querySubmissionsByNamespace: typeof querySubmissionsByNamespace;
|
|
@@ -10472,7 +10510,7 @@ declare const meta_searchSubmissionsByNamespace: typeof searchSubmissionsByNames
|
|
|
10472
10510
|
declare const meta_updateSubmission: typeof updateSubmission;
|
|
10473
10511
|
declare const meta_upsertContactFromSubmission: typeof upsertContactFromSubmission;
|
|
10474
10512
|
declare namespace meta {
|
|
10475
|
-
export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_bulkCreateSubmissionBySubmitter as bulkCreateSubmissionBySubmitter, meta_bulkDeleteSubmission as bulkDeleteSubmission, meta_bulkMarkSubmissionsAsSeen as bulkMarkSubmissionsAsSeen, meta_bulkRemoveSubmissionFromTrashBin as bulkRemoveSubmissionFromTrashBin, meta_confirmSubmission as confirmSubmission, meta_countDeletedSubmissions as countDeletedSubmissions, meta_countSubmissions as countSubmissions, meta_countSubmissionsByFilter as countSubmissionsByFilter, meta_createSubmission as createSubmission, meta_deleteSubmission as deleteSubmission, meta_getDeletedSubmission as getDeletedSubmission, meta_getMediaUploadUrl as getMediaUploadUrl, meta_getSubmission as getSubmission,
|
|
10513
|
+
export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_bulkCreateSubmissionBySubmitter as bulkCreateSubmissionBySubmitter, meta_bulkDeleteSubmission as bulkDeleteSubmission, meta_bulkMarkSubmissionsAsSeen as bulkMarkSubmissionsAsSeen, meta_bulkRemoveSubmissionFromTrashBin as bulkRemoveSubmissionFromTrashBin, meta_confirmSubmission as confirmSubmission, meta_countDeletedSubmissions as countDeletedSubmissions, meta_countSubmissions as countSubmissions, meta_countSubmissionsByFilter as countSubmissionsByFilter, meta_createSubmission as createSubmission, meta_deleteSubmission as deleteSubmission, meta_getDeletedSubmission as getDeletedSubmission, meta_getMediaUploadUrl as getMediaUploadUrl, meta_getSubmission as getSubmission, meta_listDeletedSubmissions as listDeletedSubmissions, meta_querySubmission as querySubmission, meta_querySubmissionsByNamespace as querySubmissionsByNamespace, meta_removeSubmissionFromTrashBin as removeSubmissionFromTrashBin, meta_restoreSubmissionFromTrashBin as restoreSubmissionFromTrashBin, meta_searchSubmissionsByNamespace as searchSubmissionsByNamespace, meta_updateSubmission as updateSubmission, meta_upsertContactFromSubmission as upsertContactFromSubmission };
|
|
10476
10514
|
}
|
|
10477
10515
|
|
|
10478
10516
|
export { meta$1 as formSpamSubmissionReports, meta$2 as forms, meta as submissions };
|