@wix/forms 1.0.136 → 1.0.138
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.
|
@@ -1,45 +1,3 @@
|
|
|
1
|
-
interface SubmissionContactMapped {
|
|
2
|
-
/**
|
|
3
|
-
* Mapped upserted contact ID.
|
|
4
|
-
* @readonly
|
|
5
|
-
*/
|
|
6
|
-
contactId?: string;
|
|
7
|
-
/** Identifies the namespace that the submission's form belongs to. */
|
|
8
|
-
namespace?: string;
|
|
9
|
-
/** Marketing subscription details */
|
|
10
|
-
marketingSubscriptionDetails?: MarketingSubscriptionDetails;
|
|
11
|
-
}
|
|
12
|
-
interface MarketingSubscriptionDetails {
|
|
13
|
-
/** Form id which was submitted */
|
|
14
|
-
formId?: string;
|
|
15
|
-
/** Mapped contact emails. */
|
|
16
|
-
emails?: string[];
|
|
17
|
-
/**
|
|
18
|
-
* Date and time the form submission was created.
|
|
19
|
-
* @readonly
|
|
20
|
-
*/
|
|
21
|
-
submittedDate?: Date;
|
|
22
|
-
/**
|
|
23
|
-
* Subscription consent opt in level, either single or double confirmation.
|
|
24
|
-
* Default: SINGLE_CONFIRMATION
|
|
25
|
-
*/
|
|
26
|
-
optInLevel?: OptInLevel;
|
|
27
|
-
}
|
|
28
|
-
declare enum OptInLevel {
|
|
29
|
-
SINGLE_CONFIRMATION = "SINGLE_CONFIRMATION",
|
|
30
|
-
DOUBLE_CONFIRMATION = "DOUBLE_CONFIRMATION"
|
|
31
|
-
}
|
|
32
|
-
interface SubmissionContactMappingSkipped {
|
|
33
|
-
/** Form Id. */
|
|
34
|
-
formId?: string;
|
|
35
|
-
/** Identifies the namespace that the submission's form belongs to. */
|
|
36
|
-
namespace?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Contact ID resolved from the submission context.
|
|
39
|
-
* @readonly
|
|
40
|
-
*/
|
|
41
|
-
contactId?: string | null;
|
|
42
|
-
}
|
|
43
1
|
interface ValidateSubmissionRequest extends ValidateSubmissionRequestActionsOneOf {
|
|
44
2
|
/** Data for updating an existing submission. */
|
|
45
3
|
updateOptions?: UpdateOptions;
|
|
@@ -288,7 +246,7 @@ interface Context {
|
|
|
288
246
|
/** [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code. */
|
|
289
247
|
currency?: string | null;
|
|
290
248
|
/** An object that describes the identity that triggered this request. */
|
|
291
|
-
identity?:
|
|
249
|
+
identity?: IdentificationData;
|
|
292
250
|
/** A string representing a language and region in the format of `"xx-XX"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash "-", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `"en-US"`. */
|
|
293
251
|
languages?: string[];
|
|
294
252
|
/** The service provider app's instance ID. */
|
|
@@ -301,111 +259,6 @@ declare enum IdentityType {
|
|
|
301
259
|
WIX_USER = "WIX_USER",
|
|
302
260
|
APP = "APP"
|
|
303
261
|
}
|
|
304
|
-
interface ContextIdentificationData extends ContextIdentificationDataIdOneOf {
|
|
305
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
306
|
-
anonymousVisitorId?: string;
|
|
307
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
308
|
-
memberId?: string;
|
|
309
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
310
|
-
wixUserId?: string;
|
|
311
|
-
/** ID of an app. */
|
|
312
|
-
appId?: string;
|
|
313
|
-
/** @readonly */
|
|
314
|
-
identityType?: IdentityType;
|
|
315
|
-
}
|
|
316
|
-
/** @oneof */
|
|
317
|
-
interface ContextIdentificationDataIdOneOf {
|
|
318
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
319
|
-
anonymousVisitorId?: string;
|
|
320
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
321
|
-
memberId?: string;
|
|
322
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
323
|
-
wixUserId?: string;
|
|
324
|
-
/** ID of an app. */
|
|
325
|
-
appId?: string;
|
|
326
|
-
}
|
|
327
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
328
|
-
createdEvent?: EntityCreatedEvent;
|
|
329
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
330
|
-
deletedEvent?: EntityDeletedEvent;
|
|
331
|
-
actionEvent?: ActionEvent;
|
|
332
|
-
/**
|
|
333
|
-
* Unique event ID.
|
|
334
|
-
* Allows clients to ignore duplicate webhooks.
|
|
335
|
-
*/
|
|
336
|
-
_id?: string;
|
|
337
|
-
/**
|
|
338
|
-
* Assumes actions are also always typed to an entity_type
|
|
339
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
340
|
-
*/
|
|
341
|
-
entityFqdn?: string;
|
|
342
|
-
/**
|
|
343
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
344
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
345
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
346
|
-
*/
|
|
347
|
-
slug?: string;
|
|
348
|
-
/** ID of the entity associated with the event. */
|
|
349
|
-
entityId?: string;
|
|
350
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
351
|
-
eventTime?: Date;
|
|
352
|
-
/**
|
|
353
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
354
|
-
* (for example, GDPR).
|
|
355
|
-
*/
|
|
356
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
357
|
-
/** If present, indicates the action that triggered the event. */
|
|
358
|
-
originatedFrom?: string | null;
|
|
359
|
-
/**
|
|
360
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
361
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
362
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
363
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
364
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
365
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
366
|
-
*/
|
|
367
|
-
entityEventSequence?: string | null;
|
|
368
|
-
}
|
|
369
|
-
/** @oneof */
|
|
370
|
-
interface DomainEventBodyOneOf {
|
|
371
|
-
createdEvent?: EntityCreatedEvent;
|
|
372
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
373
|
-
deletedEvent?: EntityDeletedEvent;
|
|
374
|
-
actionEvent?: ActionEvent;
|
|
375
|
-
}
|
|
376
|
-
interface EntityCreatedEvent {
|
|
377
|
-
entityAsJson?: string;
|
|
378
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
379
|
-
restoreInfo?: RestoreInfo;
|
|
380
|
-
}
|
|
381
|
-
interface RestoreInfo {
|
|
382
|
-
deletedDate?: Date;
|
|
383
|
-
}
|
|
384
|
-
interface EntityUpdatedEvent {
|
|
385
|
-
/**
|
|
386
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
387
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
388
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
389
|
-
*/
|
|
390
|
-
currentEntityAsJson?: string;
|
|
391
|
-
}
|
|
392
|
-
interface EntityDeletedEvent {
|
|
393
|
-
/** Entity that was deleted */
|
|
394
|
-
deletedEntityAsJson?: string | null;
|
|
395
|
-
}
|
|
396
|
-
interface ActionEvent {
|
|
397
|
-
bodyAsJson?: string;
|
|
398
|
-
}
|
|
399
|
-
interface MessageEnvelope {
|
|
400
|
-
/** App instance ID. */
|
|
401
|
-
instanceId?: string | null;
|
|
402
|
-
/** Event type. */
|
|
403
|
-
eventType?: string;
|
|
404
|
-
/** The identification type and identity data. */
|
|
405
|
-
identity?: IdentificationData;
|
|
406
|
-
/** Stringify payload. */
|
|
407
|
-
data?: string;
|
|
408
|
-
}
|
|
409
262
|
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
410
263
|
/** ID of a site visitor that has not logged in to the site. */
|
|
411
264
|
anonymousVisitorId?: string;
|
|
@@ -416,7 +269,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
416
269
|
/** ID of an app. */
|
|
417
270
|
appId?: string;
|
|
418
271
|
/** @readonly */
|
|
419
|
-
identityType?:
|
|
272
|
+
identityType?: IdentityType;
|
|
420
273
|
}
|
|
421
274
|
/** @oneof */
|
|
422
275
|
interface IdentificationDataIdOneOf {
|
|
@@ -429,13 +282,6 @@ interface IdentificationDataIdOneOf {
|
|
|
429
282
|
/** ID of an app. */
|
|
430
283
|
appId?: string;
|
|
431
284
|
}
|
|
432
|
-
declare enum WebhookIdentityType {
|
|
433
|
-
UNKNOWN = "UNKNOWN",
|
|
434
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
435
|
-
MEMBER = "MEMBER",
|
|
436
|
-
WIX_USER = "WIX_USER",
|
|
437
|
-
APP = "APP"
|
|
438
|
-
}
|
|
439
285
|
|
|
440
286
|
type ServicePluginMethodInput = {
|
|
441
287
|
request: any;
|
|
@@ -486,18 +332,10 @@ declare function createServicePluginModule<T extends ServicePluginDefinition<any
|
|
|
486
332
|
type _publicProvideHandlersType = typeof provideHandlers$1;
|
|
487
333
|
declare const provideHandlers: ReturnType<typeof createServicePluginModule<_publicProvideHandlersType>>;
|
|
488
334
|
|
|
489
|
-
type context_ActionEvent = ActionEvent;
|
|
490
335
|
type context_ActionType = ActionType;
|
|
491
336
|
declare const context_ActionType: typeof ActionType;
|
|
492
337
|
type context_AlternativeUri = AlternativeUri;
|
|
493
338
|
type context_Context = Context;
|
|
494
|
-
type context_ContextIdentificationData = ContextIdentificationData;
|
|
495
|
-
type context_ContextIdentificationDataIdOneOf = ContextIdentificationDataIdOneOf;
|
|
496
|
-
type context_DomainEvent = DomainEvent;
|
|
497
|
-
type context_DomainEventBodyOneOf = DomainEventBodyOneOf;
|
|
498
|
-
type context_EntityCreatedEvent = EntityCreatedEvent;
|
|
499
|
-
type context_EntityDeletedEvent = EntityDeletedEvent;
|
|
500
|
-
type context_EntityUpdatedEvent = EntityUpdatedEvent;
|
|
501
339
|
type context_ExtendedFields = ExtendedFields;
|
|
502
340
|
type context_FormSubmission = FormSubmission;
|
|
503
341
|
type context_FormSubmissionSpiExtensionConfig = FormSubmissionSpiExtensionConfig;
|
|
@@ -506,15 +344,8 @@ type context_IdentificationData = IdentificationData;
|
|
|
506
344
|
type context_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
|
507
345
|
type context_IdentityType = IdentityType;
|
|
508
346
|
declare const context_IdentityType: typeof IdentityType;
|
|
509
|
-
type context_MarketingSubscriptionDetails = MarketingSubscriptionDetails;
|
|
510
|
-
type context_MessageEnvelope = MessageEnvelope;
|
|
511
|
-
type context_OptInLevel = OptInLevel;
|
|
512
|
-
declare const context_OptInLevel: typeof OptInLevel;
|
|
513
347
|
type context_OrderDetails = OrderDetails;
|
|
514
|
-
type context_RestoreInfo = RestoreInfo;
|
|
515
348
|
type context_SpiBaseUri = SpiBaseUri;
|
|
516
|
-
type context_SubmissionContactMapped = SubmissionContactMapped;
|
|
517
|
-
type context_SubmissionContactMappingSkipped = SubmissionContactMappingSkipped;
|
|
518
349
|
type context_SubmissionErrorType = SubmissionErrorType;
|
|
519
350
|
declare const context_SubmissionErrorType: typeof SubmissionErrorType;
|
|
520
351
|
type context_SubmissionStatus = SubmissionStatus;
|
|
@@ -527,12 +358,10 @@ type context_UpdateOptions = UpdateOptions;
|
|
|
527
358
|
type context_ValidateSubmissionRequest = ValidateSubmissionRequest;
|
|
528
359
|
type context_ValidateSubmissionRequestActionsOneOf = ValidateSubmissionRequestActionsOneOf;
|
|
529
360
|
type context_ValidateSubmissionResponse = ValidateSubmissionResponse;
|
|
530
|
-
type context_WebhookIdentityType = WebhookIdentityType;
|
|
531
|
-
declare const context_WebhookIdentityType: typeof WebhookIdentityType;
|
|
532
361
|
type context__publicProvideHandlersType = _publicProvideHandlersType;
|
|
533
362
|
declare const context_provideHandlers: typeof provideHandlers;
|
|
534
363
|
declare namespace context {
|
|
535
|
-
export {
|
|
364
|
+
export { context_ActionType as ActionType, type context_AlternativeUri as AlternativeUri, type context_Context as Context, type context_ExtendedFields as ExtendedFields, type context_FormSubmission as FormSubmission, type context_FormSubmissionSpiExtensionConfig as FormSubmissionSpiExtensionConfig, type context_FormsSubmissionsExtensionNamespaceConfig as FormsSubmissionsExtensionNamespaceConfig, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context_IdentityType as IdentityType, type context_OrderDetails as OrderDetails, type context_SpiBaseUri as SpiBaseUri, context_SubmissionErrorType as SubmissionErrorType, context_SubmissionStatus as SubmissionStatus, type context_SubmissionValidationError as SubmissionValidationError, type context_SubmissionValidationErrorErrorMessageOneOf as SubmissionValidationErrorErrorMessageOneOf, type context_Submitter as Submitter, type context_SubmitterSubmitterOneOf as SubmitterSubmitterOneOf, type context_UpdateOptions as UpdateOptions, type context_ValidateSubmissionRequest as ValidateSubmissionRequest, type context_ValidateSubmissionRequestActionsOneOf as ValidateSubmissionRequestActionsOneOf, type context_ValidateSubmissionResponse as ValidateSubmissionResponse, type context__publicProvideHandlersType as _publicProvideHandlersType, context_provideHandlers as provideHandlers, provideHandlers$1 as publicProvideHandlers };
|
|
536
365
|
}
|
|
537
366
|
|
|
538
367
|
export { context as formSubmissions };
|
|
@@ -1,45 +1,3 @@
|
|
|
1
|
-
interface SubmissionContactMapped {
|
|
2
|
-
/**
|
|
3
|
-
* Mapped upserted contact ID.
|
|
4
|
-
* @readonly
|
|
5
|
-
*/
|
|
6
|
-
contactId?: string;
|
|
7
|
-
/** Identifies the namespace that the submission's form belongs to. */
|
|
8
|
-
namespace?: string;
|
|
9
|
-
/** Marketing subscription details */
|
|
10
|
-
marketingSubscriptionDetails?: MarketingSubscriptionDetails;
|
|
11
|
-
}
|
|
12
|
-
interface MarketingSubscriptionDetails {
|
|
13
|
-
/** Form id which was submitted */
|
|
14
|
-
formId?: string;
|
|
15
|
-
/** Mapped contact emails. */
|
|
16
|
-
emails?: string[];
|
|
17
|
-
/**
|
|
18
|
-
* Date and time the form submission was created.
|
|
19
|
-
* @readonly
|
|
20
|
-
*/
|
|
21
|
-
submittedDate?: Date;
|
|
22
|
-
/**
|
|
23
|
-
* Subscription consent opt in level, either single or double confirmation.
|
|
24
|
-
* Default: SINGLE_CONFIRMATION
|
|
25
|
-
*/
|
|
26
|
-
optInLevel?: OptInLevel;
|
|
27
|
-
}
|
|
28
|
-
declare enum OptInLevel {
|
|
29
|
-
SINGLE_CONFIRMATION = "SINGLE_CONFIRMATION",
|
|
30
|
-
DOUBLE_CONFIRMATION = "DOUBLE_CONFIRMATION"
|
|
31
|
-
}
|
|
32
|
-
interface SubmissionContactMappingSkipped {
|
|
33
|
-
/** Form Id. */
|
|
34
|
-
formId?: string;
|
|
35
|
-
/** Identifies the namespace that the submission's form belongs to. */
|
|
36
|
-
namespace?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Contact ID resolved from the submission context.
|
|
39
|
-
* @readonly
|
|
40
|
-
*/
|
|
41
|
-
contactId?: string | null;
|
|
42
|
-
}
|
|
43
1
|
interface ValidateSubmissionRequest extends ValidateSubmissionRequestActionsOneOf {
|
|
44
2
|
/** Data for updating an existing submission. */
|
|
45
3
|
updateOptions?: UpdateOptions;
|
|
@@ -288,7 +246,7 @@ interface Context {
|
|
|
288
246
|
/** [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code. */
|
|
289
247
|
currency?: string | null;
|
|
290
248
|
/** An object that describes the identity that triggered this request. */
|
|
291
|
-
identity?:
|
|
249
|
+
identity?: IdentificationData;
|
|
292
250
|
/** A string representing a language and region in the format of `"xx-XX"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash "-", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `"en-US"`. */
|
|
293
251
|
languages?: string[];
|
|
294
252
|
/** The service provider app's instance ID. */
|
|
@@ -301,111 +259,6 @@ declare enum IdentityType {
|
|
|
301
259
|
WIX_USER = "WIX_USER",
|
|
302
260
|
APP = "APP"
|
|
303
261
|
}
|
|
304
|
-
interface ContextIdentificationData extends ContextIdentificationDataIdOneOf {
|
|
305
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
306
|
-
anonymousVisitorId?: string;
|
|
307
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
308
|
-
memberId?: string;
|
|
309
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
310
|
-
wixUserId?: string;
|
|
311
|
-
/** ID of an app. */
|
|
312
|
-
appId?: string;
|
|
313
|
-
/** @readonly */
|
|
314
|
-
identityType?: IdentityType;
|
|
315
|
-
}
|
|
316
|
-
/** @oneof */
|
|
317
|
-
interface ContextIdentificationDataIdOneOf {
|
|
318
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
319
|
-
anonymousVisitorId?: string;
|
|
320
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
321
|
-
memberId?: string;
|
|
322
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
323
|
-
wixUserId?: string;
|
|
324
|
-
/** ID of an app. */
|
|
325
|
-
appId?: string;
|
|
326
|
-
}
|
|
327
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
328
|
-
createdEvent?: EntityCreatedEvent;
|
|
329
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
330
|
-
deletedEvent?: EntityDeletedEvent;
|
|
331
|
-
actionEvent?: ActionEvent;
|
|
332
|
-
/**
|
|
333
|
-
* Unique event ID.
|
|
334
|
-
* Allows clients to ignore duplicate webhooks.
|
|
335
|
-
*/
|
|
336
|
-
_id?: string;
|
|
337
|
-
/**
|
|
338
|
-
* Assumes actions are also always typed to an entity_type
|
|
339
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
340
|
-
*/
|
|
341
|
-
entityFqdn?: string;
|
|
342
|
-
/**
|
|
343
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
344
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
345
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
346
|
-
*/
|
|
347
|
-
slug?: string;
|
|
348
|
-
/** ID of the entity associated with the event. */
|
|
349
|
-
entityId?: string;
|
|
350
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
351
|
-
eventTime?: Date;
|
|
352
|
-
/**
|
|
353
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
354
|
-
* (for example, GDPR).
|
|
355
|
-
*/
|
|
356
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
357
|
-
/** If present, indicates the action that triggered the event. */
|
|
358
|
-
originatedFrom?: string | null;
|
|
359
|
-
/**
|
|
360
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
361
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
362
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
363
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
364
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
365
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
366
|
-
*/
|
|
367
|
-
entityEventSequence?: string | null;
|
|
368
|
-
}
|
|
369
|
-
/** @oneof */
|
|
370
|
-
interface DomainEventBodyOneOf {
|
|
371
|
-
createdEvent?: EntityCreatedEvent;
|
|
372
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
373
|
-
deletedEvent?: EntityDeletedEvent;
|
|
374
|
-
actionEvent?: ActionEvent;
|
|
375
|
-
}
|
|
376
|
-
interface EntityCreatedEvent {
|
|
377
|
-
entityAsJson?: string;
|
|
378
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
379
|
-
restoreInfo?: RestoreInfo;
|
|
380
|
-
}
|
|
381
|
-
interface RestoreInfo {
|
|
382
|
-
deletedDate?: Date;
|
|
383
|
-
}
|
|
384
|
-
interface EntityUpdatedEvent {
|
|
385
|
-
/**
|
|
386
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
387
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
388
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
389
|
-
*/
|
|
390
|
-
currentEntityAsJson?: string;
|
|
391
|
-
}
|
|
392
|
-
interface EntityDeletedEvent {
|
|
393
|
-
/** Entity that was deleted */
|
|
394
|
-
deletedEntityAsJson?: string | null;
|
|
395
|
-
}
|
|
396
|
-
interface ActionEvent {
|
|
397
|
-
bodyAsJson?: string;
|
|
398
|
-
}
|
|
399
|
-
interface MessageEnvelope {
|
|
400
|
-
/** App instance ID. */
|
|
401
|
-
instanceId?: string | null;
|
|
402
|
-
/** Event type. */
|
|
403
|
-
eventType?: string;
|
|
404
|
-
/** The identification type and identity data. */
|
|
405
|
-
identity?: IdentificationData;
|
|
406
|
-
/** Stringify payload. */
|
|
407
|
-
data?: string;
|
|
408
|
-
}
|
|
409
262
|
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
410
263
|
/** ID of a site visitor that has not logged in to the site. */
|
|
411
264
|
anonymousVisitorId?: string;
|
|
@@ -416,7 +269,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
416
269
|
/** ID of an app. */
|
|
417
270
|
appId?: string;
|
|
418
271
|
/** @readonly */
|
|
419
|
-
identityType?:
|
|
272
|
+
identityType?: IdentityType;
|
|
420
273
|
}
|
|
421
274
|
/** @oneof */
|
|
422
275
|
interface IdentificationDataIdOneOf {
|
|
@@ -429,13 +282,6 @@ interface IdentificationDataIdOneOf {
|
|
|
429
282
|
/** ID of an app. */
|
|
430
283
|
appId?: string;
|
|
431
284
|
}
|
|
432
|
-
declare enum WebhookIdentityType {
|
|
433
|
-
UNKNOWN = "UNKNOWN",
|
|
434
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
435
|
-
MEMBER = "MEMBER",
|
|
436
|
-
WIX_USER = "WIX_USER",
|
|
437
|
-
APP = "APP"
|
|
438
|
-
}
|
|
439
285
|
|
|
440
286
|
type ServicePluginMethodInput = {
|
|
441
287
|
request: any;
|
|
@@ -486,18 +332,10 @@ declare function createServicePluginModule<T extends ServicePluginDefinition<any
|
|
|
486
332
|
type _publicProvideHandlersType = typeof provideHandlers$1;
|
|
487
333
|
declare const provideHandlers: ReturnType<typeof createServicePluginModule<_publicProvideHandlersType>>;
|
|
488
334
|
|
|
489
|
-
type index_d_ActionEvent = ActionEvent;
|
|
490
335
|
type index_d_ActionType = ActionType;
|
|
491
336
|
declare const index_d_ActionType: typeof ActionType;
|
|
492
337
|
type index_d_AlternativeUri = AlternativeUri;
|
|
493
338
|
type index_d_Context = Context;
|
|
494
|
-
type index_d_ContextIdentificationData = ContextIdentificationData;
|
|
495
|
-
type index_d_ContextIdentificationDataIdOneOf = ContextIdentificationDataIdOneOf;
|
|
496
|
-
type index_d_DomainEvent = DomainEvent;
|
|
497
|
-
type index_d_DomainEventBodyOneOf = DomainEventBodyOneOf;
|
|
498
|
-
type index_d_EntityCreatedEvent = EntityCreatedEvent;
|
|
499
|
-
type index_d_EntityDeletedEvent = EntityDeletedEvent;
|
|
500
|
-
type index_d_EntityUpdatedEvent = EntityUpdatedEvent;
|
|
501
339
|
type index_d_ExtendedFields = ExtendedFields;
|
|
502
340
|
type index_d_FormSubmission = FormSubmission;
|
|
503
341
|
type index_d_FormSubmissionSpiExtensionConfig = FormSubmissionSpiExtensionConfig;
|
|
@@ -506,15 +344,8 @@ type index_d_IdentificationData = IdentificationData;
|
|
|
506
344
|
type index_d_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
|
507
345
|
type index_d_IdentityType = IdentityType;
|
|
508
346
|
declare const index_d_IdentityType: typeof IdentityType;
|
|
509
|
-
type index_d_MarketingSubscriptionDetails = MarketingSubscriptionDetails;
|
|
510
|
-
type index_d_MessageEnvelope = MessageEnvelope;
|
|
511
|
-
type index_d_OptInLevel = OptInLevel;
|
|
512
|
-
declare const index_d_OptInLevel: typeof OptInLevel;
|
|
513
347
|
type index_d_OrderDetails = OrderDetails;
|
|
514
|
-
type index_d_RestoreInfo = RestoreInfo;
|
|
515
348
|
type index_d_SpiBaseUri = SpiBaseUri;
|
|
516
|
-
type index_d_SubmissionContactMapped = SubmissionContactMapped;
|
|
517
|
-
type index_d_SubmissionContactMappingSkipped = SubmissionContactMappingSkipped;
|
|
518
349
|
type index_d_SubmissionErrorType = SubmissionErrorType;
|
|
519
350
|
declare const index_d_SubmissionErrorType: typeof SubmissionErrorType;
|
|
520
351
|
type index_d_SubmissionStatus = SubmissionStatus;
|
|
@@ -527,12 +358,10 @@ type index_d_UpdateOptions = UpdateOptions;
|
|
|
527
358
|
type index_d_ValidateSubmissionRequest = ValidateSubmissionRequest;
|
|
528
359
|
type index_d_ValidateSubmissionRequestActionsOneOf = ValidateSubmissionRequestActionsOneOf;
|
|
529
360
|
type index_d_ValidateSubmissionResponse = ValidateSubmissionResponse;
|
|
530
|
-
type index_d_WebhookIdentityType = WebhookIdentityType;
|
|
531
|
-
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
|
532
361
|
type index_d__publicProvideHandlersType = _publicProvideHandlersType;
|
|
533
362
|
declare const index_d_provideHandlers: typeof provideHandlers;
|
|
534
363
|
declare namespace index_d {
|
|
535
|
-
export {
|
|
364
|
+
export { index_d_ActionType as ActionType, type index_d_AlternativeUri as AlternativeUri, type index_d_Context as Context, type index_d_ExtendedFields as ExtendedFields, type index_d_FormSubmission as FormSubmission, type index_d_FormSubmissionSpiExtensionConfig as FormSubmissionSpiExtensionConfig, type index_d_FormsSubmissionsExtensionNamespaceConfig as FormsSubmissionsExtensionNamespaceConfig, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_IdentityType as IdentityType, type index_d_OrderDetails as OrderDetails, type index_d_SpiBaseUri as SpiBaseUri, index_d_SubmissionErrorType as SubmissionErrorType, index_d_SubmissionStatus as SubmissionStatus, type index_d_SubmissionValidationError as SubmissionValidationError, type index_d_SubmissionValidationErrorErrorMessageOneOf as SubmissionValidationErrorErrorMessageOneOf, type index_d_Submitter as Submitter, type index_d_SubmitterSubmitterOneOf as SubmitterSubmitterOneOf, type index_d_UpdateOptions as UpdateOptions, type index_d_ValidateSubmissionRequest as ValidateSubmissionRequest, type index_d_ValidateSubmissionRequestActionsOneOf as ValidateSubmissionRequestActionsOneOf, type index_d_ValidateSubmissionResponse as ValidateSubmissionResponse, type index_d__publicProvideHandlersType as _publicProvideHandlersType, index_d_provideHandlers as provideHandlers, provideHandlers$1 as publicProvideHandlers };
|
|
536
365
|
}
|
|
537
366
|
|
|
538
367
|
export { index_d as formSubmissions };
|