@wix/crm 1.0.155 → 1.0.157

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/crm",
3
- "version": "1.0.155",
3
+ "version": "1.0.157",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -21,12 +21,12 @@
21
21
  "type-bundles"
22
22
  ],
23
23
  "dependencies": {
24
- "@wix/crm_attachments": "1.0.18",
25
- "@wix/crm_contacts": "1.0.64",
24
+ "@wix/crm_attachments": "1.0.19",
25
+ "@wix/crm_contacts": "1.0.66",
26
26
  "@wix/crm_extended-fields": "1.0.48",
27
27
  "@wix/crm_labels": "1.0.47",
28
28
  "@wix/crm_submitted-contact": "1.0.43",
29
- "@wix/crm_tasks": "1.0.47"
29
+ "@wix/crm_tasks": "1.0.48"
30
30
  },
31
31
  "devDependencies": {
32
32
  "glob": "^10.4.1",
@@ -51,5 +51,5 @@
51
51
  "fqdn": ""
52
52
  }
53
53
  },
54
- "falconPackageHash": "11f8d474d55d6bc4916f5de0f2649ba99015fa13ee8b9cb08df0fbe0"
54
+ "falconPackageHash": "07cee18d8218564f155cadd39f73bfd3bc3558fbbf9ec5af04dfd3be"
55
55
  }
