@wix/forms 1.0.61 → 1.0.63

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.
@@ -120,7 +120,7 @@ export interface OrderDetails {
120
120
  * ID of the order related to submission (applicable if form has payments added).
121
121
  * @readonly
122
122
  */
123
- _id?: string;
123
+ orderId?: string | null;
124
124
  /**
125
125
  * Order number.
126
126
  * @readonly
@@ -130,12 +130,17 @@ export interface OrderDetails {
130
130
  * Currency.
131
131
  * @readonly
132
132
  */
133
- currency?: string;
133
+ currency?: string | null;
134
134
  /**
135
135
  * Item subtotal.
136
136
  * @readonly
137
137
  */
138
138
  itemSubtotal?: string;
139
+ /**
140
+ * ID of the checkout related to submission (applicable if form has payments added).
141
+ * @readonly
142
+ */
143
+ checkoutId?: string;
139
144
  }
140
145
  export interface CreateCheckoutFromSubmissionRequest extends CreateCheckoutFromSubmissionRequestFormSchemaIdentifierOneOf {
141
146
  /** Submission's form. */
@@ -617,7 +622,7 @@ export interface TextInput {
617
622
  /** Label of the field */
618
623
  label?: string | null;
619
624
  /** Description of the field */
620
- description?: any;
625
+ description?: RichContent;
621
626
  /** Placeholder for the value input */
622
627
  placeholder?: string | null;
623
628
  /**
@@ -626,6 +631,14 @@ export interface TextInput {
626
631
  */
627
632
  showLabel?: boolean | null;
628
633
  }
634
+ export interface RichContent {
635
+ /** Node objects representing a rich content document. */
636
+ nodes?: Node[];
637
+ /** Object metadata. */
638
+ metadata?: Metadata;
639
+ /** Global styling for header, paragraph, block quote, and code block nodes in the object. */
640
+ documentStyle?: DocumentStyle;
641
+ }
629
642
  export interface Node extends NodeDataOneOf {
630
643
  /** Data for a button node. */
631
644
  buttonData?: ButtonData;
@@ -1810,7 +1823,7 @@ export interface RadioGroup {
1810
1823
  /** Label of the field */
1811
1824
  label?: string | null;
1812
1825
  /** Description of the field */
1813
- description?: any;
1826
+ description?: RichContent;
1814
1827
  /**
1815
1828
  * Flag identifying to show option allowing input custom value
1816
1829
  * List of options to select from
@@ -1844,7 +1857,7 @@ export interface Dropdown {
1844
1857
  /** Label of the field */
1845
1858
  label?: string | null;
1846
1859
  /** Description of the field */
1847
- description?: any;
1860
+ description?: RichContent;
1848
1861
  /** List of options to select from */
1849
1862
  options?: DropdownOption[];
1850
1863
  /**
@@ -1883,7 +1896,7 @@ export interface DateTimeInput extends DateTimeInputDateTimeInputTypeOptionsOneO
1883
1896
  /** Label of the field. Displayed text for the date/time input. */
1884
1897
  label?: string | null;
1885
1898
  /** Description of the field. Additional information about the date/time input. */
1886
- description?: any;
1899
+ description?: RichContent;
1887
1900
  /**
1888
1901
  * Flag identifying whether to show or hide the label.
1889
1902
  * Default: true
@@ -1967,7 +1980,7 @@ export interface NumberInput {
1967
1980
  /** Label of the field */
1968
1981
  label?: string | null;
1969
1982
  /** Description of the field */
1970
- description?: any;
1983
+ description?: RichContent;
1971
1984
  /** Placeholder for the value input */
1972
1985
  placeholder?: string | null;
1973
1986
  /**
@@ -1992,7 +2005,7 @@ export declare enum BooleanComponentType {
1992
2005
  }
1993
2006
  export interface Checkbox {
1994
2007
  /** Label of the field */
1995
- label?: any;
2008
+ label?: RichContent;
1996
2009
  }
1997
2010
  export interface InputFieldArrayType {
1998
2011
  /** Maximum amount of array elements. */
@@ -2116,7 +2129,7 @@ export interface CheckboxGroup {
2116
2129
  /** Label of the field */
2117
2130
  label?: string | null;
2118
2131
  /** Description of the field */
2119
- description?: any;
2132
+ description?: RichContent;
2120
2133
  /** List of options to select from */
2121
2134
  options?: Option[];
2122
2135
  /**
@@ -2162,7 +2175,7 @@ export interface FileUpload {
2162
2175
  /** Selectable option label */
2163
2176
  label?: string | null;
2164
2177
  /** Description of the field */
2165
- description?: any;
2178
+ description?: RichContent;
2166
2179
  /**
2167
2180
  * Flag identifying to hide or not label
2168
2181
  * Default: true
@@ -2196,7 +2209,7 @@ export interface ProductCheckboxGroup {
2196
2209
  /** Label of the field. */
2197
2210
  label?: string | null;
2198
2211
  /** Description of the field. */
2199
- description?: any;
2212
+ description?: RichContent;
2200
2213
  /** List of options to select from. */
2201
2214
  options?: ProductCheckboxGroupOption[];
2202
2215
  }
@@ -2337,11 +2350,11 @@ export interface PaymentComponentTypeOptionsOneOf {
2337
2350
  }
2338
2351
  export interface Header {
2339
2352
  /** Content of the header */
2340
- content?: any;
2353
+ content?: RichContent;
2341
2354
  }
2342
2355
  export interface RichText {
2343
2356
  /** Content of the rich text field */
2344
- content?: any;
2357
+ content?: RichContent;
2345
2358
  }
2346
2359
  export declare enum Target {
2347
2360
  UNDEFINED = "UNDEFINED",
@@ -2352,7 +2365,7 @@ export declare enum Target {
2352
2365
  }
2353
2366
  export interface ThankYouMessage {
2354
2367
  /** Message show after form submission */
2355
- text?: any;
2368
+ text?: RichContent;
2356
2369
  /**
2357
2370
  * Duration after how much second it should disappear. If 0, will stay forever.
2358
2371
  * Default: false
@@ -2791,6 +2804,8 @@ export interface CreateSubmissionResponse {
2791
2804
  export interface CreateSubmissionBySubmitterRequest {
2792
2805
  /** Submission to create. */
2793
2806
  submission?: FormSubmission;
2807
+ /** A flag indicating whether this operation is a repeated creation, such as restoring a previously manually reported as spam entity. */
2808
+ repeatedCreation?: boolean;
2794
2809
  }
2795
2810
  export interface CreateSubmissionBySubmitterResponse {
2796
2811
  /** The created submission. */
@@ -2801,10 +2816,21 @@ export interface CreateSubmissionBySubmitterResponse {
2801
2816
  export interface BulkCreateSubmissionBySubmitterRequest {
2802
2817
  /** Form id. Restricts submissions creation for a single form. */
2803
2818
  formId?: string;
2804
- /** Submissions to create. */
2819
+ /**
2820
+ * Submissions to create.
2821
+ * Deprecated
2822
+ */
2805
2823
  submissions?: FormSubmission[];
2806
2824
  /** When set, items will be returned on successful create. */
2807
2825
  returnEntity?: boolean;
2826
+ /** Submissions data to create. */
2827
+ submissionsV2?: BulkCreateSubmissionBySubmitterData[];
2828
+ }
2829
+ export interface BulkCreateSubmissionBySubmitterData {
2830
+ /** Submissions to create. */
2831
+ submission?: FormSubmission;
2832
+ /** A flag indicating whether this operation is a repeated creation, such as restoring a previously manually reported as spam entity. */
2833
+ repeatedCreation?: boolean;
2808
2834
  }
2809
2835
  export interface BulkCreateSubmissionBySubmitterResponse {
2810
2836
  /** Created submissions with metadata */
@@ -3154,9 +3180,8 @@ export interface CreateSubmissionResponseNonNullableFields {
3154
3180
  status: SubmissionStatus;
3155
3181
  seen: boolean;
3156
3182
  orderDetails?: {
3157
- _id: string;
3158
- currency: string;
3159
3183
  itemSubtotal: string;
3184
+ checkoutId: string;
3160
3185
  };
3161
3186
  };
3162
3187
  }
@@ -3167,9 +3192,8 @@ export interface GetSubmissionResponseNonNullableFields {
3167
3192
  status: SubmissionStatus;
3168
3193
  seen: boolean;
3169
3194
  orderDetails?: {
3170
- _id: string;
3171
- currency: string;
3172
3195
  itemSubtotal: string;
3196
+ checkoutId: string;
3173
3197
  };
3174
3198
  };
3175
3199
  }
@@ -3180,9 +3204,8 @@ export interface UpdateSubmissionResponseNonNullableFields {
3180
3204
  status: SubmissionStatus;
3181
3205
  seen: boolean;
3182
3206
  orderDetails?: {
3183
- _id: string;
3184
- currency: string;
3185
3207
  itemSubtotal: string;
3208
+ checkoutId: string;
3186
3209
  };
3187
3210
  };
3188
3211
  }
@@ -3193,9 +3216,8 @@ export interface ConfirmSubmissionResponseNonNullableFields {
3193
3216
  status: SubmissionStatus;
3194
3217
  seen: boolean;
3195
3218
  orderDetails?: {
3196
- _id: string;
3197
- currency: string;
3198
3219
  itemSubtotal: string;
3220
+ checkoutId: string;
3199
3221
  };
3200
3222
  };
3201
3223
  }
@@ -3223,9 +3245,8 @@ export interface RestoreSubmissionFromTrashBinResponseNonNullableFields {
3223
3245
  status: SubmissionStatus;
3224
3246
  seen: boolean;
3225
3247
  orderDetails?: {
3226
- _id: string;
3227
- currency: string;
3228
3248
  itemSubtotal: string;
3249
+ checkoutId: string;
3229
3250
  };
3230
3251
  };
3231
3252
  }
@@ -3253,9 +3274,8 @@ export interface ListDeletedSubmissionsResponseNonNullableFields {
3253
3274
  status: SubmissionStatus;
3254
3275
  seen: boolean;
3255
3276
  orderDetails?: {
3256
- _id: string;
3257
- currency: string;
3258
3277
  itemSubtotal: string;
3278
+ checkoutId: string;
3259
3279
  };
3260
3280
  }[];
3261
3281
  }
@@ -3266,9 +3286,8 @@ export interface GetDeletedSubmissionResponseNonNullableFields {
3266
3286
  status: SubmissionStatus;
3267
3287
  seen: boolean;
3268
3288
  orderDetails?: {
3269
- _id: string;
3270
- currency: string;
3271
3289
  itemSubtotal: string;
3290
+ checkoutId: string;
3272
3291
  };
3273
3292
  };
3274
3293
  }
@@ -3279,9 +3298,8 @@ export interface QuerySubmissionsByNamespaceResponseNonNullableFields {
3279
3298
  status: SubmissionStatus;
3280
3299
  seen: boolean;
3281
3300
  orderDetails?: {
3282
- _id: string;
3283
- currency: string;
3284
3301
  itemSubtotal: string;
3302
+ checkoutId: string;
3285
3303
  };
3286
3304
  }[];
3287
3305
  }