@wix/forms 1.0.154 → 1.0.156

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.
@@ -24,12 +24,12 @@ interface Form$1 {
24
24
  * Date of creation.
25
25
  * @readonly
26
26
  */
27
- createdDate?: Date;
27
+ createdDate?: Date | null;
28
28
  /**
29
29
  * Date of last update.
30
30
  * @readonly
31
31
  */
32
- updatedDate?: Date;
32
+ updatedDate?: Date | null;
33
33
  /** Properties of the form. */
34
34
  properties?: FormProperties$1;
35
35
  /**
@@ -1759,12 +1759,12 @@ interface Metadata$1 {
1759
1759
  * @readonly
1760
1760
  * @deprecated
1761
1761
  */
1762
- createdTimestamp?: Date;
1762
+ createdTimestamp?: Date | null;
1763
1763
  /**
1764
1764
  * When the object was most recently updated.
1765
1765
  * @deprecated
1766
1766
  */
1767
- updatedTimestamp?: Date;
1767
+ updatedTimestamp?: Date | null;
1768
1768
  /** Object ID. */
1769
1769
  id?: string | null;
1770
1770
  }
@@ -1837,6 +1837,7 @@ interface RadioGroupCustomOption$1 {
1837
1837
  }
1838
1838
  declare enum NumberOfColumns$1 {
1839
1839
  UNKNOWN = "UNKNOWN",
1840
+ ZERO = "ZERO",
1840
1841
  ONE = "ONE",
1841
1842
  TWO = "TWO",
1842
1843
  THREE = "THREE"
@@ -3000,9 +3001,7 @@ interface FormRule$1 {
3000
3001
  }
3001
3002
  declare enum OverrideEntityType$1 {
3002
3003
  UNKNOWN = "UNKNOWN",
3003
- FIELD = "FIELD",
3004
- FORM = "FORM",
3005
- NESTED_FORM_FIELD = "NESTED_FORM_FIELD"
3004
+ FIELD = "FIELD"
3006
3005
  }
3007
3006
  interface FormOverride$1 {
3008
3007
  /** Override entity type. */
@@ -3051,7 +3050,7 @@ interface LimitationRule$1 {
3051
3050
  /** Limitation by submission count, disables form when a set amount of submissions is reached. */
3052
3051
  maxAllowedSubmissions?: number | null;
3053
3052
  /** Limitation by submission date, disables form when a set date and time is reached. */
3054
- dateTimeDeadline?: Date;
3053
+ dateTimeDeadline?: Date | null;
3055
3054
  }
3056
3055
  declare enum SpamFilterProtectionLevel$1 {
3057
3056
  UNKNOWN = "UNKNOWN",
@@ -4239,12 +4238,12 @@ interface Form {
4239
4238
  * Date of creation.
4240
4239
  * @readonly
4241
4240
  */
4242
- _createdDate?: Date;
4241
+ _createdDate?: Date | null;
4243
4242
  /**
4244
4243
  * Date of last update.
4245
4244
  * @readonly
4246
4245
  */
4247
- _updatedDate?: Date;
4246
+ _updatedDate?: Date | null;
4248
4247
  /** Properties of the form. */
4249
4248
  properties?: FormProperties;
4250
4249
  /**
@@ -5974,12 +5973,12 @@ interface Metadata {
5974
5973
  * @readonly
5975
5974
  * @deprecated
5976
5975
  */
5977
- createdTimestamp?: Date;
5976
+ createdTimestamp?: Date | null;
5978
5977
  /**
5979
5978
  * When the object was most recently updated.
5980
5979
  * @deprecated
5981
5980
  */
5982
- updatedTimestamp?: Date;
5981
+ updatedTimestamp?: Date | null;
5983
5982
  /** Object ID. */
5984
5983
  _id?: string | null;
5985
5984
  }
@@ -6052,6 +6051,7 @@ interface RadioGroupCustomOption {
6052
6051
  }
6053
6052
  declare enum NumberOfColumns {
6054
6053
  UNKNOWN = "UNKNOWN",
6054
+ ZERO = "ZERO",
6055
6055
  ONE = "ONE",
6056
6056
  TWO = "TWO",
6057
6057
  THREE = "THREE"
@@ -7192,9 +7192,7 @@ interface FormRule {
7192
7192
  }
7193
7193
  declare enum OverrideEntityType {
7194
7194
  UNKNOWN = "UNKNOWN",
7195
- FIELD = "FIELD",
7196
- FORM = "FORM",
7197
- NESTED_FORM_FIELD = "NESTED_FORM_FIELD"
7195
+ FIELD = "FIELD"
7198
7196
  }
7199
7197
  interface FormOverride {
7200
7198
  /** Override entity type. */
@@ -7243,7 +7241,7 @@ interface LimitationRule {
7243
7241
  /** Limitation by submission count, disables form when a set amount of submissions is reached. */
7244
7242
  maxAllowedSubmissions?: number | null;
7245
7243
  /** Limitation by submission date, disables form when a set date and time is reached. */
7246
- dateTimeDeadline?: Date;
7244
+ dateTimeDeadline?: Date | null;
7247
7245
  }
7248
7246
  declare enum SpamFilterProtectionLevel {
7249
7247
  UNKNOWN = "UNKNOWN",
@@ -8488,17 +8486,17 @@ interface FormSpamSubmissionReport$1 {
8488
8486
  /** Identifies the reason why the submission was reported as spam. */
8489
8487
  reportReason?: ReportReason$1;
8490
8488
  /** Date of submission creation. If a submission was created in the past, pass the original submission creation date. */
8491
- createdDate?: Date;
8489
+ createdDate?: Date | null;
8492
8490
  /**
8493
8491
  * Date of form spam submission report creation.
8494
8492
  * @readonly
8495
8493
  */
8496
- reportedDate?: Date;
8494
+ reportedDate?: Date | null;
8497
8495
  /**
8498
8496
  * Date of last update.
8499
8497
  * @readonly
8500
8498
  */
8501
- updatedDate?: Date;
8499
+ updatedDate?: Date | null;
8502
8500
  /**
8503
8501
  * Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision.
8504
8502
  * @readonly
@@ -8604,12 +8602,12 @@ interface FormSubmission$3 {
8604
8602
  /** Submission values where `key` is the form field and `value` is the data submitted for the given field. */
8605
8603
  submissions?: Record<string, any>;
8606
8604
  /** Date and time the form submission was created. */
8607
- createdDate?: Date;
8605
+ createdDate?: Date | null;
8608
8606
  /**
8609
8607
  * Date and time the form submission was updated.
8610
8608
  * @readonly
8611
8609
  */
8612
- updatedDate?: Date;
8610
+ updatedDate?: Date | null;
8613
8611
  /**
8614
8612
  * Revision number, which increments by 1 each time the form submission is updated. To prevent conflicting changes, the existing revision must be used when updating a form submission.
8615
8613
  * @readonly
@@ -9007,17 +9005,17 @@ interface FormSpamSubmissionReport {
9007
9005
  /** Identifies the reason why the submission was reported as spam. */
9008
9006
  reportReason?: ReportReason;
9009
9007
  /** Date of submission creation. If a submission was created in the past, pass the original submission creation date. */
9010
- _createdDate?: Date;
9008
+ _createdDate?: Date | null;
9011
9009
  /**
9012
9010
  * Date of form spam submission report creation.
9013
9011
  * @readonly
9014
9012
  */
9015
- reportedDate?: Date;
9013
+ reportedDate?: Date | null;
9016
9014
  /**
9017
9015
  * Date of last update.
9018
9016
  * @readonly
9019
9017
  */
9020
- _updatedDate?: Date;
9018
+ _updatedDate?: Date | null;
9021
9019
  /**
9022
9020
  * Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision.
9023
9021
  * @readonly
@@ -9123,12 +9121,12 @@ interface FormSubmission$2 {
9123
9121
  /** Submission values where `key` is the form field and `value` is the data submitted for the given field. */
9124
9122
  submissions?: Record<string, any>;
9125
9123
  /** Date and time the form submission was created. */
9126
- _createdDate?: Date;
9124
+ _createdDate?: Date | null;
9127
9125
  /**
9128
9126
  * Date and time the form submission was updated.
9129
9127
  * @readonly
9130
9128
  */
9131
- _updatedDate?: Date;
9129
+ _updatedDate?: Date | null;
9132
9130
  /**
9133
9131
  * Revision number, which increments by 1 each time the form submission is updated. To prevent conflicting changes, the existing revision must be used when updating a form submission.
9134
9132
  * @readonly
@@ -9574,12 +9572,12 @@ interface FormSubmission$1 {
9574
9572
  /** Submission values where `key` is the form field and `value` is the data submitted for the given field. */
9575
9573
  submissions?: Record<string, any>;
9576
9574
  /** Date and time the form submission was created. */
9577
- createdDate?: Date;
9575
+ createdDate?: Date | null;
9578
9576
  /**
9579
9577
  * Date and time the form submission was updated.
9580
9578
  * @readonly
9581
9579
  */
9582
- updatedDate?: Date;
9580
+ updatedDate?: Date | null;
9583
9581
  /**
9584
9582
  * Revision number, which increments by 1 each time the form submission is updated. To prevent conflicting changes, the existing revision must be used when updating a form submission.
9585
9583
  * @readonly
@@ -10285,12 +10283,12 @@ interface FormSubmission {
10285
10283
  /** Submission values where `key` is the form field and `value` is the data submitted for the given field. */
10286
10284
  submissions?: Record<string, any>;
10287
10285
  /** Date and time the form submission was created. */
10288
- _createdDate?: Date;
10286
+ _createdDate?: Date | null;
10289
10287
  /**
10290
10288
  * Date and time the form submission was updated.
10291
10289
  * @readonly
10292
10290
  */
10293
- _updatedDate?: Date;
10291
+ _updatedDate?: Date | null;
10294
10292
  /**
10295
10293
  * Revision number, which increments by 1 each time the form submission is updated. To prevent conflicting changes, the existing revision must be used when updating a form submission.
10296
10294
  * @readonly
@@ -36,12 +36,12 @@ interface FormSubmission {
36
36
  /** Submission values where `key` is the form field and `value` is the data submitted for the given field. */
37
37
  submissions?: Record<string, any>;
38
38
  /** Date and time the form submission was created. */
39
- _createdDate?: Date;
39
+ _createdDate?: Date | null;
40
40
  /**
41
41
  * Date and time the form submission was updated.
42
42
  * @readonly
43
43
  */
44
- _updatedDate?: Date;
44
+ _updatedDate?: Date | null;
45
45
  /**
46
46
  * Revision number, which increments by 1 each time the form submission is updated. To prevent conflicting changes, the existing revision must be used when updating a form submission.
47
47
  * @readonly
@@ -299,26 +299,27 @@ interface IdentificationDataIdOneOf {
299
299
  appId?: string;
300
300
  }
301
301
 
302
- type ServicePluginMethodInput$1 = {
302
+ type ServicePluginMethodInput = {
303
303
  request: any;
304
304
  metadata: any;
305
305
  };
306
- type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
307
- type ServicePluginMethodMetadata$1 = {
306
+ type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
307
+ type ServicePluginMethodMetadata = {
308
308
  name: string;
309
309
  primaryHttpMappingPath: string;
310
310
  transformations: {
311
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
311
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput;
312
312
  toREST: (...args: unknown[]) => unknown;
313
313
  };
314
314
  };
315
- type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
315
+ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
316
316
  __type: 'service-plugin-definition';
317
317
  componentType: string;
318
- methods: ServicePluginMethodMetadata$1[];
318
+ methods: ServicePluginMethodMetadata[];
319
319
  __contract: Contract;
320
320
  };
321
- declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
321
+ declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
322
+ type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
322
323
 
323
324
  declare global {
324
325
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -336,7 +337,7 @@ interface ValidateSubmissionEnvelope {
336
337
  request: ValidateSubmissionRequest;
337
338
  metadata: Context;
338
339
  }
339
- declare const provideHandlers$1: ServicePluginDefinition$1<{
340
+ declare const provideHandlers$1: ServicePluginDefinition<{
340
341
  /**
341
342
  *
342
343
  * > **Note:** The Form Submission service plugin only works with the Wix Forms app.
@@ -347,35 +348,6 @@ declare const provideHandlers$1: ServicePluginDefinition$1<{
347
348
  validateSubmission(payload: ValidateSubmissionEnvelope): ValidateSubmissionResponse | Promise<ValidateSubmissionResponse>;
348
349
  }>;
349
350
 
350
- type ServicePluginMethodInput = {
351
- request: any;
352
- metadata: any;
353
- };
354
- type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
355
- type ServicePluginMethodMetadata = {
356
- name: string;
357
- primaryHttpMappingPath: string;
358
- transformations: {
359
- fromREST: (...args: unknown[]) => ServicePluginMethodInput;
360
- toREST: (...args: unknown[]) => unknown;
361
- };
362
- };
363
- type ServicePluginDefinition<Contract extends ServicePluginContract> = {
364
- __type: 'service-plugin-definition';
365
- componentType: string;
366
- methods: ServicePluginMethodMetadata[];
367
- __contract: Contract;
368
- };
369
- declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
370
- type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
371
-
372
- declare global {
373
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
374
- interface SymbolConstructor {
375
- readonly observable: symbol;
376
- }
377
- }
378
-
379
351
  declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
380
352
 
381
353
  type _publicProvideHandlersType = typeof provideHandlers$1;
@@ -36,12 +36,12 @@ interface FormSubmission {
36
36
  /** Submission values where `key` is the form field and `value` is the data submitted for the given field. */
37
37
  submissions?: Record<string, any>;
38
38
  /** Date and time the form submission was created. */
39
- _createdDate?: Date;
39
+ _createdDate?: Date | null;
40
40
  /**
41
41
  * Date and time the form submission was updated.
42
42
  * @readonly
43
43
  */
44
- _updatedDate?: Date;
44
+ _updatedDate?: Date | null;
45
45
  /**
46
46
  * Revision number, which increments by 1 each time the form submission is updated. To prevent conflicting changes, the existing revision must be used when updating a form submission.
47
47
  * @readonly
@@ -299,26 +299,27 @@ interface IdentificationDataIdOneOf {
299
299
  appId?: string;
300
300
  }
301
301
 
302
- type ServicePluginMethodInput$1 = {
302
+ type ServicePluginMethodInput = {
303
303
  request: any;
304
304
  metadata: any;
305
305
  };
306
- type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
307
- type ServicePluginMethodMetadata$1 = {
306
+ type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
307
+ type ServicePluginMethodMetadata = {
308
308
  name: string;
309
309
  primaryHttpMappingPath: string;
310
310
  transformations: {
311
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
311
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput;
312
312
  toREST: (...args: unknown[]) => unknown;
313
313
  };
314
314
  };
315
- type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
315
+ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
316
316
  __type: 'service-plugin-definition';
317
317
  componentType: string;
318
- methods: ServicePluginMethodMetadata$1[];
318
+ methods: ServicePluginMethodMetadata[];
319
319
  __contract: Contract;
320
320
  };
321
- declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
321
+ declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
322
+ type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
322
323
 
323
324
  declare global {
324
325
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -336,7 +337,7 @@ interface ValidateSubmissionEnvelope {
336
337
  request: ValidateSubmissionRequest;
337
338
  metadata: Context;
338
339
  }
339
- declare const provideHandlers$1: ServicePluginDefinition$1<{
340
+ declare const provideHandlers$1: ServicePluginDefinition<{
340
341
  /**
341
342
  *
342
343
  * > **Note:** The Form Submission service plugin only works with the Wix Forms app.
@@ -347,35 +348,6 @@ declare const provideHandlers$1: ServicePluginDefinition$1<{
347
348
  validateSubmission(payload: ValidateSubmissionEnvelope): ValidateSubmissionResponse | Promise<ValidateSubmissionResponse>;
348
349
  }>;
349
350
 
350
- type ServicePluginMethodInput = {
351
- request: any;
352
- metadata: any;
353
- };
354
- type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
355
- type ServicePluginMethodMetadata = {
356
- name: string;
357
- primaryHttpMappingPath: string;
358
- transformations: {
359
- fromREST: (...args: unknown[]) => ServicePluginMethodInput;
360
- toREST: (...args: unknown[]) => unknown;
361
- };
362
- };
363
- type ServicePluginDefinition<Contract extends ServicePluginContract> = {
364
- __type: 'service-plugin-definition';
365
- componentType: string;
366
- methods: ServicePluginMethodMetadata[];
367
- __contract: Contract;
368
- };
369
- declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
370
- type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
371
-
372
- declare global {
373
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
374
- interface SymbolConstructor {
375
- readonly observable: symbol;
376
- }
377
- }
378
-
379
351
  declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
380
352
 
381
353
  type _publicProvideHandlersType = typeof provideHandlers$1;