@wix/forms 1.0.124 → 1.0.126
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.
|
@@ -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 {
|
|
@@ -456,9 +456,18 @@ declare global {
|
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
458
|
|
|
459
|
+
interface ValidateSubmissionEnvelope {
|
|
460
|
+
request: ValidateSubmissionRequest;
|
|
461
|
+
metadata: Context;
|
|
462
|
+
}
|
|
463
|
+
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
464
|
+
validateSubmission(payload: ValidateSubmissionEnvelope): ValidateSubmissionResponse | Promise<ValidateSubmissionResponse>;
|
|
465
|
+
}>;
|
|
466
|
+
|
|
459
467
|
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
460
468
|
|
|
461
|
-
|
|
469
|
+
type _publicProvideHandlersType = typeof provideHandlers$1;
|
|
470
|
+
declare const provideHandlers: ReturnType<typeof createServicePluginModule<_publicProvideHandlersType>>;
|
|
462
471
|
|
|
463
472
|
type context_ActionEvent = ActionEvent;
|
|
464
473
|
type context_ActionType = ActionType;
|
|
@@ -503,9 +512,10 @@ type context_ValidateSubmissionRequestActionsOneOf = ValidateSubmissionRequestAc
|
|
|
503
512
|
type context_ValidateSubmissionResponse = ValidateSubmissionResponse;
|
|
504
513
|
type context_WebhookIdentityType = WebhookIdentityType;
|
|
505
514
|
declare const context_WebhookIdentityType: typeof WebhookIdentityType;
|
|
515
|
+
type context__publicProvideHandlersType = _publicProvideHandlersType;
|
|
506
516
|
declare const context_provideHandlers: typeof provideHandlers;
|
|
507
517
|
declare namespace context {
|
|
508
|
-
export { type context_ActionEvent as ActionEvent, context_ActionType as ActionType, type context_AlternativeUri as AlternativeUri, type context_Context as Context, type context_ContextIdentificationData as ContextIdentificationData, type context_ContextIdentificationDataIdOneOf as ContextIdentificationDataIdOneOf, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_ExtendedFields as ExtendedFields, type context_FormSubmission as FormSubmission, type context_FormSubmissionSpiExtensionConfig as FormSubmissionSpiExtensionConfig, type context_FormsSubmissionsExtensionNamespaceConfig as FormsSubmissionsExtensionNamespaceConfig, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context_IdentityType as IdentityType, type context_MarketingSubscriptionDetails as MarketingSubscriptionDetails, type context_MessageEnvelope as MessageEnvelope, context_OptInLevel as OptInLevel, type context_OrderDetails as OrderDetails, type context_RestoreInfo as RestoreInfo, type context_SpiBaseUri as SpiBaseUri, type context_SubmissionContactMapped as SubmissionContactMapped, type context_SubmissionContactMappingSkipped as SubmissionContactMappingSkipped, context_SubmissionErrorType as SubmissionErrorType, context_SubmissionStatus as SubmissionStatus, type context_SubmissionValidationError as SubmissionValidationError, type context_SubmissionValidationErrorErrorMessageOneOf as SubmissionValidationErrorErrorMessageOneOf, type context_Submitter as Submitter, type context_SubmitterSubmitterOneOf as SubmitterSubmitterOneOf, type context_UpdateOptions as UpdateOptions, type context_ValidateSubmissionRequest as ValidateSubmissionRequest, type context_ValidateSubmissionRequestActionsOneOf as ValidateSubmissionRequestActionsOneOf, type context_ValidateSubmissionResponse as ValidateSubmissionResponse, context_WebhookIdentityType as WebhookIdentityType, context_provideHandlers as provideHandlers };
|
|
518
|
+
export { type context_ActionEvent as ActionEvent, context_ActionType as ActionType, type context_AlternativeUri as AlternativeUri, type context_Context as Context, type context_ContextIdentificationData as ContextIdentificationData, type context_ContextIdentificationDataIdOneOf as ContextIdentificationDataIdOneOf, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_ExtendedFields as ExtendedFields, type context_FormSubmission as FormSubmission, type context_FormSubmissionSpiExtensionConfig as FormSubmissionSpiExtensionConfig, type context_FormsSubmissionsExtensionNamespaceConfig as FormsSubmissionsExtensionNamespaceConfig, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context_IdentityType as IdentityType, type context_MarketingSubscriptionDetails as MarketingSubscriptionDetails, type context_MessageEnvelope as MessageEnvelope, context_OptInLevel as OptInLevel, type context_OrderDetails as OrderDetails, type context_RestoreInfo as RestoreInfo, type context_SpiBaseUri as SpiBaseUri, type context_SubmissionContactMapped as SubmissionContactMapped, type context_SubmissionContactMappingSkipped as SubmissionContactMappingSkipped, context_SubmissionErrorType as SubmissionErrorType, context_SubmissionStatus as SubmissionStatus, type context_SubmissionValidationError as SubmissionValidationError, type context_SubmissionValidationErrorErrorMessageOneOf as SubmissionValidationErrorErrorMessageOneOf, type context_Submitter as Submitter, type context_SubmitterSubmitterOneOf as SubmitterSubmitterOneOf, type context_UpdateOptions as UpdateOptions, type context_ValidateSubmissionRequest as ValidateSubmissionRequest, type context_ValidateSubmissionRequestActionsOneOf as ValidateSubmissionRequestActionsOneOf, type context_ValidateSubmissionResponse as ValidateSubmissionResponse, context_WebhookIdentityType as WebhookIdentityType, type context__publicProvideHandlersType as _publicProvideHandlersType, context_provideHandlers as provideHandlers, provideHandlers$1 as publicProvideHandlers };
|
|
509
519
|
}
|
|
510
520
|
|
|
511
521
|
export { context as formSubmissions };
|