@wix/crm 1.0.167 → 1.0.168
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.168",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"type-bundles"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@wix/crm_attachments": "1.0.
|
|
24
|
+
"@wix/crm_attachments": "1.0.25",
|
|
25
25
|
"@wix/crm_contacts": "1.0.70",
|
|
26
26
|
"@wix/crm_extended-fields": "1.0.50",
|
|
27
27
|
"@wix/crm_labels": "1.0.49",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"fqdn": ""
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
"falconPackageHash": "
|
|
54
|
+
"falconPackageHash": "b53d0b8d0346dc9e860b5cae8162858a11d7f445f1ec14c209c8f1a3"
|
|
55
55
|
}
|
|
@@ -796,59 +796,6 @@ interface ListAttachmentsResponseNonNullableFields {
|
|
|
796
796
|
interface GetAttachmentResponseNonNullableFields {
|
|
797
797
|
attachment?: ContactAttachmentNonNullableFields;
|
|
798
798
|
}
|
|
799
|
-
interface BaseEventMetadata$4 {
|
|
800
|
-
/** App instance ID. */
|
|
801
|
-
instanceId?: string | null;
|
|
802
|
-
/** Event type. */
|
|
803
|
-
eventType?: string;
|
|
804
|
-
/** The identification type and identity data. */
|
|
805
|
-
identity?: IdentificationData$5;
|
|
806
|
-
}
|
|
807
|
-
interface EventMetadata$4 extends BaseEventMetadata$4 {
|
|
808
|
-
/**
|
|
809
|
-
* Unique event ID.
|
|
810
|
-
* Allows clients to ignore duplicate webhooks.
|
|
811
|
-
*/
|
|
812
|
-
_id?: string;
|
|
813
|
-
/**
|
|
814
|
-
* Assumes actions are also always typed to an entity_type
|
|
815
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
816
|
-
*/
|
|
817
|
-
entityFqdn?: string;
|
|
818
|
-
/**
|
|
819
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
820
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
821
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
822
|
-
*/
|
|
823
|
-
slug?: string;
|
|
824
|
-
/** ID of the entity associated with the event. */
|
|
825
|
-
entityId?: string;
|
|
826
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
827
|
-
eventTime?: Date | null;
|
|
828
|
-
/**
|
|
829
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
830
|
-
* (for example, GDPR).
|
|
831
|
-
*/
|
|
832
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
833
|
-
/** If present, indicates the action that triggered the event. */
|
|
834
|
-
originatedFrom?: string | null;
|
|
835
|
-
/**
|
|
836
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
837
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
838
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
839
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
840
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
841
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
842
|
-
*/
|
|
843
|
-
entityEventSequence?: string | null;
|
|
844
|
-
}
|
|
845
|
-
interface AttachmentCreatedEnvelope {
|
|
846
|
-
entity: ContactAttachment;
|
|
847
|
-
metadata: EventMetadata$4;
|
|
848
|
-
}
|
|
849
|
-
interface AttachmentDeletedEnvelope {
|
|
850
|
-
metadata: EventMetadata$4;
|
|
851
|
-
}
|
|
852
799
|
interface GenerateAttachmentUploadUrlOptions {
|
|
853
800
|
/**
|
|
854
801
|
* Mime type of the attachment file, for example, `application/pdf`.
|
|
@@ -909,30 +856,12 @@ interface GetAttachmentSignature {
|
|
|
909
856
|
*/
|
|
910
857
|
(identifiers: GetAttachmentIdentifiers): Promise<ContactAttachment & ContactAttachmentNonNullableFields>;
|
|
911
858
|
}
|
|
912
|
-
declare const onAttachmentCreated$1: EventDefinition<AttachmentCreatedEnvelope, "wix.contacts.v4.attachment_created">;
|
|
913
|
-
declare const onAttachmentDeleted$1: EventDefinition<AttachmentDeletedEnvelope, "wix.contacts.v4.attachment_deleted">;
|
|
914
|
-
|
|
915
|
-
declare function createEventModule$4<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
916
859
|
|
|
917
860
|
declare const generateAttachmentUploadUrl: MaybeContext<BuildRESTFunction<typeof generateAttachmentUploadUrl$1> & typeof generateAttachmentUploadUrl$1>;
|
|
918
861
|
declare const listAttachments: MaybeContext<BuildRESTFunction<typeof listAttachments$1> & typeof listAttachments$1>;
|
|
919
862
|
declare const deleteAttachment: MaybeContext<BuildRESTFunction<typeof deleteAttachment$1> & typeof deleteAttachment$1>;
|
|
920
863
|
declare const getAttachment: MaybeContext<BuildRESTFunction<typeof getAttachment$1> & typeof getAttachment$1>;
|
|
921
864
|
|
|
922
|
-
type _publicOnAttachmentCreatedType = typeof onAttachmentCreated$1;
|
|
923
|
-
/**
|
|
924
|
-
* Triggered when an attachment is created.
|
|
925
|
-
*/
|
|
926
|
-
declare const onAttachmentCreated: ReturnType<typeof createEventModule$4<_publicOnAttachmentCreatedType>>;
|
|
927
|
-
|
|
928
|
-
type _publicOnAttachmentDeletedType = typeof onAttachmentDeleted$1;
|
|
929
|
-
/**
|
|
930
|
-
* Triggered when a contact is deleted.
|
|
931
|
-
*/
|
|
932
|
-
declare const onAttachmentDeleted: ReturnType<typeof createEventModule$4<_publicOnAttachmentDeletedType>>;
|
|
933
|
-
|
|
934
|
-
type context$5_AttachmentCreatedEnvelope = AttachmentCreatedEnvelope;
|
|
935
|
-
type context$5_AttachmentDeletedEnvelope = AttachmentDeletedEnvelope;
|
|
936
865
|
type context$5_AttachmentMedia = AttachmentMedia;
|
|
937
866
|
type context$5_AttachmentMediaMediaOneOf = AttachmentMediaMediaOneOf;
|
|
938
867
|
type context$5_AttachmentMetadata = AttachmentMetadata;
|
|
@@ -966,16 +895,12 @@ type context$5_ListAttachmentsRequest = ListAttachmentsRequest;
|
|
|
966
895
|
type context$5_ListAttachmentsResponse = ListAttachmentsResponse;
|
|
967
896
|
type context$5_ListAttachmentsResponseNonNullableFields = ListAttachmentsResponseNonNullableFields;
|
|
968
897
|
type context$5_MediaFileUploadedEvent = MediaFileUploadedEvent;
|
|
969
|
-
type context$5__publicOnAttachmentCreatedType = _publicOnAttachmentCreatedType;
|
|
970
|
-
type context$5__publicOnAttachmentDeletedType = _publicOnAttachmentDeletedType;
|
|
971
898
|
declare const context$5_deleteAttachment: typeof deleteAttachment;
|
|
972
899
|
declare const context$5_generateAttachmentUploadUrl: typeof generateAttachmentUploadUrl;
|
|
973
900
|
declare const context$5_getAttachment: typeof getAttachment;
|
|
974
901
|
declare const context$5_listAttachments: typeof listAttachments;
|
|
975
|
-
declare const context$5_onAttachmentCreated: typeof onAttachmentCreated;
|
|
976
|
-
declare const context$5_onAttachmentDeleted: typeof onAttachmentDeleted;
|
|
977
902
|
declare namespace context$5 {
|
|
978
|
-
export { type ActionEvent$4 as ActionEvent, type context$
|
|
903
|
+
export { type ActionEvent$4 as ActionEvent, 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 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 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, context$5_deleteAttachment as deleteAttachment, context$5_generateAttachmentUploadUrl as generateAttachmentUploadUrl, context$5_getAttachment as getAttachment, context$5_listAttachments as listAttachments };
|
|
979
904
|
}
|
|
980
905
|
|
|
981
906
|
interface Contact {
|
|
@@ -796,59 +796,6 @@ interface ListAttachmentsResponseNonNullableFields {
|
|
|
796
796
|
interface GetAttachmentResponseNonNullableFields {
|
|
797
797
|
attachment?: ContactAttachmentNonNullableFields;
|
|
798
798
|
}
|
|
799
|
-
interface BaseEventMetadata$4 {
|
|
800
|
-
/** App instance ID. */
|
|
801
|
-
instanceId?: string | null;
|
|
802
|
-
/** Event type. */
|
|
803
|
-
eventType?: string;
|
|
804
|
-
/** The identification type and identity data. */
|
|
805
|
-
identity?: IdentificationData$5;
|
|
806
|
-
}
|
|
807
|
-
interface EventMetadata$4 extends BaseEventMetadata$4 {
|
|
808
|
-
/**
|
|
809
|
-
* Unique event ID.
|
|
810
|
-
* Allows clients to ignore duplicate webhooks.
|
|
811
|
-
*/
|
|
812
|
-
_id?: string;
|
|
813
|
-
/**
|
|
814
|
-
* Assumes actions are also always typed to an entity_type
|
|
815
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
816
|
-
*/
|
|
817
|
-
entityFqdn?: string;
|
|
818
|
-
/**
|
|
819
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
820
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
821
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
822
|
-
*/
|
|
823
|
-
slug?: string;
|
|
824
|
-
/** ID of the entity associated with the event. */
|
|
825
|
-
entityId?: string;
|
|
826
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
827
|
-
eventTime?: Date | null;
|
|
828
|
-
/**
|
|
829
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
830
|
-
* (for example, GDPR).
|
|
831
|
-
*/
|
|
832
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
833
|
-
/** If present, indicates the action that triggered the event. */
|
|
834
|
-
originatedFrom?: string | null;
|
|
835
|
-
/**
|
|
836
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
837
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
838
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
839
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
840
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
841
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
842
|
-
*/
|
|
843
|
-
entityEventSequence?: string | null;
|
|
844
|
-
}
|
|
845
|
-
interface AttachmentCreatedEnvelope {
|
|
846
|
-
entity: ContactAttachment;
|
|
847
|
-
metadata: EventMetadata$4;
|
|
848
|
-
}
|
|
849
|
-
interface AttachmentDeletedEnvelope {
|
|
850
|
-
metadata: EventMetadata$4;
|
|
851
|
-
}
|
|
852
799
|
interface GenerateAttachmentUploadUrlOptions {
|
|
853
800
|
/**
|
|
854
801
|
* Mime type of the attachment file, for example, `application/pdf`.
|
|
@@ -909,30 +856,12 @@ interface GetAttachmentSignature {
|
|
|
909
856
|
*/
|
|
910
857
|
(identifiers: GetAttachmentIdentifiers): Promise<ContactAttachment & ContactAttachmentNonNullableFields>;
|
|
911
858
|
}
|
|
912
|
-
declare const onAttachmentCreated$1: EventDefinition<AttachmentCreatedEnvelope, "wix.contacts.v4.attachment_created">;
|
|
913
|
-
declare const onAttachmentDeleted$1: EventDefinition<AttachmentDeletedEnvelope, "wix.contacts.v4.attachment_deleted">;
|
|
914
|
-
|
|
915
|
-
declare function createEventModule$4<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
916
859
|
|
|
917
860
|
declare const generateAttachmentUploadUrl: MaybeContext<BuildRESTFunction<typeof generateAttachmentUploadUrl$1> & typeof generateAttachmentUploadUrl$1>;
|
|
918
861
|
declare const listAttachments: MaybeContext<BuildRESTFunction<typeof listAttachments$1> & typeof listAttachments$1>;
|
|
919
862
|
declare const deleteAttachment: MaybeContext<BuildRESTFunction<typeof deleteAttachment$1> & typeof deleteAttachment$1>;
|
|
920
863
|
declare const getAttachment: MaybeContext<BuildRESTFunction<typeof getAttachment$1> & typeof getAttachment$1>;
|
|
921
864
|
|
|
922
|
-
type _publicOnAttachmentCreatedType = typeof onAttachmentCreated$1;
|
|
923
|
-
/**
|
|
924
|
-
* Triggered when an attachment is created.
|
|
925
|
-
*/
|
|
926
|
-
declare const onAttachmentCreated: ReturnType<typeof createEventModule$4<_publicOnAttachmentCreatedType>>;
|
|
927
|
-
|
|
928
|
-
type _publicOnAttachmentDeletedType = typeof onAttachmentDeleted$1;
|
|
929
|
-
/**
|
|
930
|
-
* Triggered when a contact is deleted.
|
|
931
|
-
*/
|
|
932
|
-
declare const onAttachmentDeleted: ReturnType<typeof createEventModule$4<_publicOnAttachmentDeletedType>>;
|
|
933
|
-
|
|
934
|
-
type index_d$5_AttachmentCreatedEnvelope = AttachmentCreatedEnvelope;
|
|
935
|
-
type index_d$5_AttachmentDeletedEnvelope = AttachmentDeletedEnvelope;
|
|
936
865
|
type index_d$5_AttachmentMedia = AttachmentMedia;
|
|
937
866
|
type index_d$5_AttachmentMediaMediaOneOf = AttachmentMediaMediaOneOf;
|
|
938
867
|
type index_d$5_AttachmentMetadata = AttachmentMetadata;
|
|
@@ -966,16 +895,12 @@ type index_d$5_ListAttachmentsRequest = ListAttachmentsRequest;
|
|
|
966
895
|
type index_d$5_ListAttachmentsResponse = ListAttachmentsResponse;
|
|
967
896
|
type index_d$5_ListAttachmentsResponseNonNullableFields = ListAttachmentsResponseNonNullableFields;
|
|
968
897
|
type index_d$5_MediaFileUploadedEvent = MediaFileUploadedEvent;
|
|
969
|
-
type index_d$5__publicOnAttachmentCreatedType = _publicOnAttachmentCreatedType;
|
|
970
|
-
type index_d$5__publicOnAttachmentDeletedType = _publicOnAttachmentDeletedType;
|
|
971
898
|
declare const index_d$5_deleteAttachment: typeof deleteAttachment;
|
|
972
899
|
declare const index_d$5_generateAttachmentUploadUrl: typeof generateAttachmentUploadUrl;
|
|
973
900
|
declare const index_d$5_getAttachment: typeof getAttachment;
|
|
974
901
|
declare const index_d$5_listAttachments: typeof listAttachments;
|
|
975
|
-
declare const index_d$5_onAttachmentCreated: typeof onAttachmentCreated;
|
|
976
|
-
declare const index_d$5_onAttachmentDeleted: typeof onAttachmentDeleted;
|
|
977
902
|
declare namespace index_d$5 {
|
|
978
|
-
export { type ActionEvent$4 as ActionEvent, type index_d$
|
|
903
|
+
export { type ActionEvent$4 as ActionEvent, 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 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 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, index_d$5_deleteAttachment as deleteAttachment, index_d$5_generateAttachmentUploadUrl as generateAttachmentUploadUrl, index_d$5_getAttachment as getAttachment, index_d$5_listAttachments as listAttachments };
|
|
979
904
|
}
|
|
980
905
|
|
|
981
906
|
interface Contact {
|