@wix/auto_sdk_forms_forms 1.0.22 → 1.0.23

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.
Files changed (73) hide show
  1. package/build/cjs/src/forms-v4-form-forms.context.d.ts +5 -4
  2. package/build/cjs/src/forms-v4-form-forms.context.js +8 -7
  3. package/build/cjs/src/forms-v4-form-forms.context.js.map +1 -1
  4. package/build/cjs/src/forms-v4-form-forms.http.d.ts +3 -1
  5. package/build/cjs/src/forms-v4-form-forms.http.js +27 -7
  6. package/build/cjs/src/forms-v4-form-forms.http.js.map +1 -1
  7. package/build/cjs/src/forms-v4-form-forms.meta.d.ts +2 -1
  8. package/build/cjs/src/forms-v4-form-forms.meta.js +24 -5
  9. package/build/cjs/src/forms-v4-form-forms.meta.js.map +1 -1
  10. package/build/cjs/src/forms-v4-form-forms.public.d.ts +12 -6
  11. package/build/cjs/src/forms-v4-form-forms.public.js +12 -6
  12. package/build/cjs/src/forms-v4-form-forms.public.js.map +1 -1
  13. package/build/cjs/src/forms-v4-form-forms.types.d.ts +275 -178
  14. package/build/cjs/src/forms-v4-form-forms.types.js +30 -30
  15. package/build/cjs/src/forms-v4-form-forms.types.js.map +1 -1
  16. package/build/cjs/src/forms-v4-form-forms.universal.d.ts +357 -184
  17. package/build/cjs/src/forms-v4-form-forms.universal.js +131 -43
  18. package/build/cjs/src/forms-v4-form-forms.universal.js.map +1 -1
  19. package/build/es/src/forms-v4-form-forms.context.d.ts +5 -4
  20. package/build/es/src/forms-v4-form-forms.context.js +4 -3
  21. package/build/es/src/forms-v4-form-forms.context.js.map +1 -1
  22. package/build/es/src/forms-v4-form-forms.http.d.ts +3 -1
  23. package/build/es/src/forms-v4-form-forms.http.js +24 -5
  24. package/build/es/src/forms-v4-form-forms.http.js.map +1 -1
  25. package/build/es/src/forms-v4-form-forms.meta.d.ts +2 -1
  26. package/build/es/src/forms-v4-form-forms.meta.js +21 -3
  27. package/build/es/src/forms-v4-form-forms.meta.js.map +1 -1
  28. package/build/es/src/forms-v4-form-forms.public.d.ts +12 -6
  29. package/build/es/src/forms-v4-form-forms.public.js +8 -3
  30. package/build/es/src/forms-v4-form-forms.public.js.map +1 -1
  31. package/build/es/src/forms-v4-form-forms.types.d.ts +275 -178
  32. package/build/es/src/forms-v4-form-forms.types.js +28 -28
  33. package/build/es/src/forms-v4-form-forms.types.js.map +1 -1
  34. package/build/es/src/forms-v4-form-forms.universal.d.ts +357 -184
  35. package/build/es/src/forms-v4-form-forms.universal.js +126 -39
  36. package/build/es/src/forms-v4-form-forms.universal.js.map +1 -1
  37. package/build/internal/cjs/src/forms-v4-form-forms.context.d.ts +5 -4
  38. package/build/internal/cjs/src/forms-v4-form-forms.context.js +8 -7
  39. package/build/internal/cjs/src/forms-v4-form-forms.context.js.map +1 -1
  40. package/build/internal/cjs/src/forms-v4-form-forms.http.d.ts +3 -1
  41. package/build/internal/cjs/src/forms-v4-form-forms.http.js +27 -7
  42. package/build/internal/cjs/src/forms-v4-form-forms.http.js.map +1 -1
  43. package/build/internal/cjs/src/forms-v4-form-forms.meta.d.ts +2 -1
  44. package/build/internal/cjs/src/forms-v4-form-forms.meta.js +24 -5
  45. package/build/internal/cjs/src/forms-v4-form-forms.meta.js.map +1 -1
  46. package/build/internal/cjs/src/forms-v4-form-forms.public.d.ts +12 -6
  47. package/build/internal/cjs/src/forms-v4-form-forms.public.js +12 -6
  48. package/build/internal/cjs/src/forms-v4-form-forms.public.js.map +1 -1
  49. package/build/internal/cjs/src/forms-v4-form-forms.types.d.ts +275 -178
  50. package/build/internal/cjs/src/forms-v4-form-forms.types.js +30 -30
  51. package/build/internal/cjs/src/forms-v4-form-forms.types.js.map +1 -1
  52. package/build/internal/cjs/src/forms-v4-form-forms.universal.d.ts +357 -184
  53. package/build/internal/cjs/src/forms-v4-form-forms.universal.js +131 -43
  54. package/build/internal/cjs/src/forms-v4-form-forms.universal.js.map +1 -1
  55. package/build/internal/es/src/forms-v4-form-forms.context.d.ts +5 -4
  56. package/build/internal/es/src/forms-v4-form-forms.context.js +4 -3
  57. package/build/internal/es/src/forms-v4-form-forms.context.js.map +1 -1
  58. package/build/internal/es/src/forms-v4-form-forms.http.d.ts +3 -1
  59. package/build/internal/es/src/forms-v4-form-forms.http.js +24 -5
  60. package/build/internal/es/src/forms-v4-form-forms.http.js.map +1 -1
  61. package/build/internal/es/src/forms-v4-form-forms.meta.d.ts +2 -1
  62. package/build/internal/es/src/forms-v4-form-forms.meta.js +21 -3
  63. package/build/internal/es/src/forms-v4-form-forms.meta.js.map +1 -1
  64. package/build/internal/es/src/forms-v4-form-forms.public.d.ts +12 -6
  65. package/build/internal/es/src/forms-v4-form-forms.public.js +8 -3
  66. package/build/internal/es/src/forms-v4-form-forms.public.js.map +1 -1
  67. package/build/internal/es/src/forms-v4-form-forms.types.d.ts +275 -178
  68. package/build/internal/es/src/forms-v4-form-forms.types.js +28 -28
  69. package/build/internal/es/src/forms-v4-form-forms.types.js.map +1 -1
  70. package/build/internal/es/src/forms-v4-form-forms.universal.d.ts +357 -184
  71. package/build/internal/es/src/forms-v4-form-forms.universal.js +126 -39
  72. package/build/internal/es/src/forms-v4-form-forms.universal.js.map +1 -1
  73. package/package.json +2 -2
