@wix/forms 1.0.154 → 1.0.155

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
  }
@@ -3000,9 +3000,7 @@ interface FormRule$1 {
3000
3000
  }
3001
3001
  declare enum OverrideEntityType$1 {
3002
3002
  UNKNOWN = "UNKNOWN",
3003
- FIELD = "FIELD",
3004
- FORM = "FORM",
3005
- NESTED_FORM_FIELD = "NESTED_FORM_FIELD"
3003
+ FIELD = "FIELD"
3006
3004
  }
3007
3005
  interface FormOverride$1 {
3008
3006
  /** Override entity type. */
@@ -3051,7 +3049,7 @@ interface LimitationRule$1 {
3051
3049
  /** Limitation by submission count, disables form when a set amount of submissions is reached. */
3052
3050
  maxAllowedSubmissions?: number | null;
3053
3051
  /** Limitation by submission date, disables form when a set date and time is reached. */
3054
- dateTimeDeadline?: Date;
3052
+ dateTimeDeadline?: Date | null;
3055
3053
  }
3056
3054
  declare enum SpamFilterProtectionLevel$1 {
3057
3055
  UNKNOWN = "UNKNOWN",
@@ -4239,12 +4237,12 @@ interface Form {
4239
4237
  * Date of creation.
4240
4238
  * @readonly
4241
4239
  */
4242
- _createdDate?: Date;
4240
+ _createdDate?: Date | null;
4243
4241
  /**
4244
4242
  * Date of last update.
4245
4243
  * @readonly
4246
4244
  */
4247
- _updatedDate?: Date;
4245
+ _updatedDate?: Date | null;
4248
4246
  /** Properties of the form. */
4249
4247
  properties?: FormProperties;
4250
4248
  /**
@@ -5974,12 +5972,12 @@ interface Metadata {
5974
5972
  * @readonly
5975
5973
  * @deprecated
5976
5974
  */
5977
- createdTimestamp?: Date;
5975
+ createdTimestamp?: Date | null;
5978
5976
  /**
5979
5977
  * When the object was most recently updated.
5980
5978
  * @deprecated
5981
5979
  */
5982
- updatedTimestamp?: Date;
5980
+ updatedTimestamp?: Date | null;
5983
5981
  /** Object ID. */
5984
5982
  _id?: string | null;
5985
5983
  }
@@ -7192,9 +7190,7 @@ interface FormRule {
7192
7190
  }
7193
7191
  declare enum OverrideEntityType {
7194
7192
  UNKNOWN = "UNKNOWN",
7195
- FIELD = "FIELD",
7196
- FORM = "FORM",
7197
- NESTED_FORM_FIELD = "NESTED_FORM_FIELD"
7193
+ FIELD = "FIELD"
7198
7194
  }
7199
7195
  interface FormOverride {
7200
7196
  /** Override entity type. */
@@ -7243,7 +7239,7 @@ interface LimitationRule {
7243
7239
  /** Limitation by submission count, disables form when a set amount of submissions is reached. */
7244
7240
  maxAllowedSubmissions?: number | null;
7245
7241
  /** Limitation by submission date, disables form when a set date and time is reached. */
7246
- dateTimeDeadline?: Date;
7242
+ dateTimeDeadline?: Date | null;
7247
7243
  }
7248
7244
  declare enum SpamFilterProtectionLevel {
7249
7245
  UNKNOWN = "UNKNOWN",
@@ -8488,17 +8484,17 @@ interface FormSpamSubmissionReport$1 {
8488
8484
  /** Identifies the reason why the submission was reported as spam. */
8489
8485
  reportReason?: ReportReason$1;
8490
8486
  /** Date of submission creation. If a submission was created in the past, pass the original submission creation date. */
8491
- createdDate?: Date;
8487
+ createdDate?: Date | null;
8492
8488
  /**
8493
8489
  * Date of form spam submission report creation.
8494
8490
  * @readonly
8495
8491
  */
8496
- reportedDate?: Date;
8492
+ reportedDate?: Date | null;
8497
8493
  /**
8498
8494
  * Date of last update.
8499
8495
  * @readonly
8500
8496
  */
8501
- updatedDate?: Date;
8497
+ updatedDate?: Date | null;
8502
8498
  /**
8503
8499
  * 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
8500
  * @readonly
@@ -8604,12 +8600,12 @@ interface FormSubmission$3 {
8604
8600
  /** Submission values where `key` is the form field and `value` is the data submitted for the given field. */
8605
8601
  submissions?: Record<string, any>;
8606
8602
  /** Date and time the form submission was created. */
8607
- createdDate?: Date;
8603
+ createdDate?: Date | null;
8608
8604
  /**
8609
8605
  * Date and time the form submission was updated.
8610
8606
  * @readonly
8611
8607
  */
8612
- updatedDate?: Date;
8608
+ updatedDate?: Date | null;
8613
8609
  /**
8614
8610
  * 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
8611
  * @readonly
@@ -9007,17 +9003,17 @@ interface FormSpamSubmissionReport {
9007
9003
  /** Identifies the reason why the submission was reported as spam. */
9008
9004
  reportReason?: ReportReason;
9009
9005
  /** Date of submission creation. If a submission was created in the past, pass the original submission creation date. */
9010
- _createdDate?: Date;
9006
+ _createdDate?: Date | null;
9011
9007
  /**
9012
9008
  * Date of form spam submission report creation.
9013
9009
  * @readonly
9014
9010
  */
9015
- reportedDate?: Date;
9011
+ reportedDate?: Date | null;
9016
9012
  /**
9017
9013
  * Date of last update.
9018
9014
  * @readonly
9019
9015
  */
9020
- _updatedDate?: Date;
9016
+ _updatedDate?: Date | null;
9021
9017
  /**
9022
9018
  * 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
9019
  * @readonly
@@ -9123,12 +9119,12 @@ interface FormSubmission$2 {
9123
9119
  /** Submission values where `key` is the form field and `value` is the data submitted for the given field. */
9124
9120
  submissions?: Record<string, any>;
9125
9121
  /** Date and time the form submission was created. */
9126
- _createdDate?: Date;
9122
+ _createdDate?: Date | null;
9127
9123
  /**
9128
9124
  * Date and time the form submission was updated.
9129
9125
  * @readonly
9130
9126
  */
9131
- _updatedDate?: Date;
9127
+ _updatedDate?: Date | null;
9132
9128
  /**
9133
9129
  * 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
9130
  * @readonly
@@ -9574,12 +9570,12 @@ interface FormSubmission$1 {
9574
9570
  /** Submission values where `key` is the form field and `value` is the data submitted for the given field. */
9575
9571
  submissions?: Record<string, any>;
9576
9572
  /** Date and time the form submission was created. */
9577
- createdDate?: Date;
9573
+ createdDate?: Date | null;
9578
9574
  /**
9579
9575
  * Date and time the form submission was updated.
9580
9576
  * @readonly
9581
9577
  */
9582
- updatedDate?: Date;
9578
+ updatedDate?: Date | null;
9583
9579
  /**
9584
9580
  * 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
9581
  * @readonly
@@ -10285,12 +10281,12 @@ interface FormSubmission {
10285
10281
  /** Submission values where `key` is the form field and `value` is the data submitted for the given field. */
10286
10282
  submissions?: Record<string, any>;
10287
10283
  /** Date and time the form submission was created. */
10288
- _createdDate?: Date;
10284
+ _createdDate?: Date | null;
10289
10285
  /**
10290
10286
  * Date and time the form submission was updated.
10291
10287
  * @readonly
10292
10288
  */
10293
- _updatedDate?: Date;
10289
+ _updatedDate?: Date | null;
10294
10290
  /**
10295
10291
  * 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
10292
  * @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;