@wix/auto_sdk_crm_contacts 1.0.257 → 1.0.258

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/contacts-v4-contact-contacts.context.d.ts +36 -0
  11. package/build/cjs/src/contacts-v4-contact-contacts.context.js +61 -0
  12. package/build/cjs/src/contacts-v4-contact-contacts.context.js.map +1 -0
  13. package/build/cjs/src/contacts-v4-contact-contacts.http.d.ts +126 -0
  14. package/build/cjs/src/contacts-v4-contact-contacts.http.js +555 -0
  15. package/build/cjs/src/contacts-v4-contact-contacts.http.js.map +1 -0
  16. package/build/cjs/src/contacts-v4-contact-contacts.meta.d.ts +32 -0
  17. package/build/cjs/src/contacts-v4-contact-contacts.meta.js +180 -0
  18. package/build/cjs/src/contacts-v4-contact-contacts.meta.js.map +1 -0
  19. package/build/{internal/index.d.ts → cjs/src/contacts-v4-contact-contacts.public.d.ts} +18 -43
  20. package/build/cjs/src/contacts-v4-contact-contacts.public.js +193 -0
  21. package/build/cjs/src/contacts-v4-contact-contacts.public.js.map +1 -0
  22. package/build/{contacts-v4-contact-contacts.universal-B3uIE5qF.d.mts → cjs/src/contacts-v4-contact-contacts.types.d.ts} +193 -363
  23. package/build/cjs/src/contacts-v4-contact-contacts.types.js +278 -0
  24. package/build/cjs/src/contacts-v4-contact-contacts.types.js.map +1 -0
  25. package/build/cjs/src/contacts-v4-contact-contacts.universal.d.ts +2398 -0
  26. package/build/cjs/src/contacts-v4-contact-contacts.universal.js +911 -0
  27. package/build/cjs/src/contacts-v4-contact-contacts.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/contacts-v4-contact-contacts.context.d.ts +36 -0
  39. package/build/es/src/contacts-v4-contact-contacts.context.js +36 -0
  40. package/build/es/src/contacts-v4-contact-contacts.context.js.map +1 -0
  41. package/build/es/src/contacts-v4-contact-contacts.http.d.ts +126 -0
  42. package/build/es/src/contacts-v4-contact-contacts.http.js +544 -0
  43. package/build/es/src/contacts-v4-contact-contacts.http.js.map +1 -0
  44. package/build/es/src/contacts-v4-contact-contacts.meta.d.ts +32 -0
  45. package/build/es/src/contacts-v4-contact-contacts.meta.js +146 -0
  46. package/build/es/src/contacts-v4-contact-contacts.meta.js.map +1 -0
  47. package/build/{index.d.ts → es/src/contacts-v4-contact-contacts.public.d.ts} +18 -43
  48. package/build/es/src/contacts-v4-contact-contacts.public.js +160 -0
  49. package/build/es/src/contacts-v4-contact-contacts.public.js.map +1 -0
  50. package/build/{contacts-v4-contact-contacts.universal-B3uIE5qF.d.ts → es/src/contacts-v4-contact-contacts.types.d.ts} +193 -363
  51. package/build/es/src/contacts-v4-contact-contacts.types.js +275 -0
  52. package/build/es/src/contacts-v4-contact-contacts.types.js.map +1 -0
  53. package/build/es/src/contacts-v4-contact-contacts.universal.d.ts +2398 -0
  54. package/build/es/src/contacts-v4-contact-contacts.universal.js +877 -0
  55. package/build/es/src/contacts-v4-contact-contacts.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/contacts-v4-contact-contacts.context.d.ts +36 -0
  66. package/build/internal/cjs/src/contacts-v4-contact-contacts.context.js +61 -0
  67. package/build/internal/cjs/src/contacts-v4-contact-contacts.context.js.map +1 -0
  68. package/build/internal/cjs/src/contacts-v4-contact-contacts.http.d.ts +126 -0
  69. package/build/internal/cjs/src/contacts-v4-contact-contacts.http.js +555 -0
  70. package/build/internal/cjs/src/contacts-v4-contact-contacts.http.js.map +1 -0
  71. package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.d.ts +32 -0
  72. package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.js +180 -0
  73. package/build/internal/cjs/src/contacts-v4-contact-contacts.meta.js.map +1 -0
  74. package/build/internal/{index.d.mts → cjs/src/contacts-v4-contact-contacts.public.d.ts} +18 -43
  75. package/build/internal/cjs/src/contacts-v4-contact-contacts.public.js +193 -0
  76. package/build/internal/cjs/src/contacts-v4-contact-contacts.public.js.map +1 -0
  77. package/build/internal/{contacts-v4-contact-contacts.universal-CdMlf2ui.d.ts → cjs/src/contacts-v4-contact-contacts.types.d.ts} +189 -370
  78. package/build/internal/cjs/src/contacts-v4-contact-contacts.types.js +278 -0
  79. package/build/internal/cjs/src/contacts-v4-contact-contacts.types.js.map +1 -0
  80. package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.d.ts +2409 -0
  81. package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.js +911 -0
  82. package/build/internal/cjs/src/contacts-v4-contact-contacts.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/contacts-v4-contact-contacts.context.d.ts +36 -0
  93. package/build/internal/es/src/contacts-v4-contact-contacts.context.js +36 -0
  94. package/build/internal/es/src/contacts-v4-contact-contacts.context.js.map +1 -0
  95. package/build/internal/es/src/contacts-v4-contact-contacts.http.d.ts +126 -0
  96. package/build/internal/es/src/contacts-v4-contact-contacts.http.js +544 -0
  97. package/build/internal/es/src/contacts-v4-contact-contacts.http.js.map +1 -0
  98. package/build/internal/es/src/contacts-v4-contact-contacts.meta.d.ts +32 -0
  99. package/build/internal/es/src/contacts-v4-contact-contacts.meta.js +146 -0
  100. package/build/internal/es/src/contacts-v4-contact-contacts.meta.js.map +1 -0
  101. package/build/{index.d.mts → internal/es/src/contacts-v4-contact-contacts.public.d.ts} +18 -43
  102. package/build/internal/es/src/contacts-v4-contact-contacts.public.js +160 -0
  103. package/build/internal/es/src/contacts-v4-contact-contacts.public.js.map +1 -0
  104. package/build/internal/{contacts-v4-contact-contacts.universal-CdMlf2ui.d.mts → es/src/contacts-v4-contact-contacts.types.d.ts} +189 -370
  105. package/build/internal/es/src/contacts-v4-contact-contacts.types.js +275 -0
  106. package/build/internal/es/src/contacts-v4-contact-contacts.types.js.map +1 -0
  107. package/build/internal/es/src/contacts-v4-contact-contacts.universal.d.ts +2409 -0
  108. package/build/internal/es/src/contacts-v4-contact-contacts.universal.js +877 -0
  109. package/build/internal/es/src/contacts-v4-contact-contacts.universal.js.map +1 -0
  110. package/package.json +11 -12
  111. package/build/index.js +0 -1338
  112. package/build/index.js.map +0 -1
  113. package/build/index.mjs +0 -1281
  114. package/build/index.mjs.map +0 -1
  115. package/build/internal/index.js +0 -1338
  116. package/build/internal/index.js.map +0 -1
  117. package/build/internal/index.mjs +0 -1281
  118. package/build/internal/index.mjs.map +0 -1
  119. package/build/internal/meta.d.mts +0 -914
  120. package/build/internal/meta.d.ts +0 -914
  121. package/build/internal/meta.js +0 -618
  122. package/build/internal/meta.js.map +0 -1
  123. package/build/internal/meta.mjs +0 -584
  124. package/build/internal/meta.mjs.map +0 -1
  125. package/build/meta.d.mts +0 -914
  126. package/build/meta.d.ts +0 -914
  127. package/build/meta.js +0 -618
  128. package/build/meta.js.map +0 -1
  129. package/build/meta.mjs +0 -584
  130. package/build/meta.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ export * from './src/contacts-v4-contact-contacts.context.js';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/contacts-v4-contact-contacts.context.js"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gFAA8D"}
