@wix/auto_sdk_forms_submissions 1.0.80 → 1.0.82

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.
Files changed (41) hide show
  1. package/build/cjs/{forms-v4-submission-submissions.universal-lsbu8Gyw.d.ts → forms-v4-submission-submissions.universal-CcAOUlgw.d.ts} +143 -135
  2. package/build/cjs/index.d.ts +2 -2
  3. package/build/cjs/index.js +10 -8
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/index.typings.d.ts +2 -2
  6. package/build/cjs/index.typings.js +10 -8
  7. package/build/cjs/index.typings.js.map +1 -1
  8. package/build/cjs/meta.d.ts +141 -137
  9. package/build/cjs/meta.js +8 -8
  10. package/build/cjs/meta.js.map +1 -1
  11. package/build/es/{forms-v4-submission-submissions.universal-lsbu8Gyw.d.mts → forms-v4-submission-submissions.universal-CcAOUlgw.d.mts} +143 -135
  12. package/build/es/index.d.mts +2 -2
  13. package/build/es/index.mjs +10 -8
  14. package/build/es/index.mjs.map +1 -1
  15. package/build/es/index.typings.d.mts +2 -2
  16. package/build/es/index.typings.mjs +10 -8
  17. package/build/es/index.typings.mjs.map +1 -1
  18. package/build/es/meta.d.mts +141 -137
  19. package/build/es/meta.mjs +8 -8
  20. package/build/es/meta.mjs.map +1 -1
  21. package/build/internal/cjs/{forms-v4-submission-submissions.universal-C2jr-tcm.d.ts → forms-v4-submission-submissions.universal-z81WPKXR.d.ts} +141 -143
  22. package/build/internal/cjs/index.d.ts +2 -2
  23. package/build/internal/cjs/index.js +10 -8
  24. package/build/internal/cjs/index.js.map +1 -1
  25. package/build/internal/cjs/index.typings.d.ts +2 -2
  26. package/build/internal/cjs/index.typings.js +10 -8
  27. package/build/internal/cjs/index.typings.js.map +1 -1
  28. package/build/internal/cjs/meta.d.ts +141 -137
  29. package/build/internal/cjs/meta.js +8 -8
  30. package/build/internal/cjs/meta.js.map +1 -1
  31. package/build/internal/es/{forms-v4-submission-submissions.universal-C2jr-tcm.d.mts → forms-v4-submission-submissions.universal-z81WPKXR.d.mts} +141 -143
  32. package/build/internal/es/index.d.mts +2 -2
  33. package/build/internal/es/index.mjs +10 -8
  34. package/build/internal/es/index.mjs.map +1 -1
  35. package/build/internal/es/index.typings.d.mts +2 -2
  36. package/build/internal/es/index.typings.mjs +10 -8
  37. package/build/internal/es/index.typings.mjs.map +1 -1
  38. package/build/internal/es/meta.d.mts +141 -137
  39. package/build/internal/es/meta.mjs +8 -8
  40. package/build/internal/es/meta.mjs.map +1 -1
  41. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { gf as UpsertContactFromSubmissionRequest$1, a as UpsertContactFromSubmissionResponse$1, gh as CreateSubmissionRequest$1, gi as CreateSubmissionResponse$1, gy as GetSubmissionRequest$1, gz as GetSubmissionResponse$1, gC as UpdateSubmissionRequest$1, gD as UpdateSubmissionResponse$1, gE as ConfirmSubmissionRequest$1, f as ConfirmSubmissionResponse$1, gF as DeleteSubmissionRequest$1, gG as DeleteSubmissionResponse$1, gH as BulkDeleteSubmissionRequest$1, g as BulkDeleteSubmissionResponse$1, gJ as RestoreSubmissionFromTrashBinRequest$1, R as RestoreSubmissionFromTrashBinResponse$1, gK as RemoveSubmissionFromTrashBinRequest$1, gL as RemoveSubmissionFromTrashBinResponse$1, gM as BulkRemoveSubmissionFromTrashBinRequest$1, i as BulkRemoveSubmissionFromTrashBinResponse$1, gO as ListDeletedSubmissionsRequest$1, j as ListDeletedSubmissionsResponse$1, gS as GetDeletedSubmissionRequest$1, G as GetDeletedSubmissionResponse$1, gT as QuerySubmissionRequest$1, l as QuerySubmissionResponse$1, gW as SearchSubmissionsByNamespaceRequest$1, S as SearchSubmissionsByNamespaceResponse$1, h0 as QuerySubmissionsByNamespaceRequest$1, h1 as QuerySubmissionsByNamespaceResponse$1, h4 as CountSubmissionsByFilterRequest$1, o as CountSubmissionsByFilterResponse$1, h6 as CountSubmissionsRequest$1, q as CountSubmissionsResponse$1, h7 as CountDeletedSubmissionsRequest$1, s as CountDeletedSubmissionsResponse$1, h9 as GetMediaUploadURLRequest$1, t as GetMediaUploadURLResponse$1, ha as BulkMarkSubmissionsAsSeenRequest$1, u as BulkMarkSubmissionsAsSeenResponse$1, hb as GetSubmissionDownloadUrlRequest$1, v as GetSubmissionDownloadUrlResponse$1, hf as DownloadSubmissionRequest$1, w as RawHttpResponse$1, hh as GetFormattedSubmissionRequest$1, x as GetFormattedSubmissionResponse$1, hm as UpdateExtendedFieldsRequest$1, z as UpdateExtendedFieldsResponse$1, hn as BulkUpdateFormSubmissionTagsRequest$1, ho as BulkUpdateFormSubmissionTagsResponse$1, hq as BulkUpdateFormSubmissionTagsByFilterRequest$1, hr as BulkUpdateFormSubmissionTagsByFilterResponse$1, hs as ValidateFormSubmissionRequest$1, A as ValidateFormSubmissionResponse$1 } from './forms-v4-submission-submissions.universal-lsbu8Gyw.js';