@@ -94,24 +94,6 @@ export interface Form {
94
94
  */
95
95
  formRules?: Rule[];
96
96
  }
97
- export declare enum RequiredIndicator {
98
- /** Unknown required indicator. */
99
- UNKNOWN_INDICATOR = "UNKNOWN_INDICATOR",
100
- /** Asterisk (*). */
101
- ASTERISK = "ASTERISK",
102
- /** Text (default: "Required"). */
103
- TEXT = "TEXT",
104
- /** None. */
105
- NONE = "NONE"
106
- }
107
- export declare enum RequiredIndicatorPlacement {
108
- /** Unknown required indicator placement. */
109
- UNKNOWN_PLACEMENT = "UNKNOWN_PLACEMENT",
110
- /** After field title. */
111
- AFTER_FIELD_TITLE = "AFTER_FIELD_TITLE",
112
- /** Before field title. */
113
- BEFORE_FIELD_TITLE = "BEFORE_FIELD_TITLE"
114
- }
115
97
  export interface FormField {
116
98
  /**
117
99
  * Item ID.
@@ -934,17 +916,32 @@ export interface ButtonData {
934
916
  link?: Link;
935
917
  }
936
918
  export interface Border {
937
- /** Border width in pixels. */
919
+ /**
920
+ * Deprecated: Use `borderWidth` in `styles` instead.
921
+ * @deprecated
922
+ */
938
923
  width?: number | null;
939
- /** Border radius in pixels. */
924
+ /**
925
+ * Deprecated: Use `borderRadius` in `styles` instead.
926
+ * @deprecated
927
+ */
940
928
  radius?: number | null;
941
929
  }