@@ -542,7 +542,7 @@ interface DomainEvent$4 extends DomainEventBodyOneOf$4 {
542
542
  slug?: string;
543
543
  /** ID of the entity associated with the event. */
544
544
  entityId?: string;
545
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
545
+ /** Event timestamp. */
546
546
  eventTime?: Date | null;
547
547
  /**
548
548
  * Whether the event was triggered as a result of a privacy regulation application
@@ -571,9 +571,6 @@ interface DomainEventBodyOneOf$4 {
571
571
  interface EntityCreatedEvent$4 {
572
572
  entity?: string;
573
573
  }
574
- interface RestoreInfo$4 {
575
- deletedDate?: Date | null;
576
- }
577
574
  interface EntityUpdatedEvent$4 {
578
575
  /**
579
576
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
@@ -810,7 +807,7 @@ interface EventMetadata$4 extends BaseEventMetadata$4 {
810
807
  slug?: string;
811
808
  /** ID of the entity associated with the event. */
812
809
  entityId?: string;
813
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
810
+ /** Event timestamp. */
814
811
  eventTime?: Date | null;
815
812
  /**
816
813
  * Whether the event was triggered as a result of a privacy regulation application
@@ -958,7 +955,7 @@ declare const context$5_listAttachments: typeof listAttachments;
958
955
  declare const context$5_onAttachmentCreated: typeof onAttachmentCreated;
959
956
  declare const context$5_onAttachmentDeleted: typeof onAttachmentDeleted;
960
957
  declare namespace context$5 {
961
- export { type ActionEvent$4 as ActionEvent, type context$5_AttachmentCreatedEnvelope as AttachmentCreatedEnvelope, type context$5_AttachmentDeletedEnvelope as AttachmentDeletedEnvelope, type context$5_AttachmentMedia as AttachmentMedia, type context$5_AttachmentMediaMediaOneOf as AttachmentMediaMediaOneOf, type context$5_AttachmentMetadata as AttachmentMetadata, type context$5_AttachmentSource as AttachmentSource, context$5_AttachmentType as AttachmentType, type BaseEventMetadata$4 as BaseEventMetadata, type context$5_ContactAttachment as ContactAttachment, type context$5_ContactAttachmentMediaOneOf as ContactAttachmentMediaOneOf, type context$5_ContactAttachmentNonNullableFields as ContactAttachmentNonNullableFields, type context$5_CreateDemoAttachmentRequest as CreateDemoAttachmentRequest, type context$5_CreateDemoAttachmentResponse as CreateDemoAttachmentResponse, type context$5_CrmAttachment as CrmAttachment, context$5_CrmAttachmentAttachmentType as CrmAttachmentAttachmentType, type context$5_CrmAttachmentUploadedEvent as CrmAttachmentUploadedEvent, type context$5_DeleteAttachmentIdentifiers as DeleteAttachmentIdentifiers, type context$5_DeleteAttachmentRequest as DeleteAttachmentRequest, type context$5_DeleteAttachmentResponse as DeleteAttachmentResponse, context$5_DemoContactType as DemoContactType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$4 as EventMetadata, type context$5_GenerateAttachmentUploadUrlOptions as GenerateAttachmentUploadUrlOptions, type context$5_GenerateAttachmentUploadUrlRequest as GenerateAttachmentUploadUrlRequest, type context$5_GenerateAttachmentUploadUrlResponse as GenerateAttachmentUploadUrlResponse, type context$5_GenerateAttachmentUploadUrlResponseNonNullableFields as GenerateAttachmentUploadUrlResponseNonNullableFields, type context$5_GetAttachmentIdentifiers as GetAttachmentIdentifiers, type context$5_GetAttachmentRequest as GetAttachmentRequest, type context$5_GetAttachmentResponse as GetAttachmentResponse, type context$5_GetAttachmentResponseNonNullableFields as GetAttachmentResponseNonNullableFields, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type context$5_ListAttachmentsOptions as ListAttachmentsOptions, type context$5_ListAttachmentsRequest as ListAttachmentsRequest, type context$5_ListAttachmentsResponse as ListAttachmentsResponse, type context$5_ListAttachmentsResponseNonNullableFields as ListAttachmentsResponseNonNullableFields, type context$5_MediaFileUploadedEvent as MediaFileUploadedEvent, type MessageEnvelope$5 as MessageEnvelope, type Paging$4 as Paging, type PagingMetadata$3 as PagingMetadata, type RestoreInfo$4 as RestoreInfo, WebhookIdentityType$5 as WebhookIdentityType, type context$5__publicOnAttachmentCreatedType as _publicOnAttachmentCreatedType, type context$5__publicOnAttachmentDeletedType as _publicOnAttachmentDeletedType, context$5_deleteAttachment as deleteAttachment, context$5_generateAttachmentUploadUrl as generateAttachmentUploadUrl, context$5_getAttachment as getAttachment, context$5_listAttachments as listAttachments, context$5_onAttachmentCreated as onAttachmentCreated, context$5_onAttachmentDeleted as onAttachmentDeleted, onAttachmentCreated$1 as publicOnAttachmentCreated, onAttachmentDeleted$1 as publicOnAttachmentDeleted };
958
+ export { type ActionEvent$4 as ActionEvent, type context$5_AttachmentCreatedEnvelope as AttachmentCreatedEnvelope, type context$5_AttachmentDeletedEnvelope as AttachmentDeletedEnvelope, type context$5_AttachmentMedia as AttachmentMedia, type context$5_AttachmentMediaMediaOneOf as AttachmentMediaMediaOneOf, type context$5_AttachmentMetadata as AttachmentMetadata, type context$5_AttachmentSource as AttachmentSource, context$5_AttachmentType as AttachmentType, type BaseEventMetadata$4 as BaseEventMetadata, type context$5_ContactAttachment as ContactAttachment, type context$5_ContactAttachmentMediaOneOf as ContactAttachmentMediaOneOf, type context$5_ContactAttachmentNonNullableFields as ContactAttachmentNonNullableFields, type context$5_CreateDemoAttachmentRequest as CreateDemoAttachmentRequest, type context$5_CreateDemoAttachmentResponse as CreateDemoAttachmentResponse, type context$5_CrmAttachment as CrmAttachment, context$5_CrmAttachmentAttachmentType as CrmAttachmentAttachmentType, type context$5_CrmAttachmentUploadedEvent as CrmAttachmentUploadedEvent, type context$5_DeleteAttachmentIdentifiers as DeleteAttachmentIdentifiers, type context$5_DeleteAttachmentRequest as DeleteAttachmentRequest, type context$5_DeleteAttachmentResponse as DeleteAttachmentResponse, context$5_DemoContactType as DemoContactType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$4 as EventMetadata, type context$5_GenerateAttachmentUploadUrlOptions as GenerateAttachmentUploadUrlOptions, type context$5_GenerateAttachmentUploadUrlRequest as GenerateAttachmentUploadUrlRequest, type context$5_GenerateAttachmentUploadUrlResponse as GenerateAttachmentUploadUrlResponse, type context$5_GenerateAttachmentUploadUrlResponseNonNullableFields as GenerateAttachmentUploadUrlResponseNonNullableFields, type context$5_GetAttachmentIdentifiers as GetAttachmentIdentifiers, type context$5_GetAttachmentRequest as GetAttachmentRequest, type context$5_GetAttachmentResponse as GetAttachmentResponse, type context$5_GetAttachmentResponseNonNullableFields as GetAttachmentResponseNonNullableFields, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type context$5_ListAttachmentsOptions as ListAttachmentsOptions, type context$5_ListAttachmentsRequest as ListAttachmentsRequest, type context$5_ListAttachmentsResponse as ListAttachmentsResponse, type context$5_ListAttachmentsResponseNonNullableFields as ListAttachmentsResponseNonNullableFields, type context$5_MediaFileUploadedEvent as MediaFileUploadedEvent, type MessageEnvelope$5 as MessageEnvelope, type Paging$4 as Paging, type PagingMetadata$3 as PagingMetadata, WebhookIdentityType$5 as WebhookIdentityType, type context$5__publicOnAttachmentCreatedType as _publicOnAttachmentCreatedType, type context$5__publicOnAttachmentDeletedType as _publicOnAttachmentDeletedType, context$5_deleteAttachment as deleteAttachment, context$5_generateAttachmentUploadUrl as generateAttachmentUploadUrl, context$5_getAttachment as getAttachment, context$5_listAttachments as listAttachments, context$5_onAttachmentCreated as onAttachmentCreated, context$5_onAttachmentDeleted as onAttachmentDeleted, onAttachmentCreated$1 as publicOnAttachmentCreated, onAttachmentDeleted$1 as publicOnAttachmentDeleted };
962
959
  }
963
960
 
964
961
  interface Contact {
@@ -2725,15 +2722,15 @@ interface ContactCreatedEnvelope {
2725
2722
  entity: Contact;
2726
2723
  metadata: EventMetadata$3;
2727
2724
  }
2728
- interface ContactDeletedEnvelope {
2725
+ interface ContactUpdatedEnvelope {
2726
+ entity: Contact;
2729
2727
  metadata: EventMetadata$3;
2730
2728
  }
2731
2729
  interface ContactMergedEnvelope {
2732
2730
  data: ContactMerged;
2733
2731
  metadata: EventMetadata$3;
2734
2732
  }
2735
- interface ContactUpdatedEnvelope {
2736
- entity: Contact;
2733
+ interface ContactDeletedEnvelope {
2737
2734
  metadata: EventMetadata$3;
2738
2735
  }
2739
2736
  interface CreateContactOptions {
@@ -3043,9 +3040,9 @@ interface GetContactSignature {
3043
3040
  (_id: string, options?: GetContactOptions | undefined): Promise<Contact & ContactNonNullableFields>;
3044
3041
  }
3045
3042
  declare const onContactCreated$1: EventDefinition<ContactCreatedEnvelope, "wix.contacts.v4.contact_created">;
3046
- declare const onContactDeleted$1: EventDefinition<ContactDeletedEnvelope, "wix.contacts.v4.contact_deleted">;
3047
- declare const onContactMerged$1: EventDefinition<ContactMergedEnvelope, "wix.contacts.v4.contact_merged">;
3048
3043
  declare const onContactUpdated$1: EventDefinition<ContactUpdatedEnvelope, "wix.contacts.v4.contact_updated">;
3044
+ declare const onContactMerged$1: EventDefinition<ContactMergedEnvelope, "wix.contacts.v4.contact_merged">;
3045
+ declare const onContactDeleted$1: EventDefinition<ContactDeletedEnvelope, "wix.contacts.v4.contact_deleted">;
3049
3046
 
3050
3047
  declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
3051
3048
 
@@ -3064,15 +3061,11 @@ type _publicOnContactCreatedType = typeof onContactCreated$1;
3064
3061
  */
3065
3062
  declare const onContactCreated: ReturnType<typeof createEventModule$3<_publicOnContactCreatedType>>;
3066
3063
 
3067
- type _publicOnContactDeletedType = typeof onContactDeleted$1;
3064
+ type _publicOnContactUpdatedType = typeof onContactUpdated$1;
3068
3065
  /**
3069
- * Triggered when a contact is deleted.
3070
- *
3071
- * If a contact is deleted as part of a merge,
3072
- * the `originatedFrom` property is sent as `merge`.
3073
- * Otherwise, `originatedFrom` is omitted.
3066
+ * Triggered when a contact is updated.
3074
3067
  */
3075
- declare const onContactDeleted: ReturnType<typeof createEventModule$3<_publicOnContactDeletedType>>;
3068
+ declare const onContactUpdated: ReturnType<typeof createEventModule$3<_publicOnContactUpdatedType>>;
3076
3069
 
3077
3070
  type _publicOnContactMergedType = typeof onContactMerged$1;
3078
3071
  /**
@@ -3091,11 +3084,15 @@ type _publicOnContactMergedType = typeof onContactMerged$1;
3091
3084
  */
3092
3085
  declare const onContactMerged: ReturnType<typeof createEventModule$3<_publicOnContactMergedType>>;
3093
3086
 
3094
- type _publicOnContactUpdatedType = typeof onContactUpdated$1;
3087
+ type _publicOnContactDeletedType = typeof onContactDeleted$1;
3095
3088
  /**
3096
- * Triggered when a contact is updated.
3089
+ * Triggered when a contact is deleted.
3090
+ *
3091
+ * If a contact is deleted as part of a merge,
3092
+ * the `originatedFrom` property is sent as `merge`.
3093
+ * Otherwise, `originatedFrom` is omitted.
3097
3094
  */
3098
- declare const onContactUpdated: ReturnType<typeof createEventModule$3<_publicOnContactUpdatedType>>;
3095
+ declare const onContactDeleted: ReturnType<typeof createEventModule$3<_publicOnContactDeletedType>>;
3099
3096
 
3100
3097
  type context$4_Action = Action;
3101
3098
  declare const context$4_Action: typeof Action;
@@ -5530,6 +5527,27 @@ interface ContactInfo {
5530
5527
  */
5531
5528
  phone?: string | null;
5532
5529
  }
5530
+ interface DeleteCompletedTasksRequest {
5531
+ /** Optional list of tasks ids of the tasks to delete. If the list is not provided the filter is used. */
5532
+ taskIds?: string[];
5533
+ /** An optional filter of tasks to count. See 'queryTasks' for supported filter options. */
5534
+ filter?: Record<string, any> | null;
5535
+ }
5536
+ interface DeleteCompletedTasksResponse {
5537
+ }
5538
+ interface SendTasksReminderRequest {
5539
+ /** Ids of the tasks to remind */
5540
+ taskIds?: string[];
5541
+ /** The reminder type */
5542
+ reminderType?: ReminderType;
5543
+ }
5544
+ declare enum ReminderType {
5545
+ UNKNOWN_REMINDER_TYPE = "UNKNOWN_REMINDER_TYPE",
5546
+ FIRST_REMINDER = "FIRST_REMINDER",
5547
+ LAST_REMINDER = "LAST_REMINDER"
5548
+ }
5549
+ interface SendTasksReminderResponse {
5550
+ }
5533
5551
  interface RepositionTask {
5534
5552
  /** The id of the last task that was re-positioned */
5535
5553
  taskId?: string | null;
@@ -5858,27 +5876,6 @@ declare enum WebhookIdentityType {
5858
5876
  WIX_USER = "WIX_USER",
5859
5877
  APP = "APP"
5860
5878
  }
5861
- interface DeleteCompletedTasksRequest {
5862
- /** Optional list of tasks ids of the tasks to delete. If the list is not provided the filter is used. */
5863
- taskIds?: string[];
5864
- /** An optional filter of tasks to count. See 'queryTasks' for supported filter options. */
5865
- filter?: Record<string, any> | null;
5866
- }
5867
- interface DeleteCompletedTasksResponse {
5868
- }
5869
- interface SendTasksReminderRequest {
5870
- /** Ids of the tasks to remind */
5871
- taskIds?: string[];
5872
- /** The reminder type */
5873
- reminderType?: ReminderType;
5874
- }
5875
- declare enum ReminderType {
5876
- UNKNOWN_REMINDER_TYPE = "UNKNOWN_REMINDER_TYPE",
5877
- FIRST_REMINDER = "FIRST_REMINDER",
5878
- LAST_REMINDER = "LAST_REMINDER"
5879
- }
5880
- interface SendTasksReminderResponse {
5881
- }
5882
5879
  interface TaskSourceNonNullableFields {
5883
5880
  sourceType: SourceType;
5884
5881
  }
@@ -542,7 +542,7 @@ interface DomainEvent$4 extends DomainEventBodyOneOf$4 {
542
542
  slug?: string;
543
543
  /** ID of the entity associated with the event. */
544
544
  entityId?: string;
545
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
545
+ /** Event timestamp. */
546
546
  eventTime?: Date | null;
547
547
  /**
548
548
  * Whether the event was triggered as a result of a privacy regulation application
@@ -571,9 +571,6 @@ interface DomainEventBodyOneOf$4 {
571
571
  interface EntityCreatedEvent$4 {
572
572
  entity?: string;
573
573
  }
574
- interface RestoreInfo$4 {
575
- deletedDate?: Date | null;
576
- }
577
574
  interface EntityUpdatedEvent$4 {
578
575
  /**
579
576
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
@@ -810,7 +807,7 @@ interface EventMetadata$4 extends BaseEventMetadata$4 {
810
807
  slug?: string;
811
808
  /** ID of the entity associated with the event. */
812
809
  entityId?: string;
813
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
810
+ /** Event timestamp. */
814
811
  eventTime?: Date | null;
815
812
  /**
816
813
  * Whether the event was triggered as a result of a privacy regulation application
@@ -958,7 +955,7 @@ declare const index_d$5_listAttachments: typeof listAttachments;
958
955
  declare const index_d$5_onAttachmentCreated: typeof onAttachmentCreated;
959
956
  declare const index_d$5_onAttachmentDeleted: typeof onAttachmentDeleted;
960
957
  declare namespace index_d$5 {
961
- export { type ActionEvent$4 as ActionEvent, type index_d$5_AttachmentCreatedEnvelope as AttachmentCreatedEnvelope, type index_d$5_AttachmentDeletedEnvelope as AttachmentDeletedEnvelope, type index_d$5_AttachmentMedia as AttachmentMedia, type index_d$5_AttachmentMediaMediaOneOf as AttachmentMediaMediaOneOf, type index_d$5_AttachmentMetadata as AttachmentMetadata, type index_d$5_AttachmentSource as AttachmentSource, index_d$5_AttachmentType as AttachmentType, type BaseEventMetadata$4 as BaseEventMetadata, type index_d$5_ContactAttachment as ContactAttachment, type index_d$5_ContactAttachmentMediaOneOf as ContactAttachmentMediaOneOf, type index_d$5_ContactAttachmentNonNullableFields as ContactAttachmentNonNullableFields, type index_d$5_CreateDemoAttachmentRequest as CreateDemoAttachmentRequest, type index_d$5_CreateDemoAttachmentResponse as CreateDemoAttachmentResponse, type index_d$5_CrmAttachment as CrmAttachment, index_d$5_CrmAttachmentAttachmentType as CrmAttachmentAttachmentType, type index_d$5_CrmAttachmentUploadedEvent as CrmAttachmentUploadedEvent, type index_d$5_DeleteAttachmentIdentifiers as DeleteAttachmentIdentifiers, type index_d$5_DeleteAttachmentRequest as DeleteAttachmentRequest, type index_d$5_DeleteAttachmentResponse as DeleteAttachmentResponse, index_d$5_DemoContactType as DemoContactType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$4 as EventMetadata, type index_d$5_GenerateAttachmentUploadUrlOptions as GenerateAttachmentUploadUrlOptions, type index_d$5_GenerateAttachmentUploadUrlRequest as GenerateAttachmentUploadUrlRequest, type index_d$5_GenerateAttachmentUploadUrlResponse as GenerateAttachmentUploadUrlResponse, type index_d$5_GenerateAttachmentUploadUrlResponseNonNullableFields as GenerateAttachmentUploadUrlResponseNonNullableFields, type index_d$5_GetAttachmentIdentifiers as GetAttachmentIdentifiers, type index_d$5_GetAttachmentRequest as GetAttachmentRequest, type index_d$5_GetAttachmentResponse as GetAttachmentResponse, type index_d$5_GetAttachmentResponseNonNullableFields as GetAttachmentResponseNonNullableFields, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type index_d$5_ListAttachmentsOptions as ListAttachmentsOptions, type index_d$5_ListAttachmentsRequest as ListAttachmentsRequest, type index_d$5_ListAttachmentsResponse as ListAttachmentsResponse, type index_d$5_ListAttachmentsResponseNonNullableFields as ListAttachmentsResponseNonNullableFields, type index_d$5_MediaFileUploadedEvent as MediaFileUploadedEvent, type MessageEnvelope$5 as MessageEnvelope, type Paging$4 as Paging, type PagingMetadata$3 as PagingMetadata, type RestoreInfo$4 as RestoreInfo, WebhookIdentityType$5 as WebhookIdentityType, type index_d$5__publicOnAttachmentCreatedType as _publicOnAttachmentCreatedType, type index_d$5__publicOnAttachmentDeletedType as _publicOnAttachmentDeletedType, index_d$5_deleteAttachment as deleteAttachment, index_d$5_generateAttachmentUploadUrl as generateAttachmentUploadUrl, index_d$5_getAttachment as getAttachment, index_d$5_listAttachments as listAttachments, index_d$5_onAttachmentCreated as onAttachmentCreated, index_d$5_onAttachmentDeleted as onAttachmentDeleted, onAttachmentCreated$1 as publicOnAttachmentCreated, onAttachmentDeleted$1 as publicOnAttachmentDeleted };
958
+ export { type ActionEvent$4 as ActionEvent, type index_d$5_AttachmentCreatedEnvelope as AttachmentCreatedEnvelope, type index_d$5_AttachmentDeletedEnvelope as AttachmentDeletedEnvelope, type index_d$5_AttachmentMedia as AttachmentMedia, type index_d$5_AttachmentMediaMediaOneOf as AttachmentMediaMediaOneOf, type index_d$5_AttachmentMetadata as AttachmentMetadata, type index_d$5_AttachmentSource as AttachmentSource, index_d$5_AttachmentType as AttachmentType, type BaseEventMetadata$4 as BaseEventMetadata, type index_d$5_ContactAttachment as ContactAttachment, type index_d$5_ContactAttachmentMediaOneOf as ContactAttachmentMediaOneOf, type index_d$5_ContactAttachmentNonNullableFields as ContactAttachmentNonNullableFields, type index_d$5_CreateDemoAttachmentRequest as CreateDemoAttachmentRequest, type index_d$5_CreateDemoAttachmentResponse as CreateDemoAttachmentResponse, type index_d$5_CrmAttachment as CrmAttachment, index_d$5_CrmAttachmentAttachmentType as CrmAttachmentAttachmentType, type index_d$5_CrmAttachmentUploadedEvent as CrmAttachmentUploadedEvent, type index_d$5_DeleteAttachmentIdentifiers as DeleteAttachmentIdentifiers, type index_d$5_DeleteAttachmentRequest as DeleteAttachmentRequest, type index_d$5_DeleteAttachmentResponse as DeleteAttachmentResponse, index_d$5_DemoContactType as DemoContactType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$4 as EventMetadata, type index_d$5_GenerateAttachmentUploadUrlOptions as GenerateAttachmentUploadUrlOptions, type index_d$5_GenerateAttachmentUploadUrlRequest as GenerateAttachmentUploadUrlRequest, type index_d$5_GenerateAttachmentUploadUrlResponse as GenerateAttachmentUploadUrlResponse, type index_d$5_GenerateAttachmentUploadUrlResponseNonNullableFields as GenerateAttachmentUploadUrlResponseNonNullableFields, type index_d$5_GetAttachmentIdentifiers as GetAttachmentIdentifiers, type index_d$5_GetAttachmentRequest as GetAttachmentRequest, type index_d$5_GetAttachmentResponse as GetAttachmentResponse, type index_d$5_GetAttachmentResponseNonNullableFields as GetAttachmentResponseNonNullableFields, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type index_d$5_ListAttachmentsOptions as ListAttachmentsOptions, type index_d$5_ListAttachmentsRequest as ListAttachmentsRequest, type index_d$5_ListAttachmentsResponse as ListAttachmentsResponse, type index_d$5_ListAttachmentsResponseNonNullableFields as ListAttachmentsResponseNonNullableFields, type index_d$5_MediaFileUploadedEvent as MediaFileUploadedEvent, type MessageEnvelope$5 as MessageEnvelope, type Paging$4 as Paging, type PagingMetadata$3 as PagingMetadata, WebhookIdentityType$5 as WebhookIdentityType, type index_d$5__publicOnAttachmentCreatedType as _publicOnAttachmentCreatedType, type index_d$5__publicOnAttachmentDeletedType as _publicOnAttachmentDeletedType, index_d$5_deleteAttachment as deleteAttachment, index_d$5_generateAttachmentUploadUrl as generateAttachmentUploadUrl, index_d$5_getAttachment as getAttachment, index_d$5_listAttachments as listAttachments, index_d$5_onAttachmentCreated as onAttachmentCreated, index_d$5_onAttachmentDeleted as onAttachmentDeleted, onAttachmentCreated$1 as publicOnAttachmentCreated, onAttachmentDeleted$1 as publicOnAttachmentDeleted };
962
959
  }
963
960
 
964
961
  interface Contact {
@@ -2725,15 +2722,15 @@ interface ContactCreatedEnvelope {
2725
2722
  entity: Contact;
2726
2723
  metadata: EventMetadata$3;
2727
2724
  }
2728
- interface ContactDeletedEnvelope {
2725
+ interface ContactUpdatedEnvelope {
2726
+ entity: Contact;
2729
2727
  metadata: EventMetadata$3;
2730
2728
  }
2731
2729
  interface ContactMergedEnvelope {
2732
2730
  data: ContactMerged;
2733
2731
  metadata: EventMetadata$3;
2734
2732
  }
2735
- interface ContactUpdatedEnvelope {
2736
- entity: Contact;
2733
+ interface ContactDeletedEnvelope {
2737
2734
  metadata: EventMetadata$3;
2738
2735
  }
2739
2736
  interface CreateContactOptions {
@@ -3043,9 +3040,9 @@ interface GetContactSignature {
3043
3040
  (_id: string, options?: GetContactOptions | undefined): Promise<Contact & ContactNonNullableFields>;
3044
3041
  }
3045
3042
  declare const onContactCreated$1: EventDefinition<ContactCreatedEnvelope, "wix.contacts.v4.contact_created">;
3046
- declare const onContactDeleted$1: EventDefinition<ContactDeletedEnvelope, "wix.contacts.v4.contact_deleted">;
3047
- declare const onContactMerged$1: EventDefinition<ContactMergedEnvelope, "wix.contacts.v4.contact_merged">;
3048
3043
  declare const onContactUpdated$1: EventDefinition<ContactUpdatedEnvelope, "wix.contacts.v4.contact_updated">;
3044
+ declare const onContactMerged$1: EventDefinition<ContactMergedEnvelope, "wix.contacts.v4.contact_merged">;
3045
+ declare const onContactDeleted$1: EventDefinition<ContactDeletedEnvelope, "wix.contacts.v4.contact_deleted">;
3049
3046
 
3050
3047
  declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
3051
3048
 
@@ -3064,15 +3061,11 @@ type _publicOnContactCreatedType = typeof onContactCreated$1;
3064
3061
  */
3065
3062
  declare const onContactCreated: ReturnType<typeof createEventModule$3<_publicOnContactCreatedType>>;
3066
3063
 
3067
- type _publicOnContactDeletedType = typeof onContactDeleted$1;
3064
+ type _publicOnContactUpdatedType = typeof onContactUpdated$1;
3068
3065
  /**
3069
- * Triggered when a contact is deleted.
3070
- *
3071
- * If a contact is deleted as part of a merge,
3072
- * the `originatedFrom` property is sent as `merge`.
3073
- * Otherwise, `originatedFrom` is omitted.
3066
+ * Triggered when a contact is updated.
3074
3067
  */
3075
- declare const onContactDeleted: ReturnType<typeof createEventModule$3<_publicOnContactDeletedType>>;
3068
+ declare const onContactUpdated: ReturnType<typeof createEventModule$3<_publicOnContactUpdatedType>>;
3076
3069
 
3077
3070
  type _publicOnContactMergedType = typeof onContactMerged$1;
3078
3071
  /**
@@ -3091,11 +3084,15 @@ type _publicOnContactMergedType = typeof onContactMerged$1;
3091
3084
  */
3092
3085
  declare const onContactMerged: ReturnType<typeof createEventModule$3<_publicOnContactMergedType>>;
3093
3086
 
3094
- type _publicOnContactUpdatedType = typeof onContactUpdated$1;
3087
+ type _publicOnContactDeletedType = typeof onContactDeleted$1;
3095
3088
  /**
3096
- * Triggered when a contact is updated.
3089
+ * Triggered when a contact is deleted.
3090
+ *
3091
+ * If a contact is deleted as part of a merge,
3092
+ * the `originatedFrom` property is sent as `merge`.
3093
+ * Otherwise, `originatedFrom` is omitted.
3097
3094
  */
3098
- declare const onContactUpdated: ReturnType<typeof createEventModule$3<_publicOnContactUpdatedType>>;
3095
+ declare const onContactDeleted: ReturnType<typeof createEventModule$3<_publicOnContactDeletedType>>;
3099
3096
 
3100
3097
  type index_d$4_Action = Action;
3101
3098
  declare const index_d$4_Action: typeof Action;
@@ -5530,6 +5527,27 @@ interface ContactInfo {
5530
5527
  */
5531
5528
  phone?: string | null;
5532
5529
  }
5530
+ interface DeleteCompletedTasksRequest {
5531
+ /** Optional list of tasks ids of the tasks to delete. If the list is not provided the filter is used. */
5532
+ taskIds?: string[];
5533
+ /** An optional filter of tasks to count. See 'queryTasks' for supported filter options. */
5534
+ filter?: Record<string, any> | null;
5535
+ }
5536
+ interface DeleteCompletedTasksResponse {
5537
+ }
5538
+ interface SendTasksReminderRequest {
5539
+ /** Ids of the tasks to remind */
5540
+ taskIds?: string[];
5541
+ /** The reminder type */
5542
+ reminderType?: ReminderType;
5543
+ }
5544
+ declare enum ReminderType {
5545
+ UNKNOWN_REMINDER_TYPE = "UNKNOWN_REMINDER_TYPE",
5546
+ FIRST_REMINDER = "FIRST_REMINDER",
5547
+ LAST_REMINDER = "LAST_REMINDER"
5548
+ }
5549
+ interface SendTasksReminderResponse {
5550
+ }
5533
5551
  interface RepositionTask {
5534
5552
  /** The id of the last task that was re-positioned */
5535
5553
  taskId?: string | null;
@@ -5858,27 +5876,6 @@ declare enum WebhookIdentityType {
5858
5876
  WIX_USER = "WIX_USER",
5859
5877
  APP = "APP"
5860
5878
  }
5861
- interface DeleteCompletedTasksRequest {
5862
- /** Optional list of tasks ids of the tasks to delete. If the list is not provided the filter is used. */
5863
- taskIds?: string[];
5864
- /** An optional filter of tasks to count. See 'queryTasks' for supported filter options. */
5865
- filter?: Record<string, any> | null;
5866
- }
5867
- interface DeleteCompletedTasksResponse {
5868
- }
5869
- interface SendTasksReminderRequest {
5870
- /** Ids of the tasks to remind */
5871
- taskIds?: string[];
5872
- /** The reminder type */
5873
- reminderType?: ReminderType;
5874
- }
5875
- declare enum ReminderType {
5876
- UNKNOWN_REMINDER_TYPE = "UNKNOWN_REMINDER_TYPE",
5877
- FIRST_REMINDER = "FIRST_REMINDER",
5878
- LAST_REMINDER = "LAST_REMINDER"
5879
- }
5880
- interface SendTasksReminderResponse {
5881
- }
5882
5879
  interface TaskSourceNonNullableFields {
5883
5880
  sourceType: SourceType;
5884
5881
  }