1
+ import { gf as UpsertContactFromSubmissionRequest$1, a as UpsertContactFromSubmissionResponse$1, gh as CreateSubmissionRequest$1, gi as CreateSubmissionResponse$1, gy as GetSubmissionRequest$1, gz as GetSubmissionResponse$1, gC as UpdateSubmissionRequest$1, gD as UpdateSubmissionResponse$1, gE as ConfirmSubmissionRequest$1, f as ConfirmSubmissionResponse$1, gF as DeleteSubmissionRequest$1, gG as DeleteSubmissionResponse$1, gH as BulkDeleteSubmissionRequest$1, g as BulkDeleteSubmissionResponse$1, gJ as RestoreSubmissionFromTrashBinRequest$1, R as RestoreSubmissionFromTrashBinResponse$1, gK as RemoveSubmissionFromTrashBinRequest$1, gL as RemoveSubmissionFromTrashBinResponse$1, gM as BulkRemoveSubmissionFromTrashBinRequest$1, i as BulkRemoveSubmissionFromTrashBinResponse$1, gO as ListDeletedSubmissionsRequest$1, j as ListDeletedSubmissionsResponse$1, gS as GetDeletedSubmissionRequest$1, G as GetDeletedSubmissionResponse$1, gT as QuerySubmissionRequest$1, l as QuerySubmissionResponse$1, gW as SearchSubmissionsByNamespaceRequest$1, S as SearchSubmissionsByNamespaceResponse$1, h0 as QuerySubmissionsByNamespaceRequest$1, h1 as QuerySubmissionsByNamespaceResponse$1, h4 as CountSubmissionsByFilterRequest$1, o as CountSubmissionsByFilterResponse$1, h6 as CountSubmissionsRequest$1, q as CountSubmissionsResponse$1, h7 as CountDeletedSubmissionsRequest$1, s as CountDeletedSubmissionsResponse$1, h9 as GetMediaUploadURLRequest$1, t as GetMediaUploadURLResponse$1, ha as BulkMarkSubmissionsAsSeenRequest$1, u as BulkMarkSubmissionsAsSeenResponse$1, hb as GetSubmissionDownloadUrlRequest$1, v as GetSubmissionDownloadUrlResponse$1, hf as DownloadSubmissionRequest$1, w as RawHttpResponse$1, hh as GetFormattedSubmissionRequest$1, x as GetFormattedSubmissionResponse$1, hm as UpdateExtendedFieldsRequest$1, z as UpdateExtendedFieldsResponse$1, hn as BulkUpdateFormSubmissionTagsRequest$1, ho as BulkUpdateFormSubmissionTagsResponse$1, hq as BulkUpdateFormSubmissionTagsByFilterRequest$1, hr as BulkUpdateFormSubmissionTagsByFilterResponse$1, hs as ValidateFormSubmissionRequest$1, A as ValidateFormSubmissionResponse$1 } from './forms-v4-submission-submissions.universal-CcAOUlgw.js';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /** Form submission that was created or retrieved. */
@@ -260,6 +260,142 @@ interface SubmissionContactMappingSkipped {
260
260
  */
261
261
  contactId?: string | null;
262
262
  }