942
930
  export interface Colors {
943
- /** The text color as a hexadecimal value. */
931
+ /**
932
+ * Deprecated: Use `textColor` in `styles` instead.
933
+ * @deprecated
934
+ */
944
935
  text?: string | null;
945
- /** The border color as a hexadecimal value. */
936
+ /**
937
+ * Deprecated: Use `borderColor` in `styles` instead.
938
+ * @deprecated
939
+ */
946
940
  border?: string | null;
947
- /** The background color as a hexadecimal value. */
941
+ /**
942
+ * Deprecated: Use `backgroundColor` in `styles` instead.
943
+ * @deprecated
944
+ */
948
945
  background?: string | null;
949
946
  }
950
947
  export interface PluginContainerData {
@@ -1021,10 +1018,57 @@ export declare enum ButtonDataType {
1021
1018
  ACTION = "ACTION"
1022
1019
  }
1023
1020
  export interface Styles {
1024
- /** Border attributes. */
1021
+ /**
1022
+ * Deprecated: Use `borderWidth` and `borderRadius` instead.
1023
+ * @deprecated
1024
+ */
1025
1025
  border?: Border;
1026
- /** Color attributes. */
1026
+ /**
1027
+ * Deprecated: Use `textColor`, `borderColor` and `backgroundColor` instead.
1028
+ * @deprecated
1029
+ */
1027
1030
  colors?: Colors;
1031
+ /** Border width in pixels. */
1032
+ borderWidth?: number | null;
1033
+ /**
1034
+ * Deprecated: Use `borderWidth` for normal/hover states instead.
1035
+ * @deprecated
1036
+ */
1037
+ borderWidthHover?: number | null;
1038
+ /** Border radius in pixels. */
1039
+ borderRadius?: number | null;
1040
+ /**
1041
+ * Border color as a hexadecimal value.
1042
+ * @format COLOR_HEX
1043
+ */
1044
+ borderColor?: string | null;
1045
+ /**
1046
+ * Border color as a hexadecimal value (hover state).
1047
+ * @format COLOR_HEX
1048
+ */
1049
+ borderColorHover?: string | null;
1050
+ /**
1051
+ * Text color as a hexadecimal value.
1052
+ * @format COLOR_HEX
1053
+ */
1054
+ textColor?: string | null;
1055
+ /**
1056
+ * Text color as a hexadecimal value (hover state).
1057
+ * @format COLOR_HEX
1058
+ */
1059
+ textColorHover?: string | null;
1060
+ /**
1061
+ * Background color as a hexadecimal value.
1062
+ * @format COLOR_HEX
1063
+ */
1064
+ backgroundColor?: string | null;
1065
+ /**
1066
+ * Background color as a hexadecimal value (hover state).
1067
+ * @format COLOR_HEX
1068
+ */
1069
+ backgroundColorHover?: string | null;
1070
+ /** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */
1071
+ buttonSize?: string | null;
1028
1072
  }
1029
1073
  export interface Link extends LinkDataOneOf {
1030
1074
  /** The absolute URL for the linked document. */
@@ -4430,6 +4474,24 @@ export interface RequiredIndicatorProperties {
4430
4474
  /** Required indicator placement. */
4431
4475
  requiredIndicatorPlacement?: RequiredIndicatorPlacement;
4432
4476
  }
4477
+ export declare enum RequiredIndicator {
4478
+ /** Unknown required indicator. */
4479
+ UNKNOWN_INDICATOR = "UNKNOWN_INDICATOR",
4480
+ /** Asterisk (*). */
4481
+ ASTERISK = "ASTERISK",
4482
+ /** Text (default: "Required"). */
4483
+ TEXT = "TEXT",
4484
+ /** None. */
4485
+ NONE = "NONE"
4486
+ }
4487
+ export declare enum RequiredIndicatorPlacement {
4488
+ /** Unknown required indicator placement. */
4489
+ UNKNOWN_PLACEMENT = "UNKNOWN_PLACEMENT",
4490
+ /** After field title. */
4491
+ AFTER_FIELD_TITLE = "AFTER_FIELD_TITLE",
4492
+ /** Before field title. */
4493
+ BEFORE_FIELD_TITLE = "BEFORE_FIELD_TITLE"
4494
+ }
4433
4495
  export interface SubmitSettings extends SubmitSettingsSubmitSuccessActionOptionsOneOf {
4434
4496
  /** Options for showing a thank you message after submission. */
4435
4497
  thankYouMessageOptions?: ThankYouMessageOptions;
@@ -4608,11 +4670,8 @@ export interface Condition {
4608
4670
  target?: string;
4609
4671
  /** The operator to use for comparison. */
4610
4672
  operator?: Operator;
4611
- /**
4612
- * The value to compare against.
4613
- * @maxLength 500
4614
- */
4615
- value?: string;
4673
+ /** The value to compare against. */
4674
+ value?: any;
4616
4675
  }
4617
4676
  export declare enum Operator {
4618
4677
  UNKNOWN_OPERATOR = "UNKNOWN_OPERATOR",
@@ -4716,148 +4775,6 @@ export interface FormEnabled {
4716
4775
  */
4717
4776
  namespace?: string;
4718
4777
  }
4719
- export interface DomainEvent extends DomainEventBodyOneOf {
4720
- createdEvent?: EntityCreatedEvent;
4721
- updatedEvent?: EntityUpdatedEvent;
4722
- deletedEvent?: EntityDeletedEvent;
4723
- actionEvent?: ActionEvent;
4724
- /**
4725
- * Unique event ID.
4726
- * Allows clients to ignore duplicate webhooks.
4727
- */
4728
- id?: string;
4729
- /**
4730
- * Assumes actions are also always typed to an entity_type
4731
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
4732
- */
4733
- entityFqdn?: string;
4734
- /**
4735
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
4736
- * This is although the created/updated/deleted notion is duplication of the oneof types
4737
- * Example: created/updated/deleted/started/completed/email_opened
4738
- */
4739
- slug?: string;
4740
- /** ID of the entity associated with the event. */
4741
- entityId?: string;
4742
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
4743
- eventTime?: Date | null;
4744
- /**
4745
- * Whether the event was triggered as a result of a privacy regulation application
4746
- * (for example, GDPR).
4747
- */
4748
- triggeredByAnonymizeRequest?: boolean | null;
4749
- /** If present, indicates the action that triggered the event. */
4750
- originatedFrom?: string | null;
4751
- /**
4752
- * A sequence number defining the order of updates to the underlying entity.
4753
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
4754
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
4755
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
4756
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
4757
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
4758
- */
4759
- entityEventSequence?: string | null;
4760
- }
4761
- /** @oneof */
4762
- export interface DomainEventBodyOneOf {
4763
- createdEvent?: EntityCreatedEvent;
4764
- updatedEvent?: EntityUpdatedEvent;
4765
- deletedEvent?: EntityDeletedEvent;
4766
- actionEvent?: ActionEvent;
4767
- }
4768
- export interface EntityCreatedEvent {
4769
- entityAsJson?: string;
4770
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
4771
- restoreInfo?: RestoreInfo;
4772
- }
4773
- export interface RestoreInfo {
4774
- deletedDate?: Date | null;
4775
- }
4776
- export interface EntityUpdatedEvent {
4777
- /**
4778
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
4779
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
4780
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
4781
- */
4782
- currentEntityAsJson?: string;
4783
- }
4784
- export interface EntityDeletedEvent {
4785
- /** Entity that was deleted */
4786
- deletedEntityAsJson?: string | null;
4787
- }
4788
- export interface ActionEvent {
4789
- bodyAsJson?: string;
4790
- }
4791
- export interface MessageEnvelope {
4792
- /**
4793
- * App instance ID.
4794
- * @format GUID
4795
- */
4796
- instanceId?: string | null;
4797
- /**
4798
- * Event type.
4799
- * @maxLength 150
4800
- */
4801
- eventType?: string;
4802
- /** The identification type and identity data. */
4803
- identity?: IdentificationData;
4804
- /** Stringify payload. */
4805
- data?: string;
4806
- }
4807
- export interface IdentificationData extends IdentificationDataIdOneOf {
4808
- /**
4809
- * ID of a site visitor that has not logged in to the site.
4810
- * @format GUID
4811
- */
4812
- anonymousVisitorId?: string;
4813
- /**
4814
- * ID of a site visitor that has logged in to the site.
4815
- * @format GUID
4816
- */
4817
- memberId?: string;
4818
- /**
4819
- * ID of a Wix user (site owner, contributor, etc.).
4820
- * @format GUID
4821
- */
4822
- wixUserId?: string;
4823
- /**
4824
- * ID of an app.
4825
- * @format GUID
4826
- */
4827
- appId?: string;
4828
- /** @readonly */
4829
- identityType?: WebhookIdentityType;
4830
- }
4831
- /** @oneof */
4832
- export interface IdentificationDataIdOneOf {
4833
- /**
4834
- * ID of a site visitor that has not logged in to the site.
4835
- * @format GUID
4836
- */
4837
- anonymousVisitorId?: string;
4838
- /**
4839
- * ID of a site visitor that has logged in to the site.
4840
- * @format GUID
4841
- */
4842
- memberId?: string;
4843
- /**
4844
- * ID of a Wix user (site owner, contributor, etc.).
4845
- * @format GUID
4846
- */
4847
- wixUserId?: string;
4848
- /**
4849
- * ID of an app.
4850
- * @format GUID
4851
- */
4852
- appId?: string;
4853
- }
4854
- export declare enum WebhookIdentityType {
4855
- UNKNOWN = "UNKNOWN",
4856
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
4857
- MEMBER = "MEMBER",
4858
- WIX_USER = "WIX_USER",
4859
- APP = "APP"
4860
- }
4861
4778
  export interface CreateFormRequest {
4862
4779
  /** Form to be created. */
4863
4780
  form: Form;
@@ -5169,7 +5086,7 @@ export interface CountFormsRequest {
5169
5086
  * @minLength 10
5170
5087
  * @maxLength 50
5171
5088
  */
5172
- namespace: string;
5089
+ namespace?: string;
5173
5090
  /**
5174
5091
  * Fieldsets.
5175
5092
  * @maxSize 3
@@ -5191,6 +5108,36 @@ export interface CountFormsResponse {
5191
5108
  /** Deleted forms count. Counted only if specifically requested using a fieldset. */
5192
5109
  deletedCount?: number | null;
5193
5110
  }
5111
+ export interface CountFormsByFilterRequest {
5112
+ /** Filter */
5113
+ filter?: Record<string, any> | null;
5114
+ /**
5115
+ * Namespace
5116
+ * @minLength 10
5117
+ * @maxLength 50
5118
+ * @immutable
5119
+ */
5120
+ namespace: string;
5121
+ }
5122
+ export interface CountFormsByFilterResponse {
5123
+ /** Total forms count. Includes active and disabled forms. Does not include deleted forms. */
5124
+ count?: number;
5125
+ }
5126
+ export interface CountDeletedFormsRequest {
5127
+ /** Filter */
5128
+ filter?: Record<string, any> | null;
5129
+ /**
5130
+ * Namespace
5131
+ * @minLength 10
5132
+ * @maxLength 50
5133
+ * @immutable
5134
+ */
5135
+ namespace: string;
5136
+ }
5137
+ export interface CountDeletedFormsResponse {
5138
+ /** Deleted forms count. */
5139
+ count?: number;
5140
+ }
5194
5141
  export interface ListTemplateExtensionsRequest {
5195
5142
  /**
5196
5143
  * Namespace name.
@@ -5503,6 +5450,78 @@ export interface FormProviderRestrictions {
5503
5450
  */
5504
5451
  maxDeletedFormsAmount?: number | null;
5505
5452
  }
5453
+ export interface DomainEvent extends DomainEventBodyOneOf {
5454
+ createdEvent?: EntityCreatedEvent;
5455
+ updatedEvent?: EntityUpdatedEvent;
5456
+ deletedEvent?: EntityDeletedEvent;
5457
+ actionEvent?: ActionEvent;
5458
+ /**
5459
+ * Unique event ID.
5460
+ * Allows clients to ignore duplicate webhooks.
5461
+ */
5462
+ id?: string;
5463
+ /**
5464
+ * Assumes actions are also always typed to an entity_type
5465
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
5466
+ */
5467
+ entityFqdn?: string;
5468
+ /**
5469
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
5470
+ * This is although the created/updated/deleted notion is duplication of the oneof types
5471
+ * Example: created/updated/deleted/started/completed/email_opened
5472
+ */
5473
+ slug?: string;
5474
+ /** ID of the entity associated with the event. */
5475
+ entityId?: string;
5476
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
5477
+ eventTime?: Date | null;
5478
+ /**
5479
+ * Whether the event was triggered as a result of a privacy regulation application
5480
+ * (for example, GDPR).
5481
+ */
5482
+ triggeredByAnonymizeRequest?: boolean | null;
5483
+ /** If present, indicates the action that triggered the event. */
5484
+ originatedFrom?: string | null;
5485
+ /**
5486
+ * A sequence number defining the order of updates to the underlying entity.
5487
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
5488
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
5489
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
5490
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
5491
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
5492
+ */
5493
+ entityEventSequence?: string | null;
5494
+ }
5495
+ /** @oneof */
5496
+ export interface DomainEventBodyOneOf {
5497
+ createdEvent?: EntityCreatedEvent;
5498
+ updatedEvent?: EntityUpdatedEvent;
5499
+ deletedEvent?: EntityDeletedEvent;
5500
+ actionEvent?: ActionEvent;
5501
+ }
5502
+ export interface EntityCreatedEvent {
5503
+ entityAsJson?: string;
5504
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
5505
+ restoreInfo?: RestoreInfo;
5506
+ }
5507
+ export interface RestoreInfo {
5508
+ deletedDate?: Date | null;
5509
+ }
5510
+ export interface EntityUpdatedEvent {
5511
+ /**
5512
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
5513
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
5514
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
5515
+ */
5516
+ currentEntityAsJson?: string;
5517
+ }
5518
+ export interface EntityDeletedEvent {
5519
+ /** Entity that was deleted */
5520
+ deletedEntityAsJson?: string | null;
5521
+ }
5522
+ export interface ActionEvent {
5523
+ bodyAsJson?: string;
5524
+ }
5506
5525
  export interface Empty {
5507
5526
  }
5508
5527
  export interface GetFormSummaryRequest {
@@ -5596,6 +5615,84 @@ export interface FormSummaryField {
5596
5615
  */
5597
5616
  id?: string;
5598
5617
  }
5618
+ export interface CreateMigratedFormRequest {
5619
+ /** Form to be created. */
5620
+ form?: Form;
5621
+ }
5622
+ export interface CreateMigratedFormResponse {
5623
+ /** The created form. */
5624
+ form?: Form;
5625
+ }
5626
+ export interface MessageEnvelope {
5627
+ /**
5628
+ * App instance ID.
5629
+ * @format GUID
5630
+ */
5631
+ instanceId?: string | null;
5632
+ /**
5633
+ * Event type.
5634
+ * @maxLength 150
5635
+ */
5636
+ eventType?: string;
5637
+ /** The identification type and identity data. */
5638
+ identity?: IdentificationData;
5639
+ /** Stringify payload. */
5640
+ data?: string;
5641
+ }
5642
+ export interface IdentificationData extends IdentificationDataIdOneOf {
5643
+ /**
5644
+ * ID of a site visitor that has not logged in to the site.
5645
+ * @format GUID
5646
+ */
5647
+ anonymousVisitorId?: string;
5648
+ /**
5649
+ * ID of a site visitor that has logged in to the site.
5650
+ * @format GUID
5651
+ */
5652
+ memberId?: string;
5653
+ /**
5654
+ * ID of a Wix user (site owner, contributor, etc.).
5655
+ * @format GUID
5656
+ */
5657
+ wixUserId?: string;
5658
+ /**
5659
+ * ID of an app.
5660
+ * @format GUID
5661
+ */
5662
+ appId?: string;
5663
+ /** @readonly */
5664
+ identityType?: WebhookIdentityType;
5665
+ }
5666
+ /** @oneof */
5667
+ export interface IdentificationDataIdOneOf {
5668
+ /**
5669
+ * ID of a site visitor that has not logged in to the site.
5670
+ * @format GUID
5671
+ */
5672
+ anonymousVisitorId?: string;
5673
+ /**
5674
+ * ID of a site visitor that has logged in to the site.
5675
+ * @format GUID
5676
+ */
5677
+ memberId?: string;
5678
+ /**
5679
+ * ID of a Wix user (site owner, contributor, etc.).
5680
+ * @format GUID
5681
+ */
5682
+ wixUserId?: string;
5683
+ /**
5684
+ * ID of an app.
5685
+ * @format GUID
5686
+ */
5687
+ appId?: string;
5688
+ }
5689
+ export declare enum WebhookIdentityType {
5690
+ UNKNOWN = "UNKNOWN",
5691
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
5692
+ MEMBER = "MEMBER",
5693
+ WIX_USER = "WIX_USER",
5694
+ APP = "APP"
5695
+ }
5599
5696
  interface StringTypePhoneConstraintsNonNullableFields {
5600
5697
  allowedCountryCodes: string[];
5601
5698
  }
@@ -6367,7 +6464,6 @@ interface OrConditionNonNullableFields {
6367
6464
  interface ConditionNonNullableFields {
6368
6465
  target: string;
6369
6466
  operator: Operator;
6370
- value: string;
6371
6467
  }
6372
6468
  interface ConditionNodeNonNullableFields {
6373
6469
  and?: AndConditionNonNullableFields;
@@ -6459,10 +6555,11 @@ export interface RestoreFromTrashBinResponseNonNullableFields {
6459
6555
  export interface QueryFormsResponseNonNullableFields {
6460
6556
  forms: FormNonNullableFields[];
6461
6557
  }
6462
- export interface CountFormsResponseNonNullableFields {
6463
- totalCount: number;
6464
- activeCount: number;
6465
- disabledCount: number;
6558
+ export interface CountFormsByFilterResponseNonNullableFields {
6559
+ count: number;
6560
+ }
6561
+ export interface CountDeletedFormsResponseNonNullableFields {
6562
+ count: number;
6466
6563
  }
6467
6564
  export interface ListFormsResponseNonNullableFields {
6468
6565
  forms: FormNonNullableFields[];
@@ -1,23 +1,3 @@
1
- export var RequiredIndicator;
2
- (function (RequiredIndicator) {
3
- /** Unknown required indicator. */
4
- RequiredIndicator["UNKNOWN_INDICATOR"] = "UNKNOWN_INDICATOR";
5
- /** Asterisk (*). */
6
- RequiredIndicator["ASTERISK"] = "ASTERISK";
7
- /** Text (default: "Required"). */
8
- RequiredIndicator["TEXT"] = "TEXT";
9
- /** None. */
10
- RequiredIndicator["NONE"] = "NONE";
11
- })(RequiredIndicator || (RequiredIndicator = {}));
12
- export var RequiredIndicatorPlacement;
13
- (function (RequiredIndicatorPlacement) {
14
- /** Unknown required indicator placement. */
15
- RequiredIndicatorPlacement["UNKNOWN_PLACEMENT"] = "UNKNOWN_PLACEMENT";
16
- /** After field title. */
17
- RequiredIndicatorPlacement["AFTER_FIELD_TITLE"] = "AFTER_FIELD_TITLE";
18
- /** Before field title. */
19
- RequiredIndicatorPlacement["BEFORE_FIELD_TITLE"] = "BEFORE_FIELD_TITLE";
20
- })(RequiredIndicatorPlacement || (RequiredIndicatorPlacement = {}));
21
1
  export var StringTypeFormatEnumFormat;
22
2
  (function (StringTypeFormatEnumFormat) {
23
3
  StringTypeFormatEnumFormat["UNDEFINED"] = "UNDEFINED";
@@ -747,6 +727,26 @@ export var SpamFilterProtectionLevel;
747
727
  /** Spam filter operates in advanced mode. Form is open to low risk of spam submissions. */
748
728
  SpamFilterProtectionLevel["ADVANCED"] = "ADVANCED";
749
729
  })(SpamFilterProtectionLevel || (SpamFilterProtectionLevel = {}));
730
+ export var RequiredIndicator;
731
+ (function (RequiredIndicator) {
732
+ /** Unknown required indicator. */
733
+ RequiredIndicator["UNKNOWN_INDICATOR"] = "UNKNOWN_INDICATOR";
734
+ /** Asterisk (*). */
735
+ RequiredIndicator["ASTERISK"] = "ASTERISK";
736
+ /** Text (default: "Required"). */
737
+ RequiredIndicator["TEXT"] = "TEXT";
738
+ /** None. */
739
+ RequiredIndicator["NONE"] = "NONE";
740
+ })(RequiredIndicator || (RequiredIndicator = {}));
741
+ export var RequiredIndicatorPlacement;
742
+ (function (RequiredIndicatorPlacement) {
743
+ /** Unknown required indicator placement. */
744
+ RequiredIndicatorPlacement["UNKNOWN_PLACEMENT"] = "UNKNOWN_PLACEMENT";
745
+ /** After field title. */
746
+ RequiredIndicatorPlacement["AFTER_FIELD_TITLE"] = "AFTER_FIELD_TITLE";
747
+ /** Before field title. */
748
+ RequiredIndicatorPlacement["BEFORE_FIELD_TITLE"] = "BEFORE_FIELD_TITLE";
749
+ })(RequiredIndicatorPlacement || (RequiredIndicatorPlacement = {}));
750
750
  export var Target;
751
751
  (function (Target) {
752
752
  /** Unknown target. */
@@ -814,14 +814,6 @@ export var Operator;
814
814
  Operator["IS_DATE_NEWER_THAN"] = "IS_DATE_NEWER_THAN";
815
815
  Operator["IS_DATE_NEWER_THAN_OR_EQUAL"] = "IS_DATE_NEWER_THAN_OR_EQUAL";
816
816
  })(Operator || (Operator = {}));
817
- export var WebhookIdentityType;
818
- (function (WebhookIdentityType) {
819
- WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
820
- WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
821
- WebhookIdentityType["MEMBER"] = "MEMBER";
822
- WebhookIdentityType["WIX_USER"] = "WIX_USER";
823
- WebhookIdentityType["APP"] = "APP";
824
- })(WebhookIdentityType || (WebhookIdentityType = {}));
825
817
  export var Fieldset;
826
818
  (function (Fieldset) {
827
819
  Fieldset["UNKNOWN"] = "UNKNOWN";
@@ -912,4 +904,12 @@ export var FieldInputType;
912
904
  FieldInputType["LANGUAGE"] = "LANGUAGE";
913
905
  FieldInputType["DATE_OPTIONAL_TIME"] = "DATE_OPTIONAL_TIME";
914
906
  })(FieldInputType || (FieldInputType = {}));
907
+ export var WebhookIdentityType;
908
+ (function (WebhookIdentityType) {
909
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
910
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
911
+ WebhookIdentityType["MEMBER"] = "MEMBER";
912
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
913
+ WebhookIdentityType["APP"] = "APP";
914
+ })(WebhookIdentityType || (WebhookIdentityType = {}));
915
915
  //# sourceMappingURL=forms-v4-form-forms.types.js.map