@wix/forms 1.0.184 → 1.0.186

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.
@@ -2751,14 +2751,6 @@ interface InputFieldMultilineAddressComponentTypeOptionsOneOf$1 {
2751
2751
  /** Multiline address input field. */
2752
2752
  multilineAddressOptions?: MultilineAddress$1;
2753
2753
  }
2754
- interface Header$1 {
2755
- /** Content of the header */
2756
- content?: RichContent$1;
2757
- }
2758
- interface RichText$1 {
2759
- /** Content of the rich text field */
2760
- content?: RichContent$1;
2761
- }
2762
2754
  declare enum Target$1 {
2763
2755
  /** Undefined target. */
2764
2756
  UNDEFINED = "UNDEFINED",
@@ -2849,11 +2841,25 @@ interface InputFieldInputTypeOptionsOneOf$1 {
2849
2841
  /** Input returns multiline address as value. */
2850
2842
  multilineAddressOptions?: InputFieldMultilineAddress$1;
2851
2843
  }
2852
- interface DisplayField$1 extends DisplayFieldComponentTypeOneOf$1 {
2844
+ /** Copy of the entity existing in form template project, needed to hide translations. */
2845
+ interface DisplayField$1 extends DisplayFieldDisplayFieldTypeOptionsOneOf$1, DisplayFieldComponentTypeOneOf$1 {
2846
+ /** Component displaying rich content */
2847
+ richContentOptions?: RichContentOptions$1;
2848
+ /** Page navigation component resolving as navigation or submit buttons */
2849
+ pageNavigationOptions?: PageNavigationOptions$1;
2853
2850
  /** Header field */
2854
2851
  header?: Header$1;
2855
2852
  /** Rich text field */
2856
2853
  richText?: RichText$1;
2854
+ /** Type of the display field */
2855
+ displayFieldType?: DisplayFieldType$1;
2856
+ }
2857
+ /** @oneof */
2858
+ interface DisplayFieldDisplayFieldTypeOptionsOneOf$1 {
2859
+ /** Component displaying rich content */
2860
+ richContentOptions?: RichContentOptions$1;
2861
+ /** Page navigation component resolving as navigation or submit buttons */
2862
+ pageNavigationOptions?: PageNavigationOptions$1;
2857
2863
  }
2858
2864
  /** @oneof */
2859
2865
  interface DisplayFieldComponentTypeOneOf$1 {
@@ -2862,6 +2868,31 @@ interface DisplayFieldComponentTypeOneOf$1 {
2862
2868
  /** Rich text field */
2863
2869
  richText?: RichText$1;
2864
2870
  }
2871
+ declare enum DisplayFieldType$1 {
2872
+ UNKNOWN_FIELD_TYPE = "UNKNOWN_FIELD_TYPE",
2873
+ RICH_CONTENT = "RICH_CONTENT",
2874
+ PAGE_NAVIGATION = "PAGE_NAVIGATION"
2875
+ }
2876
+ interface RichContentOptions$1 {
2877
+ /** Content of the header */
2878
+ richContent?: RichContent$1;
2879
+ }
2880
+ interface PageNavigationOptions$1 {
2881
+ /** When button is not on last page it behaves as switch between pages page, text of label to go to next page. */
2882
+ nextPageText?: string | null;
2883
+ /** When button is not on last page it behaves as switch between pages page, text of label to go to previous page. */
2884
+ previousPageText?: string | null;
2885
+ /** Text on the button when button is submitting a form */
2886
+ submitText?: string | null;
2887
+ }
2888
+ interface Header$1 {
2889
+ /** Content of the header */
2890
+ content?: RichContent$1;
2891
+ }
2892
+ interface RichText$1 {
2893
+ /** Content of the rich text field */
2894
+ content?: RichContent$1;
2895
+ }
2865
2896
  interface SubmitButton$1 extends SubmitButtonSubmitActionOneOf$1 {
2866
2897
  /**
2867
2898
  * Submit action effect is to show message
@@ -3552,6 +3583,67 @@ interface FormProviderRestrictions$1 {
3552
3583
  /** Maximum amount of deleted forms allowed per namespace. */
3553
3584
  maxDeletedFormsAmount?: number | null;
3554
3585
  }
3586
+ interface GetFormSummaryRequest$1 {
3587
+ /** Id of the form to retrieve. */
3588
+ formId: string;
3589
+ }
3590
+ interface GetFormSummaryResponse$1 {
3591
+ /** The retrieved form field summary. */
3592
+ formSummary?: FormSummary$1;
3593
+ }
3594
+ interface FormSummary$1 {
3595
+ /** Form ID. */
3596
+ id?: string;
3597
+ /** Summarized form fields. */
3598
+ fields?: Field$1[];
3599
+ }
3600
+ declare enum FieldInputType$1 {
3601
+ UNKNOWN_INPUT_TYPE = "UNKNOWN_INPUT_TYPE",
3602
+ STRING = "STRING",
3603
+ NUMBER = "NUMBER",
3604
+ RATING = "RATING",
3605
+ BOOLEAN = "BOOLEAN",
3606
+ ARRAY = "ARRAY",
3607
+ OBJECT = "OBJECT",
3608
+ WIX_FILE = "WIX_FILE",
3609
+ SIGNATURE = "SIGNATURE",
3610
+ PAYMENT = "PAYMENT",
3611
+ MULTILINE_ADDRESS = "MULTILINE_ADDRESS",
3612
+ DATE = "DATE",
3613
+ TIME = "TIME",
3614
+ DATE_TIME = "DATE_TIME",
3615
+ EMAIL = "EMAIL",
3616
+ URL = "URL",
3617
+ UUID = "UUID",
3618
+ PHONE = "PHONE",
3619
+ URI = "URI",
3620
+ HOSTNAME = "HOSTNAME",
3621
+ COLOR_HEX = "COLOR_HEX",
3622
+ CURRENCY = "CURRENCY",
3623
+ LANGUAGE = "LANGUAGE",
3624
+ DATE_OPTIONAL_TIME = "DATE_OPTIONAL_TIME"
3625
+ }
3626
+ interface FieldOption$1 {
3627
+ /** Selectable option label */
3628
+ label?: string | null;
3629
+ /** Selectable option value, which is saved to DB. */
3630
+ value?: string | null;
3631
+ }
3632
+ interface Field$1 {
3633
+ /** Definition of a target where the value of field belongs. */
3634
+ target?: string | null;
3635
+ /** Label of the field */
3636
+ label?: string | null;
3637
+ /** Input type of the field */
3638
+ type?: FieldInputType$1;
3639
+ /** List of options to select from */
3640
+ options?: FieldOption$1[];
3641
+ /**
3642
+ * Flag indicating whether field is deleted.
3643
+ * Default: false.
3644
+ */
3645
+ deleted?: boolean;
3646
+ }
3555
3647
  interface PhoneConstraintsNonNullableFields$1 {
3556
3648
  allowedCountryCodes: string[];
3557
3649
  }
@@ -4101,6 +4193,9 @@ interface InputFieldNonNullableFields$1 {
4101
4193
  contactMapping?: FormFieldContactInfoNonNullableFields$1;
4102
4194
  readOnly: boolean;
4103
4195
  }
4196
+ interface RichContentOptionsNonNullableFields$1 {
4197
+ richContent?: RichContentNonNullableFields$1;
4198
+ }
4104
4199
  interface HeaderNonNullableFields$1 {
4105
4200
  content?: RichContentNonNullableFields$1;
4106
4201
  }
@@ -4108,8 +4203,10 @@ interface RichTextNonNullableFields$1 {
4108
4203
  content?: RichContentNonNullableFields$1;
4109
4204
  }
4110
4205
  interface DisplayFieldNonNullableFields$1 {
4206
+ richContentOptions?: RichContentOptionsNonNullableFields$1;
4111
4207
  header?: HeaderNonNullableFields$1;
4112
4208
  richText?: RichTextNonNullableFields$1;
4209
+ displayFieldType: DisplayFieldType$1;
4113
4210
  }
4114
4211
  interface ThankYouMessageNonNullableFields$1 {
4115
4212
  text?: RichContentNonNullableFields$1;
@@ -4289,6 +4386,17 @@ interface FormsSchemaProvidersConfigNonNullableFields$1 {
4289
4386
  interface ListFormsProvidersConfigsResponseNonNullableFields$1 {
4290
4387
  configs: FormsSchemaProvidersConfigNonNullableFields$1[];
4291
4388
  }
4389
+ interface FieldNonNullableFields$1 {
4390
+ type: FieldInputType$1;
4391
+ deleted: boolean;
4392
+ }
4393
+ interface FormSummaryNonNullableFields$1 {
4394
+ id: string;
4395
+ fields: FieldNonNullableFields$1[];
4396
+ }
4397
+ interface GetFormSummaryResponseNonNullableFields$1 {
4398
+ formSummary?: FormSummaryNonNullableFields$1;
4399
+ }
4292
4400
 
4293
4401
  interface Form {
4294
4402
  /**
@@ -7020,14 +7128,6 @@ interface InputFieldMultilineAddressComponentTypeOptionsOneOf {
7020
7128
  /** Multiline address input field. */
7021
7129
  multilineAddressOptions?: MultilineAddress;
7022
7130
  }
7023
- interface Header {
7024
- /** Content of the header */
7025
- content?: RichContent;
7026
- }
7027
- interface RichText {
7028
- /** Content of the rich text field */
7029
- content?: RichContent;
7030
- }
7031
7131
  declare enum Target {
7032
7132
  /** Undefined target. */
7033
7133
  UNDEFINED = "UNDEFINED",
@@ -7118,11 +7218,25 @@ interface InputFieldInputTypeOptionsOneOf {
7118
7218
  /** Input returns multiline address as value. */
7119
7219
  multilineAddressOptions?: InputFieldMultilineAddress;
7120
7220
  }
7121
- interface DisplayField extends DisplayFieldComponentTypeOneOf {
7221
+ /** Copy of the entity existing in form template project, needed to hide translations. */
7222
+ interface DisplayField extends DisplayFieldDisplayFieldTypeOptionsOneOf, DisplayFieldComponentTypeOneOf {
7223
+ /** Component displaying rich content */
7224
+ richContentOptions?: RichContentOptions;
7225
+ /** Page navigation component resolving as navigation or submit buttons */
7226
+ pageNavigationOptions?: PageNavigationOptions;
7122
7227
  /** Header field */
7123
7228
  header?: Header;
7124
7229
  /** Rich text field */
7125
7230
  richText?: RichText;
7231
+ /** Type of the display field */
7232
+ displayFieldType?: DisplayFieldType;
7233
+ }
7234
+ /** @oneof */
7235
+ interface DisplayFieldDisplayFieldTypeOptionsOneOf {
7236
+ /** Component displaying rich content */
7237
+ richContentOptions?: RichContentOptions;
7238
+ /** Page navigation component resolving as navigation or submit buttons */
7239
+ pageNavigationOptions?: PageNavigationOptions;
7126
7240
  }
7127
7241
  /** @oneof */
7128
7242
  interface DisplayFieldComponentTypeOneOf {
@@ -7131,6 +7245,31 @@ interface DisplayFieldComponentTypeOneOf {
7131
7245
  /** Rich text field */
7132
7246
  richText?: RichText;
7133
7247
  }
7248
+ declare enum DisplayFieldType {
7249
+ UNKNOWN_FIELD_TYPE = "UNKNOWN_FIELD_TYPE",
7250
+ RICH_CONTENT = "RICH_CONTENT",
7251
+ PAGE_NAVIGATION = "PAGE_NAVIGATION"
7252
+ }
7253
+ interface RichContentOptions {
7254
+ /** Content of the header */
7255
+ richContent?: RichContent;
7256
+ }
7257
+ interface PageNavigationOptions {
7258
+ /** When button is not on last page it behaves as switch between pages page, text of label to go to next page. */
7259
+ nextPageText?: string | null;
7260
+ /** When button is not on last page it behaves as switch between pages page, text of label to go to previous page. */
7261
+ previousPageText?: string | null;
7262
+ /** Text on the button when button is submitting a form */
7263
+ submitText?: string | null;
7264
+ }
7265
+ interface Header {
7266
+ /** Content of the header */
7267
+ content?: RichContent;
7268
+ }
7269
+ interface RichText {
7270
+ /** Content of the rich text field */
7271
+ content?: RichContent;
7272
+ }
7134
7273
  interface SubmitButton extends SubmitButtonSubmitActionOneOf {
7135
7274
  /**
7136
7275
  * Submit action effect is to show message
@@ -7821,6 +7960,67 @@ interface FormProviderRestrictions {
7821
7960
  /** Maximum amount of deleted forms allowed per namespace. */
7822
7961
  maxDeletedFormsAmount?: number | null;
7823
7962
  }
7963
+ interface GetFormSummaryRequest {
7964
+ /** Id of the form to retrieve. */
7965
+ formId: string;
7966
+ }
7967
+ interface GetFormSummaryResponse {
7968
+ /** The retrieved form field summary. */
7969
+ formSummary?: FormSummary;
7970
+ }
7971
+ interface FormSummary {
7972
+ /** Form ID. */
7973
+ _id?: string;
7974
+ /** Summarized form fields. */
7975
+ fields?: Field[];
7976
+ }
7977
+ declare enum FieldInputType {
7978
+ UNKNOWN_INPUT_TYPE = "UNKNOWN_INPUT_TYPE",
7979
+ STRING = "STRING",
7980
+ NUMBER = "NUMBER",
7981
+ RATING = "RATING",
7982
+ BOOLEAN = "BOOLEAN",
7983
+ ARRAY = "ARRAY",
7984
+ OBJECT = "OBJECT",
7985
+ WIX_FILE = "WIX_FILE",
7986
+ SIGNATURE = "SIGNATURE",
7987
+ PAYMENT = "PAYMENT",
7988
+ MULTILINE_ADDRESS = "MULTILINE_ADDRESS",
7989
+ DATE = "DATE",
7990
+ TIME = "TIME",
7991
+ DATE_TIME = "DATE_TIME",
7992
+ EMAIL = "EMAIL",
7993
+ URL = "URL",
7994
+ UUID = "UUID",
7995
+ PHONE = "PHONE",
7996
+ URI = "URI",
7997
+ HOSTNAME = "HOSTNAME",
7998
+ COLOR_HEX = "COLOR_HEX",
7999
+ CURRENCY = "CURRENCY",
8000
+ LANGUAGE = "LANGUAGE",
8001
+ DATE_OPTIONAL_TIME = "DATE_OPTIONAL_TIME"
8002
+ }
8003
+ interface FieldOption {
8004
+ /** Selectable option label */
8005
+ label?: string | null;
8006
+ /** Selectable option value, which is saved to DB. */
8007
+ value?: string | null;
8008
+ }
8009
+ interface Field {
8010
+ /** Definition of a target where the value of field belongs. */
8011
+ target?: string | null;
8012
+ /** Label of the field */
8013
+ label?: string | null;
8014
+ /** Input type of the field */
8015
+ type?: FieldInputType;
8016
+ /** List of options to select from */
8017
+ options?: FieldOption[];
8018
+ /**
8019
+ * Flag indicating whether field is deleted.
8020
+ * Default: false.
8021
+ */
8022
+ deleted?: boolean;
8023
+ }
7824
8024
  interface PhoneConstraintsNonNullableFields {
7825
8025
  allowedCountryCodes: string[];
7826
8026
  }
@@ -8364,6 +8564,9 @@ interface InputFieldNonNullableFields {
8364
8564
  contactMapping?: FormFieldContactInfoNonNullableFields;
8365
8565
  readOnly: boolean;
8366
8566
  }
8567
+ interface RichContentOptionsNonNullableFields {
8568
+ richContent?: RichContentNonNullableFields;
8569
+ }
8367
8570
  interface HeaderNonNullableFields {
8368
8571
  content?: RichContentNonNullableFields;
8369
8572
  }
@@ -8371,8 +8574,10 @@ interface RichTextNonNullableFields {
8371
8574
  content?: RichContentNonNullableFields;
8372
8575
  }
8373
8576
  interface DisplayFieldNonNullableFields {
8577
+ richContentOptions?: RichContentOptionsNonNullableFields;
8374
8578
  header?: HeaderNonNullableFields;
8375
8579
  richText?: RichTextNonNullableFields;
8580
+ displayFieldType: DisplayFieldType;
8376
8581
  }
8377
8582
  interface ThankYouMessageNonNullableFields {
8378
8583
  text?: RichContentNonNullableFields;
@@ -8552,6 +8757,17 @@ interface FormsSchemaProvidersConfigNonNullableFields {
8552
8757
  interface ListFormsProvidersConfigsResponseNonNullableFields {
8553
8758
  configs: FormsSchemaProvidersConfigNonNullableFields[];
8554
8759
  }
8760
+ interface FieldNonNullableFields {
8761
+ type: FieldInputType;
8762
+ deleted: boolean;
8763
+ }
8764
+ interface FormSummaryNonNullableFields {
8765
+ _id: string;
8766
+ fields: FieldNonNullableFields[];
8767
+ }
8768
+ interface GetFormSummaryResponseNonNullableFields {
8769
+ formSummary?: FormSummaryNonNullableFields;
8770
+ }
8555
8771
 
8556
8772
  type __PublicMethodMetaInfo$2<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
8557
8773
  getUrl: (context: any) => string;
@@ -8597,6 +8813,9 @@ declare function updateExtendedFields$1(): __PublicMethodMetaInfo$2<'POST', {
8597
8813
  id: string;
8598
8814
  }, UpdateExtendedFieldsRequest$2, UpdateExtendedFieldsRequest$3, UpdateExtendedFieldsResponse$2 & UpdateExtendedFieldsResponseNonNullableFields$2, UpdateExtendedFieldsResponse$3 & UpdateExtendedFieldsResponseNonNullableFields$3>;
8599
8815
  declare function listFormsProvidersConfigs(): __PublicMethodMetaInfo$2<'GET', {}, ListFormsProvidersConfigsRequest, ListFormsProvidersConfigsRequest$1, ListFormsProvidersConfigsResponse & ListFormsProvidersConfigsResponseNonNullableFields, ListFormsProvidersConfigsResponse$1 & ListFormsProvidersConfigsResponseNonNullableFields$1>;
8816
+ declare function getFormSummary(): __PublicMethodMetaInfo$2<'GET', {
8817
+ formId: string;
8818
+ }, GetFormSummaryRequest, GetFormSummaryRequest$1, GetFormSummaryResponse & GetFormSummaryResponseNonNullableFields, GetFormSummaryResponse$1 & GetFormSummaryResponseNonNullableFields$1>;
8600
8819
 
8601
8820
  declare const meta$2_bulkCreateForm: typeof bulkCreateForm;
8602
8821
  declare const meta$2_bulkRemoveDeletedField: typeof bulkRemoveDeletedField;
@@ -8606,6 +8825,7 @@ declare const meta$2_createForm: typeof createForm;
8606
8825
  declare const meta$2_deleteForm: typeof deleteForm;
8607
8826
  declare const meta$2_getDeletedForm: typeof getDeletedForm;
8608
8827
  declare const meta$2_getForm: typeof getForm;
8828
+ declare const meta$2_getFormSummary: typeof getFormSummary;
8609
8829
  declare const meta$2_listDeletedForms: typeof listDeletedForms;
8610
8830
  declare const meta$2_listForms: typeof listForms;
8611
8831
  declare const meta$2_listFormsProvidersConfigs: typeof listFormsProvidersConfigs;
@@ -8616,7 +8836,7 @@ declare const meta$2_removeFormFromTrashBin: typeof removeFormFromTrashBin;
8616
8836
  declare const meta$2_restoreFromTrashBin: typeof restoreFromTrashBin;
8617
8837
  declare const meta$2_updateForm: typeof updateForm;
8618
8838
  declare namespace meta$2 {
8619
- export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_bulkCreateForm as bulkCreateForm, meta$2_bulkRemoveDeletedField as bulkRemoveDeletedField, meta$2_cloneForm as cloneForm, meta$2_countForms as countForms, meta$2_createForm as createForm, meta$2_deleteForm as deleteForm, meta$2_getDeletedForm as getDeletedForm, meta$2_getForm as getForm, meta$2_listDeletedForms as listDeletedForms, meta$2_listForms as listForms, meta$2_listFormsProvidersConfigs as listFormsProvidersConfigs, meta$2_listTemplateExtensions as listTemplateExtensions, meta$2_queryDeletedForms as queryDeletedForms, meta$2_queryForms as queryForms, meta$2_removeFormFromTrashBin as removeFormFromTrashBin, meta$2_restoreFromTrashBin as restoreFromTrashBin, updateExtendedFields$1 as updateExtendedFields, meta$2_updateForm as updateForm };
8839
+ export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_bulkCreateForm as bulkCreateForm, meta$2_bulkRemoveDeletedField as bulkRemoveDeletedField, meta$2_cloneForm as cloneForm, meta$2_countForms as countForms, meta$2_createForm as createForm, meta$2_deleteForm as deleteForm, meta$2_getDeletedForm as getDeletedForm, meta$2_getForm as getForm, meta$2_getFormSummary as getFormSummary, meta$2_listDeletedForms as listDeletedForms, meta$2_listForms as listForms, meta$2_listFormsProvidersConfigs as listFormsProvidersConfigs, meta$2_listTemplateExtensions as listTemplateExtensions, meta$2_queryDeletedForms as queryDeletedForms, meta$2_queryForms as queryForms, meta$2_removeFormFromTrashBin as removeFormFromTrashBin, meta$2_restoreFromTrashBin as restoreFromTrashBin, updateExtendedFields$1 as updateExtendedFields, meta$2_updateForm as updateForm };
8620
8840
  }
8621
8841
 
8622
8842
  /**