@wix/forms 1.0.100 → 1.0.102

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.
@@ -64,6 +64,11 @@ interface FormSubmission {
64
64
  * <b>Note</b>: This object is only applicable when submittng a form in the Wix Payments app.
65
65
  */
66
66
  orderDetails?: OrderDetails;
67
+ /**
68
+ * Contact ID. Member who created the submission, or a mapped contact.
69
+ * @readonly
70
+ */
71
+ contactId?: string | null;
67
72
  }
68
73
  declare enum SubmissionStatus {
69
74
  UNDEFINED = "UNDEFINED",
@@ -298,6 +303,13 @@ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
298
303
  declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
299
304
  type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
300
305
 
306
+ declare global {
307
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
308
+ interface SymbolConstructor {
309
+ readonly observable: symbol;
310
+ }
311
+ }
312
+
301
313
  interface ValidateSubmissionEnvelope {
302
314
  request: ValidateSubmissionRequest;
303
315
  metadata: Context;
@@ -64,6 +64,11 @@ interface FormSubmission {
64
64
  * <b>Note</b>: This object is only applicable when submittng a form in the Wix Payments app.
65
65
  */
66
66
  orderDetails?: OrderDetails;
67
+ /**
68
+ * Contact ID. Member who created the submission, or a mapped contact.
69
+ * @readonly
70
+ */
71
+ contactId?: string | null;
67
72
  }
68
73
  declare enum SubmissionStatus {
69
74
  UNDEFINED = "UNDEFINED",
@@ -297,6 +302,13 @@ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
297
302
  };
298
303
  declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
299
304
 
305
+ declare global {
306
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
307
+ interface SymbolConstructor {
308
+ readonly observable: symbol;
309
+ }
310
+ }
311
+
300
312
  interface ValidateSubmissionEnvelope {
301
313
  request: ValidateSubmissionRequest;
302
314
  metadata: Context;