263
+ interface DomainEvent extends DomainEventBodyOneOf {
264
+ createdEvent?: EntityCreatedEvent;
265
+ updatedEvent?: EntityUpdatedEvent;
266
+ deletedEvent?: EntityDeletedEvent;
267
+ actionEvent?: ActionEvent;
268
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
269
+ id?: string;
270
+ /**
271
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
272
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
273
+ */
274
+ entityFqdn?: string;
275
+ /**
276
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
277
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
278
+ */
279
+ slug?: string;
280
+ /** ID of the entity associated with the event. */
281
+ entityId?: string;
282
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
283
+ eventTime?: Date | null;
284
+ /**
285
+ * Whether the event was triggered as a result of a privacy regulation application
286
+ * (for example, GDPR).
287
+ */
288
+ triggeredByAnonymizeRequest?: boolean | null;
289
+ /** If present, indicates the action that triggered the event. */
290
+ originatedFrom?: string | null;
291
+ /**
292
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
293
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
294
+ */
295
+ entityEventSequence?: string | null;
296
+ }
297
+ /** @oneof */
298
+ interface DomainEventBodyOneOf {
299
+ createdEvent?: EntityCreatedEvent;
300
+ updatedEvent?: EntityUpdatedEvent;
301
+ deletedEvent?: EntityDeletedEvent;
302
+ actionEvent?: ActionEvent;
303
+ }
304
+ interface EntityCreatedEvent {
305
+ entityAsJson?: string;
306
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
307
+ restoreInfo?: RestoreInfo;
308
+ }
309
+ interface RestoreInfo {
310
+ deletedDate?: Date | null;
311
+ }
312
+ interface EntityUpdatedEvent {
313
+ /**
314
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
315
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
316
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
317
+ */
318
+ currentEntityAsJson?: string;
319
+ }
320
+ interface EntityDeletedEvent {
321
+ /** Entity that was deleted. */
322
+ deletedEntityAsJson?: string | null;
323
+ }
324
+ interface ActionEvent {
325
+ bodyAsJson?: string;
326
+ }
327
+ interface MessageEnvelope {
328
+ /**
329
+ * App instance ID.
330
+ * @format GUID
331
+ */
332
+ instanceId?: string | null;
333
+ /**
334
+ * Event type.
335
+ * @maxLength 150
336
+ */
337
+ eventType?: string;
338
+ /** The identification type and identity data. */
339
+ identity?: IdentificationData;
340
+ /** Stringify payload. */
341
+ data?: string;
342
+ }
343
+ interface IdentificationData extends IdentificationDataIdOneOf {
344
+ /**
345
+ * ID of a site visitor that has not logged in to the site.
346
+ * @format GUID
347
+ */
348
+ anonymousVisitorId?: string;
349
+ /**
350
+ * ID of a site visitor that has logged in to the site.
351
+ * @format GUID
352
+ */
353
+ memberId?: string;
354
+ /**
355
+ * ID of a Wix user (site owner, contributor, etc.).
356
+ * @format GUID
357
+ */
358
+ wixUserId?: string;
359
+ /**
360
+ * ID of an app.
361
+ * @format GUID
362
+ */
363
+ appId?: string;
364
+ /** @readonly */
365
+ identityType?: WebhookIdentityTypeWithLiterals;
366
+ }
367
+ /** @oneof */
368
+ interface IdentificationDataIdOneOf {
369
+ /**
370
+ * ID of a site visitor that has not logged in to the site.
371
+ * @format GUID
372
+ */
373
+ anonymousVisitorId?: string;
374
+ /**
375
+ * ID of a site visitor that has logged in to the site.
376
+ * @format GUID
377
+ */
378
+ memberId?: string;
379
+ /**
380
+ * ID of a Wix user (site owner, contributor, etc.).
381
+ * @format GUID
382
+ */
383
+ wixUserId?: string;
384
+ /**
385
+ * ID of an app.
386
+ * @format GUID
387
+ */
388
+ appId?: string;
389
+ }
390
+ declare enum WebhookIdentityType {
391
+ UNKNOWN = "UNKNOWN",
392
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
393
+ MEMBER = "MEMBER",
394
+ WIX_USER = "WIX_USER",
395
+ APP = "APP"
396
+ }
397
+ /** @enumType */
398
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
263
399
  interface CreateCheckoutFromSubmissionRequest extends CreateCheckoutFromSubmissionRequestFormSchemaIdentifierOneOf {
264
400
  /** Submission's form. */
265
401
  form?: Form;
@@ -5472,144 +5608,8 @@ interface IsFormSubmittableRequest {
5472
5608
  }
5473
5609
  interface IsFormSubmittableResponse {
5474
5610
  }
5475
- interface DomainEvent extends DomainEventBodyOneOf {
5476
- createdEvent?: EntityCreatedEvent;
5477
- updatedEvent?: EntityUpdatedEvent;
5478
- deletedEvent?: EntityDeletedEvent;
5479
- actionEvent?: ActionEvent;
5480
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
5481
- id?: string;
5482
- /**
5483
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
5484
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
5485
- */
5486
- entityFqdn?: string;
5487
- /**
5488
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
5489
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
5490
- */
5491
- slug?: string;
5492
- /** ID of the entity associated with the event. */
5493
- entityId?: string;
5494
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
5495
- eventTime?: Date | null;
5496
- /**
5497
- * Whether the event was triggered as a result of a privacy regulation application
5498
- * (for example, GDPR).
5499
- */
5500
- triggeredByAnonymizeRequest?: boolean | null;
5501
- /** If present, indicates the action that triggered the event. */
5502
- originatedFrom?: string | null;
5503
- /**
5504
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
5505
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
5506
- */
5507
- entityEventSequence?: string | null;
5508
- }
5509
- /** @oneof */
5510
- interface DomainEventBodyOneOf {
5511
- createdEvent?: EntityCreatedEvent;
5512
- updatedEvent?: EntityUpdatedEvent;
5513
- deletedEvent?: EntityDeletedEvent;
5514
- actionEvent?: ActionEvent;
5515
- }
5516
- interface EntityCreatedEvent {
5517
- entityAsJson?: string;
5518
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
5519
- restoreInfo?: RestoreInfo;
5520
- }
5521
- interface RestoreInfo {
5522
- deletedDate?: Date | null;
5523
- }
5524
- interface EntityUpdatedEvent {
5525
- /**
5526
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
5527
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
5528
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
5529
- */
5530
- currentEntityAsJson?: string;
5531
- }
5532
- interface EntityDeletedEvent {
5533
- /** Entity that was deleted. */
5534
- deletedEntityAsJson?: string | null;
5535
- }
5536
- interface ActionEvent {
5537
- bodyAsJson?: string;
5538
- }
5539
5611
  interface Empty {
5540
5612
  }
5541
- interface MessageEnvelope {
5542
- /**
5543
- * App instance ID.
5544
- * @format GUID
5545
- */
5546
- instanceId?: string | null;
5547
- /**
5548
- * Event type.
5549
- * @maxLength 150
5550
- */
5551
- eventType?: string;
5552
- /** The identification type and identity data. */
5553
- identity?: IdentificationData;
5554
- /** Stringify payload. */
5555
- data?: string;
5556
- }
5557
- interface IdentificationData extends IdentificationDataIdOneOf {
5558
- /**
5559
- * ID of a site visitor that has not logged in to the site.
5560
- * @format GUID
5561
- */
5562
- anonymousVisitorId?: string;
5563
- /**
5564
- * ID of a site visitor that has logged in to the site.
5565
- * @format GUID
5566
- */
5567
- memberId?: string;
5568
- /**
5569
- * ID of a Wix user (site owner, contributor, etc.).
5570
- * @format GUID
5571
- */
5572
- wixUserId?: string;
5573
- /**
5574
- * ID of an app.
5575
- * @format GUID
5576
- */
5577
- appId?: string;
5578
- /** @readonly */
5579
- identityType?: WebhookIdentityTypeWithLiterals;
5580
- }
5581
- /** @oneof */
5582
- interface IdentificationDataIdOneOf {
5583
- /**
5584
- * ID of a site visitor that has not logged in to the site.
5585
- * @format GUID
5586
- */
5587
- anonymousVisitorId?: string;
5588
- /**
5589
- * ID of a site visitor that has logged in to the site.
5590
- * @format GUID
5591
- */
5592
- memberId?: string;
5593
- /**
5594
- * ID of a Wix user (site owner, contributor, etc.).
5595
- * @format GUID
5596
- */
5597
- wixUserId?: string;
5598
- /**
5599
- * ID of an app.
5600
- * @format GUID
5601
- */
5602
- appId?: string;
5603
- }
5604
- declare enum WebhookIdentityType {
5605
- UNKNOWN = "UNKNOWN",
5606
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
5607
- MEMBER = "MEMBER",
5608
- WIX_USER = "WIX_USER",
5609
- APP = "APP"
5610
- }
5611
- /** @enumType */
5612
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
5613
5613
  interface UpsertContactFromSubmissionRequest {
5614
5614
  /**
5615
5615
  * Submission from which contact needs to be upserted.
@@ -5670,6 +5670,8 @@ interface CreateSubmissionRequest {
5670
5670
  * @maxLength 3000
5671
5671
  */
5672
5672
  captchaToken?: string | null;
5673
+ /** Optional metadata passed to SPI implementer, allowing clients to include additional business-specific data. */
5674
+ additionalMetadata?: Record<string, any> | null;
5673
5675
  }
5674
5676
  interface CreateSubmissionResponse {
5675
5677
  /** The created submission. */
@@ -6578,6 +6580,8 @@ interface BulkUpdateFormSubmissionTagsByFilterResponse {
6578
6580
  interface ValidateFormSubmissionRequest {
6579
6581
  /** Submission to validate. */
6580
6582
  submission: FormSubmission;
6583
+ /** Optional metadata passed to SPI implementer, allowing clients to include additional business-specific data. */
6584
+ additionalMetadata?: Record<string, any> | null;
6581
6585
  /**
6582
6586
  * List of field targets/keys to validate, in case when only several fields should to be validated.
6583
6587
  * If empty, all form fields be validated
package/build/cjs/meta.js CHANGED
@@ -996,6 +996,14 @@ var OptInLevel = /* @__PURE__ */ ((OptInLevel2) => {
996
996
  OptInLevel2["DOUBLE_CONFIRMATION"] = "DOUBLE_CONFIRMATION";
997
997
  return OptInLevel2;
998
998
  })(OptInLevel || {});
999
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1000
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1001
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1002
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1003
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1004
+ WebhookIdentityType2["APP"] = "APP";
1005
+ return WebhookIdentityType2;
1006
+ })(WebhookIdentityType || {});
999
1007
  var StringTypeFormatEnumFormat = /* @__PURE__ */ ((StringTypeFormatEnumFormat2) => {
1000
1008
  StringTypeFormatEnumFormat2["UNDEFINED"] = "UNDEFINED";
1001
1009
  StringTypeFormatEnumFormat2["DATE"] = "DATE";
@@ -1661,14 +1669,6 @@ var Operator = /* @__PURE__ */ ((Operator2) => {
1661
1669
  Operator2["IS_DATE_NEWER_THAN_OR_EQUAL"] = "IS_DATE_NEWER_THAN_OR_EQUAL";
1662
1670
  return Operator2;
1663
1671
  })(Operator || {});
1664
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1665
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1666
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1667
- WebhookIdentityType2["MEMBER"] = "MEMBER";
1668
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1669
- WebhookIdentityType2["APP"] = "APP";
1670
- return WebhookIdentityType2;
1671
- })(WebhookIdentityType || {});
1672
1672
  var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
1673
1673
  IdentityType2["UNKNOWN"] = "UNKNOWN";
1674
1674
  IdentityType2["CONTACT"] = "CONTACT";