@wix/crm 1.0.157 → 1.0.158
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.
|
|
3
|
+
"version": "1.0.158",
|
|
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.
|
|
25
|
-
"@wix/crm_contacts": "1.0.
|
|
24
|
+
"@wix/crm_attachments": "1.0.20",
|
|
25
|
+
"@wix/crm_contacts": "1.0.67",
|
|
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.
|
|
29
|
+
"@wix/crm_tasks": "1.0.49"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"glob": "^10.4.1",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"fqdn": ""
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
"falconPackageHash": "
|
|
54
|
+
"falconPackageHash": "f28d3a162bc4543f1ec97ba44322ed5af9e2a4134ecba9f807c03fbc"
|
|
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. */
|
|
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 */
|
|
546
546
|
eventTime?: Date | null;
|
|
547
547
|
/**
|
|
548
548
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -571,6 +571,9 @@ interface DomainEventBodyOneOf$4 {
|
|
|
571
571
|
interface EntityCreatedEvent$4 {
|
|
572
572
|
entity?: string;
|
|
573
573
|
}
|
|
574
|
+
interface RestoreInfo$4 {
|
|
575
|
+
deletedDate?: Date | null;
|
|
576
|
+
}
|
|
574
577
|
interface EntityUpdatedEvent$4 {
|
|
575
578
|
/**
|
|
576
579
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -807,7 +810,7 @@ interface EventMetadata$4 extends BaseEventMetadata$4 {
|
|
|
807
810
|
slug?: string;
|
|
808
811
|
/** ID of the entity associated with the event. */
|
|
809
812
|
entityId?: string;
|
|
810
|
-
/** Event timestamp. */
|
|
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 */
|
|
811
814
|
eventTime?: Date | null;
|
|
812
815
|
/**
|
|
813
816
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -955,7 +958,7 @@ declare const context$5_listAttachments: typeof listAttachments;
|
|
|
955
958
|
declare const context$5_onAttachmentCreated: typeof onAttachmentCreated;
|
|
956
959
|
declare const context$5_onAttachmentDeleted: typeof onAttachmentDeleted;
|
|
957
960
|
declare namespace context$5 {
|
|
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 };
|
|
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 };
|
|
959
962
|
}
|
|
960
963
|
|
|
961
964
|
interface Contact {
|
|
@@ -2722,15 +2725,15 @@ interface ContactCreatedEnvelope {
|
|
|
2722
2725
|
entity: Contact;
|
|
2723
2726
|
metadata: EventMetadata$3;
|
|
2724
2727
|
}
|
|
2725
|
-
interface
|
|
2726
|
-
entity: Contact;
|
|
2728
|
+
interface ContactDeletedEnvelope {
|
|
2727
2729
|
metadata: EventMetadata$3;
|
|
2728
2730
|
}
|
|
2729
2731
|
interface ContactMergedEnvelope {
|
|
2730
2732
|
data: ContactMerged;
|
|
2731
2733
|
metadata: EventMetadata$3;
|
|
2732
2734
|
}
|
|
2733
|
-
interface
|
|
2735
|
+
interface ContactUpdatedEnvelope {
|
|
2736
|
+
entity: Contact;
|
|
2734
2737
|
metadata: EventMetadata$3;
|
|
2735
2738
|
}
|
|
2736
2739
|
interface CreateContactOptions {
|
|
@@ -3040,9 +3043,9 @@ interface GetContactSignature {
|
|
|
3040
3043
|
(_id: string, options?: GetContactOptions | undefined): Promise<Contact & ContactNonNullableFields>;
|
|
3041
3044
|
}
|
|
3042
3045
|
declare const onContactCreated$1: EventDefinition<ContactCreatedEnvelope, "wix.contacts.v4.contact_created">;
|
|
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
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
|
+
declare const onContactUpdated$1: EventDefinition<ContactUpdatedEnvelope, "wix.contacts.v4.contact_updated">;
|
|
3046
3049
|
|
|
3047
3050
|
declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3048
3051
|
|
|
@@ -3061,11 +3064,15 @@ type _publicOnContactCreatedType = typeof onContactCreated$1;
|
|
|
3061
3064
|
*/
|
|
3062
3065
|
declare const onContactCreated: ReturnType<typeof createEventModule$3<_publicOnContactCreatedType>>;
|
|
3063
3066
|
|
|
3064
|
-
type
|
|
3067
|
+
type _publicOnContactDeletedType = typeof onContactDeleted$1;
|
|
3065
3068
|
/**
|
|
3066
|
-
* Triggered when a contact is
|
|
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.
|
|
3067
3074
|
*/
|
|
3068
|
-
declare const
|
|
3075
|
+
declare const onContactDeleted: ReturnType<typeof createEventModule$3<_publicOnContactDeletedType>>;
|
|
3069
3076
|
|
|
3070
3077
|
type _publicOnContactMergedType = typeof onContactMerged$1;
|
|
3071
3078
|
/**
|
|
@@ -3084,15 +3091,11 @@ type _publicOnContactMergedType = typeof onContactMerged$1;
|
|
|
3084
3091
|
*/
|
|
3085
3092
|
declare const onContactMerged: ReturnType<typeof createEventModule$3<_publicOnContactMergedType>>;
|
|
3086
3093
|
|
|
3087
|
-
type
|
|
3094
|
+
type _publicOnContactUpdatedType = typeof onContactUpdated$1;
|
|
3088
3095
|
/**
|
|
3089
|
-
* Triggered when a contact is
|
|
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.
|
|
3096
|
+
* Triggered when a contact is updated.
|
|
3094
3097
|
*/
|
|
3095
|
-
declare const
|
|
3098
|
+
declare const onContactUpdated: ReturnType<typeof createEventModule$3<_publicOnContactUpdatedType>>;
|
|
3096
3099
|
|
|
3097
3100
|
type context$4_Action = Action;
|
|
3098
3101
|
declare const context$4_Action: typeof Action;
|
|
@@ -5527,27 +5530,6 @@ interface ContactInfo {
|
|
|
5527
5530
|
*/
|
|
5528
5531
|
phone?: string | null;
|
|
5529
5532
|
}
|
|
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
|
-
}
|
|
5551
5533
|
interface RepositionTask {
|
|
5552
5534
|
/** The id of the last task that was re-positioned */
|
|
5553
5535
|
taskId?: string | null;
|
|
@@ -5876,6 +5858,27 @@ declare enum WebhookIdentityType {
|
|
|
5876
5858
|
WIX_USER = "WIX_USER",
|
|
5877
5859
|
APP = "APP"
|
|
5878
5860
|
}
|
|
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
|
+
}
|
|
5879
5882
|
interface TaskSourceNonNullableFields {
|
|
5880
5883
|
sourceType: SourceType;
|
|
5881
5884
|
}
|
|
@@ -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. */
|
|
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 */
|
|
546
546
|
eventTime?: Date | null;
|
|
547
547
|
/**
|
|
548
548
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -571,6 +571,9 @@ interface DomainEventBodyOneOf$4 {
|
|
|
571
571
|
interface EntityCreatedEvent$4 {
|
|
572
572
|
entity?: string;
|
|
573
573
|
}
|
|
574
|
+
interface RestoreInfo$4 {
|
|
575
|
+
deletedDate?: Date | null;
|
|
576
|
+
}
|
|
574
577
|
interface EntityUpdatedEvent$4 {
|
|
575
578
|
/**
|
|
576
579
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -807,7 +810,7 @@ interface EventMetadata$4 extends BaseEventMetadata$4 {
|
|
|
807
810
|
slug?: string;
|
|
808
811
|
/** ID of the entity associated with the event. */
|
|
809
812
|
entityId?: string;
|
|
810
|
-
/** Event timestamp. */
|
|
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 */
|
|
811
814
|
eventTime?: Date | null;
|
|
812
815
|
/**
|
|
813
816
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -955,7 +958,7 @@ declare const index_d$5_listAttachments: typeof listAttachments;
|
|
|
955
958
|
declare const index_d$5_onAttachmentCreated: typeof onAttachmentCreated;
|
|
956
959
|
declare const index_d$5_onAttachmentDeleted: typeof onAttachmentDeleted;
|
|
957
960
|
declare namespace index_d$5 {
|
|
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 };
|
|
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 };
|
|
959
962
|
}
|
|
960
963
|
|
|
961
964
|
interface Contact {
|
|
@@ -2722,15 +2725,15 @@ interface ContactCreatedEnvelope {
|
|
|
2722
2725
|
entity: Contact;
|
|
2723
2726
|
metadata: EventMetadata$3;
|
|
2724
2727
|
}
|
|
2725
|
-
interface
|
|
2726
|
-
entity: Contact;
|
|
2728
|
+
interface ContactDeletedEnvelope {
|
|
2727
2729
|
metadata: EventMetadata$3;
|
|
2728
2730
|
}
|
|
2729
2731
|
interface ContactMergedEnvelope {
|
|
2730
2732
|
data: ContactMerged;
|
|
2731
2733
|
metadata: EventMetadata$3;
|
|
2732
2734
|
}
|
|
2733
|
-
interface
|
|
2735
|
+
interface ContactUpdatedEnvelope {
|
|
2736
|
+
entity: Contact;
|
|
2734
2737
|
metadata: EventMetadata$3;
|
|
2735
2738
|
}
|
|
2736
2739
|
interface CreateContactOptions {
|
|
@@ -3040,9 +3043,9 @@ interface GetContactSignature {
|
|
|
3040
3043
|
(_id: string, options?: GetContactOptions | undefined): Promise<Contact & ContactNonNullableFields>;
|
|
3041
3044
|
}
|
|
3042
3045
|
declare const onContactCreated$1: EventDefinition<ContactCreatedEnvelope, "wix.contacts.v4.contact_created">;
|
|
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
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
|
+
declare const onContactUpdated$1: EventDefinition<ContactUpdatedEnvelope, "wix.contacts.v4.contact_updated">;
|
|
3046
3049
|
|
|
3047
3050
|
declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3048
3051
|
|
|
@@ -3061,11 +3064,15 @@ type _publicOnContactCreatedType = typeof onContactCreated$1;
|
|
|
3061
3064
|
*/
|
|
3062
3065
|
declare const onContactCreated: ReturnType<typeof createEventModule$3<_publicOnContactCreatedType>>;
|
|
3063
3066
|
|
|
3064
|
-
type
|
|
3067
|
+
type _publicOnContactDeletedType = typeof onContactDeleted$1;
|
|
3065
3068
|
/**
|
|
3066
|
-
* Triggered when a contact is
|
|
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.
|
|
3067
3074
|
*/
|
|
3068
|
-
declare const
|
|
3075
|
+
declare const onContactDeleted: ReturnType<typeof createEventModule$3<_publicOnContactDeletedType>>;
|
|
3069
3076
|
|
|
3070
3077
|
type _publicOnContactMergedType = typeof onContactMerged$1;
|
|
3071
3078
|
/**
|
|
@@ -3084,15 +3091,11 @@ type _publicOnContactMergedType = typeof onContactMerged$1;
|
|
|
3084
3091
|
*/
|
|
3085
3092
|
declare const onContactMerged: ReturnType<typeof createEventModule$3<_publicOnContactMergedType>>;
|
|
3086
3093
|
|
|
3087
|
-
type
|
|
3094
|
+
type _publicOnContactUpdatedType = typeof onContactUpdated$1;
|
|
3088
3095
|
/**
|
|
3089
|
-
* Triggered when a contact is
|
|
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.
|
|
3096
|
+
* Triggered when a contact is updated.
|
|
3094
3097
|
*/
|
|
3095
|
-
declare const
|
|
3098
|
+
declare const onContactUpdated: ReturnType<typeof createEventModule$3<_publicOnContactUpdatedType>>;
|
|
3096
3099
|
|
|
3097
3100
|
type index_d$4_Action = Action;
|
|
3098
3101
|
declare const index_d$4_Action: typeof Action;
|
|
@@ -5527,27 +5530,6 @@ interface ContactInfo {
|
|
|
5527
5530
|
*/
|
|
5528
5531
|
phone?: string | null;
|
|
5529
5532
|
}
|
|
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
|
-
}
|
|
5551
5533
|
interface RepositionTask {
|
|
5552
5534
|
/** The id of the last task that was re-positioned */
|
|
5553
5535
|
taskId?: string | null;
|
|
@@ -5876,6 +5858,27 @@ declare enum WebhookIdentityType {
|
|
|
5876
5858
|
WIX_USER = "WIX_USER",
|
|
5877
5859
|
APP = "APP"
|
|
5878
5860
|
}
|
|
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
|
+
}
|
|
5879
5882
|
interface TaskSourceNonNullableFields {
|
|
5880
5883
|
sourceType: SourceType;
|
|
5881
5884
|
}
|