@@ -0,0 +1 @@
1
+ export * from './src/contacts-v4-contact-contacts.universal.js';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/contacts-v4-contact-contacts.universal.js"), exports);
18
+ //# sourceMappingURL=index.typings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kFAAgE"}
@@ -0,0 +1 @@
1
+ export * from './src/contacts-v4-contact-contacts.meta.js';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/contacts-v4-contact-contacts.meta.js"), exports);
18
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6EAA2D"}
@@ -0,0 +1,36 @@
1
+ import { createContact as publicCreateContact, updateContact as publicUpdateContact, mergeContacts as publicMergeContacts, deleteContact as publicDeleteContact, labelContact as publicLabelContact, unlabelContact as publicUnlabelContact, queryContacts as publicQueryContacts, getContact as publicGetContact } from './contacts-v4-contact-contacts.public.js';
2
+ import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
3
+ import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
4
+ import { onContactCreated as publicOnContactCreated } from './contacts-v4-contact-contacts.public.js';
5
+ import { onContactDeleted as publicOnContactDeleted } from './contacts-v4-contact-contacts.public.js';
6
+ import { onContactMerged as publicOnContactMerged } from './contacts-v4-contact-contacts.public.js';
7
+ import { onContactUpdated as publicOnContactUpdated } from './contacts-v4-contact-contacts.public.js';
8
+ export declare const createContact: MaybeContext<BuildRESTFunction<typeof publicCreateContact> & typeof publicCreateContact>;
9
+ export declare const updateContact: MaybeContext<BuildRESTFunction<typeof publicUpdateContact> & typeof publicUpdateContact>;
10
+ export declare const mergeContacts: MaybeContext<BuildRESTFunction<typeof publicMergeContacts> & typeof publicMergeContacts>;
11
+ export declare const deleteContact: MaybeContext<BuildRESTFunction<typeof publicDeleteContact> & typeof publicDeleteContact>;
12
+ export declare const labelContact: MaybeContext<BuildRESTFunction<typeof publicLabelContact> & typeof publicLabelContact>;
13
+ export declare const unlabelContact: MaybeContext<BuildRESTFunction<typeof publicUnlabelContact> & typeof publicUnlabelContact>;
14
+ export declare const queryContacts: MaybeContext<BuildRESTFunction<typeof publicQueryContacts> & typeof publicQueryContacts>;
15
+ export declare const getContact: MaybeContext<BuildRESTFunction<typeof publicGetContact> & typeof publicGetContact>;
16
+ /**
17
+ * Triggered when a contact is created.
18
+ */
19
+ export declare const onContactCreated: ReturnType<typeof createEventModule<typeof publicOnContactCreated>>;
20
+ /**
21
+ * Triggered when a contact is deleted.
22
+ *
23
+ * If a contact is deleted as part of a merge, the `originatedFrom` property is sent as `merge`.
24
+ * Otherwise, `originatedFrom` isn't returned.
25
+ */
26
+ export declare const onContactDeleted: ReturnType<typeof createEventModule<typeof publicOnContactDeleted>>;
27
+ /**
28
+ * Triggered when one or more source contacts are merged into a target contact.
29
+ */
30
+ export declare const onContactMerged: ReturnType<typeof createEventModule<typeof publicOnContactMerged>>;
31
+ /**
32
+ * Triggered when a contact is updated.
33
+ */
34
+ export declare const onContactUpdated: ReturnType<typeof createEventModule<typeof publicOnContactUpdated>>;
35
+ export { ContactSourceType, ContactActivityType, EmailTag, PhoneTag, AddressTag, SubdivisionType, ImageProvider, SubscriptionStatus, EmailDeliverabilityStatus, PhoneDeliverabilityStatus, MemberStatus, PrivacyStatus, Role, SortOrder, ContactFieldSet, ContactsFacetType, Action, UpsertContactResponseAction, GetContactResponseType, SubmitOperation, Mode, WebhookIdentityType, } from './contacts-v4-contact-contacts.universal.js';
36
+ export { Contact, ContactSource, ContactActivity, ActivityIcon, PrimaryContactInfo, ContactInfo, ContactName, ContactEmailsWrapper, ContactEmail, ContactPhonesWrapper, ContactPhone, ContactAddressesWrapper, ContactAddress, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, AssigneesWrapper, LabelsWrapper, ExtendedFieldsWrapper, LocationsWrapper, ContactPicture, SegmentsWrapper, PrimaryEmail, PrimaryPhone, MemberInfo, ProfileInfo, UserInfo, SessionInfo, GroupInfo, ContactSubmitted, ContactChanged, ContactEmailSubscriptionUpdated, ContactPhoneSubscriptionUpdated, ContactPrimaryInfoUpdated, PrimarySubscriptionStatus, LastActivityUpdate, CreateContactRequest, CreateContactResponse, DuplicateContactExists, UpdateContactRequest, UpdateContactResponse, MergeContactsRequest, MergeContactsResponse, ContactMerged, PreviewMergeContactsRequest, PreviewMergeContactsResponse, DeleteContactRequest, DeleteContactResponse, LabelContactRequest, LabelContactResponse, UnlabelContactRequest, UnlabelContactResponse, LabelAndUnlabelContactRequest, LabelAndUnlabelContactResponse, ListContactsRequest, Sorting, Paging, ListContactsResponse, PagingMetadata, QueryContactsRequest, Query, QueryContactsResponse, ListFacetsRequest, ListFacetsResponse, ContactsFacet, QueryFacetsRequest, QueryFacetsResponse, BulkDeleteContactsRequest, BulkDeleteContactsResponse, BulkUpdateContactsRequest, BulkUpdateContactsResponse, BulkLabelAndUnlabelContactsRequest, BulkLabelAndUnlabelContactsResponse, BulkUpsertContactsRequest, BulkUpsertContactsResponse, Error, Metadata, Item, BulkUpsertContactsResponseMetadata, UpsertContactRequest, UpsertContactResponse, GeneratePictureUploadUrlRequest, GeneratePictureUploadUrlResponse, GetContactRequest, GetContactResponse, SyncSubmitContactRequest, SyncSubmitContactResponse, CountContactsRequest, CountContactsResponse, SearchContactsRequest, Search, SearchPagingMethodOneOf, SearchDetails, CursorPaging, SearchContactsResponse, CursorPagingMetadata, Cursors, BulkAddSegmentToContactsRequest, BulkAddSegmentToContactsResponse, ItemMetadata, ApplicationError, BulkActionMetadata, ContactAddedToSegment, BulkRemoveSegmentFromContactsRequest, BulkRemoveSegmentFromContactsResponse, ContactRemovedFromSegment, ListContactIdsBySegmentRequest, ListContactIdsBySegmentResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, EventMetadata, ContactCreatedEnvelope, ContactDeletedEnvelope, ContactMergedEnvelope, ContactUpdatedEnvelope, CreateContactOptions, UpdateContactOptions, MergeContactsOptions, QueryContactsOptions, ContactsQueryResult, ContactsQueryBuilder, GetContactOptions, } from './contacts-v4-contact-contacts.universal.js';
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookIdentityType = exports.Mode = exports.SubmitOperation = exports.GetContactResponseType = exports.UpsertContactResponseAction = exports.Action = exports.ContactsFacetType = exports.ContactFieldSet = exports.SortOrder = exports.Role = exports.PrivacyStatus = exports.MemberStatus = exports.PhoneDeliverabilityStatus = exports.EmailDeliverabilityStatus = exports.SubscriptionStatus = exports.ImageProvider = exports.SubdivisionType = exports.AddressTag = exports.PhoneTag = exports.EmailTag = exports.ContactActivityType = exports.ContactSourceType = exports.onContactUpdated = exports.onContactMerged = exports.onContactDeleted = exports.onContactCreated = exports.getContact = exports.queryContacts = exports.unlabelContact = exports.labelContact = exports.deleteContact = exports.mergeContacts = exports.updateContact = exports.createContact = void 0;
4
+ const contacts_v4_contact_contacts_public_js_1 = require("./contacts-v4-contact-contacts.public.js");
5
+ const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
6
+ const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
7
+ const contacts_v4_contact_contacts_public_js_2 = require("./contacts-v4-contact-contacts.public.js");
8
+ const contacts_v4_contact_contacts_public_js_3 = require("./contacts-v4-contact-contacts.public.js");
9
+ const contacts_v4_contact_contacts_public_js_4 = require("./contacts-v4-contact-contacts.public.js");
10
+ const contacts_v4_contact_contacts_public_js_5 = require("./contacts-v4-contact-contacts.public.js");
11
+ exports.createContact = (0, rest_modules_1.createRESTModule)(contacts_v4_contact_contacts_public_js_1.createContact);
12
+ exports.updateContact = (0, rest_modules_1.createRESTModule)(contacts_v4_contact_contacts_public_js_1.updateContact);
13
+ exports.mergeContacts = (0, rest_modules_1.createRESTModule)(contacts_v4_contact_contacts_public_js_1.mergeContacts);
14
+ exports.deleteContact = (0, rest_modules_1.createRESTModule)(contacts_v4_contact_contacts_public_js_1.deleteContact);
15
+ exports.labelContact = (0, rest_modules_1.createRESTModule)(contacts_v4_contact_contacts_public_js_1.labelContact);
16
+ exports.unlabelContact = (0, rest_modules_1.createRESTModule)(contacts_v4_contact_contacts_public_js_1.unlabelContact);
17
+ exports.queryContacts = (0, rest_modules_1.createRESTModule)(contacts_v4_contact_contacts_public_js_1.queryContacts);
18
+ exports.getContact = (0, rest_modules_1.createRESTModule)(contacts_v4_contact_contacts_public_js_1.getContact);
19
+ /**
20
+ * Triggered when a contact is created.
21
+ */
22
+ exports.onContactCreated = (0, event_definition_modules_1.createEventModule)(contacts_v4_contact_contacts_public_js_2.onContactCreated);
23
+ /**
24
+ * Triggered when a contact is deleted.
25
+ *
26
+ * If a contact is deleted as part of a merge, the `originatedFrom` property is sent as `merge`.
27
+ * Otherwise, `originatedFrom` isn't returned.
28
+ */
29
+ exports.onContactDeleted = (0, event_definition_modules_1.createEventModule)(contacts_v4_contact_contacts_public_js_3.onContactDeleted);
30
+ /**
31
+ * Triggered when one or more source contacts are merged into a target contact.
32
+ */
33
+ exports.onContactMerged = (0, event_definition_modules_1.createEventModule)(contacts_v4_contact_contacts_public_js_4.onContactMerged);
34
+ /**
35
+ * Triggered when a contact is updated.
36
+ */
37
+ exports.onContactUpdated = (0, event_definition_modules_1.createEventModule)(contacts_v4_contact_contacts_public_js_5.onContactUpdated);
38
+ var contacts_v4_contact_contacts_universal_js_1 = require("./contacts-v4-contact-contacts.universal.js");
39
+ Object.defineProperty(exports, "ContactSourceType", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.ContactSourceType; } });
40
+ Object.defineProperty(exports, "ContactActivityType", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.ContactActivityType; } });
41
+ Object.defineProperty(exports, "EmailTag", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.EmailTag; } });
42
+ Object.defineProperty(exports, "PhoneTag", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.PhoneTag; } });
43
+ Object.defineProperty(exports, "AddressTag", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.AddressTag; } });
44
+ Object.defineProperty(exports, "SubdivisionType", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.SubdivisionType; } });
45
+ Object.defineProperty(exports, "ImageProvider", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.ImageProvider; } });
46
+ Object.defineProperty(exports, "SubscriptionStatus", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.SubscriptionStatus; } });
47
+ Object.defineProperty(exports, "EmailDeliverabilityStatus", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.EmailDeliverabilityStatus; } });
48
+ Object.defineProperty(exports, "PhoneDeliverabilityStatus", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.PhoneDeliverabilityStatus; } });
49
+ Object.defineProperty(exports, "MemberStatus", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.MemberStatus; } });
50
+ Object.defineProperty(exports, "PrivacyStatus", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.PrivacyStatus; } });
51
+ Object.defineProperty(exports, "Role", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.Role; } });
52
+ Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.SortOrder; } });
53
+ Object.defineProperty(exports, "ContactFieldSet", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.ContactFieldSet; } });
54
+ Object.defineProperty(exports, "ContactsFacetType", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.ContactsFacetType; } });
55
+ Object.defineProperty(exports, "Action", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.Action; } });
56
+ Object.defineProperty(exports, "UpsertContactResponseAction", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.UpsertContactResponseAction; } });
57
+ Object.defineProperty(exports, "GetContactResponseType", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.GetContactResponseType; } });
58
+ Object.defineProperty(exports, "SubmitOperation", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.SubmitOperation; } });
59
+ Object.defineProperty(exports, "Mode", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.Mode; } });
60
+ Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return contacts_v4_contact_contacts_universal_js_1.WebhookIdentityType; } });
61
+ //# sourceMappingURL=contacts-v4-contact-contacts.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contacts-v4-contact-contacts.context.js","sourceRoot":"","sources":["../../../src/contacts-v4-contact-contacts.context.ts"],"names":[],"mappings":";;;AAAA,qGASkD;AAClD,gEAAiE;AACjE,wFAA8E;AAE9E,qGAAsG;AACtG,qGAAsG;AACtG,qGAAoG;AACpG,qGAAsG;AAEzF,QAAA,aAAa,GAER,IAAA,+BAAgB,EAAC,sDAAmB,CAAC,CAAC;AAC3C,QAAA,aAAa,GAER,IAAA,+BAAgB,EAAC,sDAAmB,CAAC,CAAC;AAC3C,QAAA,aAAa,GAER,IAAA,+BAAgB,EAAC,sDAAmB,CAAC,CAAC;AAC3C,QAAA,aAAa,GAER,IAAA,+BAAgB,EAAC,sDAAmB,CAAC,CAAC;AAC3C,QAAA,YAAY,GAEP,IAAA,+BAAgB,EAAC,qDAAkB,CAAC,CAAC;AAC1C,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,uDAAoB,CAAC,CAAC;AAC5C,QAAA,aAAa,GAER,IAAA,+BAAgB,EAAC,sDAAmB,CAAC,CAAC;AAC3C,QAAA,UAAU,GAEL,IAAA,+BAAgB,EAAC,mDAAgB,CAAC,CAAC;AACrD;;GAEG;AACU,QAAA,gBAAgB,GAEzB,IAAA,4CAAiB,EAAC,yDAAsB,CAAC,CAAC;AAC9C;;;;;GAKG;AACU,QAAA,gBAAgB,GAEzB,IAAA,4CAAiB,EAAC,yDAAsB,CAAC,CAAC;AAC9C;;GAEG;AACU,QAAA,eAAe,GAExB,IAAA,4CAAiB,EAAC,wDAAqB,CAAC,CAAC;AAC7C;;GAEG;AACU,QAAA,gBAAgB,GAEzB,IAAA,4CAAiB,EAAC,yDAAsB,CAAC,CAAC;AAE9C,yGAuBqD;AAtBnD,8IAAA,iBAAiB,OAAA;AACjB,gJAAA,mBAAmB,OAAA;AACnB,qIAAA,QAAQ,OAAA;AACR,qIAAA,QAAQ,OAAA;AACR,uIAAA,UAAU,OAAA;AACV,4IAAA,eAAe,OAAA;AACf,0IAAA,aAAa,OAAA;AACb,+IAAA,kBAAkB,OAAA;AAClB,sJAAA,yBAAyB,OAAA;AACzB,sJAAA,yBAAyB,OAAA;AACzB,yIAAA,YAAY,OAAA;AACZ,0IAAA,aAAa,OAAA;AACb,iIAAA,IAAI,OAAA;AACJ,sIAAA,SAAS,OAAA;AACT,4IAAA,eAAe,OAAA;AACf,8IAAA,iBAAiB,OAAA;AACjB,mIAAA,MAAM,OAAA;AACN,wJAAA,2BAA2B,OAAA;AAC3B,mJAAA,sBAAsB,OAAA;AACtB,4IAAA,eAAe,OAAA;AACf,iIAAA,IAAI,OAAA;AACJ,gJAAA,mBAAmB,OAAA"}
@@ -0,0 +1,126 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ /**
3
+ * Creates a new contact.
4
+ *
5
+ * The `info` object must include at least one of the following:
6
+ * - Name
7
+ * - Phone number
8
+ * - Email address
9
+ *
10
+ * By default, if the call contains an email already in use by another contact,
11
+ * the new contact won't be created. To override this behavior, set `allowDuplicates` to `true`.
12
+ */
13
+ export declare function createContact(payload: object): RequestOptionsFactory<any>;
14
+ /**
15
+ * Updates a contact.
16
+ *
17
+ * Each time the contact is updated,
18
+ * `revision` increments by 1.
19
+ * The existing `revision` must be included when updating the contact.
20
+ * This ensures you're working with the latest contact information,
21
+ * and it prevents unintended overwrites.
22
+ *
23
+ * You can't call Update Contact to update the `primaryEmail` of a contact who is also a member.
24
+ * Instead, use the Members API to update the member's login email, which will also update the contact's primary email.
25
+ *
26
+ * Members are typically linked to contacts, and while they share a relationship, the member ID and contact ID are distinct identifiers. Make sure to specify the contact ID when calling Update Contact.
27
+ */
28
+ export declare function updateContact(payload: object): RequestOptionsFactory<any>;
29
+ /**
30
+ * Merges source contacts into a target contact.
31
+ *
32
+ * Merging contacts has the following effects on the target contact:
33
+ *
34
+ * - No target contact data is overwritten or deleted.
35
+ * - Arrays (emails, phone numbers, addresses, and labels) from the source contacts are added to the target contact's arrays.
36
+ * - If you merge more than one source contact, the 1st source contact specified is added first, then the 2nd, and so on.
37
+ * - If there is duplicate information between the target contact and the source contact, the information isn't duplicated in the target contact's arrays.
38
+ *
39
+ * <blockquote class="important">
40
+ *
41
+ * __Important:__
42
+ * Merges cannot be undone.
43
+ * In REST, call Preview Merge Contacts to test before merging.
44
+ *
45
+ * </blockquote>
46
+ *
47
+ * When you merge contacts, source contacts are typically deleted.
48
+ * However, if a source contact is a site member or a Wix user,
49
+ * the merge will fail because site members and Wix users can't be deleted.
50
+ * This means that site members and Wix users can only be specified as target contacts in a merge.
51
+ *
52
+ * After merging, calling Get Contact with a deleted source contact ID returns the target contact ID.
53
+ * Specifying a deleted source contact ID is not supported on any other method.
54
+ *
55
+ * When contacts are merged:
56
+ *
57
+ * - The Contact Merged event is triggered.
58
+ * - The Contact Updated event is triggered for the target contact. `originatedFrom` is set to `merge`.
59
+ * - The Contact Deleted event is triggered for each source contact. `originatedFrom` is set to `merge`.
60
+ */
61
+ export declare function mergeContacts(payload: object): RequestOptionsFactory<any>;
62
+ /**
63
+ * Deletes a contact.
64
+ *
65
+ * Deleting a contact permanently removes it from the contact list.
66
+ * If a contact is also a site member or Wix user, or has a valid billing subscription,
67
+ * the contact can't be deleted. The related site member or Wix user must first be deleted
68
+ * and any valid billing subscriptions must be canceled, before the contact can be deleted.
69
+ *
70
+ * Members are typically linked to contacts, and while they share a relationship, the member ID and contact ID are distinct identifiers.
71
+ * Make sure to specify the contact ID when calling Delete Contact.
72
+ */
73
+ export declare function deleteContact(payload: object): RequestOptionsFactory<any>;
74
+ /**
75
+ * Adds labels to a contact.
76
+ *
77
+ * Use the Labels API to create or retrieve labels.
78
+ *
79
+ * Members are typically linked to contacts, and while they share a relationship, the member ID and contact ID are distinct identifiers.
80
+ * Make sure to specify the contact ID when calling Label Contact.
81
+ */
82
+ export declare function labelContact(payload: object): RequestOptionsFactory<any>;
83
+ /**
84
+ * Removes labels from a contact.
85
+ *
86
+ * If a label is no longer needed
87
+ * and you want to remove it from all contacts,
88
+ * you can delete by calling Delete Label from the Labels API.
89
+ *
90
+ * Members are typically linked to contacts, and while they share a relationship, the member ID and contact ID are distinct identifiers.
91
+ * Make sure to specify the contact ID when calling Unlabel Contact.
92
+ */
93
+ export declare function unlabelContact(payload: object): RequestOptionsFactory<any>;
94
+ /**
95
+ * Creates a query to retrieve a list of contacts.
96
+ *
97
+ * The `queryContacts()` function builds a query to retrieve a list of contacts and returns a `ContactsQueryBuilder` object.
98
+ *
99
+ * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
100
+ *
101
+ * You can refine the query by chaining `ContactsQueryBuilder` functions onto the query. `ContactsQueryBuilder` functions enable you to sort, filter, and control the results `queryContacts()` returns.
102
+ *
103
+ * `queryContacts()` runs with these `ContactsQueryBuilder` defaults, which you can override:
104
+ *
105
+ * - `skip(0)`
106
+ * - `limit(50)`
107
+ * - `descending("_createdDate")`
108
+ *
109
+ * The functions that are chained to `queryContacts()` are applied in the order they are called. For example, if you apply `ascending('info.company')` and then `descending('info.name.last')`, the results are sorted first by the company name, and then, if there are multiple results with the same company, the items are sorted by last name.
110
+ */
111
+ export declare function queryContacts(payload: object): RequestOptionsFactory<any>;
112
+ /**
113
+ * Retrieves a contact.
114
+ *
115
+ * #### Getting Merged Contacts
116
+ *
117
+ * When a source contact is merged
118
+ * with a target contact, the source contact is deleted.
119
+ * When calling Get Contact for a merged contact,
120
+ * you can use the source or target contact ID.
121
+ * In both bases, the target contact is returned.
122
+ *
123
+ * This is supported only when calling Get Contact on merged contacts.
124
+ * Previously deleted source contact IDs can't be used for any other method.
125
+ */
126
+ export declare function getContact(payload: object): RequestOptionsFactory<any>;